@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --cream: #F5F2EC;
  --cream-alt: #EDE8DC;
  --paper: #FBFAF7;
  --graphite: #2B2620;
  --graphite-soft: #6B6155;
  --line: #DED6C4;
  --terracotta: #9C6B3F;
  --terracotta-dark: #7A5230;
  --terracotta-tint: #EFE2D2;
  --white: #FFFFFF;

  --font-display: 'Space Grotesk', 'Arial', sans-serif;
  --font-body: 'Inter', 'Arial', sans-serif;

  --container: 1180px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--graphite);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--graphite);
}

h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.2; }
h3 { font-size: 1.15rem; line-height: 1.35; }

p { color: var(--graphite-soft); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--terracotta);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--graphite); color: var(--cream); }
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.btn-outline:hover { border-color: var(--terracotta-dark); color: var(--terracotta-dark); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(245, 242, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(43, 38, 32, 0.06); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--graphite);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 18px; height: 18px; animation: spin 7s linear infinite; }
@media (prefers-reduced-motion: reduce) { .brand-mark svg { animation: none; } }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--graphite); line-height: 1; }
.brand-word small { display: block; font-size: 0.55rem; letter-spacing: 0.22em; font-weight: 500; color: var(--graphite-soft); margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--graphite-soft);
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--graphite); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--terracotta);
}
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-phone { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; text-decoration: none; color: var(--graphite); }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 1.5px;
  background: var(--graphite);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 880px) {
  .nav-links { position: fixed; inset: 66px 0 0 0; background: var(--cream); flex-direction: column; padding: 36px 28px; gap: 8px; align-items: flex-start; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-phone { display: none; }
  .menu-toggle { display: flex; }
  body.menu-open { overflow: hidden; }
}

/* ---------- hero ---------- */
.hero {
  padding: 92px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--terracotta-dark); }
.hero-sub { font-size: 1.08rem; max-width: 480px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-points { display: flex; flex-direction: column; gap: 14px; }
.hero-point { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: var(--graphite); font-weight: 500; }
.hero-point .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); flex-shrink: 0; }

.hero-visual { position: relative; }
.hero-visual svg { display: block; width: 100%; height: auto; }

