/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #f1f3f0;
  --paper: #ffffff;
  --ink: #1b2420;
  --ink-soft: #4d5850;
  --ink-faint: #7c8880;
  --line: #d8ddd6;
  --line-strong: #b9c2ba;
  --primary: #144e4a;
  --primary-strong: #0d3835;
  --primary-tint: #e3ece9;
  --primary-ink: #f4f8f6;
  --accent: #a8721e;
  --accent-tint: #f3e6cd;
  --shadow: 0 1px 2px rgba(20,30,25,0.06), 0 12px 32px -12px rgba(20,30,25,0.18);
  --radius: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --page-bg: var(--bg);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 1.1s ease;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--serif); text-wrap: balance; line-height: 1.15; font-weight: 600; }
::selection { background: var(--accent-tint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .whatsapp-fab { animation: none; }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 200; background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform-origin: 0 0; transform: scaleX(0);
}

/* Hero elements — animated in by JS when GSAP is available, visible by default otherwise */
[data-hero-in] { opacity: 1; }

/* Subtle 3D tilt (JS adds .has-tilt and sets --rx/--ry on pointer devices) */
.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(0);
  transition: transform .5s var(--ease-out), border-color .3s var(--ease-out);
}
.has-tilt:hover { transition-duration: .15s; }

/* =============================================================
   3. Utilities
   ============================================================= */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 200;
  padding: .7rem 1.1rem; background: var(--primary-strong); color: var(--primary-ink);
  border-radius: 8px; font-weight: 600; transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary-strong); display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--primary-strong); }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s var(--ease-out);
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-strong); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* =============================================================
   5. Nav
   ============================================================= */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-nav.is-solid {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--ink); }
.nav-brand svg { width: 30px; height: 30px; flex: none; }
.nav-menu {
  display: none;
  align-items: center; gap: 4px;
}
.nav-menu a {
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft); padding: 10px 14px; border-radius: 8px;
  transition: background .2s, color .2s;
}
.nav-menu a:hover { background: var(--primary-tint); color: var(--primary-strong); }
.nav-cta { display: none; }
.nav-toggle {
  display: flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 10px; border: 1.5px solid var(--line-strong);
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (min-width: 960px) {
  .nav-menu { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

.nav-menu.is-open {
  display: flex; flex-direction: column; align-items: stretch;
  position: absolute; top: 76px; left: 0; right: 0;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 8px 24px 16px; box-shadow: var(--shadow);
}
.nav-menu.is-open a { padding: 14px 8px; border-bottom: 1px solid var(--line); }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  padding: 56px 0 64px;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-title {
  font-size: clamp(32px, 5.4vw, 52px);
  margin-top: 16px;
  max-width: 15ch;
}
.hero-title em { font-style: italic; color: var(--primary-strong); }
.hero-dek { margin-top: 20px; font-size: 18px; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-figure {
  position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13,56,53,0.55) 100%);
}
.hero-figure-caption {
  position: absolute; left: 18px; bottom: 16px; right: 18px; z-index: 1;
  color: var(--primary-ink); font-size: 13.5px; font-weight: 600;
}

.trust-strip {
  margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line);
  display: grid; gap: 18px;
}
.trust-item { display: flex; align-items: flex-start; gap: 12px; }
.trust-item svg { width: 22px; height: 22px; flex: none; color: var(--primary-strong); margin-top: 2px; }
.trust-item strong { display: block; font-size: 14.5px; }
.trust-item span { font-size: 13.5px; color: var(--ink-soft); }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .trust-strip { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   7. Services section
   ============================================================= */
.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: none; }
.section-head { max-width: 62ch; }
.section-title { font-size: clamp(26px, 3.6vw, 36px); margin-top: 12px; }
.section-intro { margin-top: 14px; color: var(--ink-soft); font-size: 16.5px; }

.services-grid {
  margin-top: 40px; display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
  transition: transform .3s var(--ease-out), border-color .3s var(--ease-out);
  display: flex; flex-direction: column; gap: 10px;
}
.service-card:hover { border-color: var(--line-strong); }
.service-card.has-tilt:hover { box-shadow: 0 20px 40px -18px rgba(20,30,25,0.28); }
.service-num {
  font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; font-weight: 700;
  color: var(--primary-strong); background: var(--primary-tint); border-radius: 999px;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
}
.service-title { font-size: 18px; margin-top: 6px; }
.service-desc { font-size: 14.5px; color: var(--ink-soft); }

.price-note {
  margin-top: 28px; display: flex; gap: 12px; align-items: flex-start;
  background: var(--primary-tint); border: 1px solid var(--primary); border-radius: 12px;
  padding: 16px 18px; font-size: 14.5px; color: var(--ink);
}
.price-note svg { width: 20px; height: 20px; flex: none; color: var(--primary-strong); margin-top: 2px; }

/* =============================================================
   8. About / team
   ============================================================= */
.about-grid { margin-top: 40px; display: grid; gap: 32px; }
.about-text { max-width: 60ch; font-size: 17px; color: var(--ink-soft); }
.about-text p + p { margin-top: 16px; }

.team-grid { margin-top: 32px; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.team-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; aspect-ratio: 3/4; background: var(--primary-tint); }
.team-card img { width: 100%; height: 100%; object-fit: cover; }
.team-card.placeholder { display: flex; align-items: center; justify-content: center; }
.team-card.placeholder svg { width: 40px; height: 40px; color: var(--primary); opacity: .5; }
.team-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  background: linear-gradient(180deg, transparent, rgba(13,56,53,0.75));
  color: var(--primary-ink); font-size: 13px; font-weight: 600;
}

