@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@200;400;600;700;800&display=swap');

:root {
  --bg: #f5ecd7;
  --bg-soft: #faf6ee;
  --card: #ffffff;
  --primary: #3d1f0f;
  --primary-foreground: #f5ecd7;
  --secondary: #7a4a28;
  --accent: #c49a45;
  --muted: #ede2c8;
  --muted-foreground: #8B5E3C;
  --border: #d4a96a55;
  --destructive: #b54a2a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Brand asymmetric corner */
.wood-shape { border-radius: 0 1rem 0 1rem; overflow: hidden; }
.wood-shape-lg { border-radius: 0 2rem 0 2rem; overflow: hidden; }
.wood-border { border: 1px solid var(--border); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }

/* ============ Navbar ============ */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,236,215,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.25rem; max-width: 1180px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 32px; width: auto; border-radius: 0 8px 0 8px; }
.brand-name { font-family: 'Outfit', sans-serif; font-size: 1.25rem; color: var(--primary); letter-spacing: -0.01em; }
.brand-name .light { font-weight: 200; }
.brand-name .black { font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { font-size: 0.95rem; color: var(--primary); font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--secondary); }
.nav-links a.active { border-bottom: 2px solid var(--secondary); padding-bottom: 2px; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 0 0.75rem 0 0.75rem;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.btn:hover { background: var(--secondary); border-color: var(--secondary); }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--primary-foreground); }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn-accent { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-accent:hover { background: var(--accent); color: var(--primary); }

/* ============ Hero ============ */
.hero { border-bottom: 1px solid var(--border); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 520px;
  align-items: stretch;
}
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 4rem 4rem 4rem 0; }
.eyebrow { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem; }
.eyebrow .line { display:block; height:1px; width: 2rem; background: var(--accent); }
.eyebrow span:last-child { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--secondary); font-weight: 700; }
.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--primary);
}
.hero h1 .l1 { font-weight: 700; }
.hero h1 .l2 { font-weight: 200; color: var(--secondary); display: block; }
.hero p { color: var(--muted-foreground); max-width: 28rem; margin-bottom: 2.5rem; font-size: 1rem; }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-img { position: relative; padding: 2rem 0; }
.hero-img .frame { position: relative; height: 100%; min-height: 420px; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 1rem 0 1rem; }

/* ============ Sections ============ */
.section { padding: 5rem 0; }
.section-muted { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: var(--primary); color: var(--primary-foreground); position: relative; overflow: hidden; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--primary-foreground); }
.section-title { font-family: 'Lora', Georgia, serif; font-size: clamp(1.75rem,3vw,2.5rem); font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.section-sub { color: var(--muted-foreground); max-width: 36rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; text-align: center; }
.feature { padding: 2rem; background: var(--card); border: 1px solid var(--border); border-radius: 0 1rem 0 1rem; }
.feature .icon { width: 56px; height: 56px; background: var(--muted); border-radius: 0 0.75rem 0 0.75rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.5rem; color: var(--secondary); }
.feature h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--primary); }
.feature p { color: var(--muted-foreground); font-size: 0.95rem; }

/* ============ Product cards ============ */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.product-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 0 1rem 0 1rem; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(61,31,15,0.12); }
.product-card .pimg { aspect-ratio: 4/3; background: var(--muted); }
.product-card .pimg img { width: 100%; height: 100%; object-fit: cover; }
.product-card .pbody { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.product-card .ptag { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 0.5rem; }
.product-card h3 { font-family: 'Lora', Georgia, serif; font-size: 1.25rem; color: var(--primary); margin-bottom: 0.5rem; }
.product-card .pdesc { color: var(--muted-foreground); font-size: 0.92rem; flex: 1; margin-bottom: 1rem; }
.product-card .pfoot { display: flex; align-items: center; justify-content: space-between; }
.product-card .pprice { font-weight: 700; color: var(--primary); }
.product-card .pprice small { color: var(--muted-foreground); font-weight: 400; }

/* ============ Materials Showcase (dark) ============ */
.materials-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.materials-row p.lead { color: rgba(245,236,215,0.85); font-size: 1.05rem; margin: 1.25rem 0 2rem; }
.wood-list { display: flex; flex-direction: column; gap: 1.5rem; }
.wood-item { display: flex; gap: 1rem; }
.wood-item .num { width: 48px; height: 48px; background: rgba(255,255,255,0.08); border-radius: 0 0.75rem 0 0.75rem; display: flex; align-items: center; justify-content: center; font-family: 'Lora', serif; color: var(--accent); font-weight: 700; font-size: 1.25rem; flex-shrink: 0; }
.wood-item h4 { color: var(--accent); font-size: 1.1rem; margin-bottom: 0.25rem; }
.wood-item p { color: rgba(245,236,215,0.7); font-size: 0.95rem; }
.materials-img img { border-radius: 1.5rem 0 1.5rem 0; box-shadow: 0 20px 50px rgba(0,0,0,0.4); }

/* ============ Forms ============ */
.form-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 3rem; }
.form-aside { background: var(--card); border: 1px solid var(--border); padding: 2rem; border-radius: 0 1rem 0 1rem; height: fit-content; position: sticky; top: 100px; }
.form-aside h3 { font-family: 'Lora', serif; color: var(--primary); margin-bottom: 1rem; font-size: 1.2rem; }
.form-aside p, .form-aside li { color: var(--muted-foreground); font-size: 0.92rem; }
.form-aside img { border-radius: 0 0.75rem 0 0.75rem; margin: 1rem 0 1.5rem; border: 1px solid var(--border); }
.form-aside ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.form-aside li { display: flex; gap: 0.75rem; color: var(--primary); }
.form-aside li b { color: var(--secondary); width: 1.25rem; flex-shrink: 0; }

