/* ==========================================================================
   Viable Solutions — stylesheet

   Structure and mood follow sprinkles-style-website-replication-guide.md
   (dark photo hero, warm accent, established residential-service feel).
   Composition, palette, and type are deliberately NOT the guide's reference
   site: hero content is left-aligned with an edge scrim rather than a centered
   translucent card, the CTA is clay instead of red, the accent is antique
   brass instead of gold, and the type is Archivo + Allura, not Montserrat +
   Great Vibes.
   ========================================================================== */

:root {
  /* Greens — cooler and deeper than the reference forest */
  --pine-deep:    #13241b;
  --pine:         #1c3527;
  --pine-soft:    #24402f;
  --slate-green:  #3c5548;

  /* Accents */
  --clay:         #b4472e;
  --clay-dark:    #93361f;
  --sand:         #f2e3c4;
  --brass:        #c9a227;
  --brass-light:  #dcbc55;

  /* Neutrals */
  --bone:         #f7f5f0;
  --bone-alt:     #ece8de;
  --white:        #ffffff;
  --ink:          #1a2620;
  --ink-soft:     #4e5c54;
  --rule:         rgba(19, 36, 27, 0.14);

  /* Layout */
  --wrap:         1180px;
  --header-h:     92px;

  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Archivo", "Helvetica Neue", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}

/* height:auto is load-bearing: without it the HTML height attribute wins over
   the implied aspect-ratio and images render at full natural height whenever
   CSS constrains only their width. Rules below that need a filled box set
   height explicitly (class selectors, so they override this). */
img, picture { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance; /* evens out ragged headline breaks; ignored where unsupported */
}
h2 { font-size: clamp(27px, 3.2vw, 38px); font-weight: 700; }
h3 { font-size: clamp(18px, 1.5vw, 21px); font-weight: 700; }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.section { padding: clamp(62px, 7.5vw, 100px) 0; }

/* --- Accessibility ------------------------------------------------------ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--pine-deep);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Scroll reveal ------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* Drop the pan entirely rather than freezing on a scaled mid-pan frame */
  .hero-image img { animation: none !important; transform: none !important; }
}

/* --- Buttons ------------------------------------------------------------ */

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border: 2px solid transparent;
  text-decoration: none;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease),
              background 180ms var(--ease), border-color 180ms var(--ease);
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(19, 36, 27, 0.26); }
.button:active { transform: translateY(0); }

.button-primary { background: var(--clay); border-color: var(--clay); color: var(--white); }
.button-primary:hover { background: var(--clay-dark); border-color: var(--clay-dark); }

.button-sand { background: var(--sand); border-color: var(--sand); color: var(--pine-deep); }
.button-sand:hover { background: #f8eed6; border-color: #f8eed6; }

.button-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.button-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

/* --- Header ------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 60;
  background: linear-gradient(to bottom,
    rgba(10, 20, 14, 0.78), rgba(10, 20, 14, 0.34), rgba(10, 20, 14, 0));
  transition: background 300ms var(--ease), box-shadow 300ms var(--ease);
}
.site-header.is-stuck {
  background: var(--pine-deep);
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.26);
}

.header-inner {
  width: min(var(--wrap), calc(100% - 48px));
  min-height: var(--header-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--white);
  text-decoration: none;
  line-height: 1;
}

.brand-mark {
  width: 46px;
  height: auto;
  transition: transform 300ms var(--ease);
}
.brand:hover .brand-mark { transform: scale(1.06); }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  white-space: nowrap;
  padding-left: 13px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.brand-tagline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12.5px;
  font-weight: 700;
  /* Tracked so SOLUTIONS optically matches the width of VIABLE above it —
     a justified two-line block, echoing the rule in the logo. The negative
     margin cancels the trailing space letter-spacing adds after the last S. */
  letter-spacing: 0.49em;
  margin-right: -0.49em;
  text-transform: uppercase;
  color: var(--brass-light);
}

.primary-navigation { display: flex; align-items: center; gap: 26px; }

.primary-navigation a {
  position: relative;
  color: var(--white);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 200ms var(--ease);
}
.primary-navigation a:not(.nav-phone)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}
.primary-navigation a:not(.nav-phone):hover,
.primary-navigation a.is-active { color: var(--brass-light); }
.primary-navigation a:not(.nav-phone):hover::after,
.primary-navigation a.is-active::after { transform: scaleX(1); }

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--clay);
  color: var(--white) !important;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}
