/* =========================================================
   The Southern Syndicate, LLC — site styles
   Palette: deep pine / charcoal, warm cream, brass accent
   ========================================================= */
:root {
  --pine-900: #141c18;
  --pine-800: #1f2a24;
  --pine-700: #2c3b33;
  --cream-50: #fbf8f2;
  --cream-100: #f4ede0;
  --cream-200: #e8dcc6;
  --brass: #c9a45c;
  --brass-dark: #a8853f;
  --brick: #9c4f3a;
  --ink: #23201b;
  --muted: #6b645a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 28, 24, 0.12);
  --serif: "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brass-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .6em; color: var(--pine-800); }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.015em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; padding: .6rem 1rem;
  background: var(--brass); color: var(--pine-900); z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .78rem;
  font-weight: 600; color: var(--brass-dark); margin-bottom: .9rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600;
  text-decoration: none; font-size: .98rem; border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer; font-family: var(--sans);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brass); color: var(--pine-900); }
.btn-primary:hover { background: #d6b46f; }
.btn-ghost { border-color: rgba(244, 237, 224, .5); color: var(--cream-100); }
.btn-ghost:hover { border-color: var(--cream-100); background: rgba(244,237,224,.08); }
.btn-block { width: 100%; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(20, 28, 24, .92); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(201, 164, 92, .18);
}
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--cream-100); }
.brand picture { display: block; line-height: 0; }
.brand-logo { display: block; width: 360px; height: auto; }
.footer-logo { display: block; width: 320px; max-width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a { color: var(--cream-200); text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-nav a:hover { color: #fff; }
.site-nav a.nav-cta { background: var(--brass); color: var(--pine-900); padding: .5rem 1.1rem; border-radius: 999px; }
.site-nav a.nav-cta:hover { background: #d6b46f; }

.nav-toggle {
  display: none; background: none; border: 0; width: 44px; height: 44px;
  flex-direction: column; justify-content: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 24px; margin-inline: auto; background: var(--cream-100); transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--cream-100);
  background: var(--pine-900); padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 6rem);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1000px 500px at 85% 10%, rgba(201,164,92,.22), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(156,79,58,.25), transparent 60%),
    linear-gradient(160deg, #1f2a24 0%, #141c18 70%);
}
/* subtle roofline pattern drawn with SVG — no photo licensing needed */
.hero-bg::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120' viewBox='0 0 240 120'%3E%3Cg fill='none' stroke='%23c9a45c' stroke-width='2'%3E%3Cpath d='M0 120V70l40-30 40 30v50M80 120V55l50-40 50 40v65M180 120V80l30-22 30 22v40'/%3E%3Crect x='120' y='80' width='20' height='40'/%3E%3Crect x='30' y='85' width='20' height='16'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: bottom; background-size: 240px 120px;
}
/* hero with a real project photo (index page) */
.hero-bg.has-photo { background: var(--pine-900); }
.hero-bg.has-photo picture, .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { object-fit: cover; object-position: 50% 55%; }
.hero-bg.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(20,28,24,.94) 0%, rgba(20,28,24,.82) 38%, rgba(20,28,24,.45) 72%, rgba(20,28,24,.3) 100%),
    linear-gradient(0deg, rgba(20,28,24,.75) 0%, transparent 40%);
}
.hero-bg.has-photo::after { display: none; }
.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.hero h1 { color: var(--cream-50); }
.hero .eyebrow { color: var(--brass); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--cream-200); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 3rem; }
.hero-points {
  list-style: none; padding: 0; margin: 0; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(201,164,92,.25); border-radius: var(--radius); overflow: hidden;
}
.hero-points li { background: rgba(20,28,24,.88); padding: 1.2rem 1.3rem; display: flex; flex-direction: column; }
.hero-points strong { font-family: var(--serif); font-size: 1.2rem; color: var(--brass); }
.hero-points span { font-size: .92rem; color: var(--cream-200); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--cream-100); }
.section-dark { background: var(--pine-800); color: var(--cream-200); }
.section-dark h2 { color: var(--cream-50); }
.section-dark .eyebrow { color: var(--brass); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-lede { color: var(--muted); font-size: 1.08rem; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }

.values { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .7rem; }
.values li { display: flex; align-items: center; gap: .75rem; font-weight: 500; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brass); flex: none; box-shadow: 0 0 0 4px rgba(201,164,92,.2); }

