/* ============================================
   JK Building & Refurbishment — Design System
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors - Refined Editorial: warm espresso ink + gold on off-white */
  --navy: #221C17;            /* warm espresso-charcoal (var name kept for compatibility) */
  --navy-light: #3A322A;
  --gold: #C8963E;            /* decorative: icons, borders, backgrounds */
  --gold-text: #8B6914;       /* WCAG AA gold for text */
  --gold-light: #D4A853;
  --gold-dark: #7A5A10;
  --white: #FFFFFF;
  --off-white: #FAF7F1;       /* warm off-white */
  --warm-gray: #F1ECE2;
  --text: #221C17;            /* warm near-black ink */
  --text-light: #574F46;      /* warm grey, AA on white */
  --text-muted: #6E6458;      /* warm muted, AA on white */
  --border: #E7E0D4;
  --success: #2D7A4F;
  --error: #C0392B;

  /* Typography */
  --font-heading: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 4.5rem;        /* was 6rem — tighter vertical rhythm */

  /* Border radius tokens */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { font-size: 16px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;          /* 18px — editorial body, reads premium not functional */
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 50;
  color: var(--navy);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.25rem); font-variation-settings: 'opsz' 72; letter-spacing: -0.02em; line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-variation-settings: 'opsz' 60; }
h3 { font-size: clamp(1.3rem, 3vw, 1.65rem); font-variation-settings: 'opsz' 24; font-weight: 600; }
h4 { font-size: 1.15rem; font-variation-settings: 'opsz' 16; font-weight: 600; }

p { max-width: 65ch; }
.text-light { color: var(--text-light); }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold-text); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

/* --- Accessibility --- */
.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;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-md);
  z-index: 10000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Focus visible for keyboard users */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;   /* generous editorial vertical rhythm */
}

.section--alt {
  background: var(--off-white);
}

.section--warm {
  background: var(--warm-gray);
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

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

.grid {
  display: grid;
  gap: var(--space-md);
}

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

@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}

.header--scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header__top {
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  padding: 0.4rem 0;
}

.header__top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__top a {
  color: var(--gold-light);
  font-weight: 500;
}

.header__main {
  padding: 0.8rem 0;
}

.header__main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

/* Set-square monogram: framing-square bracket + JK in the display serif */
.logo__mark {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  color: var(--navy);          /* drives the bracket stroke via currentColor */
}

.logo__square {
  display: block;
  width: 46px;
  height: 46px;
}

.logo__jk {
  position: absolute;
  top: 5px;
  right: 3px;
  font-family: var(--font-heading);
  font-variation-settings: 'opsz' 72;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--navy);
}

/* On the dark footer the mark + letters go white (tick stays gold) */
.footer .logo__mark,
.footer .logo__jk { color: var(--white); }

.logo__text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: -2px;
}

/* Navigation */
.nav { display: flex; align-items: center; gap: 0.3rem; }

.nav__link {
  padding: 0.5rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--navy);
  background: var(--off-white);
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s var(--ease);
  z-index: 100;
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu,
.nav__dropdown.is-open .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.nav__dropdown-link:hover {
  background: var(--off-white);
}

.nav__dropdown-link small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: all 0.3s var(--ease);
  border-radius: 2px;
}

.nav-toggle.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

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

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.5rem 2rem;
    gap: 0.2rem;
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    transition: right 0.35s var(--ease);
    overflow-y: auto;
  }

  .nav.is-open { right: 0; }

  .nav__link {
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .nav__dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    display: none;
  }

  .nav__dropdown.is-open .nav__dropdown-menu {
    display: block;
  }

  .nav__cta { margin-top: 1rem; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;   /* increased for 44px min touch target */
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn--primary:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(34, 28, 23, 0.18);
}

.btn--secondary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn--secondary:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

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

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

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

/* Brand-gold accent button — high-intent actions (e.g. Book a time) */
.btn--gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(200, 150, 62, 0.32);
}

