/* ==========================================================================
   Erin Gwillim Realty — global stylesheet
   Migrated from Duda (site f0b6fb6e). Palette and type scale are taken
   verbatim from the source theme; see MIGRATION-SPEC.md.
   ========================================================================== */

/* ---------- Fonts (self-hosted variable subsets, latin) ---------- */
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat.woff2') format('woff2-variations'),
       url('/fonts/montserrat.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans.woff2') format('woff2-variations'),
       url('/fonts/dm-sans.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks so swapping in the web font doesn't shift layout */
@font-face {
  font-family: 'Montserrat Fallback';
  src: local('Arial');
  ascent-override: 84.9466%;
  descent-override: 22.0264%;
  size-adjust: 113.954%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'DM Sans Fallback';
  src: local('Arial');
  ascent-override: 94.3696%;
  descent-override: 29.4905%;
  size-adjust: 105.1186%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --black:  #000000;
  --ink:    #242424;   /* --color_2 */
  --sage:   #777C75;   /* --color_3 */
  --gold:   #EBBA61;   /* --color_4 */
  --sand:   #E9E7DB;   /* --color_5 */
  --paper:  #F1F2EE;   /* --color_6 */
  --white:  #FFFFFF;   /* --color_7 */
  --muted:  #646464;   /* --color_8 */

  --body:   #0C0C0C;   /* rendered paragraph colour */
  --btn-ink:#463939;   /* rendered button label colour */
  --navy:   #12294A;   /* CTA band wash */

  --font-head: 'Montserrat', 'Montserrat Fallback', Arial, sans-serif;
  --font-body: 'DM Sans', 'DM Sans Fallback', Arial, sans-serif;

  --wrap: 1200px;
  --gutter: 24px;
  --header-h: 96px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  margin: 0 0 .5em;
  color: var(--black);
}
h1 { font-size: 55px; line-height: 1; font-weight: 400; text-transform: uppercase; }
h2 { font-size: 36px; line-height: 1.15; font-weight: 700; text-transform: uppercase; }
h3 { font-size: 40px; line-height: 1.15; font-weight: 400; text-transform: uppercase; }
h4 { font-size: 24px; line-height: 1.2; font-weight: 700; text-transform: uppercase; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */
/* Sticky by default, matching the source Duda site's hasStickyHeader/miniHeader.
   Transparent variants are fixed so they overlay the hero; the solid variant is
   sticky so it stays in flow and needs no spacer. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  padding: 18px 0;
  transition: background-color .25s ease, padding .25s ease, box-shadow .25s ease;
}
.site-header.is-solid {
  position: sticky;
  top: 0;
  background: var(--black);
}
.site-header.is-light {
  position: fixed;
  background: transparent;
}
/* Condensed state once the page scrolls past the hero lip */
.site-header.is-stuck {
  background: rgba(0, 0, 0, .95);
  padding: 9px 0;
  box-shadow: 0 1px 14px rgba(0, 0, 0, .28);
}
.site-header.is-stuck .nav-link,
.site-header.is-stuck .social-link,
.site-header.is-stuck .nav-toggle { color: var(--white); }
.site-header.is-stuck .brand img { width: 168px; transition: width .25s ease; }
.site-header.is-light .nav-link,
.site-header.is-light .social-link { color: var(--black); }

/* Shares --wrap with page content so the first nav item lines up exactly with
   the hero headline. --social-gutter reserves the space the pinned icons need. */
.header-inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.nav-group { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.nav-group--left  { justify-content: flex-start; }
.nav-group--right { justify-content: flex-end; }

.nav-link {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: .48px;
  color: var(--white);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.nav-link:hover { border-bottom-color: currentColor; }
.nav-link[aria-current='page'] { border-bottom-color: currentColor; }

.brand { display: block; justify-self: center; line-height: 0; }
.brand img { width: 209px; height: auto; }

.header-social {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-end;
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
}
/* Below this the icons would collide with the last nav link, so tuck them back
   inside the wrap edge. */
@media (max-width: 1360px) {
  .header-social { right: var(--gutter); }
  .nav-group--right { padding-right: 66px; }
}
.social-link { color: var(--white); display: inline-flex; }
.social-link svg { width: 18px; height: 18px; fill: currentColor; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2; }
.site-header.is-light .nav-toggle { color: var(--black); }

/* Drawer is desktop-hidden by default; the breakpoint below turns it on. */
.site-nav-drawer { display: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 22px;
  color: var(--btn-ink);
  text-decoration: none;
  padding: 13px 26px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .82);
  text-align: center;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  cursor: pointer;
}
.btn:hover { background: var(--white); }

.btn--outline {
  background: transparent;
  border-color: var(--btn-ink);
  color: var(--btn-ink);
}
.btn--outline:hover { background: var(--btn-ink); color: var(--white); }

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .85);
  color: var(--white);
}
.btn--outline-light:hover { background: var(--white); color: var(--ink); }

.btn--solid {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn--solid:hover { background: var(--ink); border-color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 18px; }

/* ==========================================================================
   Heroes
   ========================================================================== */
/* --hero-h matches the source row height for each page; see MIGRATION-SPEC.md */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: var(--hero-h, 737px);
  padding: calc(var(--header-h) + 40px) 0 100px; /* source row padding: 0 0 100px */
  background: var(--sage) center / cover no-repeat;
  color: var(--white);
  isolation: isolate;
}
/* Source: black overlay at 50% over the hero photo. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: -1;
}
.hero--no-overlay::before { background: none; }
.hero h1, .hero h2, .hero h3, .hero p { color: var(--white); }
.hero h1 { max-width: 720px; margin-bottom: 34px; }
/* Source renders this as a 40px regular <h3>; kept as <h2> for heading order
   and restyled so it looks identical. */
.hero .hero-display-sub {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  margin: 42px 0 0;
  letter-spacing: .5px;
}
.hero .btn-row { margin-bottom: 0; }

/* Interior page hero: centred title band */
.hero--interior {
  align-items: center;
  text-align: center;
  min-height: 483px;
  padding: calc(var(--header-h) + 48px) 0 56px;
}
.hero--interior h1 {
  margin: 0 auto;
  max-width: 900px;
  font-size: 46px;
  line-height: 1.2;
  text-transform: none;
}
.hero--interior .hero-sub {
  max-width: 820px;
  margin: 14px auto 0;
  font-size: 15px;
}
.hero--interior .btn-row { justify-content: center; margin-top: 28px; }
.hero--interior .hero-kicker { margin-top: 22px; font-size: 15px; }

/* Uppercase display hero (Buyers) */
.hero--display { align-items: center; text-align: center; min-height: 614px; }
.hero--display h1 { font-size: 55px; margin: 0 auto 26px; }
.hero--display .btn-row { justify-content: center; }
.hero--display .hero-kicker { margin-top: 24px; }

/* Plain title band with no photograph (Blog) */
.title-band {
  padding: 150px 0 120px;
  text-align: center;
}
.title-band h1 {
  font-size: 55px;
  line-height: 1.15;
  text-transform: none;
  margin: 0 auto;
  max-width: 1100px;
}

/* ==========================================================================
   Watermark feature sections
   A giant faint word sits behind a photo + copy pair.
   ========================================================================== */
.feature {
  position: relative;
  padding: 84px 0;
  background: var(--white);
  overflow: hidden;
}
/* The source rows paint a black wordmark PNG (contain, centred at the top)
   under a 95%-opaque white wash, which is what makes it read as a ghost. */
.feature__wm {
  position: absolute;
  inset: 0;
  background-position: 50% 0;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}
.feature__wm::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  opacity: .95;
}
.feature > .wrap { position: relative; z-index: 1; }

