/* ================================
   Base / Reset
================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #fff;
  color: #fff;
  font-family: "Poiret One", sans-serif;
  text-shadow: 1px 1px 2px #210709;
  font-weight: bold;
}

main {
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
address {
  margin: 0;
  padding: 0;
}

/* ================================
   Typography
================================ */

h1 {
  font-size: 2.25rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.2;
}

p {
  font-size: 1.15rem;
  line-height: 1.6;
}

/* ================================
   Layout Utilities
================================ */

.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  width: 90%;
  max-width: 800px;
}

.h-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.h-stack > div {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

/* ================================
   Hero
================================ */

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  background-image:
    linear-gradient(rgba(157, 18, 26, 0.6), rgba(157, 18, 26, 0)),
    url("assets/hero-bg.webp");

  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 4rem 1rem;
}

.hero img {
  width: min(80%, 360px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 0.25rem solid #210709;
}

.hero p {
  width: 100%;
}

/* ================================
   Sections
================================ */

.section-1,
.section-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6rem 1rem;
}

.section-1 {
  background-color: #9d121a;
}

.section-2 {
  background-image:
    linear-gradient(
      rgba(157, 18, 26, 0.3),
      rgba(157, 18, 26, 0.3),
      rgba(33, 7, 9, 1)
    ),
    url("assets/section-baily-bg.webp");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-bottom:6.5rem;
}

.section-1 img,
.section-2 img {
  width: min(100%, 400px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.section-1 img {
  border: 0.375rem solid #fff;
}

.section-2 img {
  border: 0.375rem solid #9d121a;
}

/* ================================
   Buttons
================================ */

.primary-button,
.instagram-button {
  display: inline-block;
  width: 100%;
  max-width: 400px;

  padding: 1rem;
  border-radius: 1.25rem;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;

  font-family: Inter, sans-serif;
  font-weight: bold;
  color: #fff;
  box-shadow: 1px 1px 3px black;
  text-shadow: 1px 1px 1px black;
  transition: box-shadow 0.25s ease-in-out;
}

.primary-button {
  background-color: #9d121a;
}

.instagram-button {
  background: #320808;
  margin-top: -0.5rem;
}

.primary-button:hover,
.instagram-button:hover {
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9);
}

/* ================================
   Contact Section
================================ */

.contact {
  background-color: #210709;
  display: flex;
  justify-content: center;
  padding: 4rem 1rem;
}

.contact > div {
  width: 100%;
  max-width: 800px;
  text-align: center;
}

.contact form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

label {
  font-family: sans-serif;
  text-align: left;
  width: 100%;
  font-size: 0.9rem;
}

label:has(+ input:required)::after,
label:has(+ textarea:required)::after,
label:has(+ select:required)::after {
  content: " *";
  color: red;
}

form input,
form select,
form textarea {
  width: 100%;
  border: none;
  padding: 0.6rem;
  border-radius: 0.5rem;
  font-family: sans-serif;
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

.contact h2 {
  margin-top: 1rem;
  padding-bottom:1rem;
}

.contact .primary-button {
  margin-top: 1rem;
  width: 100%;
  max-width: none;
  border: none;
}

.contact form .field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* adjust to taste */
}

/* ================================
   Footer
================================ */

footer {
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  background-color: #210709;
  text-align: center;
  padding: 2rem 1rem;
}

/* ================================
   Tablet (768px+)
================================ */

@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 2.25rem;
    line-height: 1.2;
  }

  p {
    font-size: 1.25rem;
    line-height: 1.5;
  }

  .h-stack {
    flex-direction: row;
    align-items: center;
  }

  .h-stack > div {
    width: 50%;
  }

  .stack {
    width: 70%;
  }

  .contact form {
    gap: 1rem;
    text-align: left;
  }
}

/* ================================
   Desktop (1024px+)
================================ */

@media (min-width: 1024px) {
  .stack {
    width: 40%;
  }

  .h-stack > div {
    width: 50%;
  }

  .h-stack {
    gap: 6rem;
  }

  .contact > div {
    max-width: 700px;
  }
  .contact form {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
  }

  /* Full-width fields span both columns */
  .contact form .field-group.full-width {
    grid-column: 1 / -1;
  }

  /* Keep each label+input together */
  .contact form .field-group {
    display: flex;
    flex-direction: column;
  }
}