/* Solid-white button — legible primary on the dark hero */
.btn--white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn--white:hover {
  background: var(--off-white);
  border-color: var(--off-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(34, 28, 23, 0.22);
}

/* Keep the gold booking button's text navy inside contact cards
   (otherwise the generic `.contact-card a` gold-text rule wins and
   gold-on-gold fails contrast). */
.contact-card a.btn--gold,
.contact-card a.btn--gold:hover {
  color: var(--navy);
}

.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; min-height: 44px; }
.btn--lg { padding: 1rem 2.2rem; font-size: 1.05rem; }

/* --- Hero --- */
.hero {
  position: relative;
  padding: calc(var(--header-height) + 5rem) 0 5rem;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.hero--home {
  padding: calc(var(--header-height) + 6rem) 0 6rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(200, 150, 62, 0.06) 100%);
  border-radius: 0 0 0 40%;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  max-width: 550px;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200, 150, 62, 0.15);
  border: 1px solid rgba(200, 150, 62, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: var(--space-md);
}

/* Page hero (shorter, for inner pages) */
.hero--page {
  padding: calc(var(--header-height) + 3.5rem) 0 3.5rem;
}

.hero--page h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}

.trust-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

/* --- Cards (de-boxed: hairline top-rule + air, editorial not SaaS) --- */
.card {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: var(--space-md) 0 0;
  transition: border-color 0.25s var(--ease);
}

.card:hover {
  border-top-color: var(--navy);
}

a.card:hover .card__title { color: var(--gold-text); }

.card__icon {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  display: block;
  margin-bottom: 0.9rem;
  color: var(--gold-text);
}

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

.card__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.98rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: var(--space-sm);
}

.card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-text);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.card__link:hover {
  color: var(--gold-dark);
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: var(--space-xl);
}

.section-header--center {
  text-align: center;
}

.section-header--center p {
  margin: 1.1rem auto 0;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: 1.1rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-text);
  margin-bottom: 1rem;
}

/* hairline rule trailing the eyebrow label (left-aligned headers only) */
.section-header:not(.section-header--center) .section-label::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

/* Editorial lead paragraph — the first line of a key section reads larger */
.lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--text);
  max-width: 40ch;
}

/* --- Service List (for inner pages) --- */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.service-item {
  display: flex;
  gap: 1rem;
  padding: var(--space-md) 0 0;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  transition: border-color 0.2s;
}

.service-item:hover {
  border-top-color: var(--navy);
}

.service-item__icon {
  flex-shrink: 0;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  display: block;
  color: var(--gold-text);
}

.service-item__icon svg { width: 26px; height: 26px; }

.service-item__title {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.service-item__text {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* --- Process Steps --- */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  counter-reset: step;
}

.process__step {
  position: relative;
  padding: var(--space-md) 0 0;
  background: transparent;
  border: none;
  border-top: 2px solid var(--navy);
  border-radius: 0;
  counter-increment: step;
}

.process__step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-heading);
  font-variation-settings: 'opsz' 72;
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold-text);
  margin-bottom: 0.7rem;
}

.process__step h4 {
  margin-bottom: 0.4rem;
}

.process__step p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
  text-align: center;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat__label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.section--dark .stat__label {
  color: rgba(255,255,255,0.7);
}

/* --- Testimonials --- */
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.testimonial__stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.testimonial__text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: var(--space-sm);
  font-style: italic;
}

.testimonial__author {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial__role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-xl) 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 0.6rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin: 0 auto var(--space-lg);
}

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