.feature__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature--flip .feature__media { order: 2; }
.feature__media img { width: 100%; }
.feature__body h2 { margin-bottom: 18px; }
.feature__body .lead { font-size: 15px; }
.feature__body ul { margin: 0 0 18px; padding-left: 20px; }
.feature__body li { margin-bottom: 6px; }
.feature__body .btn { margin-top: 10px; }
.subhead { font-weight: 700; margin: 18px 0 8px; }

/* Card-over-photo variant: white panel overlapping a background image column */
.panel {
  position: relative;
  padding: 84px 0;
  overflow: hidden;
}
.panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.panel__card {
  background: var(--white);
  padding: 48px;
  box-shadow: 0 2px 26px rgba(0, 0, 0, .10);
  position: relative;
  z-index: 2;
}
.panel__photo {
  min-height: 455px;
  background: var(--sand) center / cover no-repeat;
}
.panel--flip .panel__card { order: 2; }

/* ==========================================================================
   Roadmap / step columns
   ========================================================================== */
.steps { padding: 84px 0; text-align: center; }
.steps h2 { margin-bottom: 12px; }
.steps__intro { max-width: 820px; margin: 0 auto 42px; }
/* Source fills these lists column-first (4 rows), so the DOM stays in
   reading order while the layout matches the original. */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  gap: 8px 56px;
  text-align: left;
  max-width: 780px;
  margin: 0 auto;
}
.steps__grid--rows-3 { grid-template-rows: repeat(3, auto); }
.step { padding: 14px 0; }
.step h3 {
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #D6D6D6;
  color: var(--ink);
}
.step p { margin: 0; }

