/* ==========================================================================
   Southern Vintage Siding Co. — site styles
   Palette drawn from the product itself: mill aluminum, white enamel,
   and the seafoam green that runs through the vintage trailers.
   ========================================================================== */

:root {
  /* light */
  --ground:       #E7EAE7;
  --surface:      #F7F8F6;
  --surface-sunk: #DCE0DC;
  --edge:         #C3C9C4;
  --edge-strong:  #9AA39C;
  --ink:          #182120;
  --ink-soft:     #4C5754;
  --ink-faint:    #78827E;
  --accent:       #14655C;
  --accent-deep:  #0C4A43;
  --accent-soft:  #DCEBE8;
  --signal:       #96601A;
  --signal-soft:  #F5E8D2;
  --mill-a:       #C9CFCB;
  --mill-b:       #EDEFEC;
  --shadow:       0 1px 2px rgba(24,33,32,.09), 0 8px 22px -14px rgba(24,33,32,.35);
  --shadow-lg:    0 2px 4px rgba(24,33,32,.08), 0 18px 44px -22px rgba(24,33,32,.45);
  --tape:         rgba(24,33,32,.07);

  --display: "Futura", "Jost", "Century Gothic", "Avenir Next", "Trebuchet MS", sans-serif;
  --body: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", ui-monospace, "Menlo", "Consolas", monospace;

  --pad: clamp(18px, 4vw, 32px);
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:       #121817;
    --surface:      #1A2221;
    --surface-sunk: #0D1312;
    --edge:         #2E3937;
    --edge-strong:  #495553;
    --ink:          #E6EBE8;
    --ink-soft:     #A8B3AF;
    --ink-faint:    #7B8783;
    --accent:       #5FBDB0;
    --accent-deep:  #8FD8CD;
    --accent-soft:  #17322E;
    --signal:       #D9A44F;
    --signal-soft:  #33260F;
    --mill-a:       #313B39;
    --mill-b:       #454F4D;
    --shadow:       0 1px 2px rgba(0,0,0,.5), 0 10px 26px -14px rgba(0,0,0,.8);
    --shadow-lg:    0 2px 6px rgba(0,0,0,.55), 0 20px 48px -22px rgba(0,0,0,.9);
    --tape:         rgba(230,235,232,.06);
  }
}

:root[data-theme="dark"] {
  --ground:       #121817;
  --surface:      #1A2221;
  --surface-sunk: #0D1312;
  --edge:         #2E3937;
  --edge-strong:  #495553;
  --ink:          #E6EBE8;
  --ink-soft:     #A8B3AF;
  --ink-faint:    #7B8783;
  --accent:       #5FBDB0;
  --accent-deep:  #8FD8CD;
  --accent-soft:  #17322E;
  --signal:       #D9A44F;
  --signal-soft:  #33260F;
  --mill-a:       #313B39;
  --mill-b:       #454F4D;
  --shadow:       0 1px 2px rgba(0,0,0,.5), 0 10px 26px -14px rgba(0,0,0,.8);
  --shadow-lg:    0 2px 6px rgba(0,0,0,.55), 0 20px 48px -22px rgba(0,0,0,.9);
  --tape:         rgba(230,235,232,.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- typography ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(32px, 5.6vw, 54px); line-height: 1.04; }
h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.12; }
h3 { font-size: clamp(18px, 2vw, 21px); line-height: 1.2; }

p { margin: 0; }

.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
}

.lede { font-size: clamp(16.5px, 1.9vw, 19px); color: var(--ink-soft); max-width: 62ch; }
.prose { color: var(--ink-soft); max-width: 68ch; display: flex; flex-direction: column; gap: 16px; }
.prose strong { color: var(--ink); }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--edge);
}
.head-in {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 66px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.06;
  margin-right: auto;
  flex: none;
}
.brand .b1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .01em;
}
.brand .b2 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink-faint);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14.5px;
  padding: 8px 11px;
  border-bottom: 2px solid transparent;
  transition: color .13s, border-color .13s;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.nav-cta {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  font-size: 11.5px;
  background: var(--accent);
  color: var(--surface) !important;
  padding: 11px 15px !important;
  border-bottom: 0 !important;
  white-space: nowrap;
  transition: filter .13s;
}
.nav-cta:hover { filter: brightness(1.12); }

.burger {
  display: none;
  background: transparent;
  border: 1px solid var(--edge-strong);
  color: var(--ink);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
  font-weight: 700;
  padding: 10px 13px;
  cursor: pointer;
}