@media (min-width: 720px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
   9. FAQ
   ============================================================= */
.faq-list { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; max-width: 74ch; }
.faq-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; font-size: 15.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon { flex: none; width: 20px; height: 20px; transition: transform .25s var(--ease-out); color: var(--primary-strong); }
.faq-item[open] summary .faq-icon { transform: rotate(45deg); }
.faq-body { padding: 0 20px 20px; color: var(--ink-soft); font-size: 15px; }

/* =============================================================
   10. Contact
   ============================================================= */
.contact-grid { margin-top: 40px; display: grid; gap: 28px; }
.contact-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow);
}
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item + .contact-info-item { margin-top: 20px; }
.contact-info-item svg { width: 22px; height: 22px; flex: none; color: var(--primary-strong); margin-top: 2px; }
.contact-info-item strong { display: block; font-size: 14.5px; }
.contact-info-item span, .contact-info-item a { font-size: 14.5px; color: var(--ink-soft); }
.contact-map { margin-top: 22px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.contact-map iframe { width: 100%; height: 220px; border: 0; display: block; }

.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.form-row input, .form-row textarea {
  padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px;
  background: var(--bg); transition: border-color .2s;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--primary); outline: none; }
.form-error {
  font-size: 13.5px; color: #a5432c; background: #f4e2dc; border: 1px solid #a5432c;
  border-radius: 8px; padding: 10px 12px; margin-bottom: 14px;
}

@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; }
}

/* =============================================================
   11. Footer
   ============================================================= */
.site-footer { padding: 48px 0 40px; }
.footer-top { display: flex; flex-direction: column; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 18px; }
.footer-brand svg { width: 26px; height: 26px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--primary-strong); }
.footer-note { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); max-width: 70ch; }

@media (min-width: 720px) {
  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* =============================================================
   12. WhatsApp floating button
   ============================================================= */
.whatsapp-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px -4px rgba(20,30,25,0.4);
  animation: fab-pulse 2.6s ease-in-out infinite;
}
.whatsapp-fab svg { width: 28px; height: 28px; }
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 6px 20px -4px rgba(20,30,25,0.4), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 6px 20px -4px rgba(20,30,25,0.4), 0 0 0 10px rgba(37,211,102,0); }
}

/* =============================================================
   13. Responsive type scale
   ============================================================= */
@media (min-width: 1280px) {
  .wrap { padding: 0 40px; }
}
