/* =============================================================================
   Sands Construction Group - launch styles (vanilla, portable).
   Earth-tone palette pulled from the logo + hero photos. Fonts are CSS vars so
   the client's final fonts can swap in one place.
   ============================================================================= */
:root {
  /* palette */
  --paper: #f7f2ea;
  --paper-2: #efe7d8;
  --paper-3: #e7dcc8;
  --ink: #221d18;
  --ink-soft: #544a40;
  --ink-mute: #8a7d6d;
  --brown: #bd6a2b;
  --brown-deep: #9c531e;
  --brown-tint: #f0dcc3;
  --pine: #2c3d30;
  --pine-deep: #1e2a21;
  --line: #e2d6c2;
  --line-strong: #cdbda2;
  --white: #fffdf9;

  /* fonts (swap when the client sends finals) */
  --font-display: "Proxima Nova", "proxima-nova", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Proxima Nova", "proxima-nova", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;

  /* scale */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.1rem);
  --step-4: clamp(2.4rem, 1.8rem + 3vw, 4.2rem);

  --wrap: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 5px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(34, 29, 24, 0.06), 0 14px 34px -18px rgba(34, 29, 24, 0.3);
  --shadow-lift: 0 2px 4px rgba(34, 29, 24, 0.08), 0 28px 54px -24px rgba(34, 29, 24, 0.45);
  --header-h: 84px;
  --header-h-shrink: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
/* <picture> is a block that fills its container so the inner <img> (width/height:100%)
   has a definite box. (display:contents here stops the img painting in some engines.) */
picture { display: block; width: 100%; height: 100%; }
:focus-visible { outline: 2.5px solid var(--brown-deep); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--brown); color: #fff; }

.skip {
  position: absolute; left: -999px; top: 0.5rem; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 0.6em 1em; border-radius: 4px;
}
.skip:focus { left: 0.5rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--brown-deep); font-weight: 500; margin: 0 0 0.6rem;
}

/* ---- buttons ---- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.9em 1.5em; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-weight: 700; font-size: var(--step-0);
  border: 2px solid var(--bg); border-radius: var(--radius); cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--primary { --bg: var(--brown); --fg: #fff; border-color: var(--brown); }
.btn--primary:hover { --bg: var(--brown-deep); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { padding: 1.05em 1.9em; font-size: var(--step-1); }

/* =============================================================================
   HEADER (sticky all widths; shrinks on desktop after scroll)
   ============================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.header-in {
  display: flex; align-items: center; gap: 1.2rem;
  height: var(--header-h); transition: height 0.25s var(--ease);
}
.is-scrolled .header-in { height: var(--header-h-shrink); }
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand img { height: 56px; width: auto; transition: height 0.25s var(--ease); }
.is-scrolled .brand img { height: 42px; }
.nav { display: flex; gap: 1.4rem; align-items: center; }
.nav a { font-weight: 600; color: var(--ink-soft); padding-block: 0.3em; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--brown); transition: width 0.22s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 0.9rem; }
.header-phone {
  display: inline-flex; align-items: center; gap: 0.45em; font-weight: 700; white-space: nowrap;
}
.header-phone .ico { color: var(--brown-deep); }
.header-phone:hover { color: var(--brown-deep); }
.header-burger { display: none; width: 44px; height: 44px; border: 1.5px solid var(--line-strong);
  border-radius: 6px; background: transparent; cursor: pointer; }

/* mobile header */
@media (max-width: 860px) {
  .nav, .header-phone { display: none; }
  .header-burger { display: grid; place-items: center; }
  .brand img { height: 46px; }
  .mobile-nav-open .nav {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    align-items: flex-start; gap: 0.2rem; background: var(--white);
    border-bottom: 1px solid var(--line-strong); padding: 0.6rem var(--gutter) 1rem;
  }
  .mobile-nav-open .nav a { width: 100%; padding: 0.7em 0; }
}

/* =============================================================================
   HERO CAROUSEL
   ============================================================================= */
.hero { position: relative; }
/* CLS (SCG-022): reserve above-the-fold height before JS injects content, so the
   header and hero don't collapse-then-expand. `:empty` stops matching the moment JS
   mounts children, so the reserved height falls away to the natural height with ~no shift. */
.site-header:empty { min-height: 64px; }
#hero:empty { min-height: calc(66.67vw + 232px); } /* mobile: 3:2 slide + text band */
@media (min-width: 768px) { #hero:empty { min-height: clamp(440px, 72vh, 760px); } }
.carousel { position: relative; }
.slides { position: relative; }
.slide {
  position: absolute; inset: 0; opacity: 0; z-index: 0; transition: opacity 0.9s ease;
}
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }

