/* =========================================================
   Nexbuild Creations — paired light / dark theme
   light = Timber Editorial      dark = Charcoal & Amber
   Toggle sets data-theme on <html>; OS preference is the fallback.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --alt-bg: #ffffff;
  --text: #241f1a;
  --muted: #6f665c;
  --line: #e9e1d5;
  --accent: #9c4a26;
  --on-accent: #ffffff;
  --header-bg: #fbf8f3;
  --header-text: #241f1a;
  --header-muted: #8b8177;
  --header-border: #ece4d8;
  --logo-filter: none;
  --danger: #b3261e;
  --hero-bg: #f2ece2;
  --hero-text: #241f1a;
  --hero-muted: #6f665c;
  --tag-bg: rgba(156,74,38,.09);
  --stats-bg: #241f1a;
  --stats-text: #f4efe7;
  --stats-strong: #e0a273;
  --stats-muted: #b7ac9e;
  --dark-panel: #241f1a;
  --on-dark: #f4efe7;
  --on-dark-muted: #b7ac9e;
  --on-dark-panel: rgba(255,255,255,.05);
  --on-dark-border: rgba(255,255,255,.12);
  --band-bg: #9c4a26;
  --band-text: #fff6ef;
  --band-muted: #f0d6c6;
  --icon-bg: #f2ece2;
  --icon-fg: #9c4a26;
  --card-border: #ece4d8;
  --shadow: 0 18px 40px rgba(36,31,26,.10);
  --input-bg: #fbf8f3;
  --btn2-border: #241f1a;
  --btn2-hover: rgba(36,31,26,.06);
  --pop-bg: #241f1a;
  --pop-fg: #f7f2ea;
  --pop-muted: #b7ac9e;
  --pop-accent: #e0a273;
  --pop-shadow: 0 26px 60px rgba(36,31,26,.24);
  --footer-bg: #241f1a;
  --footer-text: #a99e91;
  --footer-head: #f4efe7;
  --footer-line: rgba(255,255,255,.12);
}

[data-theme="dark"] {
  --bg: #15120e;
  --surface: #1e1a15;
  --alt-bg: #191510;
  --text: #ece5da;
  --muted: #a0968a;
  --line: #302a23;
  --accent: #d9822b;
  --on-accent: #15120e;
  --header-bg: #0f0d0a;
  --header-text: #ece5da;
  --header-muted: #8c8276;
  --header-border: #2a241d;
  --logo-filter: invert(1);
  --danger: #ff6b57;
  --hero-bg: linear-gradient(rgba(15,13,10,.86), rgba(15,13,10,.93)),repeating-linear-gradient(45deg,#241f19,#241f19 12px,#1d1913 12px,#1d1913 24px);
  --hero-text: #f5efe5;
  --hero-muted: #b3a99b;
  --tag-bg: rgba(217,130,43,.14);
  --stats-bg: #8a5a34;
  --stats-text: #f5efe5;
  --stats-strong: #15120e;
  --stats-muted: #3a2416;
  --dark-panel: #0f0d0a;
  --on-dark: #ece5da;
  --on-dark-muted: #a0968a;
  --on-dark-panel: rgba(217,130,43,.07);
  --on-dark-border: rgba(217,130,43,.2);
  --band-bg: #8a5a34;
  --band-text: #f9f3ea;
  --band-muted: #e8d5c2;
  --icon-bg: rgba(217,130,43,.13);
  --icon-fg: #d9822b;
  --card-border: #2c261f;
  --shadow: 0 18px 40px rgba(0,0,0,.5);
  --input-bg: #15120e;
  --btn2-border: rgba(236,229,218,.38);
  --btn2-hover: rgba(236,229,218,.09);
  --pop-bg: #f4efe7;
  --pop-fg: #15120e;
  --pop-muted: #6b6154;
  --pop-accent: #8a5a34;
  --pop-shadow: 0 26px 60px rgba(0,0,0,.62);
  --footer-bg: #0f0d0a;
  --footer-text: #8c8276;
  --footer-head: #ece5da;
  --footer-line: rgba(255,255,255,.11);
}

/* No saved choice and no JS -> follow the device setting */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #15120e;
  --surface: #1e1a15;
  --alt-bg: #191510;
  --text: #ece5da;
  --muted: #a0968a;
  --line: #302a23;
  --accent: #d9822b;
  --on-accent: #15120e;
  --header-bg: #0f0d0a;
  --header-text: #ece5da;
  --header-muted: #8c8276;
  --header-border: #2a241d;
  --logo-filter: invert(1);
  --danger: #ff6b57;
  --hero-bg: linear-gradient(rgba(15,13,10,.86), rgba(15,13,10,.93)),repeating-linear-gradient(45deg,#241f19,#241f19 12px,#1d1913 12px,#1d1913 24px);
  --hero-text: #f5efe5;
  --hero-muted: #b3a99b;
  --tag-bg: rgba(217,130,43,.14);
  --stats-bg: #8a5a34;
  --stats-text: #f5efe5;
  --stats-strong: #15120e;
  --stats-muted: #3a2416;
  --dark-panel: #0f0d0a;
  --on-dark: #ece5da;
  --on-dark-muted: #a0968a;
  --on-dark-panel: rgba(217,130,43,.07);
  --on-dark-border: rgba(217,130,43,.2);
  --band-bg: #8a5a34;
  --band-text: #f9f3ea;
  --band-muted: #e8d5c2;
  --icon-bg: rgba(217,130,43,.13);
  --icon-fg: #d9822b;
  --card-border: #2c261f;
  --shadow: 0 18px 40px rgba(0,0,0,.5);
  --input-bg: #15120e;
  --btn2-border: rgba(236,229,218,.38);
  --btn2-hover: rgba(236,229,218,.09);
  --pop-bg: #f4efe7;
  --pop-fg: #15120e;
  --pop-muted: #6b6154;
  --pop-accent: #8a5a34;
  --pop-shadow: 0 26px 60px rgba(0,0,0,.62);
  --footer-bg: #0f0d0a;
  --footer-text: #8c8276;
  --footer-head: #ece5da;
  --footer-line: rgba(255,255,255,.11);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  letter-spacing: -.4px;
}

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  transition: background .25s ease;
}
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1120px; margin: 0 auto; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 50px; width: auto; filter: var(--logo-filter); }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text {
  color: var(--header-text); font-size: 18px; font-weight: 700;
  font-family: 'Fraunces', Georgia, serif; letter-spacing: -.3px;
}
.logo-text span { color: var(--accent); }
.logo-tagline {
  color: var(--header-muted); font-size: 10px; letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--header-text); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: var(--on-accent); padding: 11px 22px;
  border-radius: 999px; font-weight: 700; font-size: 13.5px; white-space: nowrap;
}
/* theme switch */
.theme-toggle {
  width: 38px; height: 38px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--header-text);
  font-size: 15px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color .2s, border-color .2s, transform .2s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: rotate(-15deg); }