.steps--media .steps__layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: start;
  text-align: left;
}
.steps--media .steps__grid { max-width: none; margin: 0; }
.steps__photo { width: 100%; }

/* ==========================================================================
   Plain prose section
   ========================================================================== */
.prose { padding: 72px 0; }
.prose h2 { margin-bottom: 18px; }
.prose--centered { text-align: center; }
.prose--centered h2 { text-align: left; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials { padding: 72px 0 84px; text-align: center; }
.testimonials h2 { margin-bottom: 44px; }
.testimonial-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  text-align: left;
}
.testimonial {
  margin: 0;
  background: var(--white);
  border: 1px solid #E6E6E1;
  padding: 0 28px 30px;
  display: flex;
  flex-direction: column;
}
.testimonial img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  margin: -38px 0 18px;
  border: 4px solid var(--white);
}
.testimonial blockquote {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.65;
  flex: 1;
  position: relative;
}
.testimonial blockquote::before {
  content: '\201C';
  display: block;
  font-family: var(--font-head);
  font-size: 52px;
  line-height: .8;
  color: var(--gold);
  margin-bottom: 6px;
}
.testimonial figcaption { display: flex; flex-direction: column; gap: 2px; }
.testimonial cite {
  font-style: normal;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: .03em;
}
.testimonial figcaption span { font-size: 13px; color: var(--muted); }
/* the circular portraits sit half-outside the card, so the row needs headroom */
.testimonial-list { margin-top: 38px; }

/* ---------- Vision / Mission / Core Values (About) ---------- */
.section-title { text-align: center; margin-bottom: 40px; }
.vm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 940px;
  margin: 0 auto 60px;
}
.vm-card {
  background: var(--paper);
  border-left: 3px solid var(--gold);
  padding: 30px 32px;
}
.vm-card__label {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 14px;
  margin-bottom: 12px;
}
.vm-card p { font-size: 15px; line-height: 1.65; }

.values-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 32px;
}
.values-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.value {
  border-top: 1px solid #DCDCD6;
  padding-top: 18px;
}
.value__num {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.value h4 { font-size: 16px; margin-bottom: 6px; letter-spacing: .03em; }
.value p { font-size: 14px; line-height: 1.6; margin: 0; }

/* ==========================================================================
   Blog cards
   ========================================================================== */
.posts { padding: 0 0 84px; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--white);
}
.post-card__thumb {
  aspect-ratio: 3 / 2;
  background: var(--sand) center / cover no-repeat;
  overflow: hidden;
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin: 20px 0 10px;
}
.post-card p { margin: 0 0 14px; }
.post-card__meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.post-card__more { font-weight: 700; }
.posts__more { text-align: center; margin-top: 44px; }

.blog-search {
  max-width: 620px;
  margin: 0 auto 52px;
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #D6D6D6;
  font: inherit;
}

/* ==========================================================================
   Contact page pieces
   ========================================================================== */
.reach { padding: 72px 0 84px; text-align: center; }
.reach h2 { font-weight: 400; margin-bottom: 34px; }
.reach__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.reach__card {
  background: var(--black);
  color: var(--white);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-decoration: none;
}
.reach__card span { font-size: 15px; }

.icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.icon-circle svg { width: 24px; height: 24px; fill: currentColor; }

