/* home.css — homepage-only design layer.
   Loaded AFTER style.css and scoped to <body class="home">, so every other
   page on the site keeps the existing blue design untouched.

   Palette matches the navy/gold direction: navy #0A2540, gold #D4AF37.
   Type is Playfair Display + Inter, already @font-face'd in style.css. */

.home {
  --navy:      #0A2540;
  --navy-2:    #0D2E4D;
  --navy-3:    #06182C;
  --navy-4:    #051424;
  --gold:      #D4AF37;   /* bright gold — on navy only */
  --gold-ink:  #856A12;   /* darker gold — on white/cream, 5.16:1 */
  --gold-soft: #E4C766;
  --cream:     #F9FAFB;
  --cream-2:   #F2F5F8;
  --slate:     #4A5568;
  --hair:      rgba(10, 37, 64, .12);
  --hair-lt:   rgba(255, 255, 255, .14);

  background: #fff;
  color: var(--navy);
  font-family: var(--body);
}

.home .wrap { width: min(1180px, 92vw); margin-inline: auto; }

/* ---------- shared bits ---------- */
.home .h-eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 1.1rem;
}
.home .h-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold-ink); }
.home .h-sec--navy .h-eyebrow { color: var(--gold); }
.home .h-sec--navy .h-eyebrow::before { background: var(--gold); }

.home h1, .home h2, .home h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; }
.home h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); color: var(--navy); margin: 0; }
.home h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); margin: 0; }
.home .h-ital { display: block; font-style: italic; color: var(--gold-ink); }
.home .h-sec--navy .h-ital { color: var(--gold); }

.home .h-sec { padding-block: clamp(3.5rem, 7vw, 6.5rem); background: #fff; }
.home .h-sec--cream { background: var(--cream); }
.home .h-sec--navy { background: var(--navy); color: #fff; }
.home .h-sec--navy h2, .home .h-sec--navy h3 { color: #fff; }
.home .h-lead { color: var(--slate); font-size: 1.02rem; line-height: 1.7; max-width: 60ch; margin: 1.1rem 0 0; }
.home .h-sec--navy .h-lead { color: rgba(255,255,255,.78); }

.home .h-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .82rem 1.5rem; border-radius: 3px; font-size: .9rem; font-weight: 600;
  background: var(--navy); color: #fff; border: 1px solid var(--navy);
  transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.home .h-btn:hover { background: var(--navy-2); transform: translateY(-1px); }
.home .h-btn--gold { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 700; }
.home .h-btn--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.home .h-btn--out { background: transparent; color: var(--navy); border-color: var(--hair); }
.home .h-btn--out:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.home .h-link { display: inline-flex; align-items: center; gap: .45rem; font-size: .86rem; font-weight: 600; color: var(--gold-ink); }
.home .h-sec--navy .h-link, .home .h-door--dark .h-link { color: var(--gold); }
.home .h-link:hover { color: var(--navy); }
.home .h-sec--navy .h-link:hover { color: #fff; }

/* ---------- header ---------- */
.home .site-header { background: #fff; border-bottom: 1px solid var(--hair); }
.home .navlink { color: var(--navy); font-weight: 500; }
.home .navlink:hover { color: var(--gold); }
.home .nav-cta, .home .btn--green { background: var(--navy) !important; border-color: var(--navy) !important; color: #fff !important; border-radius: 3px; }
.home .nav-cta:hover { background: var(--navy-2) !important; }

/* ---------- hero ---------- */
.home .h-hero {
  position: relative; min-height: min(78vh, 680px); display: grid; place-items: center;
  overflow: hidden; background: var(--navy);
  /* the site header is position:fixed — reserve room so the headline never sits under it */
  padding: clamp(5.5rem, 15vw, 7.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}
.home .h-hero__slides { position: absolute; inset: 0; }
.home .h-hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s cubic-bezier(.4,0,.2,1); }
.home .h-hero__slides img.on { opacity: 1; }
.home .h-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,37,64,.58) 0%, rgba(10,37,64,.42) 42%, rgba(6,24,44,.78) 100%);
}
.home .h-hero__in { position: relative; z-index: 2; text-align: center; padding-inline: 1rem; }
.home .h-hero h1 {
  font-size: clamp(1.85rem, 1.05rem + 3.6vw, 4.2rem); color: #fff; margin: 0 auto;
  max-width: 17ch; text-wrap: balance;
}
.home .h-hero p { color: rgba(255,255,255,.84); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); margin: 1.2rem auto 2rem; max-width: 52ch; }
.home .h-hero__arrow {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 3;
  width: 42px; height: 42px; display: grid; place-items: center;
  background: transparent; border: 0; color: rgba(255,255,255,.7); cursor: pointer;
  font-size: 1.6rem; line-height: 1; transition: color .3s;
}
.home .h-hero__arrow:hover { color: var(--gold); }
.home .h-hero__arrow--prev { inset-inline-start: clamp(.4rem, 2vw, 1.6rem); }
.home .h-hero__arrow--next { inset-inline-end: clamp(.4rem, 2vw, 1.6rem); }

/* ---------- stats bar ---------- */
.home .h-stats { background: var(--navy-3); padding-block: clamp(2rem, 4vw, 3rem); }
.home .h-stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem 0; text-align: center; }
.home .h-stats li { padding-inline: 1rem; }
.home .h-stats li + li { border-inline-start: 1px solid var(--hair-lt); }
.home .h-stats li:nth-child(3) { border-inline-start: 0; }
.home .h-stats .n { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); color: var(--gold); line-height: 1; }
.home .h-stats .n small { font-size: .62em; font-family: var(--body); font-weight: 500; margin-left: .18em; }
.home .h-stats .l { color: rgba(255,255,255,.78); font-size: .82rem; line-height: 1.45; margin-top: .55rem; }
@media (min-width: 760px) {
  .home .h-stats ul { grid-template-columns: repeat(4, 1fr); }
  .home .h-stats li:nth-child(3) { border-inline-start: 1px solid var(--hair-lt); }
}