/* --- Forms --- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 150, 62, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-error {
  display: none;
  font-size: 0.82rem;
  color: var(--error);
  margin-top: 0.3rem;
}

.form-input.error ~ .form-error,
.form-select.error ~ .form-error,
.form-textarea.error ~ .form-error {
  display: block;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 300px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__bottom a {
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}

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

/* --- Utility --- */
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.flex { display: flex; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* --- Pricing Note --- */
.pricing-note {
  background: rgba(200, 150, 62, 0.06);
  border: 1px solid rgba(200, 150, 62, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.pricing-note h4 {
  margin-bottom: 0.5rem;
}

.pricing-note p {
  font-size: 0.92rem;
  color: var(--text-light);
}

/* --- Portfolio Grid --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--warm-gray);
}

.portfolio-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(34, 28, 23, 0.9));
  color: var(--white);
}

.portfolio-card__tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
}

.portfolio-card__title {
  font-weight: 600;
  font-size: 1rem;
}

/* --- Areas Grid --- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.8rem;
}

.area-tag {
  padding: 0.7rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s;
}

.area-tag:hover {
  border-color: var(--gold);
  background: rgba(200, 150, 62, 0.04);
}

/* --- Audience Cards (de-boxed: hairline top-rule, left-aligned editorial) --- */
.audience-card {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: var(--space-md) 0 0;
  text-align: left;
  transition: border-color 0.25s var(--ease);
}

.audience-card:hover {
  border-top-color: var(--navy);
}

a.audience-card:hover .card__link { color: var(--gold-dark); }

.audience-card__icon {
  width: auto;
  height: auto;
  margin: 0 0 0.9rem;
  background: none;
  border-radius: 0;
  display: block;
  color: var(--gold-text);
}

.audience-card__icon svg { width: 30px; height: 30px; }

.audience-card h3 {
  margin-bottom: 0.5rem;
}

.audience-card p {
  font-size: 0.98rem;
  color: var(--text-light);
  margin: 0 0 var(--space-sm);
}

/* --- Responsive header spacing --- */
body { padding-top: calc(var(--header-height) + 30px); }

@media (max-width: 600px) {
  .hero { padding-top: calc(var(--header-height) + 3rem); padding-bottom: 3rem; }
  .hero--home { padding-top: calc(var(--header-height) + 4rem); padding-bottom: 4rem; }
  .section { padding: var(--space-xl) 0; }
  body { padding-top: calc(var(--header-height) + 20px); }
}

/* --- Contact Page Cards (de-boxed: hairline rows) --- */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: var(--space-md) 0;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  margin-bottom: 0;
}

.contact-card__icon {
  flex-shrink: 0;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  display: block;
  color: var(--gold-text);
}

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

.contact-card h4 {
  margin-bottom: 0.2rem;
}

.contact-card a {
  color: var(--gold-text);
  font-weight: 600;
}

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

.contact-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin: 0;
}

.contact-card--highlight {
  display: block;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.contact-card--highlight h4 {
  margin-bottom: 0.4rem;
}

/* What-happens-next numbered list */
.next-steps {
  counter-reset: nextstep;
  margin-top: 0.8rem;
}

.next-steps li {
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 1rem;
  counter-increment: nextstep;
}

.next-steps li:last-child {
  margin-bottom: 0;
}

.next-steps li::before {
  content: counter(nextstep);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.next-steps li strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.next-steps li p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0;
}

/* --- Form status message (success / error) --- */
.form-status {
  margin-top: var(--space-sm);
  font-size: 0.92rem;
  font-weight: 600;
}

.form-status:empty {
  margin-top: 0;
}

.form-status--success { color: var(--success); }
.form-status--error { color: var(--error); }

/* ============================================
   Motion polish (light) — restrained, reduced-motion safe
   ============================================ */

/* One-time hero entrance — only when the user welcomes motion */
@media (prefers-reduced-motion: no-preference) {
  .hero__badge,
  .hero h1,
  .hero__subtitle,
  .hero__actions {
    animation: heroRise 0.6s var(--ease) both;
  }
  .hero h1         { animation-delay: 0.06s; }
  .hero__subtitle  { animation-delay: 0.14s; }
  .hero__actions   { animation-delay: 0.22s; }
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Press feedback — subtle scale-down on click (buttons + linked cards) */
.btn:active { transform: scale(0.97); }

/* De-boxed cards carry no shadow; depth comes from hairlines + whitespace. */

/* --- Our Work: honest branded placeholders (until real photos are added) --- */
.portfolio-card {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.25rem 5rem;   /* keep the centred caption clear of the bottom overlay */
}

.portfolio-card__watermark {
  width: 58px;
  height: 58px;
  color: rgba(200, 150, 62, 0.42);
}

.portfolio-card__soon {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.portfolio-card__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
}

/* --- Homepage hero photo (decorative; navy overlay keeps headline readable) --- */
/* Photo: Pexels (free commercial licence, no attribution required) */
.hero--home {
  background-image:
    linear-gradient(100deg, rgba(34, 28, 23, 0.94) 0%, rgba(34, 28, 23, 0.86) 42%, rgba(34, 28, 23, 0.55) 100%),
    url('../images/hero-home.jpg');
  background-size: cover;
  background-position: center right;
}

/* On small screens the text spans full width, so darken the overlay evenly */
@media (max-width: 768px) {
  .hero--home {
    background-image:
      linear-gradient(rgba(34, 28, 23, 0.92), rgba(34, 28, 23, 0.88)),
      url('../images/hero-home.jpg');
  }
}

/* --- Service-page photo heroes: each page sets --hero-img (root-relative url) --- */
/* Photos: Pexels (free commercial licence, no attribution required) */
.hero--photo {
  background-image:
    linear-gradient(100deg, rgba(34, 28, 23, 0.94) 0%, rgba(34, 28, 23, 0.86) 45%, rgba(34, 28, 23, 0.60) 100%),
    var(--hero-img);
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  .hero--photo {
    background-image:
      linear-gradient(rgba(34, 28, 23, 0.92), rgba(34, 28, 23, 0.88)),
      var(--hero-img);
  }
}

/* --- Section headers on dark sections (keep text readable) --- */
.section--dark .section-header p { color: rgba(255, 255, 255, 0.78); }
.section--dark .section-label { color: var(--gold-light); }
.section--dark .section-header:not(.section-header--center) .section-label::after { background: var(--gold-light); }

/* ============================================
   Wave 2 — Editorial layout components
   ============================================ */

/* --- Quiet trust line (replaces the boxed icon trust-bar) --- */
.trust-line {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 1.15rem 0;
}

.trust-line .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
}

.trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
}

.trust-line span:not(:first-child)::before {
  content: '·';
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- Services: asymmetric editorial split (sticky left header + numbered list) --- */
.svc-split {
  display: grid;
  grid-template-columns: minmax(0, 4.4fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.svc-split__intro {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.svc-split__intro h2 { margin-bottom: 1.1rem; }

.svc-split__intro p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 1.6rem;
  max-width: 34ch;
}

.svc-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  column-gap: 1.6rem;
  padding: 1.7rem 0;
  border-top: 1px solid var(--border);
  transition: border-color 0.25s var(--ease);
}

.svc-row:last-child { border-bottom: 1px solid var(--border); }
.svc-row:hover { border-top-color: var(--navy); }

.svc-row__num {
  font-family: var(--font-heading);
  font-variation-settings: 'opsz' 72;
  font-weight: 500;
  font-size: 1.55rem;
  color: var(--gold-text);
  line-height: 1;
}

.svc-row__title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
  font-weight: 600;
  font-variation-settings: 'opsz' 30;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.svc-row__text {
  font-size: 0.98rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 48ch;
}

.svc-row__arrow {
  align-self: center;
  color: var(--gold-text);
  transition: transform 0.25s var(--ease);
}

.svc-row:hover .svc-row__arrow { transform: translateX(5px); }

@media (max-width: 860px) {
  .svc-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .svc-split__intro { position: static; }
}

/* --- Who We Help: asymmetric (large feature + stacked pair) --- */
.audience-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.audience-feature {
  border-top: 2px solid var(--navy);
  padding-top: var(--space-md);
}

.audience-feature .audience-card__icon svg { width: 40px; height: 40px; }

.audience-feature h3 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-variation-settings: 'opsz' 55;
  margin-bottom: 0.7rem;
}

.audience-feature p {
  font-size: 1.12rem;
  max-width: 44ch;
}

@media (max-width: 860px) {
  .audience-split { grid-template-columns: 1fr; gap: 0; }
  .audience-feature { margin-bottom: var(--space-md); }
}

/* --- Fixed-Price Promise (named risk-reversal before the CTA) --- */
.promise {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.promise .section-label { justify-content: center; }

.promise__text {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-variation-settings: 'opsz' 60;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-top: 1.1rem;
}

/* --- Sticky mobile call / quote bar (phone-first trades leads) --- */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: none;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(34, 28, 23, 0.08);
}

.mobile-bar .btn { flex: 1; }

@media (max-width: 720px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 74px; }
}
