/* ==========================================================================
   Katie Wilson Homes — page-level components
   ========================================================================== */

/* Hero ---------------------------------------------------------------------*/
.hero { position: relative; background: var(--navy-deep); color: var(--white); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(22, 36, 47, .86) 0%, rgba(34, 59, 72, .68) 32%, rgba(72, 105, 116, .28) 62%, rgba(196, 171, 123, .08) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 128px 0 118px;
  text-align: left;
}
.hero h1 { text-align: left;
  color: var(--white);
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.06;
  margin-bottom: 26px;
}
.hero h1 em { font-style: italic; color: var(--champagne-light); }
.hero-lede {
  font-size: 16.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .84);
  max-width: 580px;
  margin: 0 0 38px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero-badge { display: flex; align-items: center; gap: 13px; }
.hero-badge svg { width: 19px; height: 19px; color: var(--champagne-light); stroke-width: 1.5; }
.hero-badge strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .03em;
}
.hero-badge span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .6); }

/* Page hero (interior pages) -----------------------------------------------*/
.page-hero { position: relative; background: var(--navy-deep); color: var(--white); overflow: hidden; }
.page-hero .hero-media img { opacity: .32; }
.page-hero .hero-media::after {
  background: linear-gradient(100deg, rgba(22, 36, 47, .93) 0%, rgba(22, 36, 47, .80) 32%, rgba(22, 36, 47, .46) 62%, rgba(22, 36, 47, .16) 100%);
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  padding: 92px 0 84px;
  text-align: left;
}
.page-hero h1 { text-align: left; color: var(--white); font-size: clamp(38px, 5vw, 60px); margin-bottom: 20px; }
.page-hero p { font-size: 16px; line-height: 1.85; color: rgba(255, 255, 255, .8); margin: 0; max-width: 620px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
  margin-bottom: 22px;
}
.breadcrumb a:hover { color: var(--champagne-light); }
.breadcrumb svg { width: 12px; height: 12px; }

/* Hero uses the SAME container width as the header and every other section
   so the copy lines up with the logo. Only the inner block is left-aligned. */
.hero > .shell.hero-inner,
.page-hero > .shell.page-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
/* Constrain the reading measure without centring the block */
.hero-inner > *,
.page-hero-inner > * {
  max-width: 700px;
  width: 100%;
}
.hero-inner > .hero-badges { max-width: 860px; }

.track-record-story {
  max-width: 850px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 46px);
  background: var(--white);
  border-left: 3px solid var(--champagne);
  box-shadow: var(--shadow-sm);
  font-size: 17px;
  line-height: 1.9;
}
.track-record-story p:last-child { margin-bottom: 0; }
.track-record-figures { margin-top: 34px; }
.faq-answer-link { display: inline-flex; align-items: center; gap: 5px; color: var(--champagne-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.faq-answer-link svg { width: 13px; height: 13px; }

/* Stat band ----------------------------------------------------------------*/
.stat-band { background: var(--soft-ivory); border-bottom: 1px solid var(--line); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.stat {
  background: var(--soft-ivory);
  padding: 46px 30px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(38px, 4.4vw, 54px);
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 12px;
}
.stat strong span {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: none;
}
.stat > span {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  font-weight: 500;
}

/* Split intro (about preview) ---------------------------------------------*/
.split { display: grid; grid-template-columns: .92fr 1.08fr; gap: 78px; align-items: center; }
.split-media { position: relative; }
.split-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 620px;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.split-media.is-wide img { aspect-ratio: 4 / 3; max-height: 520px; }
.split-media { isolation: isolate; }
.split-media::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--champagne);
  border-radius: var(--radius-lg);
  z-index: 0;
  pointer-events: none;
}
.split-media img { position: relative; z-index: 1; }
.split-body h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 22px; }
.split-body p { margin: 0 0 20px; line-height: 1.9; }
.signature {
  font-family: var(--display);
  font-style: italic;
  font-size: 27px;
  color: var(--navy);
  margin-top: 28px;
}
.signature span { display: block; font-family: var(--body); font-size: 11px; font-style: normal;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* Card grids ---------------------------------------------------------------*/
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--warm-taupe); }
.card-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius);
  background: var(--coastal-mist);
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  transition: background .4s, color .4s;
}
.card-icon svg { width: 22px; height: 22px; stroke-width: 1.4; }
.card:hover .card-icon { background: var(--champagne); color: var(--white); }
.card h3 { font-size: 25px; margin-bottom: 13px; }
.card p { margin: 0; font-size: 14px; line-height: 1.85; }
.card .text-link { margin-top: 22px; }