.nav-phone:hover { background: var(--clay-dark); transform: translateY(-1px); }
.nav-phone svg { width: 15px; height: 15px; fill: currentColor; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-bar {
  display: block;
  width: 26px;
  height: 2px;
  margin-inline: auto;
  background: var(--white);
  transition: transform 260ms var(--ease), opacity 200ms var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero — left-aligned over an edge scrim ----------------------------- */

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 56px) 0 72px;
}

.hero-image { position: absolute; inset: 0; }
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* Slow horizontal drift. The image is scaled up so the pan never exposes an
     edge: translate resolves inside the scaled coordinate system, so ±2.5%
     travels ±2.8% against (zoom-1)/2 of overflow available per side.
     Narrow viewports zoom further (see the 760px block) — the same percentage
     travel eats a much larger share of a 375px box than a 1280px one.

     Zoom values are written out literally in each keyframe rather than pulled
     from a custom property: var() inside @keyframes is unreliable in WebKit
     and silently drops the whole transform, which kills the animation. */
  transform: scale(1.12);
  animation: heroPan 36s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroPan {
  from { transform: scale(1.12) translate3d(-2.5%, 0, 0); }
  to   { transform: scale(1.12) translate3d(2.5%, 0, 0); }
}

@keyframes heroPanNarrow {
  from { transform: scale(1.2) translate3d(-2.5%, 0, 0); }
  to   { transform: scale(1.2) translate3d(2.5%, 0, 0); }
}

/* Directional scrim instead of a floating card — keeps the photo readable
   on the right while anchoring the copy on the left. */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(9, 19, 13, 0.92) 0%,
      rgba(9, 19, 13, 0.80) 32%,
      rgba(9, 19, 13, 0.42) 58%,
      rgba(9, 19, 13, 0.16) 100%),
    linear-gradient(to top, rgba(9, 19, 13, 0.55), rgba(9, 19, 13, 0) 45%);
}

.hero-inner { position: relative; z-index: 5; }

.hero-content {
  max-width: 660px;
  padding-left: 26px;
  border-left: 3px solid var(--brass);
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 14px 7px 11px;
  border: 1px solid rgba(201, 162, 39, 0.55);
  background: rgba(201, 162, 39, 0.12);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-light);
}
.hero-badge svg { width: 14px; height: 14px; fill: var(--brass); }

.hero-eyebrow {
  margin: 0 0 14px;
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(33px, 4.4vw, 54px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.032em;
}

.script-accent {
  margin: 2px 0 14px;
  font-family: "Allura", "Snell Roundhand", cursive;
  font-size: clamp(44px, 5vw, 62px);
  line-height: 1.05;
  font-weight: 400;
  color: var(--brass-light);
}

.hero-description {
  max-width: 560px;
  margin: 0 0 28px;
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Compact page hero (interior pages) --------------------------------- */

.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  min-height: 340px;
  padding: calc(var(--header-h) + 44px) 0 44px;
}

.page-hero-image { position: absolute; inset: 0; }
.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  transform: scale(1.06);
}

.page-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(9, 19, 13, 0.94) 0%,
      rgba(9, 19, 13, 0.84) 38%,
      rgba(9, 19, 13, 0.56) 70%,
      rgba(9, 19, 13, 0.34) 100%),
    linear-gradient(to top, rgba(9, 19, 13, 0.6), rgba(9, 19, 13, 0) 55%);
}

.page-hero-inner { position: relative; z-index: 5; color: var(--white); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.62);
}
.breadcrumb a { color: var(--brass-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.page-hero-content {
  max-width: 720px;
  padding-left: 24px;
  border-left: 3px solid var(--brass);
}
.page-hero-content h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.page-hero-content .script-accent { margin: 0; font-size: clamp(34px, 3.6vw, 46px); }

/* --- FAQ ---------------------------------------------------------------- */

.faq-section { background: var(--bone); }
.faq-wrap { max-width: 860px; }

.faq-intro {
  margin: 0 0 34px;
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.6;
  color: var(--ink-soft);
}
.faq-intro a { color: var(--clay); font-weight: 600; }

.faq-toc {
  margin-bottom: 38px;
  padding: 26px 28px;
  background: var(--bone-alt);
  border-left: 3px solid var(--brass);
}
.faq-toc-title {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
}
.faq-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 30px;
  counter-reset: faq;
}
.faq-toc li { counter-increment: faq; }
.faq-toc a {
  display: flex;
  gap: 9px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--pine);
  text-decoration: none;
  transition: color 180ms var(--ease);
}
.faq-toc a::before {
  content: counter(faq) ".";
  flex: none;
  font-weight: 700;
  color: var(--brass);
}
.faq-toc a:hover { color: var(--clay); text-decoration: underline; }