/* arrows + dots (kept clear of the bottom corners) */
.car-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(20, 24, 22, 0.5); color: #fff; font-size: 1.4rem; line-height: 1;
  display: grid; place-items: center; transition: background 0.2s ease;
}
.car-arrow:hover { background: rgba(20, 24, 22, 0.78); }
.car-prev { left: clamp(8px, 2vw, 20px); }
.car-next { right: clamp(8px, 2vw, 20px); }
.car-dots {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 4;
  display: flex; gap: 8px; justify-content: center;
}
.car-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: rgba(255, 255, 255, 0.5);
}
.car-dots button[aria-current="true"] { background: #fff; width: 26px; border-radius: 6px; }

/* desktop/tablet: text over the image, upper-middle, gradient from the TOP */
@media (min-width: 768px) {
  .slides { height: clamp(440px, 72vh, 760px); }
  .hero-copy {
    position: absolute; inset: 0; z-index: 3;
    display: flex; flex-direction: column; justify-content: flex-start;
    padding-top: clamp(3rem, 9vh, 7rem);
    pointer-events: none;
  }
  .hero-copy::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to bottom, rgba(16, 20, 18, 0.62) 0%, rgba(16, 20, 18, 0.28) 32%, rgba(16, 20, 18, 0) 55%);
  }
  .hero-copy .wrap { pointer-events: auto; }
  .hero-copy h1 { color: #fff; font-size: var(--step-4); max-width: 18ch; text-shadow: 0 2px 18px rgba(0,0,0,0.3); }
  .hero-copy p { color: #f3ede3; font-size: var(--step-1); max-width: 40ch; text-shadow: 0 1px 12px rgba(0,0,0,0.35); }
  .hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.4rem; }
  .hero-band { display: none; }
}