/* ---------- Photos ---------- */
.photo-frame {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--cream-200); box-shadow: var(--shadow);
}
.photo-frame picture, .gallery-item picture, .ba-pair-item picture { position: absolute; inset: 0; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1.1rem .9rem;
  font-size: .88rem; font-weight: 500; color: var(--cream-50);
  background: linear-gradient(0deg, rgba(20,28,24,.82), transparent);
}
.photo-tall { aspect-ratio: 4 / 5; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.step {
  position: relative; background: var(--cream-50); border-radius: var(--radius);
  padding: 2rem 1.6rem; box-shadow: var(--shadow); border-top: 4px solid var(--brass);
}
.step-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--pine-800);
  display: grid; place-items: center; margin-bottom: 1.2rem;
}
.step-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--brass); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step-num { position: absolute; top: 1.4rem; right: 1.4rem; font-family: var(--serif); font-size: 1.6rem; color: var(--cream-200); font-weight: 700; }
.step p { color: var(--muted); font-size: .97rem; margin: 0; }

.cta-band {
  margin-top: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  background: var(--pine-800); color: var(--cream-200); border-radius: var(--radius);
  padding: 2rem 2.4rem;
  background-image: radial-gradient(600px 200px at 100% 0%, rgba(201,164,92,.25), transparent 70%);
}
.cta-band h3 { color: var(--cream-50); margin-bottom: .3rem; }
.cta-band p { margin: 0; }

/* ---------- Markets ---------- */
.markets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.market-card {
  border: 1px solid var(--cream-200); border-radius: var(--radius); padding: 1.8rem;
  background: #fff; transition: transform .2s ease, box-shadow .2s ease;
}
.market-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.market-card p { color: var(--muted); margin: 0; font-size: .97rem; }
.market-map {
  height: 90px; border-radius: 10px; margin-bottom: 1.2rem; color: var(--brass-dark);
  background: linear-gradient(160deg, var(--cream-100), var(--cream-200));
  display: grid; place-items: center;
}
.market-map svg { width: 70%; height: 80%; }
.market-map circle { fill: var(--brick); }

/* ---------- Before & After ---------- */
.section-work { background: var(--pine-800); background-image: radial-gradient(900px 400px at 100% 0%, rgba(201,164,92,.12), transparent 70%); }
.section-work .section-lede { color: var(--cream-200); }
.section-work .section-head { max-width: 1040px; margin-inline: auto; }
.section-work .section-head h2, .section-work .section-lede { max-width: 680px; }
.ba-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; max-width: 1040px; margin-inline: auto; }
.ba-wide { grid-column: 1 / -1; }
.ba-card { margin: 0; }
.ba-card figcaption { padding: 1.1rem .2rem 0; }
.ba-card h3 { color: var(--cream-50); font-size: 1.3rem; margin: 0 0 .3rem; }
.ba-card figcaption p { margin: 0; color: var(--cream-200); font-size: .97rem; max-width: 62ch; }

.ba-slider {
  --pos: 50%;
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--pine-900); box-shadow: 0 18px 40px rgba(0,0,0,.35);
  cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.ba-img, .ba-img picture { position: absolute; inset: 0; }
.ba-img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-label {
  position: absolute; top: .9rem; z-index: 3; pointer-events: none;
  padding: .3rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; line-height: 1.4;
}
.ba-label-before { left: .9rem; background: rgba(20,28,24,.82); color: var(--cream-50); border: 1px solid rgba(244,237,224,.25); }
.ba-label-after { right: .9rem; background: var(--brass); color: var(--pine-900); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 3px; margin-left: -1.5px;
  background: var(--cream-50); box-shadow: 0 0 0 1px rgba(20,28,24,.25), 0 0 12px rgba(0,0,0,.35); pointer-events: none;
}
.ba-knob {
  position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--brass); border: 3px solid var(--cream-50);
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.35);
  transition: transform .15s ease;
}
.ba-knob svg { width: 22px; height: 22px; fill: none; stroke: var(--pine-900); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ba-slider.is-dragging .ba-knob { transform: translate(-50%, -50%) scale(1.08); }
.ba-slider.has-focus .ba-knob { outline: 3px solid var(--cream-50); outline-offset: 3px; box-shadow: 0 0 0 7px rgba(201,164,92,.55); }
/* the range input is the keyboard / screen-reader control; pointer dragging is handled in JS */
.ba-range {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; margin: 0; padding: 0;
  opacity: 0; pointer-events: none; z-index: 0;
}
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ba-pair-item {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--pine-900); box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.ba-pair-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Finished-work gallery ---------- */
.gallery-head { max-width: 1040px; margin: 4rem auto 1.4rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.5rem; }
.gallery-head h3 { color: var(--cream-50); font-size: 1.6rem; margin: 0; }
.gallery-head p { margin: 0; color: var(--cream-200); }
.gallery {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto;
  gap: 1.25rem; max-width: 1040px; margin-inline: auto;
}
.gallery-item {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--pine-900); aspect-ratio: 4 / 3; box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.gallery-item.gallery-tall { grid-column: 2; grid-row: 1 / span 2; aspect-ratio: auto; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .8rem;
  font-size: .9rem; font-weight: 500; color: var(--cream-50);
  background: linear-gradient(0deg, rgba(20,28,24,.85), transparent);
}
@media (prefers-reduced-motion: reduce) { .gallery-item img, .ba-knob { transition: none; } }

/* ---------- Contact ---------- */
.contact-list { margin: 2rem 0 0; display: grid; gap: 1.2rem; }
.contact-list dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--brass); font-weight: 600; }
.contact-list dd { margin: .2rem 0 0; font-size: 1.1rem; color: var(--cream-50); }
.contact-list a { color: var(--cream-50); text-decoration-color: var(--brass); text-underline-offset: 4px; word-break: break-word; }