/* ---------- two doors ---------- */
.home .h-doors { display: grid; gap: 1.4rem; margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 860px) { .home .h-doors { grid-template-columns: 1fr 1fr; } }
.home .h-door { padding: clamp(1.8rem, 3vw, 2.6rem); border-radius: 4px; }
.home .h-door--dark { background: var(--navy); color: #fff; }
.home .h-door--dark h3 { color: #fff; }
.home .h-door--dark p { color: rgba(255,255,255,.76); }
.home .h-door--light { background: var(--cream); border: 1px solid var(--hair); }
.home .h-door p { font-size: .95rem; line-height: 1.7; color: var(--slate); margin: .9rem 0 1.4rem; }
.home .h-door--dark p { color: rgba(255,255,255,.8); }

/* ---------- numbered service rows ---------- */
.home .h-rows { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--hair); }
.home .h-row { display: grid; gap: .5rem 1.6rem; padding-block: clamp(1.4rem, 2.5vw, 2rem); border-bottom: 1px solid var(--hair); align-items: start; }
@media (min-width: 900px) { .home .h-row { grid-template-columns: 48px 1fr 1.5fr; gap: 0 2.4rem; } }
.home .h-row__n { font-family: var(--display); font-size: .95rem; color: var(--gold-ink); font-weight: 600; }
.home .h-row__t { font-family: var(--display); font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); color: var(--navy); font-weight: 600; }
.home .h-row__d { color: var(--slate); font-size: .93rem; line-height: 1.7; }