.band { position: relative; padding: 84px 0; background: var(--sage) center / cover no-repeat; }
.band::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.band > .wrap { position: relative; }
.band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.band__card { background: var(--white); padding: 44px; }
.band__card h2 { font-weight: 400; }
.band__aside h2 { color: var(--white); font-weight: 400; }
.map-embed { width: 100%; aspect-ratio: 4 / 3; border: 0; background: var(--sand); }

.form-panel { position: relative; padding: 84px 0; background: var(--ink) center / cover no-repeat; }
.form-panel::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.form-panel > .wrap { position: relative; }
.form-panel__card { background: var(--white); padding: 48px; }
.form-panel__card h1 { font-size: 36px; font-weight: 700; line-height: 1.15; }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { margin-bottom: 16px; }
.field > label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--ink);
}
.field input[type='text'],
.field input[type='email'],
.field input[type='tel'],
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #C9C9C9;
  background: var(--white);
  font: inherit;
  color: var(--ink);
  border-radius: 0;
}
.field textarea { min-height: 96px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.field-row--2 { grid-template-columns: repeat(2, 1fr); }
.field-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  font-size: 14px;
}
.field-check input { margin-top: 3px; flex: none; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 8px; }

/* The quick-message form sitting on the dark CTA band */
.quick-form .field-row { gap: 14px; }
.quick-form input, .quick-form textarea { border: 0; }
.quick-form .form-actions { justify-content: center; margin-top: 18px; }