@media (max-width: 780px) {
  .burger { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--edge);
    box-shadow: var(--shadow);
    padding: 8px var(--pad) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 2px; border-bottom: 1px solid var(--edge); font-size: 16px; }
  .nav a[aria-current="page"] { border-bottom-color: var(--edge); color: var(--accent); }
  .nav-cta { text-align: center; margin-top: 12px; padding: 14px !important; font-size: 12.5px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-weight: 700;
  font-size: 12.5px;
  padding: 15px 24px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: filter .14s, background .14s, color .14s;
}
.btn-primary { background: var(--accent); color: var(--surface); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--edge-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- sections ---------- */
.band { padding: clamp(48px, 8vw, 84px) 0; }
.band-tint { background: var(--surface); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.band-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 34px; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding: clamp(38px, 6vw, 74px) 0 clamp(44px, 7vw, 80px);
}
@media (max-width: 880px) { .hero { grid-template-columns: minmax(0,1fr); } }

.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.hero-sub { font-size: clamp(16.5px, 2vw, 19.5px); color: var(--ink-soft); max-width: 46ch; }
.hero-kicker {
  font-size: 14.5px;
  color: var(--ink-faint);
  border-left: 2px solid var(--accent);
  padding-left: 13px;
  max-width: 46ch;
}

.hero-shot {
  position: relative;
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--mill-b);
}
.hero-shot img {
  width: 100%;
  height: clamp(320px, 46vw, 520px);
  object-fit: cover;
  object-position: center 40%;
}
.hero-stamp {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--ink);
  color: var(--ground);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 10.5px;
  font-weight: 700;
  padding: 9px 14px;
}

/* ---------- industry cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--edge);
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: border-color .15s, transform .15s;
}
.band-tint .card { background: var(--ground); }
.card:hover { border-color: var(--edge-strong); }
.card h3 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  color: var(--accent);
}
.card p { color: var(--ink-soft); font-size: 15px; }
.card .rule { height: 2px; background: var(--ink); width: 26px; margin-bottom: 3px; }

/* ---------- pattern blocks ---------- */
.pat-block {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: start;
  padding: clamp(28px, 4vw, 40px) 0;
  border-top: 1px solid var(--edge);
}
.pat-block:first-of-type { border-top: 0; }
@media (max-width: 800px) { .pat-block { grid-template-columns: minmax(0,1fr); } }

.pat-shot {
  border: 1px solid var(--edge);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--mill-b);
  position: sticky;
  top: 90px;
}
@media (max-width: 800px) { .pat-shot { position: static; } }
.pat-shot img { width: 100%; height: clamp(180px, 24vw, 250px); object-fit: cover; }

.pat-copy { display: flex; flex-direction: column; gap: 16px; }
.pat-title {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: clamp(19px, 2.5vw, 25px);
  margin: 0;
}
.pat-copy > p { color: var(--ink-soft); }

.pat-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 20px;
  margin-top: 2px;
}
.speclist h4 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-faint);
  margin: 0 0 9px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--edge);
}
.speclist ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.speclist li {
  font-size: 14.5px;
  color: var(--ink-soft);
  padding-left: 15px;
  position: relative;
  line-height: 1.45;
}
.speclist li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 1.5px;
  background: var(--accent);
}

/* ---------- steps ---------- */
.steps { display: flex; flex-direction: column; }
.step-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--edge);
  align-items: start;
}
.step-item:last-child { border-bottom: 0; }
.step-item .num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--surface);
  background: var(--ink);
  width: 30px; height: 30px;
  display: grid; place-items: center;
}
.step-item h3 { margin-bottom: 5px; font-size: 17.5px; }
.step-item p { color: var(--ink-soft); font-size: 15px; }
.step-item ul { margin: 9px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.step-item ul li {
  font-size: 14.5px; color: var(--ink-soft);
  padding-left: 15px; position: relative;
}
.step-item ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 1.5px; background: var(--accent);
}

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.shot { border: 1px solid var(--edge); overflow: hidden; background: var(--mill-b); box-shadow: var(--shadow); }
.shot img { width: 100%; height: clamp(200px, 26vw, 290px); object-fit: cover; }
.shot figcaption {
  padding: 11px 14px;
  font-size: 13px;
  color: var(--ink-faint);
  background: var(--surface);
  border-top: 1px solid var(--edge);
}

/* ---------- callout ---------- */
.callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.callout h3 { font-size: 18px; }
.callout p { color: var(--ink-soft); font-size: 15px; }

/* ---------- footer ---------- */
.site-foot {
  background: var(--ink);
  color: var(--ground);
  padding: clamp(38px, 6vw, 58px) 0 26px;
  margin-top: clamp(48px, 8vw, 80px);
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.foot-grid h4 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 10.5px;
  font-weight: 700;
  opacity: .6;
  margin: 0 0 11px;
}
.foot-grid a { color: var(--ground); text-decoration: none; opacity: .82; }
.foot-grid a:hover { opacity: 1; text-decoration: underline; }
.foot-links { display: flex; flex-direction: column; gap: 7px; font-size: 14.5px; }
.foot-blurb { font-size: 14.5px; opacity: .74; max-width: 34ch; line-height: 1.55; }
.foot-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 9px;
}
.foot-base {
  padding-top: 20px;
  font-size: 12.5px;
  opacity: .55;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
}

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