.menu-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; }
.menu-toggle span { width: 24px; height: 2px; background: var(--header-text); transition: transform .25s ease, opacity .2s ease; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Heroes ---------- */
.hero, .page-hero { background: var(--hero-bg); color: var(--hero-text); text-align: center; }
.hero { padding: 120px 24px 100px; }
.page-hero { padding: 76px 24px; }
.hero-tag {
  display: inline-block; background: var(--tag-bg); color: var(--accent);
  border: 1px solid var(--accent); padding: 7px 18px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; margin-bottom: 26px;
}
.hero h1 { font-size: 54px; max-width: 860px; margin: 0 auto 22px; line-height: 1.1; }
.page-hero h1 { font-size: 38px; margin: 10px 0 12px; }
.hero p, .page-hero p { font-size: 17.5px; color: var(--hero-muted); max-width: 620px; margin: 0 auto; }
.hero p { margin-bottom: 38px; }
.breadcrumb { font-size: 13px; color: var(--hero-muted); margin-top: 14px; }
.breadcrumb a { color: var(--accent); }

.btn-primary, .btn-secondary {
  display: inline-block; padding: 15px 34px; border-radius: 999px;
  font-weight: 700; font-size: 15px; transition: all .2s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-secondary { border: 1px solid var(--btn2-border); color: inherit; }
.btn-secondary:hover { background: var(--btn2-hover); }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Stats ---------- */
.stats-bar {
  background: var(--stats-bg); color: var(--stats-text);
  display: flex; justify-content: center; flex-wrap: wrap; text-align: center;
}
.stats-bar .stat { padding: 30px 44px; }
.stats-bar .stat strong {
  display: block; font-size: 34px; font-family: 'Fraunces', Georgia, serif;
  font-weight: 700; color: var(--stats-strong);
}
.stats-bar .stat span { font-size: 13.5px; color: var(--stats-muted); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
/* alternating band (Our Process, Pricing FAQ, Our Values). This used to be a
   hardcoded white inline style, which stayed cream in dark mode. */
.section-alt { background: var(--alt-bg); }
.section-header { text-align: center; max-width: 660px; margin: 0 auto 58px; }
.section-tag {
  color: var(--accent); font-weight: 700; font-size: 12.5px;
  letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 12px; display: block;
}
.section-header h2 { font-size: 34px; margin-bottom: 14px; }
.section-header p { color: var(--muted); font-size: 16px; }

/* ---------- Cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.service-card {
  background: var(--surface); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 34px 28px;
  transition: transform .3s ease, box-shadow .2s ease, opacity .45s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-icon {
  width: 52px; height: 52px; background: var(--icon-bg); color: var(--icon-fg);
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.service-icon svg, .contact-icon svg { width: 24px; height: 24px; flex-shrink: 0; }
.service-card h3 { font-size: 20px; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.service-card a.learn-more { color: var(--accent); font-weight: 700; font-size: 14px; }

/* ---------- About ---------- */
.about { background: var(--alt-bg); }
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img {
  height: 380px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--card-border);
}
.about-card {
  display: block; width: 100%; height: 100%;
  object-fit: contain; border-radius: 8px;
  filter: drop-shadow(0 14px 24px rgba(28,26,23,.16));
}
.about-card-dark { display: none; }
[data-theme="dark"] .about-card-light { display: none; }
[data-theme="dark"] .about-card-dark { display: block; }
.about-text h2 { font-size: 32px; margin-bottom: 18px; }
.about-text p { color: var(--muted); margin-bottom: 16px; font-size: 15.5px; }
.checklist li { display: flex; gap: 12px; margin-bottom: 12px; font-size: 15px; }
.checklist li::before {
  content: "✓"; background: var(--accent); color: var(--on-accent);
  width: 22px; height: 22px; border-radius: 999px; display: flex;
  align-items: center; justify-content: center; font-size: 13px;
  font-weight: 800; flex-shrink: 0;
}
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.value-card {
  text-align: center; padding: 32px 20px; background: var(--surface);
  border: 1px solid var(--card-border); border-radius: 14px;
  transition: opacity .45s ease, transform .45s ease;
}
.value-card .service-icon { margin: 0 auto 18px; }
.value-card h3 { font-size: 18px; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 14.5px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.team-card { text-align: center; }
.team-photo {
  width: 140px; height: 140px; border-radius: 999px; margin: 0 auto 16px;
  background: var(--icon-bg); border: 1px solid var(--card-border);
}
.team-card h3 { font-size: 17px; margin-bottom: 4px; }
.team-card span { color: var(--accent); font-size: 13.5px; font-weight: 700; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.process-step { text-align: center; }
.process-step .num {
  width: 58px; height: 58px; border-radius: 999px;
  background: var(--icon-bg); color: var(--icon-fg);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; font-family: 'Fraunces', Georgia, serif;
  margin: 0 auto 18px;
}
.process-step h3 { font-size: 18px; margin-bottom: 10px; }
.process-step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Gallery ---------- */
.gallery { background: var(--alt-bg); }
.filter-bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 10px 22px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13.5px; font-weight: 700; background: transparent; color: var(--text);
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
}
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  position: relative; height: 220px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  background-size: cover; background-position: center;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(17,15,12,.88));
  color: #fff; font-size: 13px; font-weight: 700;
}
.gallery-item figcaption a { color: #fff; }
.gallery-item figcaption a:hover { color: var(--accent); }
.gallery-item.is-hidden { display: none; }
@keyframes gallery-fade-in { from { opacity: 0; } to { opacity: 1; } }
.gallery-grid .gallery-item:not(.is-hidden) { animation: gallery-fade-in .35s ease; }

/* ---------- Pricing ----------
   Each card reads its colours from its own --pc-* tokens, so lifting a card
   is a matter of re-pointing those tokens in a single rule. The "popped"
   state inverts against the page: dark card on the light theme, light card
   on the dark theme, so it reads as a pop either way.                     */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; align-items: stretch; }
.price-card {
  --pc-bg: var(--surface);
  --pc-fg: var(--text);
  --pc-muted: var(--muted);
  --pc-border: var(--card-border);
  --pc-accent: var(--accent);
  --pc-btn-bg: transparent;
  --pc-btn-fg: var(--text);
  --pc-btn-border: var(--text);
  --pc-scale: 1;
  --pc-lift: 0px;
  --pc-shadow: none;

  position: relative; z-index: 1;
  background: var(--pc-bg);
  color: var(--pc-fg);
  border: 1px solid var(--pc-border);
  border-radius: 14px; padding: 38px 30px;
  display: flex; flex-direction: column;
  transform: translateY(var(--pc-lift)) scale(var(--pc-scale));
  box-shadow: var(--pc-shadow);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease,
              background-color .3s ease, color .3s ease, border-color .3s ease,
              opacity .45s ease;
}
.price-tier { font-weight: 700; font-size: 12.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--pc-accent); margin-bottom: 8px; transition: color .3s ease; }
.price-card h3 { font-size: 24px; margin-bottom: 8px; color: var(--pc-fg); }
.price-amount { font-size: 15px; color: var(--pc-muted); margin-bottom: 20px; }
.price-amount strong { font-size: 32px; color: var(--pc-fg); display: block; font-family: 'Fraunces', Georgia, serif; }
.price-card p.price-desc { color: var(--pc-muted); font-size: 14.5px; margin-bottom: 22px; }
.price-card ul { margin-bottom: 28px; flex-grow: 1; }
.price-card ul li { display: flex; gap: 10px; margin-bottom: 12px; font-size: 14.5px; color: var(--pc-fg); }
.price-card ul li::before { content: "✓"; color: var(--pc-accent); font-weight: 800; }
.price-btn {
  text-align: center; padding: 14px; border-radius: 999px; font-weight: 700;
  font-size: 14.5px;
  background: var(--pc-btn-bg); color: var(--pc-btn-fg);
  border: 1px solid var(--pc-btn-border);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.price-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 30px; }