.contact-form {
  position: relative;
  background: var(--cream-50); color: var(--ink); border-radius: var(--radius);
  padding: 2rem; box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--pine-800); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #d8cdb8; border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(201,164,92,.25);
}
.field .invalid { border-color: var(--brick); }
.form-note { font-size: .85rem; color: var(--muted); margin: .9rem 0 0; text-align: center; }
.form-note.error { color: var(--brick); }
.form-note a { color: var(--brick); font-weight: 600; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.btn-outline { border-color: var(--pine-800); color: var(--pine-800); background: transparent; }
.btn-outline:hover { background: var(--pine-800); color: var(--cream-50); }
.spinner {
  width: 1em; height: 1em; margin-right: .55rem; border-radius: 50%;
  border: 2px solid rgba(20,28,24,.25); border-top-color: var(--pine-900);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* honeypot: off-screen, invisible to people and screen readers */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* success state (replaces the fields after a successful send) */
.form-success { text-align: center; padding: 2.2rem .5rem 1.4rem; outline: none; }
.form-success[hidden] { display: none; }
.form-success-icon {
  width: 72px; height: 72px; margin: 0 auto 1.3rem; border-radius: 50%;
  background: var(--pine-800); display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(201,164,92,.22);
  animation: pop .45s cubic-bezier(.2,1.4,.4,1) both;
}
.form-success-icon svg { width: 36px; height: 36px; fill: none; stroke: var(--brass); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { font-size: 1.8rem; margin-bottom: .4rem; }
.form-success p { color: var(--muted); max-width: 30ch; margin: 0 auto 1.6rem; font-size: 1.05rem; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .form-success-icon, .spinner { animation: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine-900); color: var(--cream-200); padding: 2.5rem 0; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.brand-footer { font-family: var(--serif); font-weight: 700; }
.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-nav a { color: var(--cream-200); text-decoration: none; }
.footer-nav a:hover { color: var(--brass); }
.legal { width: 100%; margin: 0; padding-top: 1.2rem; border-top: 1px solid rgba(244,237,224,.1); color: #9a9284; font-size: .85rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) and (min-width: 821px) {
  .brand-logo { width: 260px; }
  .site-nav { gap: 1.1rem; }
  .site-nav a { font-size: .9rem; }
}
@media (max-width: 960px) and (min-width: 821px) {
  .brand-logo { width: 220px; }
  .site-nav { gap: .9rem; }
  .site-nav a { font-size: .86rem; }
  .site-nav a.nav-cta { padding: .45rem .9rem; }
}
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .markets { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--pine-900); padding: .5rem 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(201,164,92,.2);
    transform: translateY(-120%); visibility: hidden; transition: transform .3s ease, visibility .3s;
  }
  .site-nav.open { transform: none; visibility: visible; }
  .site-nav a { padding: .9rem 0; border-bottom: 1px solid rgba(244,237,224,.08); font-size: 1.05rem; }
  .site-nav a.nav-cta { margin-top: 1rem; text-align: center; border-bottom: 0; padding: .8rem; }
  .split { grid-template-columns: 1fr; }
  .photo-tall { aspect-ratio: 4 / 3; }
  .photo-tall img { object-position: 50% 60%; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-logo { width: min(270px, calc(100vw - 6.5rem)); }
  .hero-points { grid-template-columns: 1fr; }
  .steps, .markets { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .ba-pair { gap: .75rem; }
  .ba-label { top: .6rem; font-size: .66rem; padding: .25rem .55rem; }
  .ba-label-before { left: .6rem; }
  .ba-label-after { right: .6rem; }
  .ba-knob { width: 42px; height: 42px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item.gallery-tall { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 5; }
  .gallery-head { margin-top: 3rem; }
  .contact-form { padding: 1.5rem; }
  .cta-band { padding: 1.6rem; }
}