/* ---------- how it works ---------- */
.home .h-how { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 940px) { .home .h-how { grid-template-columns: 1fr 1.15fr; align-items: start; } }
.home .h-how ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: .9rem; }
.home .h-how li { counter-increment: s; position: relative; padding: 1.1rem 1.3rem; padding-inline-start: 3.5rem; background: var(--navy-2); border-radius: 4px; }
.home .h-how li::before {
  content: counter(s, decimal-leading-zero); position: absolute; inset-inline-start: 1.2rem; top: 1.15rem;
  font-family: var(--display); font-size: .9rem; color: var(--gold); font-weight: 600;
}
.home .h-how li b { display: block; font-family: var(--display); font-size: 1.05rem; color: #fff; font-weight: 600; margin-bottom: .2rem; }
.home .h-how li span { color: rgba(255,255,255,.72); font-size: .89rem; line-height: 1.6; }

/* ---------- pricing ---------- */
.home .h-price-head { text-align: center; max-width: 62ch; margin-inline: auto; }
.home .h-price-head .h-eyebrow { justify-content: center; }
.home .h-price-head .h-lead { margin-inline: auto; }
.home .h-price { display: grid; gap: 1.4rem; margin-top: clamp(2.2rem, 4vw, 3.2rem); align-items: start; }
@media (min-width: 900px) { .home .h-price { grid-template-columns: repeat(3, 1fr); } }
.home .h-plan { background: #fff; border: 1px solid var(--hair); border-radius: 4px; padding: clamp(1.6rem, 2.6vw, 2.2rem); position: relative; }
.home .h-plan--best { border-color: var(--gold); box-shadow: 0 18px 44px -30px rgba(10,37,64,.5); }
.home .h-plan__tag {
  position: absolute; top: -11px; inset-inline-start: 50%; translate: -50% 0;
  background: var(--gold); color: var(--navy); font-size: .64rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; padding: .32rem .8rem; border-radius: 2px;
}
.home .h-plan__name { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.home .h-plan__price { font-family: var(--display); font-size: clamp(1.3rem, 1.1rem + .7vw, 1.65rem); color: var(--navy); font-weight: 600; margin: .5rem 0 .6rem; }
.home .h-plan__d { color: var(--slate); font-size: .9rem; line-height: 1.65; }
.home .h-plan ul { list-style: none; margin: 1.2rem 0 1.5rem; padding: 0; display: grid; gap: .6rem; }
.home .h-plan li { position: relative; padding-inline-start: 1.5rem; font-size: .88rem; line-height: 1.55; color: var(--slate); }
.home .h-plan li::before { content: ""; position: absolute; inset-inline-start: 0; top: .48em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-ink); }

/* ---------- available homes ---------- */
.home .h-homes-head { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: end; justify-content: space-between; }
.home .h-homes { display: grid; gap: 1.4rem; margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 880px) { .home .h-homes { grid-template-columns: repeat(3, 1fr); } }
.home .h-home { display: block; background: #fff; border: 1px solid var(--hair); border-radius: 4px; overflow: hidden; transition: transform .45s cubic-bezier(.4,0,.2,1), box-shadow .45s, border-color .3s; }
.home .h-home:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 22px 48px -30px rgba(10,37,64,.55); }
.home .h-home img { width: 100%; height: 210px; object-fit: cover; display: block; background: var(--cream-2); }
.home .h-home__b { padding: 1.2rem 1.3rem 1.4rem; }
.home .h-home__c { font-size: .68rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-ink); }
.home .h-home__t { font-family: var(--display); font-size: 1.12rem; color: var(--navy); font-weight: 600; margin: .45rem 0 .5rem; }
.home .h-home__p { font-family: var(--display); font-size: 1.28rem; color: var(--navy); font-weight: 700; }
.home .h-home__m { color: var(--slate); font-size: .85rem; margin-top: .3rem; }

/* ---------- local / why ---------- */
.home .h-local { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 940px) { .home .h-local { grid-template-columns: 1fr 1fr; } }
.home .h-ticks { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .85rem; }
.home .h-ticks li { position: relative; padding-inline-start: 2rem; color: rgba(255,255,255,.86); font-size: .95rem; }
.home .h-ticks li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: -.05em;
  width: 21px; height: 21px; display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: .68rem;
}
.home .h-local img { width: 100%; height: 100%; max-height: 430px; object-fit: cover; border-radius: 4px; }
.home .h-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.home .h-chips a {
  font-size: .8rem; padding: .4rem .85rem; border: 1px solid var(--hair-lt); border-radius: 2px;
  color: rgba(255,255,255,.82); transition: background .3s, color .3s, border-color .3s;
}
.home .h-chips a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* ---------- CTA + form ---------- */
.home .h-cta { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 940px) { .home .h-cta { grid-template-columns: 1fr 1.05fr; } }
.home .h-pts { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .8rem; }
.home .h-pts li { position: relative; padding-inline-start: 1.6rem; color: var(--slate); font-size: .95rem; line-height: 1.6; }
.home .h-pts li::before { content: ""; position: absolute; inset-inline-start: 0; top: .52em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-ink); }