/* the popped look */
.price-card.featured,
.price-card:focus-within {
  --pc-bg: var(--pop-bg);
  --pc-fg: var(--pop-fg);
  --pc-muted: var(--pop-muted);
  --pc-border: var(--pop-bg);
  --pc-accent: var(--pop-accent);
  --pc-btn-bg: var(--accent);
  --pc-btn-fg: var(--on-accent);
  --pc-btn-border: var(--accent);
  --pc-scale: 1.05;
  --pc-lift: -10px;
  --pc-shadow: var(--pop-shadow);
  z-index: 2;
}

/* ---------- Scroll reveal ----------
   main.js adds .js to <html> first thing, then an IntersectionObserver
   adds .revealed to each card as it enters the viewport (siblings staggered
   via transition-delay). No-JS and reduced-motion visitors see everything
   in place, no animation. */
html.js .service-card:not(.revealed),
html.js .testimonial-card:not(.revealed),
html.js .value-card:not(.revealed) {
  opacity: 0;
  transform: translateY(14px);
}
/* price cards keep their --pc-lift/--pc-scale transform; fade opacity only */
html.js .price-card:not(.revealed) { opacity: 0; }
html.js .service-card.revealed,
html.js .testimonial-card.revealed,
html.js .value-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
html.js .price-card.revealed { opacity: 1; }