/* mobile: fixed 3:2 slide, text in a solid band below */
@media (max-width: 767px) {
  .slides { aspect-ratio: 3 / 2; }
  .hero-copy { display: none; }
  .car-dots { bottom: 10px; }
  .hero-band { background: var(--pine-deep); color: var(--paper); padding: 1.6rem 0 1.8rem; }
  .hero-band h1 { color: #fff; font-size: var(--step-3); }
  .hero-band p { color: #d9e0d4; font-size: var(--step-0); }
  .hero-band .hero-cta { display: grid; gap: 0.6rem; margin-top: 1rem; }
  .hero-band .btn { width: 100%; }
}

/* =============================================================================
   CREDENTIALS BAR
   ============================================================================= */
.credentials { background: var(--ink); }
.cred-in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1rem 1.6rem; padding-block: 1rem;
}
.cred {
  display: inline-flex; align-items: center; gap: 0.55em;
  color: #e9dfce; font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.03em;
}
.cred img { height: 40px; width: auto; object-fit: contain; }
/* Cert logos sit on uniform white chips (same height) so they read as a clean,
   intentional trust row instead of mismatched boxes. */
.cred--badge {
  background: #fff; border-radius: 8px; padding: 6px 14px; height: 54px;
  display: inline-flex; align-items: center; justify-content: center;
}
.cred--badge img { height: 40px; max-width: 168px; }
.cred--trex img { height: 46px; } /* vertical hexagon a touch taller to stay legible */
.cred .stars { color: #f0b23f; letter-spacing: 0.08em; }
.cred strong { color: #fff; font-family: var(--font-body); }
.cred--link:hover { color: #fff; }
.cred--link:hover strong { text-decoration: underline; }
.cred-divider { width: 1px; height: 26px; background: rgba(255,255,255,0.18); }

/* =============================================================================
   SERVICES
   ============================================================================= */
.sec-head { max-width: 52ch; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.sec-head h2 { font-size: var(--step-3); margin: 0 0 0.3em; }
.sec-head p { color: var(--ink-soft); margin: 0; font-size: var(--step-1); }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.svc-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.svc-card .thumb { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-3); }
.svc-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; transition: transform 1s var(--ease); }
.svc-card:hover .thumb img { transform: scale(1.05); }
.svc-card .body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.svc-card h3 { font-size: var(--step-1); margin: 0; }
.svc-card p { color: var(--ink-soft); margin: 0; flex: 1; }
.svc-card .more { color: var(--brown-deep); font-weight: 700; margin-top: 0.6rem; }
.trade {
  margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.trade h3 { font-size: var(--step-1); margin: 0 0 0.6rem; }
.trade ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; }
.trade li {
  font-family: var(--font-mono); font-size: var(--step--1); padding: 0.45em 1em;
  border: 1px solid var(--line-strong); border-radius: 100px; background: var(--white);
}

/* =============================================================================
   PROJECTS
   ============================================================================= */
.projects { background: var(--paper-2); }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.proj-card {
  text-align: left; border: 0; padding: 0; background: var(--white); cursor: pointer;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); font: inherit; color: inherit;
}
.proj-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.proj-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); position: relative; }
.proj-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.proj-card .count {
  position: absolute; right: 8px; bottom: 8px; background: rgba(20,24,22,0.72); color: #fff;
  font-family: var(--font-mono); font-size: 0.72rem; padding: 0.3em 0.6em; border-radius: 4px;
}
.proj-card .body { padding: 0.9rem 1.1rem 1.1rem; }
.proj-card h3 { font-size: var(--step-1); margin: 0 0 0.2rem; }
.proj-card .meta { color: var(--ink-mute); font-family: var(--font-mono); font-size: var(--step--1); }
.proj-card .tag {
  display: inline-block; margin-top: 0.5rem; font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--brown-deep); border: 1px solid var(--brown-tint); border-radius: 100px; padding: 0.2em 0.7em;
}
.proj-rev {
  display: block; margin-top: 0.6rem; font-family: var(--font-mono);
  font-size: var(--step--1); color: var(--brown-deep); letter-spacing: 0.02em;
}
.proj-more { margin-top: 1.6rem; text-align: center; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(12, 14, 13, 0.92);
  display: grid; grid-template-rows: auto 1fr auto; padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; color: #fff; }
.lb-title { font-family: var(--font-display); font-weight: 700; }
.lb-close { background: transparent; border: 0; color: #fff; font-size: 1.8rem; cursor: pointer; }
.lb-stage { display: grid; place-items: center; position: relative; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 72vh; object-fit: contain; background: #111; }
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px;
  border-radius: 50%; border: 0; background: rgba(255,255,255,0.14); color: #fff; font-size: 1.4rem; cursor: pointer;
}
.lb-prev { left: 4px; } .lb-next { right: 4px; }
.lb-dots { display: flex; gap: 6px; justify-content: center; padding-top: 0.6rem; }
.lb-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.4); cursor: pointer; }
.lb-dots button[aria-current="true"] { background: #fff; }

/* =============================================================================
   HOW IT WORKS
   ============================================================================= */
.how { background: var(--pine-deep); color: var(--paper); }
.how .sec-head h2 { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.step { display: flex; flex-direction: column; gap: 0.4rem; }
.step .n {
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-3);
  color: #e0a561; line-height: 1;
}
.step p { margin: 0; color: #d9e0d4; }

/* =============================================================================
   REVIEWS
   ============================================================================= */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.rev {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; display: flex; flex-direction: column; gap: 0.8rem; box-shadow: var(--shadow);
}
.rev .stars { color: var(--brown); letter-spacing: 0.1em; }
.rev blockquote { margin: 0; font-size: var(--step-0); line-height: 1.55; }
.rev .by { margin-top: auto; }
.rev .by strong { display: block; }
.rev .by a { font-family: var(--font-mono); font-size: var(--step--1); color: var(--brown-deep); }
.rev .by a:hover { text-decoration: underline; }

/* =============================================================================
   FINANCING
   ============================================================================= */
.financing { background: var(--brown); color: #fff; }
.fin-in { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 3rem); align-items: center; }
.fin-badge { background: #fff; border-radius: var(--radius-lg); padding: 10px 12px; }
.fin-badge img { height: 70px; width: auto; }
.financing h2 { color: #fff; font-size: var(--step-3); margin: 0 0 0.4em; }
.financing p { color: #fdeede; margin: 0 0 1rem; max-width: 60ch; }
.financing .btn--primary { --bg: var(--ink); --fg: #fff; border-color: var(--ink); }
.fin-disclosure { font-size: 0.78rem; color: #fbdcc0; margin: 0.8rem 0 0; max-width: 70ch; }

/* =============================================================================
   SERVICE AREA
   ============================================================================= */
.area-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 3rem); align-items: start; }
.area-map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 4/3; background: var(--paper-3); }
.area-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.counties { display: grid; gap: 1rem; }
.county h3 { font-size: var(--step-0); margin: 0 0 0.3rem; }
.county ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; margin: 0; padding: 0; }
.county li { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-soft); }
.county li::after { content: "·"; margin-left: 0.6rem; color: var(--line-strong); }
.county li:last-child::after { content: ""; }
.area-todo { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-mute); margin-top: 1rem; }

/* =============================================================================
   FAQ
   ============================================================================= */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 0.6rem; }