.home .form { background: var(--navy); border-radius: 4px; border: 0; }
.home .form__body { padding: clamp(1.6rem, 3vw, 2.3rem); }
.home .form h3 { color: #fff; font-size: 1.3rem; }
.home .form .sub { color: rgba(255,255,255,.7); font-size: .87rem; margin: .45rem 0 1.4rem; }
.home .form label { color: rgba(255,255,255,.8); font-size: .78rem; font-weight: 500; letter-spacing: .04em; }
.home .form input, .home .form select {
  background: rgba(255,255,255,.06); border: 1px solid var(--hair-lt); color: #fff;
  border-radius: 3px; padding: .72rem .85rem; font-family: var(--body); font-size: .92rem; width: 100%;
}
.home .form select option { color: var(--navy); }
.home .form input:focus-visible, .home .form select:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.home .form input::placeholder { color: rgba(255,255,255,.4); }
.home .form .field { display: grid; gap: .35rem; margin-bottom: .95rem; }
.home .form .row2 { display: grid; gap: .95rem; }
@media (min-width: 620px) { .home .form .row2 { grid-template-columns: 1fr 1fr; } }
.home .form button[type="submit"] {
  width: 100%; justify-content: center; margin-top: .4rem;
  background: var(--gold); color: var(--navy); border: 1px solid var(--gold); font-weight: 700;
  padding: .9rem 1.4rem; border-radius: 3px; font-size: .94rem; font-family: var(--body); cursor: pointer;
  transition: background .3s;
}
.home .form button[type="submit"]:hover { background: var(--gold-soft); }
.home .form .legal { display: block; color: rgba(255,255,255,.55); font-size: .74rem; line-height: 1.5; margin-top: .9rem; }
.home .form__ok { padding: clamp(1.6rem, 3vw, 2.3rem); }
.home .form__ok h3 { color: #fff; } .home .form__ok p { color: rgba(255,255,255,.78); font-size: .93rem; line-height: 1.65; margin-top: .6rem; }

/* ---------- footer ---------- */
.home .foot { background: var(--navy-4); color: rgba(255,255,255,.75); }
.home .foot h4 { color: #fff; font-family: var(--display); font-size: 1rem; font-weight: 600; }
.home .foot a { color: rgba(255,255,255,.72); }
.home .foot a:hover { color: var(--gold); }
.home .foot__note { border-top: 1px solid var(--hair-lt); color: rgba(255,255,255,.55); }
.home .foot address a { color: rgba(255,255,255,.72); }

/* motion honoured */
@media (prefers-reduced-motion: reduce) {
  .home .h-hero__slides img { transition: none; }
  .home .h-home { transition: none; }
}

/* ---------- available homes: CTA under the cards ---------- */
.home .h-homes-cta {
  margin-top: clamp(2rem, 4vw, 2.8rem);
  display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center;
}
.home .h-homes-cta .h-lead { margin: 0; max-width: 56ch; font-size: .95rem; }

/* ---------- inner-page hero (services, and any future inner page) ---------- */
.home .h-phero {
  position: relative; overflow: hidden; background: var(--navy);
  padding: clamp(6.5rem, 16vw, 9rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.home .h-phero > picture, .home .h-phero > img { position: absolute; inset: 0; }
.home .h-phero picture img, .home .h-phero > img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.home .h-phero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,37,64,.80) 0%, rgba(10,37,64,.68) 50%, rgba(6,24,44,.88) 100%);
}
.home .h-phero .wrap { position: relative; z-index: 2; }
.home .h-phero h1 {
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem); color: #fff; margin: 0; max-width: 20ch; text-wrap: balance;
}
.home .h-phero .h-lead { color: rgba(255,255,255,.82); max-width: 64ch; }
.home .h-phero .h-eyebrow { color: var(--gold); }
.home .h-phero .h-eyebrow::before { background: var(--gold); }
.home .h-crumbs {
  font-size: .82rem; color: rgba(255,255,255,.62); margin-bottom: 1.4rem;
  display: flex; gap: .5rem; align-items: center; flex-wrap: wrap;
}
.home .h-crumbs a { color: rgba(255,255,255,.62); }
.home .h-crumbs a:hover { color: var(--gold); }
.home .h-crumbs b { color: rgba(255,255,255,.9); font-weight: 500; }

/* ---------- FAQ ---------- */
.home .h-faq { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--hair); }
.home .h-qa { padding-block: clamp(1.3rem, 2.4vw, 1.9rem); border-bottom: 1px solid var(--hair); }
.home .h-qa h3 { font-size: clamp(1.05rem, .98rem + .35vw, 1.25rem); color: var(--navy); }
.home .h-qa p { color: var(--slate); font-size: .94rem; line-height: 1.8; margin: .6rem 0 0; max-width: 76ch; }