.testimonial-card, .gallery-item {
  transition: transform .2s ease, box-shadow .2s ease, opacity .45s ease;
}

@media (hover: hover) {
  /* once the pointer is in the grid, "Most Popular" hands the emphasis over */
  .pricing-grid:hover .price-card.featured:not(:hover):not(:focus-within) {
    --pc-bg: var(--surface);
    --pc-fg: var(--text);
    --pc-muted: var(--muted);
    --pc-border: var(--card-border);
    --pc-accent: var(--accent);
    --pc-btn-bg: transparent;
    --pc-btn-fg: var(--text);
    --pc-btn-border: var(--text);
    --pc-scale: 1;
    --pc-lift: 0px;
    --pc-shadow: none;
    z-index: 1;
  }
  /* whichever card the pointer is over takes it */
  .price-card:hover {
    --pc-bg: var(--pop-bg);
    --pc-fg: var(--pop-fg);
    --pc-muted: var(--pop-muted);
    --pc-border: var(--pop-bg);
    --pc-accent: var(--pop-accent);
    --pc-btn-bg: var(--accent);
    --pc-btn-fg: var(--on-accent);
    --pc-btn-border: var(--accent);
    --pc-scale: 1.05;
    --pc-lift: -10px;
    --pc-shadow: var(--pop-shadow);
    z-index: 2;
  }
  /* consistent subtle lift for cards that don't have their own hover treatment */
  .testimonial-card:hover, .gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }
}