/* Service cards with number */
.card-num { position: relative; }
.card-num .num {
  position: absolute;
  top: 30px; right: 32px;
  font-family: var(--display);
  font-size: 42px;
  color: var(--line);
  line-height: 1;
}

/* Resource cards -----------------------------------------------------------*/
.resource-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  height: 100%;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.resource-grid-single { display: grid; grid-template-columns: minmax(0, 720px); justify-content: center; }
.resource-grid-two { max-width: 920px; margin-inline: auto; }
.resource-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--champagne); }
.resource-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 600;
  color: var(--champagne-deep);
  background: rgba(189, 167, 126, .12);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.resource-tag.buyer { color: var(--navy); background: var(--coastal-mist); }
.resource-card h3 { font-size: 23px; margin-bottom: 11px; }
.resource-card p { font-size: 13.5px; line-height: 1.8; margin: 0 0 24px; flex: 1; }
.resource-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.resource-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.resource-meta span svg { width: 13px; height: 13px; }
.resource-meta a { display: inline-flex; align-items: center; gap: 8px; font-size: 11px;
  font-weight: 600; text-transform: uppercase; letter-spacing: .13em; color: var(--navy); }
.resource-meta a svg { width: 14px; height: 14px; }
.resource-meta a:hover { color: var(--champagne-deep); }

/* Process timeline ---------------------------------------------------------*/
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  top: 27px; left: 6%; right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--champagne), transparent);
}
.timeline-six { grid-template-columns: repeat(3, 1fr); row-gap: 56px; }
.timeline-six::before { display: none; }
.timeline-six .tl-step:not(:nth-child(3n))::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 27px;
  left: 50%;
  width: calc(100% + 24px);
  height: 1px;
  background: var(--champagne);
}
.tl-step { position: relative; text-align: center; }
.tl-num {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--champagne);
  color: var(--navy);
  font-family: var(--display);
  font-size: 21px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
  transition: background .4s, color .4s;
}
.tl-step:hover .tl-num { background: var(--champagne); color: var(--white); }
.tl-step h3 { font-size: 20px; margin-bottom: 9px; }
.tl-step p { font-size: 13px; line-height: 1.75; margin: 0; }

/* Areas served -------------------------------------------------------------*/
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.area-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  padding: 26px;
  color: var(--white);
}
.area-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease); }
.area-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 36, 47, .88), rgba(22, 36, 47, .18) 68%);
}
.area-card:hover img { transform: scale(1.07); }
.area-card > div { position: relative; z-index: 2; }
.area-card h3 { color: var(--white); font-size: 24px; margin-bottom: 5px; }
.area-card span { font-size: 12px; color: rgba(255, 255, 255, .74); }

/* Testimonials -------------------------------------------------------------*/
.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.stars { display: flex; gap: 4px; margin-bottom: 20px; color: var(--champagne); }
.stars svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.review-card blockquote {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.62;
  color: var(--ink);
  flex: 1;
}
.review-author { display: flex; align-items: center; gap: 13px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.review-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--coastal-mist);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 17px;
}
.review-author strong { display: block; font-size: 13px; color: var(--ink); font-weight: 600; }
.review-author span { display: block; font-size: 11.5px; color: var(--muted); }

/* Partners -----------------------------------------------------------------*/
.partner-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.partner-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.partner-role {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--champagne-deep);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}
.partner-card h3 { font-size: 22px; margin-bottom: 9px; }
.partner-card p { font-size: 13.5px; line-height: 1.8; margin: 0 0 18px; }