.form-status { margin-top: 14px; font-size: 14px; }
.form-status[data-state='ok']   { color: #1E7B41; }
.form-status[data-state='err']  { color: #B3261E; }
.form-panel__card .form-status[data-state='ok'] { color: #1E7B41; }
.quick-form .form-status { color: var(--white); text-align: center; }

/* ==========================================================================
   Global CTA band + footer (shared tail)
   ========================================================================== */
.cta-band {
  position: relative;
  background: var(--navy) url('/images/cta-band-bg.webp') center / cover no-repeat;
  color: var(--white);
  padding: 84px 0 0;
  isolation: isolate;
}
/* Source: black overlay at 75% over footer-bg. */
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  z-index: -1;
}
.cta-band h2, .cta-band h3 { color: var(--white); font-weight: 400; }
.cta-band__head { text-align: center; max-width: 820px; margin: 0 auto; }
.cta-band__contacts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 44px auto 0;
  text-align: center;
}
.cta-band__contact { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta-band__contact a { text-decoration: none; }
.cta-band .btn-row { justify-content: center; margin: 38px 0 0; gap: 26px; }
.cta-band__form { max-width: 1080px; margin: 56px auto 0; padding-bottom: 70px; }
.cta-band__form h2 { text-align: center; margin-bottom: 26px; }

.site-footer {
  background: transparent;
  color: var(--white);
  padding: 0 0 34px;
}
.site-footer .wrap { max-width: 1180px; }
.site-footer hr { border: 0; border-top: 1px solid rgba(255,255,255,.5); margin: 0 0 22px; }
.site-footer p { text-align: center; margin: 0; font-size: 14px; }

/* Contact page uses a black footer instead of the navy band */
.site-footer--solid { background: var(--black); padding: 26px 0; }
.site-footer--solid hr { display: none; }

/* ==========================================================================
   Listing calculator
   ========================================================================== */
.calc-page { background: var(--sage); padding: 140px 0 110px; }
.calc-intro { text-align: center; max-width: 720px; margin: 0 auto 34px; color: var(--white); }
.calc-intro h1 { color: var(--white); font-size: 34px; font-weight: 700; line-height: 1.22; }
.calc-intro p { font-size: 16px; opacity: .92; }

.calc-shell {
  background: var(--white);
  max-width: 700px;
  margin: 0 auto;
  padding: 38px 44px 44px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .16);
}

/* Progress */
.calc-progress { margin-bottom: 30px; }
.calc-progress__bar { height: 4px; background: #E7E7E3; overflow: hidden; }
.calc-progress__bar span {
  display: block;
  height: 100%;
  background: var(--gold);
  transition: width .3s ease;
}
.calc-progress__label {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.calc-progress__label b { color: var(--ink); }

/* Steps — one card visible at a time */
.calc-step { display: none; }
.calc-step.is-active { display: block; animation: calcIn .28s ease both; }
@keyframes calcIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.calc-step__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.calc-step h2 { font-size: 24px; line-height: 1.28; text-transform: none; margin-bottom: 10px; }
.calc-step__help { font-size: 15px; color: var(--muted); margin-bottom: 22px; }

.calc-field { display: block; margin-bottom: 20px; }
.calc-field__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.calc-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #D8D8D3;
  background: var(--white);
  font: inherit;
  font-size: 20px;
  border-radius: 0;
}
.calc-field input:focus { border-color: var(--gold); outline: none; }

.calc-note {
  background: var(--paper);
  border-left: 3px solid var(--gold);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 26px;
}
.calc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.calc-actions .btn { flex: 1 1 auto; }
.calc-error { color: #B3261E; font-size: 14px; margin: 14px 0 0; }

/* Results */
.calc-results h2 { font-size: 27px; text-transform: none; margin-bottom: 22px; }
.calc-results h2[data-tone='good'] { color: #1E7B41; }
.calc-results h2[data-tone='warn'] { color: #A9701B; }
.calc-results h2[data-tone='bad']  { color: #B3261E; }

.calc-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: #E7E7E3;
  border: 1px solid #E7E7E3;
  margin-bottom: 28px;
}
.calc-stat { background: var(--white); padding: 18px 20px; }
.calc-stat--wide { grid-column: 1 / -1; }
.calc-stat__label {
  display: block;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.calc-stat__value { font-family: var(--font-head); font-size: 27px; font-weight: 700; }

.calc-gauge { margin-bottom: 24px; }
.calc-gauge__track {
  position: relative;
  height: 8px;
  background: linear-gradient(90deg, #6FAE84 0%, #CFCFC7 50%, #D98C86 100%);
}
.calc-gauge__track span {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .2);
  transform: translate(-50%, -50%);
  transition: left .4s ease;
}
.calc-gauge__scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}
.calc-gauge__read { font-weight: 700; margin: 10px 0 0; }
.calc-explain { font-size: 15px; line-height: 1.7; margin-bottom: 26px; }
.calc-disclaimer { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 22px; }

/* ==========================================================================
   Thank-you / simple pages
   ========================================================================== */
.simple { padding: 140px 0 120px; text-align: center; }
.simple__kicker { text-transform: uppercase; letter-spacing: 1px; font-size: 13px; margin-bottom: 14px; }
.simple h1 { font-size: 34px; font-weight: 700; margin-bottom: 18px; }
.simple p { max-width: 640px; margin: 0 auto 28px; }

.search-page { padding: 120px 0 100px; text-align: center; }
.search-page h1 { font-size: 48px; text-transform: none; font-weight: 400; margin-bottom: 26px; }
.search-note { margin-top: 60px; color: var(--muted); }

/* ==========================================================================
   Blog post — class names follow BLOG-TEMPLATE.md so the myaieditor
   template adapter can clone this structure when publishing.
   ========================================================================== */
.blog-post-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 150px 24px 24px;
}
.blog-post-hero img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  margin-bottom: 32px;
}
.blog-post-hero-content { max-width: 900px; }
.blog-post-cat {
  display: inline-block;
  padding: 5px 16px;
  background: var(--sand);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.blog-post-hero-content h1 {
  font-size: 42px;
  line-height: 1.18;
  font-weight: 700;
  text-transform: none;
  margin-bottom: 16px;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.post-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .45; }

.blog-post-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 90px;
}
.blog-article { font-size: 17px; line-height: 1.75; }
.blog-article > *:first-child { margin-top: 0; }
.blog-article h2 { font-size: 27px; line-height: 1.25; margin: 44px 0 14px; text-transform: none; }
.blog-article h3 { font-size: 21px; font-weight: 700; line-height: 1.3; margin: 34px 0 10px; text-transform: none; }
.blog-article p { margin: 0 0 20px; }
.blog-article ul, .blog-article ol { margin: 0 0 22px; padding-left: 22px; }
.blog-article li { margin-bottom: 8px; }
.blog-article img { margin: 30px 0; width: 100%; }
.blog-article a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.blog-article a:hover { color: var(--black); }
.blog-article blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--gold);
  font-size: 18px;
}

.blog-sidebar { display: flex; flex-direction: column; gap: 24px; align-self: start; position: sticky; top: 110px; }
.sidebar-card { border: 1px solid #E2E2DE; padding: 22px; background: var(--white); }
.sidebar-head {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 14px;
  margin-bottom: 12px;
}
.sidebar-body { display: flex; flex-direction: column; }
.sidebar-link {
  display: block;
  padding: 11px 0;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px solid #EFEFEC;
}
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { color: var(--muted); }
.sidebar-cta { background: var(--paper); padding: 24px; }
.sidebar-cta-title { font-family: var(--font-head); font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.sidebar-cta p { font-size: 14px; margin-bottom: 16px; }
.sidebar-cta a {
  display: inline-block;
  padding: 11px 22px;
  border: 1px solid var(--btn-ink);
  color: var(--btn-ink);
  text-decoration: none;
  font-size: 15px;
}
.sidebar-cta a:hover { background: var(--btn-ink); color: var(--white); }

/* Blog index filters */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 40px;
}
.filter-btn {
  padding: 9px 20px;
  border: 1px solid #D6D6D6;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.filter-btn:hover { border-color: var(--btn-ink); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.post-card-body { display: flex; flex-direction: column; }
.post-card-cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 18px 0 8px;
}
.post-card-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.post-card-desc { margin: 0 0 14px; }
.post-card-meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.posts__empty { text-align: center; color: var(--muted); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .nav-group { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand { justify-self: start; }
  .header-social { position: static; transform: none; }

  .site-nav-drawer {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .96);
    z-index: 80;
    padding: 90px 28px 40px;
    overflow-y: auto;
  }
  .site-nav-drawer.is-open { display: block; }
  .site-nav-drawer a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-size: 20px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
  }
  .drawer-close {
    position: absolute;
    top: 26px; right: 24px;
    background: none; border: 0; color: var(--white);
    font-size: 30px; line-height: 1; cursor: pointer; padding: 6px;
  }
}

@media (max-width: 900px) {
  h1 { font-size: 38px; }
  h2 { font-size: 27px; }
  h3 { font-size: 28px; }
  .hero { min-height: 560px; padding-top: calc(var(--header-h) + 24px); }
  .hero--interior h1, .title-band h1 { font-size: 34px; }
  .hero--display h1 { font-size: 38px; }
  .search-page h1 { font-size: 34px; }
  .post-hero h1 { font-size: 30px; }

  .feature__grid,
  .panel__grid,
  .band__grid,
  .steps--media .steps__layout { grid-template-columns: 1fr; gap: 32px; }
  .feature--flip .feature__media,
  .panel--flip .panel__card { order: 0; }
  .panel__photo { min-height: 260px; }
  .panel__card, .band__card, .form-panel__card { padding: 30px 22px; }

  .steps__grid,
  .steps__grid--rows-3 {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    gap: 0;
  }
  .post-grid { grid-template-columns: 1fr; gap: 30px; }
  .blog-post-wrap { grid-template-columns: 1fr; gap: 40px; padding-bottom: 60px; }
  .blog-sidebar { position: static; }
  .blog-post-hero { padding-top: 110px; }
  .blog-post-hero-content h1 { font-size: 29px; }
  .blog-article h2 { font-size: 23px; }
  .blog-article h3 { font-size: 19px; }
  .reach__grid { grid-template-columns: 1fr; }
  .testimonial-list { grid-template-columns: 1fr; gap: 46px; }
  .vm-grid { grid-template-columns: 1fr; gap: 20px; margin-bottom: 44px; }
  .values-grid { grid-template-columns: 1fr; gap: 20px; }
  .cta-band__contacts { grid-template-columns: 1fr; }
  .field-row, .field-row--2 { grid-template-columns: 1fr; }
  .calc-shell { padding: 26px 20px 32px; }
  .calc-intro h1 { font-size: 26px; }
  .calc-step h2 { font-size: 20px; }
  .calc-stats { grid-template-columns: 1fr; }
  .calc-actions { flex-direction: column; }

  .feature, .panel, .steps, .prose, .testimonials, .band, .form-panel { padding: 52px 0; }
  .cta-band { padding-top: 56px; }
  .cta-band__form { padding-bottom: 48px; }
  .title-band { padding: 110px 0 70px; }
  .simple, .search-page { padding: 110px 0 70px; }
  .post-hero { padding-top: 110px; }
}

@media (max-width: 520px) {
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .cta-band .btn-row { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