@media (prefers-reduced-motion: reduce) {
  .price-card { transition: background-color .2s ease, color .2s ease; }
  .price-card.featured, .price-card:hover, .price-card:focus-within {
    --pc-scale: 1; --pc-lift: 0px;
  }
  .nav-links, .nav-cta, .menu-toggle span { transition: none; }
  .gallery-grid .gallery-item:not(.is-hidden) { animation: none; }

  /* scroll reveal + hover lift: show everything in place, no motion */
  .service-card, .value-card {
    transition: box-shadow .2s ease;
  }
  .testimonial-card, .gallery-item {
    transition: box-shadow .2s ease, opacity .2s ease;
  }
  .service-card:hover, .testimonial-card:hover, .gallery-item:hover {
    transform: none;
  }
  html.js .service-card:not(.revealed),
  html.js .testimonial-card:not(.revealed),
  html.js .value-card:not(.revealed) {
    opacity: 1;
    transform: none;
  }
  html.js .price-card:not(.revealed) { opacity: 1; }
}
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item h3 { font-size: 16.5px; margin-bottom: 8px; }
.faq-item p { color: var(--muted); font-size: 14.5px; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--dark-panel); color: var(--on-dark); }
.testimonials .section-header h2, .testimonials .section-header p { color: var(--on-dark); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.testimonial-card {
  background: var(--on-dark-panel); border: 1px solid var(--on-dark-border);
  border-radius: 14px; padding: 30px;
}
.stars { color: var(--accent); margin-bottom: 16px; letter-spacing: 2px; }
.stars .half { color: var(--on-dark-muted); }
.testimonial-card p { color: var(--on-dark-muted); font-size: 15px; margin-bottom: 20px; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 42px; height: 42px; border-radius: 999px; flex-shrink: 0;
  background: var(--tag-bg); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; letter-spacing: .3px;
  font-family: 'Fraunces', Georgia, serif;
}
.t-author strong { display: block; font-size: 14.5px; }
.t-author span { font-size: 13px; color: var(--on-dark-muted); }

/* ---------- Testimonial Carousel ---------- */
.t-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}
.t-track-wrap {
  overflow: hidden;
  flex: 1;
}
.t-track {
  display: flex;
  gap: 28px;
  transition: transform 0.45s cubic-bezier(.2,.7,.3,1);
}
.t-slide {
  flex: 0 0 calc(33.333% - 19px);
  min-width: calc(33.333% - 19px);
}
.t-arrow {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--on-dark-border);
  background: var(--on-dark-panel);
  color: var(--on-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
  z-index: 5;
}
.t-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.t-arrow svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 860px) {
  .t-slide {
    flex: 0 0 calc(50% - 14px);
    min-width: calc(50% - 14px);
  }
}

@media (max-width: 560px) {
  .t-slide {
    flex: 0 0 100%;
    min-width: 100%;
  }
  .t-arrow {
    width: 38px;
    height: 38px;
  }
}