.faq-expand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  cursor: pointer;
}
.faq-expand:hover { text-decoration: underline; }

.faq-item {
  margin-bottom: 10px;
  background: var(--white);
  border-left: 3px solid transparent;
  box-shadow: 0 1px 2px rgba(19, 36, 27, 0.05), 0 8px 20px rgba(19, 36, 27, 0.05);
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.faq-item[open] {
  border-left-color: var(--clay);
  box-shadow: 0 2px 4px rgba(19, 36, 27, 0.07), 0 14px 30px rgba(19, 36, 27, 0.09);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}
/* Suppress the native disclosure triangle in both engines */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }

.faq-item summary h2 {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--pine-deep);
  text-wrap: pretty;
}
.faq-item[open] summary h2 { color: var(--clay-dark); }
.faq-item summary:hover h2 { color: var(--clay); }

/* Plus/minus built from two bars so it needs no icon font */
.faq-icon {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--brass);
  transform: translate(-50%, -50%);
  transition: transform 260ms var(--ease), opacity 200ms var(--ease);
}
.faq-icon::before { width: 16px; height: 2px; }
.faq-icon::after  { width: 2px; height: 16px; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-answer { padding: 0 24px 24px; }
.faq-answer p {
  margin: 0;
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink-soft);
}

.faq-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 46px;
  padding: 34px clamp(24px, 4vw, 40px);
  background: var(--pine);
  border-left: 3px solid var(--brass);
  color: var(--white);
}
.faq-cta h2 { margin: 0 0 6px; font-size: clamp(20px, 2.2vw, 26px); color: var(--white); }
.faq-cta p { margin: 0; font-size: 15.5px; color: rgba(255, 255, 255, 0.78); }
.faq-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.button-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

/* --- Info bar — replaces the centred "call today" strip ----------------- */

.info-bar { background: var(--pine-deep); color: var(--white); padding: 20px 0; }

.info-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.info-points { display: flex; flex-wrap: wrap; gap: 14px 34px; }
.info-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.9);
}
.info-points svg { flex: none; width: 17px; height: 17px; fill: var(--brass); }

.info-phone {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 24px;
  border-left: 3px solid var(--clay);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: background 200ms var(--ease);
}
.info-phone:hover { background: rgba(255, 255, 255, 0.11); }
.info-phone span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-light);
}
.info-phone strong { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }

/* --- Section heads ------------------------------------------------------ */

.section-head { max-width: 700px; margin: 0 0 clamp(38px, 4.5vw, 56px); }

.section-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
}
.section-eyebrow.light { color: var(--brass-light); }

.section-lede { margin: 12px 0 0; font-size: clamp(15.5px, 1.5vw, 17.5px); color: var(--ink-soft); }

/* --- Services ----------------------------------------------------------- */

.services { background: var(--bone); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-bottom: 3px solid var(--clay);
  overflow: hidden;
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(19, 36, 27, 0.14);
}

.service-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.service-card:hover .service-media img { transform: scale(1.05); }

.service-body { padding: 24px 24px 28px; }
.service-body h3 { color: var(--pine-deep); }
.service-body p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }

/* --- Approach ----------------------------------------------------------- */

.approach { background: var(--pine); color: var(--white); position: relative; }
.approach::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 15% 0%, rgba(60, 85, 72, 0.5), transparent 62%);
  pointer-events: none;
}

.approach-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}

.approach-copy h2 { color: var(--white); }
.approach-copy > p { color: rgba(255, 255, 255, 0.8); }

.approach-list { display: flex; flex-direction: column; gap: 18px; margin: 28px 0 32px; }
.approach-list li {
  padding-left: 20px;
  border-left: 2px solid var(--brass);
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}
.approach-list strong { display: block; color: var(--white); font-weight: 700; margin-bottom: 3px; }

.approach-media img { box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4); }
.approach-caption {
  margin: 15px 0 0;
  padding-left: 15px;
  border-left: 3px solid var(--clay);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

/* --- Work --------------------------------------------------------------- */

.work { background: var(--bone-alt); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, clamp(240px, 24vw, 310px));
  gap: 22px;
}

.work-item {
  position: relative;
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--pine-deep);
}
.work-tall { grid-row: span 2; }

