/* Leslie Structural Sales — site styles (mobile-first) */

:root {
  --navy: #1f2b5c;
  --navy-deep: #141c3d;
  --blue: #3d5aa8;
  --sky: #99ccff;
  --wood: #a8601f;
  --wood-dark: #864b15;
  --wood-light: #f3e6d6;
  --paper: #faf8f4;
  --surface: #ffffff;
  --ink: #1d2030;
  --muted: #5b6072;
  --line: #e4e0d8;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 28, 61, .06), 0 6px 20px rgba(20, 28, 61, .07);
  --max: 1160px;
  --gutter: 20px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--wood-dark); }

h1, h2, h3 { line-height: 1.2; color: var(--navy-deep); margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible { outline: 3px solid var(--wood); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-deep); }
.brand svg { width: 44px; height: 28px; flex: none; }
.brand-name { font-weight: 800; font-size: 1.05rem; line-height: 1.1; letter-spacing: .01em; }
.brand-name small { display: block; font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wood); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.site-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 16px; }
.site-nav a {
  display: block; padding: 12px 4px; text-decoration: none;
  color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line);
}
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a[aria-current="page"] { color: var(--wood); }
.site-nav .nav-cta { margin-top: 10px; text-align: center; border-radius: 8px; background: var(--wood); color: #fff; border: 0; }

/* No-JS fallback: show the nav stacked */
.no-js .nav-toggle { display: none; }
.no-js .site-nav { display: block; width: 100%; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; box-shadow: none; border: 0; }
  .site-nav ul { display: flex; align-items: center; gap: 6px; padding: 0; }
  .site-nav a { border: 0; padding: 8px 12px; border-radius: 6px; }
  .site-nav a:hover { background: var(--paper); color: var(--navy); }
  .site-nav a[aria-current="page"] { color: var(--wood); }
  .site-nav .nav-cta { margin: 0 0 0 8px; padding: 9px 18px; }
  .site-nav .nav-cta:hover { background: var(--wood-dark); color: #fff; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 8px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--wood); color: #fff; }
.btn-primary:hover { background: var(--wood-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, #2c3d7d);
  color: #e8ecf8; padding: 48px 0 56px;
}
.hero .container { display: grid; gap: 32px; align-items: center; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--sky); }
.hero p { font-size: 1.12rem; max-width: 60ch; }
.hero-media img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.35); width: 100%; max-width: 488px; margin: 0 auto; }
@media (min-width: 860px) {
  .hero { padding: 72px 0 80px; }
  .hero .container { grid-template-columns: 1.15fr 1fr; gap: 48px; }
}

.eyebrow {
  display: block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--wood); margin-bottom: 10px;
}

/* ---------- Page header (inner pages) ---------- */
.page-header { background: var(--navy); color: #dfe5f5; padding: 36px 0 40px; }
.page-header h1 { color: #fff; margin-bottom: .3em; }
.page-header p { margin: 0; max-width: 70ch; font-size: 1.08rem; }
.page-header .eyebrow { color: var(--sky); }
.breadcrumb { font-size: .9rem; margin-bottom: 14px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumb a { color: var(--sky); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }
.breadcrumb [aria-current] { color: #c7d0ea; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 70ch; margin-bottom: 28px; }
.section-head p { color: var(--muted); }

/* ---------- Product cards ---------- */
.card-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20,28,61,.08), 0 14px 32px rgba(20,28,61,.12); color: inherit; }
.card-media { aspect-ratio: 4 / 3; background: var(--wood-light); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .35em; color: var(--navy-deep); }
.card-body p { color: var(--muted); font-size: .98rem; margin-bottom: 14px; }
.card-link { margin-top: auto; font-weight: 700; color: var(--wood); }
.card:hover .card-link { color: var(--wood-dark); }

/* ---------- Split layout ---------- */
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .split-reverse > :first-child { order: 2; }
}
.split figure img, .rounded { border-radius: var(--radius); box-shadow: var(--shadow); }

.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li {
  background: var(--wood-light); color: var(--wood-dark); font-weight: 700;
  padding: 8px 16px; border-radius: 999px;
}

/* ---------- Product page layout ---------- */
.product-layout { display: grid; gap: 36px; }
@media (min-width: 960px) {
  .product-layout { grid-template-columns: 250px 1fr; gap: 48px; align-items: start; }
}

.product-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.product-nav h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 4px 8px 10px; }
.product-nav ul { list-style: none; margin: 0; padding: 0; }
.product-nav a {
  display: block; padding: 9px 10px; border-radius: 6px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: .97rem;
}
.product-nav a:hover { background: var(--paper); color: var(--navy); }
.product-nav a[aria-current="page"] { background: var(--wood-light); color: var(--wood-dark); }
@media (max-width: 959px) {
  .product-nav { order: 2; }
}
@media (min-width: 960px) { .product-nav { position: sticky; top: 88px; } }

.prose { max-width: 72ch; }
.prose .lead { font-size: 1.15rem; color: var(--ink); }

.feature-figure { margin: 0 0 28px; }
.feature-figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 10px; }
@media (min-width: 700px) { .check-list.two-col { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--wood-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23864b15'%3E%3Cpath d='M8.1 13.6 4.6 10l-1.2 1.2 4.7 4.7 9.4-9.4-1.2-1.2z'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 28px; }
.panel h2 { font-size: 1.3rem; }

.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin: 0 0 28px; padding: 0; list-style: none; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--wood); color: #fff; padding: 44px 0; }
.cta-band .container { display: flex; flex-direction: column; gap: 18px; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 0; color: #fbeee0; }
.cta-band .btn { background: #fff; color: var(--wood-dark); align-self: flex-start; }
.cta-band .btn:hover { background: var(--navy-deep); color: #fff; }
@media (min-width: 860px) {
  .cta-band .container { flex-direction: row; align-items: center; justify-content: space-between; }
  .cta-band .btn { align-self: center; flex: none; }
}

/* ---------- Membership ---------- */
.membership { display: flex; gap: 18px; align-items: center; }
.membership img { width: 84px; height: 84px; flex: none; }
.membership p { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.25fr; gap: 48px; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .icon {
  flex: none; width: 42px; height: 42px; border-radius: 10px;
  background: var(--wood-light); color: var(--wood-dark);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-weight: 600; word-break: break-word; }

.placeholder {
  background: #fff6cc; border: 1px dashed #d4a800; border-radius: 4px;
  padding: 0 6px; color: #6b5300; font-weight: 600;
}

.form { display: grid; gap: 16px; }
@media (min-width: 600px) { .form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .req { color: var(--wood); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid #cfcabf; border-radius: 8px; background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61, 90, 168, .2); }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }
.form-status { padding: 12px 14px; border-radius: 8px; background: #fff6cc; color: #6b5300; display: none; }
.form-status.is-visible { display: block; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9c1dc; padding: 48px 0 24px; font-size: .95rem; }
.site-footer a { color: #e3e8f7; text-decoration: none; }
.site-footer a:hover { color: var(--sky); text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand-name small { color: #e0a96a; }
.site-footer .placeholder { background: rgba(255, 246, 204, .12); border-color: rgba(212, 168, 0, .6); color: #ffe48a; }
.footer-bottom {
  margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .85rem;
}

/* ---------- Misc ---------- */
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.sitemap-list { line-height: 2; }
.sitemap-list ul { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .product-nav, .nav-toggle { display: none !important; }
  .page-header, .hero { background: none; color: #000; }
  .page-header h1, .hero h1 { color: #000; }
}