@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 380px; margin: 0 auto; order: -1; }
}

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--cream-alt); }
.section-dark { background: var(--graphite); color: var(--cream); position: relative; overflow: hidden; }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark p { color: #C9BFAE; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head p { margin-top: 14px; font-size: 1.02rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

@media (max-width: 700px) {
  .section { padding: 64px 0; }
}

/* ---------- advantage grid ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.adv-item { background: var(--paper); padding: 32px 28px; }
.adv-icon { width: 42px; height: 42px; margin-bottom: 20px; }
.adv-item h3 { margin-bottom: 10px; }
.adv-item p { font-size: 0.92rem; }
@media (max-width: 780px) { .adv-grid { grid-template-columns: 1fr; } }

/* ---------- category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--terracotta); box-shadow: 0 14px 30px rgba(43,38,32,0.08); }
.cat-icon { width: 44px; height: 44px; }
.cat-card h3 { color: var(--graphite); }
.cat-card p { font-size: 0.9rem; flex-grow: 1; }
.cat-link { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; color: var(--terracotta-dark); display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.step { padding: 0 24px 0 0; position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 20px; right: -0; left: calc(100% - 12px);
  width: calc(100% - 100%); border-top: 1px dashed var(--line);
}
.step-num { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; color: var(--terracotta-dark); margin-bottom: 14px; letter-spacing: 0.05em; }
.step h3 { margin-bottom: 8px; font-size: 1.02rem; }
.step p { font-size: 0.88rem; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--graphite);
  color: var(--cream);
  border-radius: 14px;
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--cream); margin-bottom: 8px; }
.cta-band p { color: #C9BFAE; }
.cta-band .btn-outline { border-color: #6f665a; color: var(--cream); }
.cta-band .btn-outline:hover { border-color: var(--terracotta); color: var(--terracotta); }

/* ---------- forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 0.82rem; font-weight: 500; color: var(--graphite-soft); }
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--graphite);
  outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--terracotta); }
.field textarea { resize: vertical; min-height: 100px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.82rem; color: var(--graphite-soft); margin: 20px 0 24px; }
.consent input { margin-top: 3px; flex-shrink: 0; }
.consent a { color: var(--terracotta-dark); text-decoration: underline; }
.form-note { font-size: 0.8rem; color: var(--graphite-soft); margin-top: 14px; }
.form-status { font-size: 0.88rem; margin-top: 14px; display: none; padding: 12px 14px; border-radius: 6px; }
.form-status.ok { display: block; background: #E3EEDF; color: #33502E; }
.form-status.err { display: block; background: #F5E1DC; color: #7A2E1B; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .form-card { padding: 28px 22px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--graphite); color: #B9AF9E; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: #B9AF9E; font-size: 0.9rem; margin-top: 16px; max-width: 260px; }
.footer-col h4 { font-family: var(--font-display); color: var(--cream); font-size: 0.85rem; letter-spacing: 0.04em; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #B9AF9E; text-decoration: none; font-size: 0.9rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--terracotta); }
.footer-bottom { border-top: 1px solid #453F35; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; color: #8A8172; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- generic content blocks (about/privacy/warranty/delivery) ---------- */
.content-page .section:first-of-type { padding-top: 64px; }
.page-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero p { max-width: 640px; font-size: 1.02rem; margin-top: 14px; }
.prose { max-width: 760px; }
.prose h2 { margin: 44px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; font-size: 0.98rem; }
.prose ul, .prose ol { color: var(--graphite-soft); margin: 0 0 16px 22px; font-size: 0.98rem; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--graphite); }
.info-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.95rem; }
.info-table th, .info-table td { text-align: left; padding: 12px 16px; border: 1px solid var(--line); }
.info-table th { background: var(--cream-alt); font-family: var(--font-display); font-weight: 600; width: 220px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

.map-frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px) scale(0.98); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- hero motion ---------- */
.hero-visual { transition: transform 0.15s ease-out; }
@keyframes spin { to { transform: rotate(360deg); } }

.wheel-spin { transform-origin: 240px 220px; animation: spin 20s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .wheel-spin { animation: none !important; }
}

/* ---------- stat strip ---------- */
.stat-strip { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.stat-strip .stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--graphite); line-height: 1; }
.stat-strip .stat-label { font-size: 0.85rem; color: var(--graphite-soft); margin-top: 6px; max-width: 160px; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.marquee-track { display: flex; width: max-content; gap: 56px; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 0.95rem; font-weight: 500; color: var(--graphite-soft); white-space: nowrap; }
.marquee-item svg { width: 22px; height: 22px; flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- tilt cards ---------- */
.cat-card, .adv-item { will-change: transform; }

/* ---------- decorative rotating gear watermark ---------- */
.gear-watermark { position: absolute; top: 50%; right: -80px; width: 380px; height: 380px; transform: translateY(-50%); pointer-events: none; opacity: 0.06; animation: spin 90s linear infinite; }
.section-dark .gear-watermark { opacity: 0.08; }
@media (prefers-reduced-motion: reduce) { .gear-watermark { animation: none; } }

/* ---------- nav underline ---------- */
.nav-links a { overflow: visible; }
.nav-links a::before {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--terracotta); transition: right 0.22s ease;
}
.nav-links a:hover::before { right: 0; }
.nav-links a[aria-current="page"]::before { display: none; }

/* ---------- badge / pill ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--terracotta-tint); color: var(--terracotta-dark); font-size: 0.78rem; font-weight: 600; padding: 6px 14px; border-radius: 40px; }

/* ---------- skip link ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--graphite); color: var(--cream); padding: 12px 20px; z-index: 999; }
.skip-link:focus { left: 12px; top: 12px; }