/* Fill the figure whether its height comes from the grid row (desktop)
   or from aspect-ratio (mobile) */
.work-item picture { position: absolute; inset: 0; }
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.work-item:hover img { transform: scale(1.06); }

.work-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 46px 22px 20px;
  background: linear-gradient(to top, rgba(9, 19, 13, 0.95), rgba(9, 19, 13, 0));
  color: var(--white);
  font-size: 14.5px;
  line-height: 1.45;
  font-weight: 600;
}
.work-tag {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-light);
}

/* --- About -------------------------------------------------------------- */

.about { background: var(--bone); }

.about-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: clamp(32px, 5vw, 62px);
  align-items: start;
}

.about-media img {
  width: 100%;
  /* height:auto is required — the HTML height attribute otherwise wins over
     aspect-ratio and the portrait renders at full length */
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 22%;
  box-shadow: 0 18px 40px rgba(19, 36, 27, 0.24);
}
.about-credit {
  margin: 14px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--brass);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.about-copy h2 { color: var(--pine-deep); }
.about-copy p { color: var(--ink-soft); }

.about-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}
.about-creds li {
  flex: 1 1 150px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  color: var(--ink-soft);
}
.about-creds span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--clay);
}

.about-band { position: relative; margin: clamp(46px, 6vw, 74px) 0 0; overflow: hidden; }
.about-band img {
  width: 100%;
  height: clamp(280px, 40vw, 460px);
  object-fit: cover;
  object-position: center 62%;
}
.about-band figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 60px clamp(24px, 5vw, 56px) 28px;
  background: linear-gradient(to top, rgba(9, 19, 13, 0.9), rgba(9, 19, 13, 0));
  color: var(--white);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 600;
  text-align: center;
}

/* --- Testimonial -------------------------------------------------------- */

.testimonial-section { background: var(--slate-green); color: var(--white); }

.testimonial-feature {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.stars { margin-bottom: 16px; font-size: 19px; letter-spacing: 4px; color: var(--brass-light); }
.testimonial-feature p {
  font-size: clamp(19px, 2.3vw, 27px);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.testimonial-feature cite {
  font-size: 12.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* --- Contact ------------------------------------------------------------ */

.contact { background: var(--bone-alt); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 62px);
  align-items: start;
}
.contact-copy h2 { color: var(--pine-deep); }

.contact-details { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }
.contact-details li { display: flex; align-items: flex-start; gap: 14px; }
.contact-details svg { flex: none; width: 21px; height: 21px; margin-top: 2px; fill: var(--clay); }
.contact-details span { display: flex; flex-direction: column; gap: 2px; font-size: 15.5px; color: var(--ink-soft); }
.contact-details strong {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine-deep);
}
.contact-details a { color: var(--pine-deep); font-weight: 700; text-decoration: none; }
.contact-details a:hover { color: var(--clay); }

.contact-form {
  padding: clamp(26px, 3vw, 36px);
  background: var(--white);
  border-top: 3px solid var(--clay);
  box-shadow: 0 20px 46px rgba(19, 36, 27, 0.12);
}
.contact-form h3 { color: var(--pine-deep); margin-bottom: 22px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pine-deep);
}
.req { color: var(--clay); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: var(--bone);
  border: 1.5px solid var(--rule);
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  background: var(--white);
  border-color: var(--slate-green);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--clay); }

.error { margin: 0; font-size: 13px; font-weight: 600; color: var(--clay-dark); }
.error:empty { display: none; }

.form-submit { width: 100%; margin-top: 6px; }

.form-status { margin: 14px 0 0; padding: 12px 14px; font-size: 14.5px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { background: rgba(60, 85, 72, 0.14); color: var(--pine-deep); }
.form-status.is-error { background: rgba(180, 71, 46, 0.1); color: var(--clay-dark); }

.form-note { margin: 14px 0 0; font-size: 13px; color: var(--ink-soft); text-align: center; }

/* --- Footer ------------------------------------------------------------- */

.site-footer { background: var(--pine-deep); color: rgba(255, 255, 255, 0.74); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: clamp(46px, 6vw, 70px) 0;
}

.footer-brand img { width: 150px; height: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 14.5px; line-height: 1.6; max-width: 300px; }

.footer-nav h2, .footer-contact h2 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-light);
}
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contact a { font-size: 14.5px; text-decoration: none; transition: color 200ms var(--ease); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--brass-light); }
.footer-contact p { margin: 0 0 10px; font-size: 14.5px; }
.footer-cta { margin-top: 10px; min-height: 46px; padding: 12px 24px; font-size: 13px; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.13); padding: 22px 0; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer-bottom p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.58); }

