:root {
  --forest: #173d26;
  --forest-2: #22502f;
  --leaf: #2f6b45;
  --flame: #c9983a;
  --flame-dark: #93681c;
  --bark: #6b4a2f;
  --sand: #f3e7d3;
  --cream: #fbf7f0;
  --ink: #1d231f;
  --muted: #5d665f;
  --line: #e4dccd;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 61, 43, 0.10);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
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%; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
a { color: var(--leaf); }
[hidden] { display: none !important; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sub { color: var(--muted); max-width: 620px; }
.center.sub { margin: -8px auto 32px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .75rem;
  font-weight: 600; color: var(--flame); margin: 0 0 .8em;
}
.eyebrow.dark { color: var(--flame-dark); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font: 600 .95rem var(--font-body);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-primary { background: var(--flame); color: var(--white); }
.btn-primary:hover { background: var(--flame-dark); }
.btn-outline { border-color: var(--forest); color: var(--forest); background: var(--white); }
.btn-outline:hover { background: var(--forest); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--line); }
.btn-small { padding: 8px 14px; font-size: .85rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); font-size: 1.15rem; }
.brand strong { font-family: var(--font-head); font-weight: 700; }
.brand-mark { width: 40px; height: 37px; border-radius: 8px; object-fit: cover; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .92rem; }
.site-nav > a:hover { color: var(--flame-dark); }
.auth-area { display: flex; align-items: center; gap: 8px; }
.user-menu { display: flex; align-items: center; gap: 8px; }
.user-chip {
  display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--forest);
  font-weight: 600; font-size: .88rem; padding: 4px 12px 4px 4px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
}
.user-chip img { width: 28px; height: 28px; border-radius: 50%; background: var(--sand); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--forest); margin: 5px 0; }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 80% 30%, rgba(201,152,58,.22), transparent 45%),
    linear-gradient(160deg, var(--forest) 0%, #173022 100%);
  color: var(--white); padding: clamp(56px, 9vw, 110px) 0;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.lead { font-size: 1.12rem; color: rgba(255,255,255,.85); max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: rgba(255,255,255,.8); }
.hero-points li::before { content: "✓"; color: var(--flame); margin-right: 6px; font-weight: 700; }
.hero-art { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.flame-orb {
  width: min(300px, 70vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,210,122,.18), rgba(255,255,255,.03) 70%);
  display: grid; place-items: center; animation: glow 4s ease-in-out infinite;
}
.flame-orb svg { width: 72%; }
@keyframes glow { 50% { transform: scale(1.03); filter: drop-shadow(0 0 30px rgba(224,138,44,.45)); } }
.cycle-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  padding: 12px 18px; border-radius: 999px; font-size: .85rem;
}
.cycle-card .arrow { color: var(--flame); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot.leaf { background: #7cc58f; } .dot.brown { background: #c79a6b; } .dot.flame { background: var(--flame); }

/* Sections */
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section-tint { background: var(--sand); }
.section-dark { background: var(--forest); color: var(--white); }
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.prose p { margin: 0 0 1em; color: #37403a; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.value-grid div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.value-grid strong { display: block; color: var(--forest); margin-bottom: 4px; }
.value-grid span { font-size: .88rem; color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card-icon { width: 56px; height: 56px; border-radius: 12px; background: var(--sand); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 36px; height: 36px; }
.card p { color: var(--muted); font-size: .95rem; }
.spec { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1px dashed var(--line); font-size: .88rem; }
.spec li { padding: 3px 0; }
.spec li::before { content: "•"; color: var(--flame); margin-right: 8px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { border-top: 3px solid var(--flame); padding: 22px 4px 0; }
.step-no { font-family: var(--font-head); font-size: 2rem; color: var(--flame); opacity: .8; }
.step p { color: var(--muted); font-size: .93rem; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 48px; }
.chips span { border: 1px solid rgba(255,255,255,.25); padding: 8px 16px; border-radius: 999px; font-size: .9rem; background: rgba(255,255,255,.05); }
.compare { max-width: 820px; margin: 0 auto; }
.compare h3 { text-align: center; margin-bottom: 18px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.05); min-width: 480px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .93rem; }
th { font-weight: 600; color: var(--sand); }
td:last-child { color: #ffd9a8; font-weight: 500; }

.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { width: 90px; color: var(--forest); }

/* Forms */
.form-card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.form-card h2 { font-size: 1.4rem; margin-bottom: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--forest); }
input, select, textarea {
  font: 400 .95rem var(--font-body); padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--cream); color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--flame); outline-offset: 1px; background: var(--white); }
input.invalid, select.invalid { border-color: #c0392b; }
.form-status { margin: 0; font-size: .9rem; min-height: 1.2em; }
.form-status.ok { color: var(--leaf); }
.form-status.err { color: #c0392b; }

/* Dashboard */
.dashboard { padding: 48px 0 80px; min-height: 70vh; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.dash-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.dash-head h2 { margin: 0; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.list-card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.list-card h2 { font-size: 1.4rem; }
.req-list { display: flex; flex-direction: column; gap: 12px; }
.req { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--cream); }
.req-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.req-title { font-weight: 600; color: var(--forest); }
.req-meta { font-size: .85rem; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.req-notes { font-size: .88rem; margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.badge { font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; text-transform: capitalize; }
.badge.new { background: #fde8cc; color: #8a4a12; }
.badge.contacted { background: #dbe9ff; color: #1d4f91; }
.badge.quoted { background: #efe0ff; color: #5b2d8a; }
.badge.active { background: #d6f0dd; color: #1f6b39; }
.badge.closed { background: #e6e6e6; color: #555; }
.status-select { width: auto; padding: 6px 10px; font-size: .85rem; }

.admin { margin-top: 56px; padding-top: 40px; border-top: 2px solid var(--line); }
.tabs { display: flex; gap: 6px; background: var(--white); padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.tab { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font: 600 .85rem var(--font-body); color: var(--muted); cursor: pointer; }
.tab.active { background: var(--forest); color: var(--white); }

/* Footer & toast */
.site-footer { background: #142a1d; color: rgba(255,255,255,.7); padding: 26px 0; font-size: .88rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--sand); }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: 10px;
  box-shadow: var(--shadow); z-index: 100; max-width: calc(100% - 32px); font-size: .92rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .two-col, .dash-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero-art { order: 0; }
  .flame-orb { width: 200px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 12px 16px 20px; gap: 4px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 10px 4px; }
  .auth-area { padding-top: 8px; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .card-grid, .steps, .value-grid, .form-row { grid-template-columns: 1fr; }
  .form-card, .list-card, .card { padding: 20px; }
}

/* Photos */
figure { margin: 0; }
.hero-photo { width: min(380px, 100%); aspect-ratio: 1; border-radius: 22px; overflow: hidden;
  border: 3px solid rgba(201,152,58,.55); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.hero-photo img, .about-photo img, .card-photo img, .wide-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo { margin-top: 24px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; position: relative; }
.about-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; font-size: .8rem;
  color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.card { padding: 0; overflow: hidden; }
.card > :not(.card-photo) { margin-inline: 28px; }
.card > h3 { margin-top: 22px; }
.card > .spec { margin-bottom: 26px; }
.card-photo { aspect-ratio: 4 / 3; }
.wide-photo { max-width: 820px; margin: 0 auto 40px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 7; }
.footer-inner { align-items: center; }
.footer-logo { width: 150px; height: auto; border-radius: 8px; }
@media (max-width: 960px) { .hero-photo { width: min(300px, 100%); } }
@media (max-width: 600px) { .card > :not(.card-photo) { margin-inline: 20px; } }

/* Carousel */
.carousel { position: relative; width: min(420px, 100%); aspect-ratio: 1; border-radius: 22px; overflow: hidden;
  border: 3px solid rgba(201,152,58,.55); box-shadow: 0 24px 60px rgba(0,0,0,.35); background: #0f2a1a; }
.car-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; position: relative; margin: 0; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 34px; font-size: .85rem; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.85); color: var(--forest); font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.car-btn:hover { background: #fff; }
.car-btn:focus-visible, .car-dots button:focus-visible { outline: 2px solid var(--flame); outline-offset: 2px; }
.car-btn.prev { left: 10px; } .car-btn.next { right: 10px; }
.car-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.car-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.car-dots button[aria-selected="true"] { background: var(--flame); width: 22px; border-radius: 5px; }
@media (prefers-reduced-motion: reduce) { .car-track { scroll-behavior: auto; } }
@media (max-width: 960px) { .carousel { width: min(420px, 100%); } }
