/* ===================================================
   SOLID DOORS & MOLDINGS — Global Stylesheet
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ─── Tokens ─────────────────────────────────────── */
:root {
  --cream:        oklch(97% 0.010 78);
  --cream-mid:    oklch(93% 0.012 78);
  --cream-dark:   oklch(88% 0.014 78);
  --charcoal:     oklch(14% 0.012 58);
  --charcoal-mid: oklch(38% 0.010 58);
  --charcoal-lt:  oklch(58% 0.008 58);
  --gold:         oklch(62% 0.130 68);
  --gold-dark:    oklch(50% 0.130 68);
  --gold-pale:    oklch(92% 0.040 78);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'DM Sans', system-ui, -apple-system, sans-serif;

  --nav-h:  72px;
  --radius: 2px;
  --max-w:  1280px;
  --gutter: clamp(24px, 5vw, 80px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── Typography ─────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
p  { font-size: clamp(0.95rem, 1.2vw, 1.05rem); color: var(--charcoal-mid); line-height: 1.75; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.65; color: var(--charcoal-mid); }
.label { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

/* ─── Layout ─────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-sm { padding: clamp(40px, 6vw, 72px) 0; }

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.04em; padding: 14px 28px;
  border-radius: var(--radius); transition: all 0.2s var(--ease-out);
  cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: var(--charcoal); color: var(--cream);
}
.btn-primary:hover { background: var(--gold); color: var(--charcoal); }
.btn-gold {
  background: var(--gold); color: var(--charcoal);
}
.btn-gold:hover { background: var(--gold-dark); color: var(--cream); }
.btn-outline {
  background: transparent; color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--cream); }
.btn-outline-light {
  background: transparent; color: var(--cream);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--cream); }
.btn-sm { font-size: 0.80rem; padding: 10px 20px; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── Divider / Rule ─────────────────────────────── */
.rule { width: 48px; height: 2px; background: var(--gold); margin-bottom: 20px; }
.rule-full { width: 100%; height: 1px; background: var(--cream-dark); }

/* ─── Image Placeholder ──────────────────────────── */
.img-ph {
  position: relative; overflow: hidden;
  background: var(--cream-mid);
}
.img-ph::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    rgba(0,0,0,0.03) 6px,
    rgba(0,0,0,0.03) 12px
  );
}
.img-ph-label {
  position: absolute; bottom: 16px; left: 16px;
  font-family: var(--sans); font-size: 0.72rem;
  font-weight: 500; letter-spacing: 0.06em;
  color: var(--charcoal-lt); text-transform: uppercase;
  background: rgba(255,255,255,0.8); padding: 4px 10px;
  border-radius: 2px;
}

/* ─── NAV ────────────────────────────────────────── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); display: flex; align-items: center;
  background: var(--charcoal); transition: all 0.3s var(--ease-out);
  border-bottom: 1px solid transparent;
}
#main-nav.scrolled {
  background: rgba(20,17,14,0.97); backdrop-filter: blur(12px);
  border-bottom-color: rgba(255,255,255,0.06);
  box-shadow: 0 4px 32px rgba(0,0,0,0.25);
}
.nav-inner {
  width: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 40px;
}
.nav-logo {
  display: flex; flex-direction: column; line-height: 1;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-main {
  font-family: var(--serif); font-size: 1.15rem;
  font-weight: 700; color: var(--cream); letter-spacing: 0.04em;
}
.nav-logo-sub {
  font-size: 0.60rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin-top: 2px;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1;
}
.nav-item { position: relative; }
.nav-btn {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.03em;
  color: rgba(255,255,255,0.80); padding: 8px 12px;
  border-radius: var(--radius); transition: all 0.15s;
  white-space: nowrap;
}
.nav-btn:hover, .nav-btn.active { color: var(--cream); }
.nav-btn svg { width: 11px; height: 11px; transition: transform 0.2s; }
.nav-item:hover .nav-btn svg { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 12px); left: -12px;
  background: var(--charcoal); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px; min-width: 220px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all 0.2s var(--ease-out);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  z-index: 100;
}
.nav-item:hover .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-inner { padding: 10px; }
.nav-dropdown-section { margin-bottom: 4px; }
.nav-dropdown-section-label {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
  padding: 8px 12px 4px;
}
.nav-dropdown a {
  display: block; font-size: 0.82rem; font-weight: 400;
  color: rgba(255,255,255,0.75); padding: 7px 12px;
  border-radius: 2px; transition: all 0.15s; white-space: nowrap;
}
.nav-dropdown a:hover { color: var(--cream); background: rgba(255,255,255,0.07); }
.nav-dropdown-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 6px 10px; }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-cta-contact {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.03em;
  color: rgba(255,255,255,0.70); padding: 7px 12px;
  border-radius: 2px; transition: color 0.15s;
}
.nav-cta-contact:hover { color: var(--cream); }
.nav-cta-quote {
  font-size: 0.80rem; font-weight: 600; letter-spacing: 0.04em;
  background: var(--gold); color: var(--charcoal);
  padding: 9px 20px; border-radius: 2px; transition: all 0.15s;
}
.nav-cta-quote:hover { background: var(--gold-dark); color: var(--cream); }
.nav-hamburger { display: none; color: var(--cream); }
.page-content { padding-top: var(--nav-h); }

/* ─── FOOTER ─────────────────────────────────────── */
#main-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.70);
  padding: clamp(48px, 8vw, 96px) 0 40px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter);
}
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px); margin-bottom: 64px;
}
.footer-brand-name {
  font-family: var(--serif); font-size: 1.3rem;
  font-weight: 700; color: var(--cream); margin-bottom: 12px;
}
.footer-brand-tagline {
  font-size: 0.88rem; line-height: 1.65;
  color: rgba(255,255,255,0.55); margin-bottom: 24px;
}
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.83rem; margin-bottom: 10px; color: rgba(255,255,255,0.60);
}
.footer-contact-item svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--gold); }
.footer-col-title {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 0.83rem; color: rgba(255,255,255,0.60);
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 0.78rem; color: rgba(255,255,255,0.35); transition: color 0.15s; }
.footer-legal a:hover { color: rgba(255,255,255,0.65); }

