:root {
  --ivory: #faf7f2;
  --plum: #2b1c2f;
  --gold: #c9a45c;
  --teal: #2f6f73;
  --sage: #6fa38b;
  --muted: #6f6a72;
  --radius: 20px;
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Nunito", sans-serif;
  background: var(--ivory);
  color: var(--plum);
  line-height: 1.7;
}

h1,
h2,
h3,
h4 {
  font-family: "Nunito", sans-serif;
  font-weight: 500;
}

section {
  padding: 90px 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* HERO */
.hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(
      1200px 600px at 10% -20%,
      rgba(111, 163, 139, 0.35),
      transparent
    ),
    radial-gradient(
      900px 500px at 90% 10%,
      rgba(47, 111, 115, 0.35),
      transparent
    ),
    linear-gradient(180deg, #35203b00, var(--plum));
  color: #fff;
}

.hero-title {
  position: relative;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title::after {
  content: "";
  display: block;
  width: 88px;
  height: 3px;
  margin: 0px auto 0;
  background: linear-gradient(
    90deg,
    #6fa38b,
    /* earth green */ #2f6f73 /* evolve teal */
  );
  border-radius: 2px;
}

.hero.thank-you {
  min-height: 40vh;
  text-align: center;
}

.hero p {
  max-width: 640px;
  margin-top: 20px;
}

.tile-title {
  position: relative;
  font-size: 1.25rem;
  color: var(--teal); /* soft calm highlight */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px; /* space between logo and title */
}

.section-logo {
  width: 48px; /* adjust as needed */
  height: auto;
  object-fit: contain;
}

/* subtle underline accent */
.tile-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 6px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--sage),
    /* calm green */ var(--teal) /* calm blue-green */
  );
}

.brand-link {
  color: var(--gold); /* premium accent */
  font-weight: 600;
  transition: color 0.3s ease;
}

.brand-link:hover {
  color: var(--teal); /* calm contrast */
}

.brand-mark {
  margin-top: 28px;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #000000;
}

/* COMMON */
.section-title {
  font-size: 2.2rem;
  margin-bottom: 0px;
}

.divider {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  margin-bottom: 36px;
}

.tile {
  display: block;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.text {
  max-width: 820px;
  color: var(--muted);
}

/* GRID / TILES */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}

.grid1 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 44px;
}

.tile {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.tile h4 {
  color: var(--teal);
}

/* BRAND BLOCK */
.brand-block {
  margin-top: 44px;
  padding: 44px;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    rgba(111, 163, 139, 0.12),
    rgba(47, 111, 115, 0.08)
  );
}

/* FORM */
form {
  max-width: 640px;
}

.field {
  margin-bottom: 22px;
}

label {
  font-size: 0.8rem;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

button {
  padding: 14px 30px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

/* FOOTER */
.footer-divider {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold),
    var(--teal),
    transparent
  );
}

footer {
  padding: 36px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.back-link {
  display: inline-block;
  margin-top: 30px;
  color: var(--gold);
  text-decoration: none;
}

.flagship-highlight {
  margin-top: 0px;
  padding: 28px 32px;
  background: linear-gradient(179deg, #f8f6f2, #fff);
  border: 1px solid #e8e3d9;
  border-radius: 12px;
  text-align: center;
}

.flagship-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8c7a5b;
  font-weight: 600;
}

.flagship-name {
  font-size: 32px;
  font-weight: 800;
  margin-top: 8px;
  color: #1a1a1a;
}

.flagship-description {
  margin-top: 12px;
  font-size: 16px;
  color: #444;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.flagship-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  border-bottom: 2px solid #000;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.flagship-link:hover {
  opacity: 0.6;
}

/* =========================
   MOBILE OPTIMIZATION
   ========================= */

@media (max-width: 768px) {
  /* Container breathing space */
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }

  /* HERO */
  .hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: 2.2rem;
    letter-spacing: 0.12em;
    text-align: left;
  }

  .hero p {
    font-size: 0.95rem;
  }

  /* Section titles */
  .section-title {
    font-size: 1.6rem;
  }

  /* Logo alignment */
  .section-header {
    align-items: center;
  }

  .section-logo {
    width: 36px;
  }

  /* GRID adjustments */
  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .grid1 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Tile spacing */
  .tile {
    padding: 22px;
    border-radius: 16px;
  }

  .tile-title {
    font-size: 1.05rem;
  }

  /* Brand block */
  .brand-block {
    padding: 24px;
  }

  /* Text readability */
  .text {
    font-size: 0.95rem;
  }

  /* Form improvements */
  input,
  textarea {
    padding: 16px;
    font-size: 16px; /* prevents zoom on iOS */
  }

  button {
    width: 100%;
    padding: 16px;
  }

  /* Footer */
  footer {
    font-size: 0.75rem;
    padding: 28px 16px;
  }
}

/* EXTRA SMALL DEVICES (phones under 480px) */

@media (max-width: 480px) {
  section {
    padding: 54px 16px;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .tile {
    padding: 18px;
  }

  .brand-block {
    padding: 20px;
  }
}