.form-card { background: var(--card); border: 1px solid var(--border); padding: 2.5rem; border-radius: 0 1rem 0 1rem; }
.fieldset { margin-bottom: 2rem; }
.fieldset h3 { font-size: 1.05rem; font-weight: 700; padding-bottom: 0.5rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border); color: var(--primary); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--primary); }
.field input, .field textarea {
  width: 100%; padding: 0.75rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0 0.5rem 0 0.5rem;
  font-family: inherit; font-size: 0.95rem; color: var(--primary);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.row-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

/* ============ About ============ */
.about-narrow { max-width: 760px; margin: 0 auto; padding: 3rem 1.25rem 6rem; }
.about-narrow h1 { font-family: 'Lora', serif; font-size: clamp(2rem,3.5vw,3rem); text-align: center; margin-bottom: 1rem; color: var(--primary); }
.about-narrow .quote { text-align: center; font-style: italic; color: var(--muted-foreground); font-family: 'Lora', serif; font-size: 1.15rem; margin-bottom: 3rem; }
.about-narrow img.hero-shot { width: 100%; height: 380px; object-fit: cover; border-radius: 0 1rem 0 1rem; margin-bottom: 2.5rem; }
.about-narrow p { margin-bottom: 1.25rem; color: var(--primary); }
.about-narrow h2 { font-family: 'Lora', serif; color: var(--primary); margin: 2.5rem 0 1rem; font-size: 1.6rem; }
.about-narrow .callout { background: var(--primary); color: var(--primary-foreground); padding: 2rem; border-radius: 0 1rem 0 1rem; margin: 2.5rem 0; }
.about-narrow .callout h3 { color: var(--accent); margin-bottom: 1rem; font-size: 1.15rem; }
.about-narrow .callout ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.about-narrow .callout li { display: flex; gap: 0.75rem; color: rgba(245,236,215,0.95); }
.about-narrow .callout li::before { content: '•'; color: var(--accent); }
.about-narrow .end-cta { text-align: center; padding-top: 3rem; border-top: 1px solid var(--border); margin-top: 4rem; }

/* ============ Footer ============ */
.footer { background: var(--primary); color: var(--primary-foreground); padding: 3.5rem 0 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem; }
.footer .brand-name { color: var(--primary-foreground); }
.footer h4 { color: var(--accent); font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer a, .footer p { color: rgba(245,236,215,0.75); font-size: 0.92rem; }
.footer a:hover { color: var(--accent); }
.footer .tagline { max-width: 22rem; margin-top: 1rem; line-height: 1.6; }
.footer .footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.footer .footer-logo img { height: 40px; background: white; padding: 4px; border-radius: 0 0.5rem 0 0.5rem; }
.copyright { text-align: center; padding-top: 2.5rem; margin-top: 2.5rem; border-top: 1px solid rgba(245,236,215,0.15); color: rgba(245,236,215,0.5); font-size: 0.85rem; }

/* Page header on inner pages */
.page-header { padding: 4rem 0 2rem; text-align: center; }
.page-header h1 { font-family: 'Lora', serif; font-size: clamp(2rem,3.5vw,3rem); color: var(--primary); margin-bottom: 1rem; }
.page-header p { color: var(--muted-foreground); max-width: 38rem; margin: 0 auto; }

/* ============ Responsive ============ */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-text { padding: 3rem 0; }
  .hero-img { display: none; }
  .features, .products-grid { grid-template-columns: 1fr; }
  .materials-row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .row-3 { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.85rem; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.active) { display: none; }
}