/* ---------- CTA ---------- */
.cta-band { background: var(--band-bg); color: var(--band-text); text-align: center; padding: 76px 24px; }
.cta-band h2 { font-size: 32px; margin-bottom: 14px; }
.cta-band p { margin-bottom: 30px; font-size: 16px; color: var(--band-muted); }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info h2 { font-size: 30px; margin-bottom: 16px; }
.contact-info > p { color: var(--muted); margin-bottom: 30px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-icon {
  width: 44px; height: 44px; background: var(--icon-bg); color: var(--icon-fg);
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 15px; margin-bottom: 3px; }
.contact-item span, .contact-item a { color: var(--muted); font-size: 14.5px; transition: color .2s; }
.contact-item a:hover { color: var(--accent); }
.contact-form { background: var(--surface); border: 1px solid var(--card-border); border-radius: 14px; padding: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
input, textarea, select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-family: inherit; font-size: 14.5px;
  background: var(--input-bg); color: var(--text);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%; background: var(--accent); color: var(--on-accent); border: 0;
  padding: 16px; border-radius: 999px; font-weight: 800; font-size: 15px;
  cursor: pointer; font-family: inherit; transition: filter .2s;
}
.form-submit:hover { filter: brightness(1.08); }
.form-submit:disabled { opacity: .7; cursor: not-allowed; }
.form-error-text { color: var(--danger); }

.pitch-rejected {
  font-weight: 600;
  padding: 12px 16px;
  border: 1px solid var(--danger);
  border-radius: 8px;
  background: rgba(192, 57, 43, 0.08);
}
.form-success {
  background: var(--icon-bg); border: 1px solid var(--accent); border-radius: 14px;
  padding: 28px 30px; margin-bottom: 20px;
}
.form-success strong {
  display: block; color: var(--accent); font-size: 17px; margin-bottom: 6px;
  font-family: 'Fraunces', Georgia, serif;
}
.form-success p { color: var(--muted); font-size: 14.5px; }
.service-strip {
  margin-top: 40px; padding: 26px 30px; border-radius: 14px;
  background: var(--dark-panel); color: var(--on-dark);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
}
.service-strip strong { color: var(--accent); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.service-strip span { font-size: 15px; color: var(--on-dark-muted); }

/* ---------- SEO service detail pages ---------- */
.service-detail { padding-top: 72px; }
.service-intro {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 54px; align-items: center;
}
.service-copy h2 { font-size: 34px; margin-bottom: 18px; }
.service-copy h3 { font-size: 21px; margin: 28px 0 10px; }
.service-copy p { color: var(--muted); margin-bottom: 16px; }
.service-copy a:not(.btn-primary):not(.btn-secondary),
.detail-card a, .related-services a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.service-photo {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}
.service-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-photo figcaption {
  position: absolute; inset: auto 12px 12px 12px; padding: 10px 12px;
  border-radius: 9px; background: rgba(20,18,15,.84); color: #fff;
  font-size: 12.5px; line-height: 1.4;
}
.custom-home-project-photo {
  position: relative; aspect-ratio: 15 / 7; overflow: hidden;
  margin: 0 0 32px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--card-border); box-shadow: var(--shadow);
}
.custom-home-project-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.custom-home-project-photo figcaption {
  position: absolute; inset: auto 14px 14px 14px; max-width: 640px; padding: 10px 12px;
  border-radius: 9px; background: rgba(20,18,15,.84); color: #fff;
  font-size: 12.5px; line-height: 1.4;
}
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.detail-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.detail-card {
  background: var(--surface); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 28px;
}
.detail-card h2, .detail-card h3 { font-size: 20px; margin-bottom: 11px; }
.detail-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 10px; }
.scope-list { margin: 20px 0; }
.scope-list li { display: flex; gap: 11px; margin-bottom: 12px; color: var(--muted); }
.scope-list li::before { content: "\2713"; color: var(--accent); font-weight: 800; flex: 0 0 auto; }
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area-grid .detail-card h2, .area-grid .detail-card h3 { font-size: 18px; }
.related-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.related-services .detail-card { padding: 22px; }
.related-services .detail-card h3 { font-size: 17px; }
.related-services .detail-card p { font-size: 13.5px; }
.content-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 42px; padding: 30px; border-radius: 14px;
  background: var(--dark-panel); color: var(--on-dark);
}
.content-cta h2, .content-cta h3 { color: var(--on-dark); font-size: 24px; margin-bottom: 6px; }
.content-cta p { color: var(--on-dark-muted); margin: 0; }
.content-cta .btn-primary { white-space: nowrap; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-top: 20px; }
.breadcrumbs a { color: var(--accent); }
.service-note {
  padding: 18px 20px; border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0;
  background: var(--icon-bg); color: var(--muted); font-size: 14px;
}

/* ---------- Footer ---------- */
footer { background: var(--footer-bg); color: var(--footer-text); padding: 56px 24px 26px; }
/* the footer is dark in BOTH themes, so the logo mark is always inverted to read light here */
footer .logo img { filter: invert(1); }
footer .logo { margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
footer h4 { color: var(--footer-head); font-size: 15px; margin-bottom: 16px; }
footer ul li { margin-bottom: 10px; font-size: 14px; }
footer ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--footer-line); padding-top: 22px; text-align: center; font-size: 13px; }

