/* ---------- tokens ---------- */
:root {
  --ink: #2b2320;
  --ink-muted: #6b6059;
  --paper: #faf6f2;
  --surface: #ffffff;
  --border: #e8ddd3;
  --accent: #a85647;
  --accent-dark: #8a4638;
  --sage: #5c7048;
  --sage-tint: #eaeee3;
}

/* ---------- reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Jost", system-ui, sans-serif;
  line-height: 1.5;
}
body.modal-open { overflow: hidden; }

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { filter: brightness(0.85); }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

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

.kicker {
  font-family: "Jost", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sage);
}

.divider { display: flex; align-items: center; gap: 9px; margin: 14px 0 18px; }
.divider .line { width: 30px; height: 1px; background: var(--accent); display: block; }
.divider .dot { width: 5px; height: 5px; border: 1px solid var(--accent); transform: rotate(45deg); display: block; }

.section-head { max-width: 560px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; }
.section-lead { color: var(--ink-muted); font-size: 15.5px; margin-top: 10px; max-width: 480px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.hairline { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }

.icon-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--sage-tint);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-sage { stroke: var(--sage); }

/* ---------- buttons ---------- */
.btn-primary, .btn-outline, .btn-invert, .link-arrow {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  border: none;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 14px 28px; border-radius: 999px;
  box-shadow: 0 10px 22px -10px rgba(120, 60, 45, 0.55);
}
.btn-primary:hover { filter: brightness(0.94); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink);
  padding: 12.5px 27px; border-radius: 999px;
  border: 1.5px solid var(--ink);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); filter: none; }
.btn-invert {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--accent); font-weight: 600;
  padding: 14px 28px; border-radius: 999px;
}
.btn-invert:hover { filter: brightness(0.96); }
.link-arrow { background: none; padding: 0; color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 246, 242, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 40px; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 60px; width: auto; }
.nav-links-row { display: flex; align-items: center; gap: 34px; }
.nav-link { font-family: "Jost", sans-serif; font-size: 15px; font-weight: 500; color: var(--ink); }
.nav-link:hover { color: var(--accent); filter: none; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone { color: var(--ink-muted); }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; }

.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 8px 40px 20px;
  border-top: 1px solid var(--border);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu .nav-link { padding: 10px 0; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 84px; }
.hero-row { display: flex; gap: 64px; align-items: center; }
.hero-copy { flex: 1.05; }
.hero-h1 { font-size: 54px; line-height: 1.08; letter-spacing: -0.3px; margin-top: 18px; }
.hero-lead { font-size: 17px; color: var(--ink-muted); margin-top: 22px; max-width: 480px; line-height: 1.65; }
.hero-ctas { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-media { flex: 1; position: relative; }
.hero-frame {
  position: absolute; top: 18px; left: 18px; width: 100%; height: 100%;
  border: 1.5px solid var(--accent); border-radius: 14px; z-index: 0;
}
.hero-slider {
  position: relative; z-index: 1; width: 100%; height: 540px;
  border-radius: 14px; overflow: hidden; background: var(--sage-tint);
}
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 900ms ease-in-out;
}
.hero-slide.is-active { opacity: 1; }

/* ---------- value strip ---------- */
.value-strip { padding: 34px 0 54px; }
.value-strip-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.value-item { display: flex; align-items: center; gap: 16px; }
.value-item p { font-size: 15px; font-weight: 500; }

/* ---------- services ---------- */
.services { padding: 70px 0 90px; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.services-grid { margin-top: 48px; }
.service-card { overflow: hidden; }
.service-image { width: 100%; height: 230px; object-fit: cover; }
.service-body { padding: 32px; }
.service-body h3 { font-size: 24px; margin-bottom: 12px; }
.service-body p { color: var(--ink-muted); font-size: 15.5px; line-height: 1.65; }
.service-body .link-arrow { display: inline-block; margin-top: 18px; }

/* ---------- portfolio grid (teaser + full page) ---------- */
.portfolio-teaser, .portfolio-full { padding: 90px 0; }
.portfolio-grid { margin-top: 44px; }
.portfolio-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; }

.page-intro { padding: 64px 0 8px; }
.page-intro h1 { font-size: 44px; margin-bottom: 6px; }

/* ---------- about ---------- */
.about { padding: 90px 0; background: var(--sage-tint); }
.about-row { display: flex; gap: 64px; align-items: center; }
.about-media { flex: 1; }
.about-media img { width: 100%; height: 420px; object-fit: cover; border-radius: 12px; }
.about-copy { flex: 1; }
.about-copy h2 { font-size: 36px; margin-bottom: 20px; }
.about-copy p { color: var(--ink-muted); font-size: 15.5px; line-height: 1.7; margin-bottom: 16px; }