/* ---------- feature band: image beside copy ---------- */
.home .h-band { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 940px) { .home .h-band { grid-template-columns: 1.05fr 1fr; } }
.home .h-band img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; border-radius: 4px; }

/* ---------- guides index: cards with artwork ---------- */
.home .h-gcards { display: grid; gap: clamp(1.2rem, 2.4vw, 1.8rem); margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 700px)  { .home .h-gcards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .home .h-gcards { grid-template-columns: repeat(3, 1fr); } }

.home .h-gcard {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--hair); border-radius: 4px;
  transition: transform .45s cubic-bezier(.4,0,.2,1), box-shadow .45s, border-color .3s;
}
.home .h-gcard:hover { transform: translateY(-4px); border-color: var(--gold-ink); box-shadow: 0 22px 48px -30px rgba(10,37,64,.5); }
.home .h-gcard__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream-2); }
.home .h-gcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.4,0,.2,1); }
.home .h-gcard:hover .h-gcard__img img { transform: scale(1.04); }
.home .h-gcard__b { display: flex; flex-direction: column; gap: .55rem; padding: 1.3rem 1.35rem 1.5rem; flex: 1; }
.home .h-gcard__k { font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-ink); }
.home .h-gcard h2, .home .h-gcard h3 {
  font-family: var(--display); font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem);
  color: var(--navy); font-weight: 600; line-height: 1.22; margin: 0;
}
.home .h-gcard p { color: var(--slate); font-size: .9rem; line-height: 1.7; margin: 0; }
.home .h-gcard__more { margin-top: auto; padding-top: .7rem; font-size: .85rem; font-weight: 600; color: var(--gold-ink); }
.home .h-gcard:hover .h-gcard__more { color: var(--navy); }

/* the newest guide gets the wide slot */
@media (min-width: 700px) {
  .home .h-gcard--lead { grid-column: span 2; }
  .home .h-gcard--lead .h-gcard__img { aspect-ratio: 21 / 9; }
  .home .h-gcard--lead h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.85rem); }
  .home .h-gcard--lead .h-gcard__b { padding: 1.6rem 1.7rem 1.8rem; }
  .home .h-gcard--lead p { font-size: .96rem; max-width: 62ch; }
}
@media (min-width: 1060px) { .home .h-gcard--lead { grid-column: span 3; } }
@media (min-width: 1060px) {
  .home .h-gcard--lead { flex-direction: row; align-items: stretch; }
  .home .h-gcard--lead .h-gcard__img { aspect-ratio: auto; flex: 0 0 46%; }
  .home .h-gcard--lead .h-gcard__b { justify-content: center; padding: clamp(1.8rem, 3vw, 2.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  .home .h-gcard, .home .h-gcard__img img { transition: none; }
  .home .h-gcard:hover .h-gcard__img img { transform: none; }
}
