/* ==========================================================================
   Dreaming at Elena's — brand stylesheet
   ========================================================================== */

:root {
  /* Brand palette */
  --navy: #1f3c88;
  --navy-deep: #17306e;
  --navy-ink: #12224f;
  --gold: #d9a62e;
  --gold-deep: #bd8b1c;
  --cream: #faf6ec;
  --cream-deep: #f3ecdc;
  --green: #2e7d4f;
  --purple: #6b3fa0;
  --teal: #1f8a8c;
  --white: #ffffff;
  --text: #33383f;
  --text-soft: #5c636e;
  --rule: rgba(31, 60, 136, 0.14);

  /* Type */
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --wrap: 1180px;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(23, 48, 110, 0.1);
  --shadow-lift: 0 26px 60px rgba(23, 48, 110, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p {
  margin: 0 0 1.1em;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.brand img {
  width: 210px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--navy-ink);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav a:hover {
  color: var(--gold-deep);
}

.nav a.is-active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(217, 166, 46, 0.32);
}

.btn--gold:hover {
  background: var(--gold-deep);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(31, 60, 136, 0.28);
}

.btn--navy:hover {
  background: var(--navy-deep);
}

.btn--ghost {
  border-color: var(--navy);
  color: var(--navy);
}

.btn--ghost:hover {
  background: var(--navy);
  color: var(--white);
}

.btn__arrow {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  font-size: 0.65rem;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--cream);
  overflow: hidden;
}

/* The right half bleeds to the viewport edge, so the hero grid spans full width
   and the copy column pads itself in to meet the .wrap gutter. */
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 580px;
  width: 100%;
}

.hero__copy {
  padding-block: 4rem;
  padding-inline-start: max(1.25rem, calc((100vw - var(--wrap)) / 2));
  padding-inline-end: 3rem;
}

.hero__title {
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  margin-bottom: 1.4rem;
}

.hero__title span {
  display: block;
}

.hero__title .l-navy {
  color: var(--navy);
}
.hero__title .l-green {
  color: var(--green);
}
.hero__title .l-gold {
  color: var(--gold);
}

.hero__rule {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
  max-width: 22rem;
}

.hero__rule::before,
.hero__rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold);
}

.hero__rule svg {
  width: 20px;
  color: var(--gold);
  flex: none;
}

.hero__lead {
  color: var(--text-soft);
  max-width: 26rem;
}

.hero__note {
  font-weight: 600;
  color: var(--navy-ink);
  margin-bottom: 1.8rem;
}

/* Right-hand artwork. The image already carries the gold curve, the navy panel,
   and the "Together" message baked in, so no clip-path or panel is drawn here —
   doing so would render a second curve and a second copy of the text. */
.hero__media {
  position: relative;
  align-self: stretch;
  min-height: 580px;
}

/* contain, not cover: the artwork's own edges carry the design (gold arc, navy
   panel, "Together" text), so cropping any of it would cut the message off. */
.hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center right;
}

/* Decorative sparkles */
.sparkle {
  position: absolute;
  color: var(--gold);
  opacity: 0.85;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Section furniture
   -------------------------------------------------------------------------- */

.section {
  padding: 5rem 0;
}

.section--cream {
  background: var(--cream);
}

.section--navy {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section__head {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 3rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 90px;
  height: 1px;
  background: var(--gold);
}

.section__head p {
  color: var(--text-soft);
}

.section--navy .section__head p {
  color: rgba(255, 255, 255, 0.78);
}

/* --------------------------------------------------------------------------
   E.L.E.N.A. program row
   -------------------------------------------------------------------------- */

.elena {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
}

.elena__item {
  padding: 0 1.2rem;
  border-right: 1px dotted var(--gold);
}

.elena__item:last-child {
  border-right: 0;
}

.elena__badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
}

.elena__icon {
  height: 58px;
  margin: 0 auto 0.9rem;
  display: grid;
  place-items: center;
}

.elena__icon svg {
  width: 54px;
  height: 54px;
}

.elena__item h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.elena__item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* Per-letter accent colors, matching the brand mark */
.c-navy {
  background: var(--navy);
}
.c-green {
  background: var(--green);
}
.c-gold {
  background: var(--gold);
}
.c-purple {
  background: var(--purple);
}
.c-teal {
  background: var(--teal);
}

.t-navy {
  color: var(--navy);
}
.t-green {
  color: var(--green);
}
.t-gold {
  color: var(--gold-deep);
}
.t-purple {
  color: var(--purple);
}
.t-teal {
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1.8rem;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(217, 166, 46, 0.12);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
}

.card__tag--pending {
  color: var(--navy);
  background: rgba(31, 60, 136, 0.1);
}

.card h3 {
  font-size: 1.4rem;
}

.card p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.card__link {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--gold-deep);
}