/* ─── Breadcrumb ─────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--charcoal-lt);
  padding: 14px 0; flex-wrap: wrap;
}
.breadcrumb a { transition: color 0.15s; }
.breadcrumb a:hover { color: var(--charcoal); }
.breadcrumb-sep { color: var(--charcoal-lt); opacity: 0.4; }

/* ─── Hero (shared) ──────────────────────────────── */
.hero { min-height: 92vh; display: flex; align-items: center; position: relative; }
.hero-dark { background: var(--charcoal); }
.hero-label { margin-bottom: 24px; }
.hero-headline { color: var(--charcoal); margin-bottom: 24px; }
.hero-dark .hero-headline { color: var(--cream); }
.hero-sub { max-width: 540px; margin-bottom: 36px; }
.hero-dark .hero-sub { color: rgba(255,255,255,0.60); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 92vh; gap: 0;
}
.hero-grid-left { display: flex; align-items: center; padding: clamp(40px,8vw,100px) var(--gutter) clamp(40px,8vw,100px) max(var(--gutter), calc((100vw - var(--max-w)) / 2 + var(--gutter))); }
.hero-grid-right { position: relative; overflow: hidden; }

/* ─── Section Intro ──────────────────────────────── */
.section-intro { max-width: 620px; margin-bottom: clamp(40px, 7vw, 72px); }
.section-intro-center { max-width: 620px; margin: 0 auto clamp(40px, 7vw, 72px); text-align: center; }
.section-intro-center .rule { margin-left: auto; margin-right: auto; }

/* ─── Card ───────────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.10);
}
.card-img { aspect-ratio: 4/3; }
.card-body { padding: 24px; }
.card-label { margin-bottom: 8px; }
.card-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.card-desc { font-size: 0.88rem; color: var(--charcoal-mid); line-height: 1.6; margin-bottom: 16px; }
.card-link {
  font-size: 0.80rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--gold-dark); display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.15s;
}
.card:hover .card-link { gap: 10px; }

/* ─── Grid Presets ───────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 48px); }

/* ─── Feature Strip ──────────────────────────────── */
.feature-strip {
  display: flex; gap: clamp(24px, 4vw, 60px);
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
  flex-wrap: wrap;
}
.feature-item { display: flex; align-items: flex-start; gap: 14px; flex: 1; min-width: 180px; }
.feature-icon {
  width: 38px; height: 38px; border-radius: 2px;
  background: var(--gold-pale); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--gold-dark);
}
.feature-icon svg { width: 18px; height: 18px; }
.feature-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.feature-title { font-size: 0.92rem; font-weight: 600; color: var(--charcoal); margin-bottom: 2px; }
.feature-desc { font-size: 0.82rem; color: var(--charcoal-lt); }

/* ─── CTA Banner ─────────────────────────────────── */
.cta-banner {
  background: var(--charcoal); padding: clamp(48px, 8vw, 96px) 0;
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(180,130,60,0.10) 0%, transparent 70%);
}
.cta-banner h2 { color: var(--cream); position: relative; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.55); max-width: 520px; margin: 0 auto 32px; position: relative; }
.cta-banner .btn-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; position: relative; }