.faq-item { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); }
.faq-q {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer; font: inherit;
  font-weight: 700; padding: 1em 1.1em; display: flex; justify-content: space-between; align-items: center; gap: 1em;
}
.faq-q::after { content: "+"; color: var(--brown-deep); font-size: 1.3em; transition: transform 0.2s ease; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 1.1em; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; color: var(--ink-soft); }
.faq-item.open .faq-a { padding: 0 1.1em 1.1em; max-height: 400px; }

/* =============================================================================
   ESTIMATE FORM
   ============================================================================= */
.estimate { background: var(--paper-2); }
.est-in { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: start; }
.form { display: grid; gap: 1rem; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: var(--step--1); }
.field .opt { font-weight: 400; color: var(--ink-mute); }
input, select, textarea {
  font: inherit; font-size: var(--step-0); padding: 0.8em 0.9em; width: 100%;
  background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--radius); color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--brown); outline: none; }
textarea { resize: vertical; }
.field.invalid input, .field.invalid select { border-color: #b23a2e; }
.err { color: #b23a2e; font-size: var(--step--1); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.more { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); }
.more > summary { cursor: pointer; list-style: none; padding: 0.8em 1em; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: "+"; color: var(--brown-deep); font-size: 1.3em; transition: transform 0.2s ease; }
.more[open] > summary::after { transform: rotate(45deg); }
.more .more-in { display: grid; gap: 1rem; padding: 0 1em 1em; }
.consent {
  display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start;
  font-size: var(--step--1); color: var(--ink-soft); background: var(--white);
  padding: 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 400;
}
.consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; }
.reassure { text-align: center; font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-mute); margin: 0; }
.formnote { padding: 0.9em 1em; background: var(--brown-tint); border-radius: var(--radius); color: var(--brown-deep); font-weight: 700; margin: 0; }
.est-aside { background: var(--pine-deep); color: var(--paper); border-radius: var(--radius-lg); padding: 1.5rem; }
.est-aside h3 { color: #fff; margin: 0 0 0.6rem; }
.est-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.est-aside li { color: #d9e0d4; }

/* =============================================================================
   FOOTER
   ============================================================================= */
.site-footer { background: var(--pine-deep); color: var(--paper); padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.4fr; gap: 2rem; }
.foot-brand img { height: 64px; width: auto; background: #fff; border-radius: 8px; padding: 8px 10px; }
.foot-brand p { color: #c9b79a; margin: 0.8rem 0 0; }
.foot col, .foot-col { display: grid; }
.foot-col h4 { color: #fff; font-size: var(--step-0); margin: 0 0 0.6rem; }
.foot-col a, .foot-col span { color: #cbb79a; padding: 0.2em 0; }
.foot-col a:hover { color: #fff; }
.foot-social { display: flex; gap: 0.8rem; margin-top: 0.6rem; }
.foot-social a { font-family: var(--font-mono); font-size: var(--step--1); border: 1px solid rgba(255,255,255,0.2); border-radius: 100px; padding: 0.3em 0.9em; }
.foot-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.12); font-family: var(--font-mono); font-size: var(--step--1); color: #ab9a80; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; }

/* =============================================================================
   MOBILE BOTTOM BAR
   ============================================================================= */
.mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; grid-template-columns: 1fr 1fr; background: var(--pine-deep);
  border-top: 1px solid rgba(255,255,255,0.14);
}
.mobilebar a { padding: 1em; text-align: center; color: #fff; font-weight: 700; letter-spacing: 0.03em; }
.mobilebar a + a { background: var(--brown); }
.mobilebar[hidden] { display: none; }
@media (max-width: 767px) {
  .mobilebar:not([hidden]) { display: grid; }
  body { padding-bottom: 56px; }
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 960px) {
  .svc-grid, .proj-grid, .rev-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .fin-in, .area-in, .est-in { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .svc-grid, .proj-grid, .rev-grid, .steps, .form .two, .foot-grid { grid-template-columns: 1fr; }
  .cred-divider { display: none; }
}

/* reveal-on-scroll (progressive; content visible if JS/animation absent) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .svc-card:hover .thumb img, .svc-card:hover, .proj-card:hover { transform: none !important; }
}