/* ---------- Sticky mobile call bar ---------- */
.call-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--card-border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.call-bar a {
  flex: 1; text-align: center; padding: 14px 10px;
  font-weight: 700; font-size: 14.5px;
}
.call-bar-call { background: var(--accent); color: var(--on-accent); }
.call-bar-quote { background: var(--surface); color: var(--text); border-left: 1px solid var(--card-border); }
.call-bar.call-only .call-bar-quote { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about-wrap, .contact-wrap, .footer-grid, .service-intro { grid-template-columns: 1fr; }
  .about-img { height: auto; aspect-ratio: 5 / 3; padding: 18px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .detail-grid, .detail-grid.two-col, .area-grid { grid-template-columns: 1fr 1fr; }
  .related-services { grid-template-columns: 1fr 1fr; }
  .content-cta { align-items: flex-start; flex-direction: column; }
  .price-card.featured { --pc-scale: 1; --pc-lift: 0px; }

  /* Collapsible mobile nav: links + CTA stay in the DOM and reflow into a
     panel below the top row; header.nav-open reveals it. */
  nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    align-items: center;
    column-gap: 10px;
    row-gap: 0;
    padding: 10px 20px;
  }
  .logo { min-width: 0; margin: 0; }
  .nav-links, .nav-cta {
    grid-column: 1 / -1;
    width: 100%; max-height: 0; overflow: hidden; opacity: 0;
    visibility: hidden; pointer-events: none;
    transition: max-height .3s ease, opacity .25s ease, visibility .3s ease;
  }
  .nav-links { grid-row: 2; flex-direction: column; gap: 0; }
  .nav-links a {
    display: block; min-height: 48px; padding: 12px 4px;
    border-top: 1px solid var(--header-border);
  }
  .nav-cta { grid-row: 3; min-height: 0; padding: 0 22px; text-align: center; margin-top: 0; }
  .theme-toggle { grid-column: 2; grid-row: 1; width: 44px; height: 44px; display: flex; }
  .menu-toggle {
    grid-column: 3; grid-row: 1; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
  }
  header.nav-open .nav-links,
  header.nav-open .nav-cta { visibility: visible; pointer-events: auto; }
  header.nav-open nav { row-gap: 8px; }
  header.nav-open .nav-links { max-height: 480px; opacity: 1; }
  header.nav-open .nav-cta {
    min-height: 48px; max-height: 80px; padding-block: 13px;
    opacity: 1; margin-top: 2px; margin-bottom: 6px;
  }

  .call-bar { display: flex; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }

  .hero h1 { font-size: 32px; }
  .page-hero h1 { font-size: 28px; }
  .stats-bar .stat { padding: 22px 26px; }
}

/* Keep the compact navigation on small tablets without showing the
   phone-specific bottom action bar. */
@media (min-width: 861px) and (max-width: 960px) {
  .call-bar { display: none; }
  body { padding-bottom: 0; }
}

@media (max-width: 560px) {
  .container { padding-inline: 20px; }
  section { padding: 64px 0; }

  nav {
    grid-template-columns: minmax(0, 1fr) 42px 42px;
    column-gap: 8px; padding: 9px 12px;
  }
  .logo { gap: 8px; overflow: hidden; }
  .logo img { width: 40px; height: 40px; flex: 0 0 40px; object-fit: contain; }
  .logo-text-wrap { min-width: 0; }
  .logo-text { font-size: 15.5px; white-space: nowrap; }
  .logo-tagline { font-size: 8px; letter-spacing: .75px; white-space: nowrap; }
  .theme-toggle, .menu-toggle { width: 42px; height: 42px; }

  .hero { padding: 64px 20px 58px; }
  .page-hero { padding: 54px 20px; }
  .hero-tag {
    padding: 7px 13px; margin-bottom: 22px;
    font-size: 10.5px; line-height: 1.5; letter-spacing: 1.05px;
  }
  .hero h1 { font-size: clamp(30px, 9vw, 36px); line-height: 1.08; margin-bottom: 18px; }
  .page-hero h1 { font-size: 28px; line-height: 1.15; }
  .hero p, .page-hero p { font-size: 16px; line-height: 1.65; }
  .hero p { margin-bottom: 30px; }
  .hero-buttons { flex-direction: column; gap: 12px; }
  .hero-buttons .btn-primary, .hero-buttons .btn-secondary { width: 100%; }

  .btn-primary, .btn-secondary, .price-btn { min-height: 48px; padding: 13px 22px; text-align: center; }
  .stats-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-bar .stat { min-width: 0; padding: 20px 12px; }
  .stats-bar .stat strong { font-size: 28px; }
  .stats-bar .stat span { display: block; font-size: 12px; line-height: 1.4; }

  .section-header { margin-bottom: 38px; }
  .section-header h2 { font-size: 29px; line-height: 1.2; }
  .section-header p { font-size: 15px; }
  .services-grid, .values-grid, .process-grid, .pricing-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .service-card, .price-card, .detail-card { padding: 24px 22px; }
  .service-card:hover, .testimonial-card:hover, .gallery-item:hover { transform: none; }

  .about-wrap { gap: 34px; }
  .about-img { aspect-ratio: 4 / 3; padding: 12px; }
  .about-text h2, .contact-info h2 { font-size: 28px; line-height: 1.2; }

  .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .gallery-item { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .filter-bar { justify-content: flex-start; gap: 8px; margin-bottom: 28px; }
  .filter-btn { min-height: 44px; padding: 9px 17px; }

  .t-carousel { display: block; padding-bottom: 54px; }
  .t-track { gap: 18px; }
  .t-arrow { position: absolute; bottom: 0; }
  .t-arrow-left { left: calc(50% - 44px); }
  .t-arrow-right { right: calc(50% - 44px); }
  .testimonial-card { padding: 24px 22px; }

  .cta-band { padding: 60px 20px; }
  .cta-band h2 { font-size: 28px; line-height: 1.2; }
  .cta-band .btn-primary { width: 100%; }

  .contact-wrap { gap: 34px; }
  .contact-form { padding: 24px 20px; }
  input, textarea, select { min-height: 48px; font-size: 16px; }
  textarea { min-height: 120px; }
  .contact-item { gap: 12px; }
  .contact-item > div:last-child { min-width: 0; overflow-wrap: anywhere; }
  .service-strip { align-items: flex-start; flex-direction: column; padding: 22px; }

  .service-detail { padding-top: 52px; }
  .service-copy h2 { font-size: 28px; }
  .detail-grid, .detail-grid.two-col, .area-grid, .related-services { grid-template-columns: 1fr; }
  .service-photo { aspect-ratio: 5 / 4; }
  .custom-home-project-photo { aspect-ratio: 5 / 4; }
  .content-cta { padding: 24px; }
  .content-cta .btn-primary { width: 100%; white-space: normal; }

  footer { padding: 48px 20px 24px; }
  .footer-grid { gap: 30px; margin-bottom: 34px; }
  footer .logo { overflow: visible; }
  footer .logo img { width: 44px; height: 44px; flex-basis: 44px; }

  .call-bar a {
    min-height: 56px; padding: 15px 10px;
    display: flex; align-items: center; justify-content: center;
  }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 360px) {
  header .logo { gap: 0; }
  header .logo img { display: none; }
  .logo-tagline { display: none; }
  .logo-text { font-size: 15px; }
  .container { padding-inline: 16px; }
  .hero, .page-hero { padding-inline: 16px; }
  .hero h1 { font-size: 29px; }
}
/* ---------- Header shadow on scroll ---------- */
header { transition: box-shadow .3s ease; }
header.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.08); }