/* ─── Stats Row ──────────────────────────────────── */
.stats-row {
  display: flex; gap: clamp(24px, 5vw, 80px);
  flex-wrap: wrap;
}
.stat-item { flex: 1; min-width: 120px; }
.stat-number {
  font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700; color: var(--charcoal); line-height: 1;
  margin-bottom: 6px;
}
.stat-number span { color: var(--gold); }
.stat-label { font-size: 0.80rem; color: var(--charcoal-lt); font-weight: 500; }

/* ─── Testimonial ────────────────────────────────── */
.testimonial-card {
  background: var(--cream-mid); padding: 36px;
  border-left: 3px solid var(--gold); border-radius: var(--radius);
}
.testimonial-quote { font-family: var(--serif); font-size: 1.1rem; font-style: italic; line-height: 1.65; color: var(--charcoal); margin-bottom: 20px; }
.testimonial-author { font-size: 0.82rem; font-weight: 600; color: var(--charcoal); }
.testimonial-role { font-size: 0.78rem; color: var(--charcoal-lt); }

/* ─── FAQ Accordion ──────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--cream-dark); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; font-family: var(--serif); font-size: 1.05rem;
  font-weight: 500; color: var(--charcoal); text-align: left; gap: 24px;
  transition: color 0.15s;
}
.faq-question:hover { color: var(--gold-dark); }
.faq-question.open { color: var(--gold-dark); }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--cream-dark);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all 0.2s;
}
.faq-question.open .faq-icon { background: var(--gold); border-color: var(--gold); color: white; transform: rotate(45deg); }
.faq-answer { display: none; padding-bottom: 20px; }
.faq-answer p { font-size: 0.92rem; }
.faq-answer.open { display: block; }

/* ─── Category Page Hero ─────────────────────────── */
.cat-hero {
  background: var(--charcoal); padding: clamp(72px, 10vw, 120px) 0 clamp(48px, 7vw, 80px);
}
.cat-hero-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center;
}
.cat-hero-headline { color: var(--cream); margin-bottom: 16px; }
.cat-hero-sub { color: rgba(255,255,255,0.55); margin-bottom: 32px; }
.cat-hero-img { aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; }

/* ─── Product Grid ───────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(16px, 2.5vw, 28px); }

/* ─── Spec Table ─────────────────────────────────── */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--cream-dark); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 14px 0; font-size: 0.88rem; }
.spec-table td:first-child { color: var(--charcoal-lt); width: 160px; }
.spec-table td:last-child { color: var(--charcoal); font-weight: 500; }

/* ─── Industry Hero ──────────────────────────────── */
.industry-hero {
  background: var(--charcoal); min-height: 60vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.industry-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(180,130,50,0.12) 0%, transparent 65%);
}
.industry-hero-inner {
  max-width: var(--max-w); margin: 0 auto; padding: clamp(60px, 10vw, 120px) var(--gutter);
  position: relative; max-width: 780px;
}
.industry-hero h1 { color: var(--cream); margin-bottom: 20px; }
.industry-hero .lead { color: rgba(255,255,255,0.60); max-width: 560px; margin-bottom: 36px; }

/* ─── Contact Form ───────────────────────────────── */
.form-group { margin-bottom: 22px; }
.form-label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--charcoal); margin-bottom: 8px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 13px 16px;
  font-family: var(--sans); font-size: 0.92rem; color: var(--charcoal);
  background: white; border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius); transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(180,130,50,0.10);
}
.form-textarea { resize: vertical; min-height: 130px; }

/* ─── Gallery Grid ───────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: 4px;
}
.gallery-item { overflow: hidden; cursor: pointer; }
.gallery-item:hover .img-ph::after { opacity: 1; }
.gallery-item .img-ph {
  width: 100%; height: 100%;
  transition: transform 0.4s var(--ease-out);
}
.gallery-item:hover .img-ph { transform: scale(1.04); }

/* ─── Utility ────────────────────────────────────── */
.text-center { text-align: center; }
.text-gold { color: var(--gold-dark); }
.bg-cream-mid { background: var(--cream-mid); }
.bg-charcoal { background: var(--charcoal); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.w-full { width: 100%; }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-grid-right { height: 50vw; max-height: 500px; }
  .hero-grid-left { padding: 72px var(--gutter); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cat-hero-inner { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-links, .nav-cta-contact, .nav-cta-quote { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { gap: 0; justify-content: space-between; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .stats-row { gap: 32px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
}