/* FAQ ----------------------------------------------------------------------*/
.faq-list { max-width: 860px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 26px 44px 26px 0;
  position: relative;
  cursor: pointer;
  font-family: var(--display);
  font-size: 21px;
  color: var(--ink);
  line-height: 1.4;
}
.faq-q::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 11px; height: 11px;
  border-right: 1px solid var(--champagne-deep);
  border-bottom: 1px solid var(--champagne-deep);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .35s var(--ease);
}
.faq-item.open .faq-q::after { transform: translateY(-25%) rotate(225deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a p { margin: 0 0 26px; font-size: 14.5px; line-height: 1.9; padding-right: 40px; }

/* CTA band -----------------------------------------------------------------*/
.cta-band { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute;
  right: -140px; top: -140px;
  width: 460px; height: 460px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
}
.cta-band::after {
  content: "";
  position: absolute;
  left: -180px; bottom: -220px;
  width: 420px; height: 420px;
  border: 1px solid rgba(189, 167, 126, .16);
  border-radius: 50%;
}
.cta-inner {
  position: relative;
  z-index: 2;
  padding: 96px 0;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.cta-inner h2 { color: var(--white); font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 20px; }
.cta-inner p { color: rgba(255, 255, 255, .8); font-size: 15.5px; line-height: 1.85; margin: 0 0 34px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Contact ------------------------------------------------------------------*/
.contact-layout { display: grid; grid-template-columns: 1fr .82fr; gap: 62px; align-items: start; }
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 42px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 9px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--champagne);
  box-shadow: 0 0 0 3px rgba(189, 167, 126, .14);
}
.field-note { font-size: 11.5px; color: var(--muted); margin: -12px 0 22px; }

.contact-side .info-block {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
}
.contact-side .info-block:first-of-type { padding-top: 0; }
.info-icon {
  width: 44px; height: 44px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: var(--coastal-mist);
  color: var(--navy);
  display: grid;
  place-items: center;
}
.info-icon svg { width: 18px; height: 18px; stroke-width: 1.5; }
.info-block strong { display: block; font-size: 13px; color: var(--ink); margin-bottom: 4px; font-weight: 600; }
.info-block a, .info-block span { font-size: 14px; color: var(--text); }
.info-block a:hover { color: var(--champagne-deep); }

/* Alert / notice -----------------------------------------------------------*/
.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--soft-ivory);
  border: 1px solid var(--warm-taupe);
  border-radius: var(--radius);
  padding: 20px 22px;
  font-size: 13.5px;
  line-height: 1.75;
}
.notice svg { width: 18px; height: 18px; color: var(--champagne-deep); flex: 0 0 auto; margin-top: 3px; }

/* Prose (about / long-form) ------------------------------------------------*/
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 46px 0 18px; }
.prose h3 { font-size: 24px; margin: 34px 0 14px; }
.prose p { margin: 0 0 20px; line-height: 1.9; }
.prose ul { margin: 0 0 24px; padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 12px; line-height: 1.8; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 12px;
  width: 7px; height: 7px;
  border-top: 1px solid var(--champagne-deep);
  border-right: 1px solid var(--champagne-deep);
  transform: rotate(45deg);
}

/* Checklist columns --------------------------------------------------------*/
.check-list { display: grid; gap: 14px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 14px; line-height: 1.75; }
.check-list svg { width: 17px; height: 17px; color: var(--champagne); flex: 0 0 auto; margin-top: 4px; }
ul.check-list { list-style: none; margin: 0; padding: 0; }

/* Responsive ---------------------------------------------------------------*/
@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; gap: 52px; }
  .split-body { order: 1; }
  .split-media { order: 2; }
  .split-media img { aspect-ratio: 4 / 5; max-height: 440px; object-position: 50% 20%; }
  .split-media.is-wide img { aspect-ratio: 16 / 9; max-height: 420px; }
  .split-media::before { inset: 14px -14px -14px 14px; }
  .grid-4, .area-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 34px; }
  .timeline::before { display: none; }
  .contact-layout { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 940px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding: 92px 0 82px; }
}

@media (max-width: 680px) {
  .split-media::before { inset: 10px; border-color: rgba(189, 167, 126, .7); }
  .split-media img { aspect-ratio: 1 / 1; max-height: 360px; object-position: 50% 18%; }
  .split-media.is-wide img { aspect-ratio: 3 / 2; max-height: 300px; }
  .area-card { aspect-ratio: 16 / 10; }
  .hero-inner { padding: 74px 0 66px; }
  .page-hero-inner { padding: 62px 0 58px; }
  .grid-3, .grid-2, .grid-4, .area-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 26px; }
  .timeline-six .tl-step::after { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 30px 24px; }
  .hero-badges { gap: 22px; }
  .card, .resource-card { padding: 30px 24px; }
}

/* Touch targets ------------------------------------------------------------*/
@media (max-width: 940px) {
  .text-link {
    min-height: 44px;
    align-items: center;
    padding-bottom: 0;
  }
  .resource-meta a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .utility-links a {
    min-height: 36px;
    align-items: center;
  }
  .footer-col a {
    min-height: 40px;
    display: flex;
    align-items: center;
    margin-bottom: 4px;
  }
  .footer-col .with-icon { align-items: center; }
  .footer-social a { width: 44px; height: 44px; }
  .breadcrumb a { min-height: 32px; display: inline-flex; align-items: center; }
  .footer-legal a { min-height: 40px; display: inline-flex; align-items: center; }
  .footer-legal { gap: 26px; }
}