/* --- Mobile call bar ---------------------------------------------------- */

.mobile-call {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: var(--clay);
  color: var(--white);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}
.mobile-call svg { width: 18px; height: 18px; fill: currentColor; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1040px) {
  .header-inner { width: min(94%, 980px); gap: 20px; }
  .primary-navigation { gap: 20px; }
  .primary-navigation a { font-size: 14px; }
  .brand-name { font-size: 26px; }
  /* letter-spacing stays at the base 0.49em so it scales with font-size and
     keeps the matching negative margin correct */
  .brand-tagline { font-size: 11px; }
  .brand-mark { width: 40px; }

  .approach-grid { grid-template-columns: 1fr; }
  .approach-media { max-width: 620px; }
  .about-grid { grid-template-columns: 270px 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

/* Drawer navigation breaks earlier than the rest of the mobile layout —
   the full nav plus the phone button crowds the brand well before 760px. */
@media (max-width: 900px) {
  .site-header { background: rgba(13, 24, 17, 0.95); }

  .menu-toggle { display: flex; }

  .primary-navigation {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 18px 24px 40px;
    background: var(--pine-deep);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 320ms var(--ease), visibility 320ms;
  }
  .primary-navigation.is-open { transform: translateX(0); visibility: visible; }

  .primary-navigation a {
    padding: 17px 0;
    font-size: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .primary-navigation a:not(.nav-phone)::after { display: none; }
  .nav-phone {
    justify-content: center;
    margin-top: 22px;
    padding: 16px 20px;
    border-bottom: 0 !important;
    font-size: 16px !important;
  }
}

@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: auto; }
  .work-item { grid-row: auto; height: auto; aspect-ratio: 4 / 3; }
  .work-tall { aspect-ratio: 3 / 4; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 290px; }

  .info-bar-inner { flex-direction: column; align-items: flex-start; }
  .info-phone { width: 100%; }
}

@media (max-width: 760px) {
  :root { --header-h: 76px; }

  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }

  .hero { min-height: 620px; padding: calc(var(--header-h) + 40px) 0 56px; }
  .hero-image img {
    object-position: 62% center;
    transform: scale(1.2);
    animation-name: heroPanNarrow;
  }
  .hero-scrim {
    background: linear-gradient(to bottom,
      rgba(9, 19, 13, 0.72), rgba(9, 19, 13, 0.62) 55%, rgba(9, 19, 13, 0.82));
  }
  .hero-content { padding-left: 18px; border-left-width: 3px; }
  .hero-badge { font-size: 10.5px; letter-spacing: 0.13em; }
  .hero-content h1 { font-size: 31px; }
  /* Sized so "Let's Find Yours" stays on one line */
  .script-accent { font-size: 42px; }
  .hero-description { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }

  .info-points { flex-direction: column; gap: 12px; }

  .service-grid { grid-template-columns: 1fr; gap: 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }

  .page-hero { min-height: 280px; padding: calc(var(--header-h) + 32px) 0 34px; }
  .page-hero-content { padding-left: 16px; }
  .faq-toc { padding: 20px 20px; }
  .faq-toc ol { grid-template-columns: 1fr; gap: 11px; }
  .faq-item summary { padding: 17px 18px; gap: 14px; }
  .faq-answer { padding: 0 18px 20px; }
  .faq-cta { flex-direction: column; align-items: flex-start; }
  .faq-cta-actions { width: 100%; flex-direction: column; }

  .about-creds { flex-direction: column; gap: 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom .wrap { flex-direction: column; text-align: center; align-items: center; }
  .footer-bottom { padding-bottom: 88px; }

  .mobile-call { display: flex; }
}

@media (max-width: 420px) {
  /* "SOLUTIONS" stays visible — the name is Viable Solutions, and "VIABLE"
     alone is not the company. It fits: the lockup measures well under the
     space left by the hamburger at 375px. */
  .brand-name { font-size: 21px; }
  .brand-tagline { font-size: 9.5px; }
  .brand-mark { width: 34px; }
  .brand { gap: 10px; }
  .brand-text { padding-left: 10px; }
  .info-phone strong { font-size: 19px; }
}

/* --- Print -------------------------------------------------------------- */

@media print {
  .site-header, .mobile-call, .contact-form { display: none; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
