/* ============================================================
   Ridgeway Garden Rooms — Global Stylesheet
   ============================================================ */

/* --- Tokens ------------------------------------------------ */
:root {
  --slate:       #2C3333;
  --slate-dark:  #1A1F1F;
  --cedar:       #8B6347;
  --cedar-light: #D4A87A;
  --sage:        #7A8C6E;
  --chalk:       #F5F0E8;
  --chalk-dark:  #EDE7DA;
  --stone:       #9E9890;
  --stone-light: #C8BFB0;
  --text:        #2C3333;
  --text-muted:  #6B6560;
  --border:      #DDD7CE;

  --ff-head: 'Fraunces', Georgia, serif;
  --ff-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(44,51,51,0.08);
  --shadow-md: 0 4px 16px rgba(44,51,51,0.10);
  --shadow-lg: 0 8px 32px rgba(44,51,51,0.12);

  --max-w: 1140px;
  --transition: 200ms ease;
}

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

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--ff-head); line-height: 1.2; color: var(--slate); }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { font-size: 1rem; color: var(--text-muted); line-height: 1.7; max-width: 65ch; }

/* --- Layout ------------------------------------------------ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-md);
  font-family: var(--ff-body); font-size: 1rem; font-weight: 600;
  transition: all var(--transition); cursor: pointer;
}
.btn-primary {
  background: var(--cedar); color: #fff;
  box-shadow: 0 2px 8px rgba(139,99,71,0.25);
}
.btn-primary:hover { background: #7a5540; box-shadow: 0 4px 12px rgba(139,99,71,0.35); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--slate);
  border: 1.5px solid var(--slate-dark);
}
.btn-outline:hover { background: var(--slate); color: var(--chalk); }
.btn-ghost {
  background: transparent; color: var(--cedar);
  padding: 0; font-weight: 500;
}
.btn-ghost:hover { color: #7a5540; }

/* --- NAV --------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--slate); color: #fff;
  border-bottom: 2px solid var(--cedar);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.nav-logo img { height: 40px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.3px; transition: color var(--transition);
}
.nav-links a:hover { color: #fff; }
.nav-links .dropdown { position: relative; }
.nav-links .dropdown-menu {
  display: none; position: absolute; top: calc(100% + 12px); left: 0;
  background: #fff; border-radius: var(--radius-md); padding: 8px 0;
  box-shadow: var(--shadow-lg); min-width: 220px;
  border-top: 2px solid var(--cedar);
}
.nav-links .dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 10px 20px; color: var(--slate) !important;
  font-size: 0.9rem; transition: background var(--transition);
}
.dropdown-menu a:hover { background: var(--chalk); }
.nav-cta { margin-left: 16px; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all var(--transition); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--slate); padding: 16px 24px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open .dropdown-menu {
    display: none; position: static; box-shadow: none;
    padding: 4px 0 4px 16px; border-top: none; min-width: unset;
  }
  .nav-links.open .dropdown.open .dropdown-menu { display: block; }
}

/* --- HERO -------------------------------------------------- */
.hero {
  background: var(--slate);
  min-height: 90vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('assets/images/exterior-cedar-dusk-doors-closed-HERO.png');
  background-size: cover; background-position: center;
  opacity: 0.25;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 680px; padding: 80px 0;
}
.hero h1 { color: var(--chalk); margin-bottom: 20px; }
.hero-sub {
  font-size: 1.15rem; color: rgba(245,240,232,0.8);
  margin-bottom: 36px; max-width: 55ch; line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-actions .btn-outline { border-color: rgba(245,240,232,0.5); color: var(--chalk); }
.hero-actions .btn-outline:hover { background: rgba(245,240,232,0.1); color: var(--chalk); }

/* --- TRUST BAR --------------------------------------------- */
.trust-bar {
  background: var(--chalk-dark); padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.trust-bar-inner {
  display: flex; gap: 0; align-items: stretch;
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.trust-item {
  flex: 1; text-align: center; padding: 0 24px;
  border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: none; }
.trust-item strong {
  display: block; font-family: var(--ff-head); font-size: 1.6rem;
  font-weight: 700; color: var(--slate);
}
.trust-item span { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; display: block; }
@media (max-width: 600px) {
  .trust-bar-inner { flex-direction: column; gap: 20px; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
  .trust-item:last-child { border-bottom: none; padding-bottom: 0; }
}

/* --- SECTION LABELS --------------------------------------- */
.section-label {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--cedar);
  margin-bottom: 12px;
}
.section-header { margin-bottom: 48px; }
.section-header p { margin-top: 12px; font-size: 1.05rem; }

/* --- PROBLEM ---------------------------------------------- */
.problem { background: #fff; }
.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.problem-text h2 { margin-bottom: 20px; }
.problem-text p { margin-bottom: 16px; }
.problem-text p:last-child { margin-bottom: 0; }
.problem-image img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
}
@media (max-width: 768px) { .problem-grid { grid-template-columns: 1fr; } .problem-image { order: -1; } }

/* --- PRODUCTS --------------------------------------------- */
.products { background: var(--chalk); }
.products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.product-card {
  background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-card-img { aspect-ratio: 16/9; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-body { padding: 28px; }
.product-card-body h3 { margin-bottom: 6px; }
.product-card-meta { font-size: 0.85rem; color: var(--stone); margin-bottom: 16px; }
.product-card-desc { font-size: 0.95rem; margin-bottom: 20px; }
.product-card-price { font-family: var(--ff-head); font-size: 1.5rem; font-weight: 700; color: var(--slate); margin-bottom: 4px; }
.product-card-price span { font-size: 0.9rem; font-weight: 400; font-family: var(--ff-body); color: var(--text-muted); }
.product-card-footer { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
@media (max-width: 768px) { .products-grid { grid-template-columns: 1fr; } }

/* Cladding pills */
.cladding-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.cladding-pill {
  padding: 8px 16px; border-radius: 99px;
  font-size: 0.85rem; font-weight: 500;
  border: 1px solid var(--border); background: #fff;
  color: var(--text-muted);
}
.cladding-swatch {
  display: inline-block; width: 12px; height: 12px;
  border-radius: 50%; margin-right: 6px; vertical-align: middle;
}

/* --- HOW IT WORKS ----------------------------------------- */
.how { background: var(--slate); color: var(--chalk); }
.how h2 { color: var(--chalk); margin-bottom: 8px; }
.how .section-label { color: var(--cedar-light); }
.how-steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  position: relative; margin-top: 48px;
}
.how-steps::before {
  content: ''; position: absolute; top: 28px; left: 10%; right: 10%;
  height: 2px; background: linear-gradient(to right, var(--cedar), var(--cedar-light));
  z-index: 0;
}
.how-step { text-align: center; position: relative; z-index: 1; padding: 0 12px; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--cedar); color: #fff;
  font-family: var(--ff-head); font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.how-step h4 { color: var(--chalk); font-size: 0.95rem; margin-bottom: 8px; }
.how-step p { color: rgba(245,240,232,0.65); font-size: 0.82rem; max-width: none; }
@media (max-width: 900px) {
  .how-steps { grid-template-columns: 1fr 1fr; gap: 32px; }
  .how-steps::before { display: none; }
}
@media (max-width: 480px) { .how-steps { grid-template-columns: 1fr; } }

/* --- USPs -------------------------------------------------- */
.usps { background: #fff; }
.usps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.usp-card {
  padding: 32px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--chalk);
}
.usp-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--cedar); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.usp-icon svg { width: 22px; height: 22px; color: #fff; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.usp-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.usp-card p { font-size: 0.92rem; }
.usps-secondary {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px;
}
.usp-minor {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 16px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: #fff; font-size: 0.88rem;
}
.usp-minor-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cedar); flex-shrink: 0; margin-top: 5px; }
@media (max-width: 900px) { .usps-grid { grid-template-columns: 1fr 1fr; } .usps-secondary { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .usps-grid { grid-template-columns: 1fr; } .usps-secondary { grid-template-columns: 1fr; } }

/* --- PRICING ANCHOR --------------------------------------- */
.pricing-anchor { background: var(--chalk-dark); }
.pricing-intro { max-width: 640px; margin-bottom: 40px; }
.pricing-intro p { margin-top: 12px; }
.price-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.price-table th {
  background: var(--slate); color: var(--chalk);
  padding: 14px 20px; text-align: left; font-size: 0.85rem;
  font-weight: 600; letter-spacing: 0.5px;
}
.price-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--chalk); }
.price-strong { font-family: var(--ff-head); font-weight: 700; font-size: 1.1rem; color: var(--slate); }
.market-note {
  margin-top: 20px; padding: 16px 20px;
  background: #fff; border-left: 3px solid var(--cedar);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.9rem; color: var(--text-muted);
}
.market-note strong { color: var(--slate); }
@media (max-width: 600px) {
  .price-table th, .price-table td { padding: 10px 14px; font-size: 0.85rem; }
}
/* Mobile table overflow */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 600px) {
  .price-table { min-width: 480px; }
  .price-table th, .price-table td { padding: 10px 12px; font-size: 0.82rem; white-space: nowrap; }
}

/* --- FAQ -------------------------------------------------- */
.faq { background: #fff; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.faq-item {
  padding: 24px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--chalk);
}
.faq-item h4 { margin-bottom: 8px; font-size: 1rem; }
.faq-item p { font-size: 0.9rem; max-width: none; }
@media (max-width: 768px) { .faq-grid { grid-template-columns: 1fr; } }

/* --- FINAL CTA -------------------------------------------- */
.final-cta {
  background: var(--cedar);
  text-align: center; padding: 80px 0;
}
.final-cta h2 { color: #fff; margin-bottom: 12px; }
.final-cta p { color: rgba(255,255,255,0.8); margin: 0 auto 32px; font-size: 1.05rem; }
.final-cta .btn-primary { background: var(--slate); }
.final-cta .btn-primary:hover { background: var(--slate-dark); }
.final-cta .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.final-cta .btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* --- FOOTER ----------------------------------------------- */
footer {
  background: var(--slate-dark); color: rgba(245,240,232,0.7);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; max-width: 28ch; }
.footer-col h5 {
  color: var(--chalk); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 0.88rem; margin-bottom: 8px;
  color: rgba(245,240,232,0.6); transition: color var(--transition);
}
.footer-col a:hover { color: var(--chalk); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(245,240,232,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem;
}
.footer-bottom a { color: rgba(245,240,232,0.4); margin-left: 20px; }
.footer-bottom a:hover { color: rgba(245,240,232,0.7); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; gap: 12px; text-align: center; } }