/* ---------- Hero entrance (one-time, subtle) ---------- */
.js .hero > * {
  opacity: 0;
  transform: translateY(12px);
  animation: hero-rise .65s cubic-bezier(.2,.7,.3,1) forwards;
}
.js .hero > .hero-tag    { animation-delay: .05s; }
.js .hero > h1           { animation-delay: .15s; }
.js .hero > p            { animation-delay: .27s; }
.js .hero > .hero-buttons{ animation-delay: .39s; }
@keyframes hero-rise { to { opacity: 1; transform: none; } }

/* ---------- Gallery: staggered reveal + hover zoom ---------- */
.js .gallery-item { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.3,1); }
.js .gallery-item.revealed { opacity: 1; transform: none; }
.js .gallery-item img { transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.lb-trigger { cursor: zoom-in; }
.lb-trigger:hover img, .lb-trigger:focus-visible img { transform: scale(1.04); }
.gallery-item.is-hidden { display: none; } /* keep filter behavior */

/* ---------- About image hover zoom ---------- */
.about-img img { transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.about-img:hover img { transform: scale(1.03); }

/* ---------- CTA band accent ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 180px; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--accent);
  transform: translateX(-50%) scaleX(0);
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.cta-band.in-view::before { transform: translateX(-50%) scaleX(1); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: rgba(12, 10, 8, .92);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure {
  max-width: min(1100px, 88vw); max-height: 84vh; margin: 0;
  display: flex; flex-direction: column; align-items: center;
}
.lightbox img {
  max-width: 100%; max-height: 78vh; object-fit: contain;
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox figcaption { color: #eee; font-size: 14px; margin-top: 12px; text-align: center; }
.lightbox button {
  background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease; flex: 0 0 auto;
}
.lightbox button:hover { background: rgba(255,255,255,.2); transform: scale(1.06); }
.lb-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; font-size: 24px; line-height: 1; }
.lb-arrow { width: 48px; height: 48px; }
.lb-arrow svg { width: 22px; height: 22px; }

/* ---------- Reduced motion: disable everything above ---------- */
@media (prefers-reduced-motion: reduce) {
  header { transition: none; }
  header.scrolled { box-shadow: none; }
  .js .hero > * { animation: none; opacity: 1; transform: none; }
  .js .gallery-item { opacity: 1; transform: none; transition: none; }
  .js .gallery-item img, .about-img img { transition: none; }
  .lb-trigger:hover img, .lb-trigger:focus-visible img, .about-img:hover img { transform: none; }
  .cta-band::before { transition: none; transform: translateX(-50%) scaleX(1); }
  .lightbox { transition: opacity .2s ease, visibility .2s ease; }
  .lightbox button { transition: none; }
}