/* CedarCraft Builds — Premium outdoor timber construction
   Colour palette: Natural Cedar Brown, Forest Green, Warm Ivory, Dark Charcoal */

:root {
  --cedar: #9a5b2e;
  --cedar-dark: #7a431d;
  --cedar-light: #c08a55;
  --forest: #2f4a36;
  --forest-deep: #233a2a;
  --ivory: #f7f2e9;
  --ivory-soft: #efe7d7;
  --charcoal: #262321;
  --charcoal-soft: #3a3633;
  --text: #2c2926;
  --text-muted: #6b635b;
  --white: #ffffff;
  --line: #e3dac8;
  --shadow-sm: 0 2px 10px rgba(38, 35, 33, 0.06);
  --shadow-md: 0 12px 34px rgba(38, 35, 33, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--ivory);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--cedar-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--cedar); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--charcoal); line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.4rem; }
p { margin-bottom: 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .76rem;
  font-weight: 600;
  color: var(--cedar);
  margin-bottom: 14px;
  display: inline-block;
}

.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.section.alt { background: var(--ivory-soft); }
.section.forest { background: var(--forest); color: var(--ivory); }
.section.forest h1, .section.forest h2, .section.forest h3 { color: var(--white); }
.section.forest .eyebrow { color: var(--cedar-light); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.18rem; color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .98rem;
  padding: 14px 30px;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .22s ease;
  text-align: center;
}
.btn-primary { background: var(--cedar); color: var(--white); }
.btn-primary:hover { background: var(--cedar-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--ivory); }
.btn-light { background: var(--ivory); color: var(--forest-deep); }
.btn-light:hover { background: var(--white); color: var(--forest-deep); transform: translateY(-2px); }
.btn-ghost { padding: 0; border: 0; color: var(--cedar-dark); font-weight: 600; }
.btn-ghost::after { content: " →"; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 233, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--charcoal); line-height: 1; }
.brand-tag { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { font-size: .94rem; font-weight: 500; color: var(--charcoal); }
.nav-links a.active, .nav-links a:hover { color: var(--cedar); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--charcoal); transition: .2s; }

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--ivory);
  padding: 100px 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(35,58,42,.82) 0%, rgba(38,35,33,.55) 55%, rgba(38,35,33,.25) 100%);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero .container { position: relative; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero p { font-size: 1.25rem; max-width: 56ch; margin: 22px 0 32px; color: rgba(247,242,233,.92); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero { background: var(--forest); color: var(--ivory); padding: 72px 0; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(247,242,233,.85); font-size: 1.15rem; max-width: 60ch; margin-top: 14px; }
.crumbs { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cedar-light); margin-bottom: 18px; }
.crumbs a { color: var(--cedar-light); }

/* Grid + cards */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); margin-bottom: 0; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--ivory-soft); color: var(--cedar);
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px;
}

/* Media card */
.media-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.media-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.media-card .body { padding: 24px; }
.media-card .body h3 { margin-bottom: 8px; }
.media-card .body p { color: var(--text-muted); margin-bottom: 0; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; }
.split.reverse .split-media { order: 2; }

/* Process steps */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 20px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.step .num {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  background: var(--forest); color: var(--ivory);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
}
.step h3 { margin-bottom: 4px; font-size: 1.2rem; }
.step p { margin-bottom: 0; color: var(--text-muted); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card.featured { border-color: var(--cedar); border-width: 2px; }
.price-card .tag { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cedar); font-weight: 700; margin-bottom: 12px; }
.price-card .amount { font-family: var(--serif); font-size: 2.8rem; color: var(--charcoal); line-height: 1; margin: 8px 0 4px; }
.price-card .amount small { font-size: .9rem; color: var(--text-muted); font-family: var(--sans); }
.price-card p.desc { color: var(--text-muted); flex-grow: 1; margin: 14px 0 22px; }

.notice { background: var(--ivory-soft); border-left: 4px solid var(--cedar); border-radius: 8px; padding: 20px 24px; color: var(--text); }

/* Feature list */
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--forest); font-weight: 700; background: var(--ivory-soft); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; }
.section.forest .ticks li::before { background: rgba(247,242,233,.15); color: var(--cedar-light); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .25s ease; }
.gallery img:hover { transform: scale(1.02); }

/* FAQ / accordion */
.faq { display: grid; gap: 14px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 22px 26px; font-size: 1.08rem; font-weight: 600; font-family: var(--serif); color: var(--charcoal); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .chev { transition: transform .25s ease; color: var(--cedar); flex: 0 0 auto; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 26px 22px; color: var(--text-muted); }
.faq-item.open .faq-a { max-height: 400px; }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .k { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); }
.contact-list .v { font-weight: 600; color: var(--charcoal); }
form .field { margin-bottom: 18px; }
form label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; color: var(--charcoal); }
form input, form select, form textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: 1rem; background: var(--white); color: var(--text);
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--cedar); }
form textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .9rem; color: var(--text-muted); margin-top: 10px; }
.form-success { display: none; background: #eaf3ec; border: 1px solid #cfe3d4; color: var(--forest-deep); padding: 16px 20px; border-radius: 10px; margin-bottom: 18px; }
.form-success.show { display: block; }

/* CTA band */
.cta-band { background: var(--cedar); color: var(--white); border-radius: var(--radius-lg); padding: 54px; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(247,242,233,.9); max-width: 56ch; margin: 12px auto 26px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .n { font-family: var(--serif); font-size: 2.6rem; color: var(--cedar); }
.section.forest .stat .n { color: var(--cedar-light); }
.stat .l { font-size: .92rem; color: var(--text-muted); }
.section.forest .stat .l { color: rgba(247,242,233,.8); }

/* Legal / prose */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.7rem; margin: 38px 0 14px; }
.prose h3 { font-size: 1.25rem; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { margin: 0 0 1rem 1.3rem; }
.prose li { margin-bottom: 8px; }
.prose .updated { color: var(--text-muted); font-size: .92rem; margin-bottom: 30px; }

/* Footer */
.site-footer { background: var(--charcoal); color: rgba(247,242,233,.78); padding: 64px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.site-footer h4 { color: var(--ivory); font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: rgba(247,242,233,.78); }
.site-footer a:hover { color: var(--cedar-light); }
.footer-links { list-style: none; display: grid; gap: 9px; }
.footer-brand .brand-name { color: var(--ivory); }
.footer-brand p { color: rgba(247,242,233,.62); max-width: 38ch; margin-top: 12px; }
.footer-bottom { border-top: 1px solid rgba(247,242,233,.14); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: rgba(247,242,233,.55); }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .code { font-family: var(--serif); font-size: 7rem; color: var(--cedar); line-height: 1; }

/* Cookie banner */
.cookie-banner { position: fixed; bottom: 18px; left: 18px; right: 18px; max-width: 560px; margin: 0 auto; background: var(--charcoal); color: var(--ivory); padding: 20px 22px; border-radius: var(--radius); box-shadow: var(--shadow-md); z-index: 80; display: none; }
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: .9rem; color: rgba(247,242,233,.85); margin-bottom: 14px; }
.cookie-banner .row { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 9px 20px; font-size: .88rem; }

/* Responsive */
@media (max-width: 920px) {
  .grid-3, .grid-4, .price-grid, .gallery, .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--ivory); flex-direction: column; align-items: flex-start;
    gap: 0; padding: 10px 24px 20px; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 12px 0 0; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4, .price-grid, .gallery, .stats { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  body { font-size: 16px; }
}