/* ---------- how it works ---------- */
.how-it-works { padding: 90px 0; }
.steps-row { display: flex; gap: 40px; margin-top: 48px; }
.step { flex: 1; }
.step-number {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: "Cormorant Garamond", serif; font-size: 20px; font-weight: 600; color: var(--accent);
}
.step h3 { font-size: 20px; margin-top: 18px; margin-bottom: 8px; }
.step p { color: var(--ink-muted); font-size: 15px; line-height: 1.6; }

/* ---------- testimonials ---------- */
.testimonials { padding: 90px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.testimonials-row { display: flex; gap: 28px; margin-top: 48px; }
.testimonial-card { flex: 1; padding: 28px; }
.testimonial-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.testimonial-head img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testimonial-name { font-weight: 600; font-size: 15px; }
.testimonial-stars { color: var(--accent); font-size: 13px; letter-spacing: 2px; }
.testimonial-quote { color: var(--ink-muted); font-size: 14.5px; line-height: 1.65; }

/* ---------- final cta ---------- */
.final-cta { padding: 76px 0; background: var(--accent); text-align: center; }
.final-cta h2 { font-size: 34px; color: #fff; }
.final-cta > .container > p { color: rgba(255, 255, 255, 0.88); font-size: 16px; margin-top: 14px; }
.final-cta-actions { display: flex; gap: 18px; justify-content: center; margin-top: 30px; flex-wrap: wrap; align-items: center; }
.final-cta-actions a { color: #fff; font-weight: 500; font-size: 15px; text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer { padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 24px; }
.footer-logo { height: 64px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--ink-muted); font-size: 14px; max-width: 220px; line-height: 1.6; }
.footer-heading { font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 14px; color: var(--ink-muted); }
.footer-link:hover { color: var(--accent); filter: none; }
.footer-static { margin: 0; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 13px; color: #948b83; }

/* ---------- blog ---------- */
.blog-list { padding: 20px 0 90px; }
.blog-empty { padding: 40px 0 100px; }
.blog-empty p { color: var(--ink-muted); font-size: 16px; }
.article-snippet { display: block; overflow: hidden; }
.article-snippet-image { width: 100%; height: 220px; object-fit: cover; }
.article-snippet-body { padding: 24px; }
.article-snippet-body h3 { font-size: 20px; margin-bottom: 8px; }
.article-snippet-meta { color: var(--ink-muted); font-size: 13px; margin-bottom: 10px; }
.article-snippet-body p:last-child { color: var(--ink-muted); font-size: 14.5px; line-height: 1.6; }

.article { padding: 40px 0 100px; }
.article-title { font-size: 40px; margin-bottom: 24px; }
.article-image { width: 100%; max-height: 480px; object-fit: cover; border-radius: 12px; margin-bottom: 32px; }
.article-body { font-size: 16px; line-height: 1.75; color: var(--ink-muted); margin-bottom: 32px; }
.article-body p { margin-bottom: 1em; }

/* ---------- quote modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(43, 35, 32, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  position: relative; background: var(--surface);
  border-radius: 14px; padding: 40px;
  max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--sage-tint); color: var(--ink);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.modal-box h2 { font-size: 28px; margin-bottom: 8px; }
.modal-sub { color: var(--ink-muted); font-size: 15px; margin-bottom: 28px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; font-size: 14px; font-weight: 500; }
.field span { color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: "Jost", sans-serif; font-size: 15px; color: var(--ink);
  border: 1.5px solid var(--border); border-radius: 8px; padding: 11px 14px;
  background: var(--paper);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 90px; font-family: inherit; }
.field-row { display: flex; gap: 16px; }
.field-row .field { flex: 1; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.modal-submit { width: 100%; justify-content: center; margin-top: 6px; }
.modal-submit:disabled { opacity: 0.6; cursor: default; }
.modal-error { color: var(--accent-dark); font-size: 14px; margin-top: 14px; }
.modal-success { text-align: center; padding: 20px 0; }
.modal-success h2 { font-size: 28px; margin-bottom: 12px; }
.modal-success p { color: var(--ink-muted); font-size: 15px; margin-bottom: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .stack-mobile { flex-direction: column !important; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .grid-2 { grid-template-columns: 1fr !important; }
  .nav-links-row { display: none !important; }
  .hamburger { display: flex; }
  .hero-h1 { font-size: 38px !important; }
  .header-row { padding: 10px 20px; }
  .container { padding: 0 20px; }
  .value-strip-row { grid-template-columns: 1fr !important; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  .steps-row { gap: 32px; }
  .field-row { flex-direction: column; gap: 0; }
  .modal-box { padding: 28px 22px; }
}
