/* ==========================================================================
   Summit Wood Products — Design System
   Modern / clean-industrial: charcoal + warm wood tones + off-white
   ========================================================================== */

:root {
  --charcoal: #20241f;
  --charcoal-soft: #343a30;
  --cream: #f6f3ec;
  --cream-dim: #ece7db;
  --wood: #a9764a;
  --wood-dark: #8a5f3a;
  --wood-light: #cf9f6e;
  --ink: #23261f;
  --line: #ddd6c6;
  --white: #ffffff;
  --success: #4a6741;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1180px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(32, 36, 31, 0.08);
  --shadow-md: 0 8px 24px rgba(32, 36, 31, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem); }
h2 { font-size: clamp(1.7rem, 2.4vw + 1rem, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wood-dark);
  margin-bottom: 0.9em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}
.section--tight { padding: 56px 0; }
.section--charcoal { background: var(--charcoal); color: var(--cream-dim); }
.section--charcoal h2, .section--charcoal h3 { color: var(--white); }
.section--dim { background: var(--cream-dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--wood); color: var(--white); }
.btn-primary:hover { background: var(--wood-dark); }
.btn-outline { background: transparent; border-color: var(--charcoal); color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--cream); }
.btn-outline-light { background: transparent; border-color: rgba(246,243,236,0.5); color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--charcoal); }
.btn-block { width: 100%; justify-content: center; }
.btn-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; border-color: var(--charcoal-soft); color: var(--charcoal-soft); }
.btn-disabled:hover { transform: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--charcoal);
}
.brand-mark {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wood-dark);
}
nav.main-nav { display: flex; align-items: center; gap: 32px; }
nav.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--wood-dark); border-color: var(--wood); }
.header-cta { display: flex; align-items: center; gap: 20px; }
.header-phone { font-weight: 600; font-size: 0.92rem; display: flex; align-items: center; gap: 6px; }
.nav-toggle { display: none; }
.nav-cta-mobile { display: none; }

@media (max-width: 880px) {
  nav.main-nav { position: fixed; inset: 64px 0 0 0; background: var(--cream); flex-direction: column; padding: 32px 24px; gap: 22px; transform: translateX(100%); transition: transform .25s ease; z-index: 90; }
  nav.main-nav.open { transform: translateX(0); }
  .header-phone span.txt { display: none; }
  .brand small { display: none; }
  .brand { font-size: 1.05rem; }
  .header-cta { gap: 12px; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; flex-shrink: 0;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--charcoal); border-radius: 2px; }
}

@media (max-width: 560px) {
  .header-inner { padding: 12px 16px; }
  .header-cta .btn-primary { display: none; }
  .brand-mark { width: 32px; height: 32px; font-size: 0.85rem; }
  .brand { font-size: 0.95rem; }
  .nav-cta-mobile { display: inline-flex; margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--charcoal) 0%, #2c3226 60%, var(--wood-dark) 130%);
  color: var(--cream);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 60px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 110px 24px 90px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero p.lead { font-size: 1.15rem; color: var(--cream-dim); max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--wood-light); }
.hero-stats div span { font-size: 0.82rem; color: var(--cream-dim); }

.hero-visual {
  position: relative;
  border-radius: 12px;
  min-height: 340px;
  background: repeating-linear-gradient(100deg, #7a5636, #7a5636 26px, #8a6440 26px, #8a6440 52px);
  box-shadow: var(--shadow-md);
  display: flex; align-items: flex-end;
  padding: 20px;
}
.hero-visual .tag {
  background: rgba(32,36,31,0.85);
  color: var(--cream);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.placeholder-note {
  font-size: 0.7rem;
  color: rgba(246,243,236,0.55);
  position: absolute; top: 16px; left: 16px;
  border: 1px dashed rgba(246,243,236,0.4);
  padding: 4px 8px; border-radius: 4px;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; }
}

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-media {
  height: 168px;
  background: linear-gradient(135deg, var(--wood-light), var(--wood-dark));
  background-size: cover;
  background-position: center;
  position: relative;
}
.card-media .placeholder-note { top: auto; bottom: 10px; left: 10px; }
.card-media.photo .placeholder-note { display: none; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body p { font-size: 0.92rem; color: var(--charcoal-soft); flex: 1; }
.card-links { display: flex; gap: 14px; font-size: 0.85rem; font-weight: 600; flex-wrap: wrap; }
.card-links a { color: var(--wood-dark); }
.card-links a:hover { text-decoration: underline; }

/* ---------- Values / Icons ---------- */
.value-item { display: flex; gap: 16px; align-items: flex-start; }
.value-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--cream-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.section--charcoal .value-icon { background: rgba(246,243,236,0.1); }

/* ---------- Quote band ---------- */
.quote-band {
  background: var(--wood);
  color: var(--white);
  border-radius: 12px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.quote-band h2 { color: var(--white); margin-bottom: 6px; }
.quote-band p { color: rgba(255,255,255,0.9); margin: 0; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--charcoal); }
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--wood);
  background: var(--white);
}
.form-note { font-size: 0.8rem; color: var(--charcoal-soft); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--cream-dim);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(246,243,236,0.12);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--wood-light); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: rgba(246,243,236,0.55); }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--cream-dim);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 40px;
}
.breadcrumb { font-size: 0.82rem; color: var(--charcoal-soft); margin-bottom: 10px; }
.breadcrumb a { color: var(--wood-dark); font-weight: 600; }

/* ---------- Product detail sections ---------- */
.product-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.product-block:last-child { border-bottom: none; }
.product-block:nth-child(even) { direction: rtl; }
.product-block:nth-child(even) > * { direction: ltr; }
.product-visual {
  border-radius: 10px;
  min-height: 300px;
  position: relative;
  box-shadow: var(--shadow-sm);
  background-size: cover;
  background-position: center;
}
.product-visual.photo .placeholder-note { display: none; }

/* ---------- Hero (photo variant) ---------- */
.hero-visual.photo { background-image: none; }
.hero-visual.photo .placeholder-note { display: none; }

/* ---------- Supplier strip ---------- */
.supplier-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
  padding: 32px 0;
}
.supplier-strip img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(15%);
  transition: opacity .2s ease;
}
.supplier-strip img:hover { opacity: 1; }
.supplier-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.supplier-card img { height: 48px; width: auto; max-width: 170px; object-fit: contain; }
.spec-list { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 8px; }
.spec-list li { font-size: 0.93rem; padding-left: 22px; position: relative; }
.spec-list li::before { content: "✓"; position: absolute; left: 0; color: var(--wood-dark); font-weight: 700; }
.product-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }

@media (max-width: 820px) {
  .product-block, .product-block:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.max-w-prose { max-width: 62ch; }
.mx-auto { margin-left: auto; margin-right: auto; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