.card__link:hover {
  text-decoration: underline;
}

/* Benefit lists with gold rules, as on the brochure panels */
.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
}

.benefits li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(217, 166, 46, 0.45);
  font-size: 0.97rem;
}

.benefits li:last-child {
  border-bottom: 0;
}

.benefits .dot {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
}

.benefits .dot svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   Why families choose us
   -------------------------------------------------------------------------- */

.reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem 3rem;
}

.reason {
  display: flex;
  gap: 1.2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px dotted rgba(31, 60, 136, 0.28);
}

.reason__icon {
  flex: none;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--navy);
  color: var(--gold);
}

.reason__icon svg {
  width: 26px;
  height: 26px;
}

.reason h3 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.reason p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Promise strip
   -------------------------------------------------------------------------- */

.promise {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 3rem;
  margin-top: 2.5rem;
}

.promise span {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy);
}

.section--navy .promise span {
  color: var(--white);
}

.promise svg {
  width: 24px;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Split feature (image + copy)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3.5rem;
}

.split__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split--flip .split__media {
  order: 2;
}

/* Text-only content block, used where a section has copy but no photo */
.prose {
  max-width: 48rem;
  margin-inline: auto;
}

.prose--center {
  text-align: center;
}

.prose--center .eyebrow {
  justify-content: center;
}

.prose--center .benefits {
  text-align: left;
}

/* Benefit lists flow into two columns once there's room */
.benefits--2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2.5rem;
}

/* In two columns the last row is the final item of each column, so both need the
   rule removed — not just :last-child. */
@media (min-width: 721px) {
  .benefits--2col li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .benefits--2col {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Call to action
   -------------------------------------------------------------------------- */

.cta {
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: rgba(255, 255, 255, 0.88);
  padding: 4.5rem 0;
}

.cta h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.cta p {
  max-width: 34rem;
  margin: 0 auto 2rem;
}

.cta__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta .btn--ghost {
  border-color: var(--white);
  color: var(--white);
}

.cta .btn--ghost:hover {
  background: var(--white);
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   Page banner (inner pages)
   -------------------------------------------------------------------------- */

.banner {
  background: var(--cream);
  padding: 3.6rem 0;
  text-align: center;
  border-bottom: 4px solid var(--gold);
}

.banner h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 0.4rem;
}

.banner p {
  margin: 0;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}

.contact-card:last-of-type {
  border-bottom: 0;
}

.contact-card__icon {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-card h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.contact-card p,
.contact-card a {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-soft);
}

.contact-card a:hover {
  color: var(--gold-deep);
}

.form {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2.2rem;
  border: 1px solid var(--rule);
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--navy-ink);
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 166, 46, 0.18);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form__note {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin: 0.9rem 0 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--navy-ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 3.5rem 0 1.5rem;
  font-size: 0.92rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}

.footer h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 0.55rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.72);
}

.footer a:hover {
  color: var(--gold);
}

.footer__logo {
  width: 190px;
  margin-bottom: 1.2rem;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer__tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .elena {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 0;
  }

  .elena__item:nth-child(3) {
    border-right: 0;
  }

  .grid--3 {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 64px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.6rem;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }

  .nav.is-open {
    transform: translateY(0);
  }

  .nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--rule);
  }

  .nav .btn {
    margin-top: 1rem;
    justify-content: center;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero__copy {
    padding: 3rem 1.25rem 2rem;
  }

  /* Stacked: let the artwork size itself so its baked-in text stays legible
     instead of being cropped by a fixed-height box. */
  .hero__media {
    min-height: 0;
  }

  .hero__art {
    position: static;
    height: auto;
  }

  .split,
  .contact-grid,
  .reasons {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split--flip .split__media {
    order: 0;
  }

  .grid--2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 3.5rem 0;
  }

  .elena {
    grid-template-columns: 1fr;
  }

  .elena__item {
    border-right: 0;
    border-bottom: 1px dotted var(--gold);
    padding-bottom: 1.8rem;
  }

  .elena__item:last-child {
    border-bottom: 0;
  }

  .eyebrow::before,
  .eyebrow::after {
    width: 34px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}
