/* ═══════════════════════════════════════════════════════════════════════════
   PastroPro v12 — Production-grade design system
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Palette — warm neutrals with gold accent */
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-warm: #faf7f1;
  --surface-muted: #f0ece3;
  --ink: #1a1e25;
  --ink-soft: #3d4654;
  --ink-muted: #6b7280;
  --line: #e0d9cc;
  --line-soft: #ebe6db;
  --brand: #b08d4c;
  --brand-deep: #7c5c28;
  --brand-glow: rgba(176, 141, 76, .12);
  --accent: #1c222b;
  --success: #16714a;
  --success-bg: #eaf5ef;
  --error: #bf2a1d;
  --error-bg: #fceeed;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  /* Spacing scale */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 6rem;

  /* Shape */
  --container: 1140px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-xs: 0 1px 3px rgba(0,0,0,.06);
  --shadow-sm: 0 4px 12px rgba(0,0,0,.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,.07);
  --shadow-lg: 0 16px 50px rgba(0,0,0,.09);
  --shadow-card: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.05);

  /* Timing */
  --ease: 180ms ease;
  --ease-out: 320ms cubic-bezier(.16, 1, .3, 1);
  --focus-ring: 0 0 0 3px rgba(47, 94, 190, .35);
}

/* ═══ Reset ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { text-size-adjust: 100%; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
img { max-width: 100%; display: block; border-radius: var(--r-md); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 2px; }
::selection { background: rgba(176, 141, 76, .22); }
button { font: inherit; }

/* ═══ Accessibility ══════════════════════════════════════════════════════ */

.skip-link { position: absolute; left: -9999px; z-index: 999; }
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem .75rem; border: 2px solid var(--ink); border-radius: var(--r-sm); }
:focus-visible { outline: 2px solid #4a7fe5; outline-offset: 2px; }
.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; }

/* ═══ Layout ═════════════════════════════════════════════════════════════ */

.container { width: min(var(--container), 92%); margin-inline: auto; }
.section { padding: clamp(2.5rem, 6vw, var(--s8)) 0; }
.section + .section { padding-top: clamp(1.8rem, 4.5vw, var(--s7)); }
.section-soft { background: var(--surface-muted); border-block: 1px solid var(--line-soft); }

/* ═══ Typography ═════════════════════════════════════════════════════════ */

.kicker {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .68rem;
  font-weight: 700;
  color: var(--brand-deep);
  margin-bottom: .75rem;
}
h1, h2, h3 { line-height: 1.15; color: var(--accent); text-wrap: balance; }
h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(0,0,0,.04);
}
h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -.015em;
  margin-bottom: .85rem;
}
h3 {
  font-size: clamp(1.05rem, 3.5vw, 1.2rem);
  font-weight: 650;
  letter-spacing: -.005em;
  margin-bottom: .45rem;
}
p { margin-bottom: .9rem; color: var(--ink-soft); }
.lead {
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 60ch;
}
.fine { font-size: .88rem; color: var(--ink-muted); }

/* ═══ Links & Buttons ════════════════════════════════════════════════════ */

.text-link {
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration-color: rgba(124, 92, 40, .3);
  display: inline-flex; align-items: center; gap: .25rem;
  min-height: 44px;
  transition: color var(--ease), text-decoration-color var(--ease);
}
.text-link:hover { color: #5a3f16; text-decoration-color: rgba(90, 63, 22, .6); }

.btn {
  min-height: 44px;
  border-radius: var(--r-md);
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  padding: .6rem 1.1rem;
  border: 1px solid transparent;
  font-weight: 620;
  font-size: .9rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-primary {
  color: #fff;
  background: linear-gradient(160deg, #9a7535, #7c5c28);
  border-color: #6e5122;
  box-shadow: 0 2px 8px rgba(124, 92, 40, .25);
}
.btn-primary:hover { box-shadow: 0 6px 18px rgba(124, 92, 40, .3); }
.btn-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
.btn-secondary:hover { border-color: #c8bda8; background: #fdfcf9; }
.btn-tertiary {
  border-color: var(--line);
  color: var(--ink-soft);
  background: var(--surface-muted);
}
.btn-tertiary:hover { border-color: #c8bda8; background: #eae4d8; }

/* ═══ Header ═════════════════════════════════════════════════════════════ */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 244, 239, .88);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid var(--line-soft);
  padding-top: env(safe-area-inset-top);
}
body.menu-open { overflow: hidden; }

.nav-row {
  min-height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  text-decoration: none;
  font-weight: 720;
  font-size: .92rem;
  letter-spacing: .01em;
  display: inline-flex; align-items: center;
  min-height: 44px;
}
.brand span { color: var(--brand-deep); }

.menu-toggle {
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--ease);
}
.menu-toggle:hover { background: var(--surface-muted); }

.nav-links { display: flex; flex-direction: column; padding-bottom: .75rem; gap: .15rem; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 300ms ease, opacity 200ms ease; }
.nav-links a {
  min-height: 44px;
  display: flex; align-items: center;
  text-decoration: none;
  padding: .5rem .7rem;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  font-size: .92rem;
  transition: background var(--ease), color var(--ease);
}
.nav-links a:hover { background: var(--surface-muted); color: var(--ink); }
.nav-links a.active {
  background: var(--surface-muted);
  color: var(--ink);
  font-weight: 620;
}
body.menu-open .nav-links {
  max-height: 400px;
  opacity: 1;
}

/* ═══ Hero ═══════════════════════════════════════════════════════════════ */

.hero {
  padding: var(--s6) 0 var(--s5);
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(176,141,76,.08) 0%, transparent 35%),
    radial-gradient(circle at 15% 70%, rgba(176,141,76,.05) 0%, transparent 40%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(176,141,76,.15), transparent 2px),
    radial-gradient(2px 2px at 60% 70%, rgba(176,141,76,.1), transparent 2px),
    radial-gradient(1px 1px at 50% 50%, rgba(176,141,76,.08), transparent 1px),
    radial-gradient(1px 1px at 80% 10%, rgba(176,141,76,.12), transparent 1px);
  background-size: 200px 200px, 150px 150px, 100px 100px, 250px 250px;
  pointer-events: none;
  opacity: .6;
}
.hero-grid { display: grid; gap: var(--s5); align-items: start; position: relative; z-index: 1; }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-md);
}

.hero-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-xl);
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  box-shadow: var(--shadow-card);
}
.hero-form h2 { font-family: var(--font-sans); font-size: 1.1rem; margin-bottom: .35rem; }
.form-intro { font-size: .9rem; margin-bottom: .75rem; line-height: 1.55; }

/* Highlight cards */
.hero-highlights { display: grid; gap: .6rem; margin: 1.25rem 0 0; }
.highlight-card {
  border: 1px solid var(--line-soft);
  border-left: 2px solid rgba(176,141,76,.25);
  border-radius: var(--r-md);
  background: var(--surface-warm);
  padding: .75rem .85rem;
  transition: transform var(--ease), box-shadow var(--ease);
}
.highlight-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.highlight-card strong { display: block; color: var(--accent); font-size: .92rem; margin-bottom: .1rem; }
.highlight-card span { color: var(--ink-muted); font-size: .84rem; line-height: 1.45; }

/* Social proof */
.social-proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem;
  margin-top: 1.25rem;
  padding: .75rem 1rem;
  background: var(--surface-warm);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
}
.proof-stat { display: flex; align-items: baseline; gap: .25rem; }
.proof-number { font-size: 1.4rem; font-weight: 750; color: var(--brand-deep); font-family: var(--font-serif); }
.proof-label { font-size: .78rem; color: var(--ink-muted); font-weight: 500; }
.proof-divider { width: 1px; height: 24px; background: var(--line); }

/* ═══ Page hero (subpage banners) ════════════════════════════════════════ */

.page-hero {
  background: linear-gradient(135deg, var(--surface-warm) 0%, var(--surface-muted) 50%, var(--bg) 100%);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(176,141,76,.06) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(176,141,76,.04) 0%, transparent 40%);
  pointer-events: none;
}

/* ═══ Section decorative divider ═════════════════════════════════════════ */

.section-topline {
  position: relative;
  padding-top: 1.5rem;
}
.section-topline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--brand);
  border-radius: 999px;
}

/* ═══ CTA rows ═══════════════════════════════════════════════════════════ */

.cta-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.max-w-cta { max-width: 680px; }

/* ═══ Trust pills ════════════════════════════════════════════════════════ */

.trust-inline { display: grid; gap: .5rem; margin-top: 1rem; }
.trust-inline div {
  background: var(--surface-warm);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  padding: .55rem .7rem;
  font-size: .84rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ═══ Media block ════════════════════════════════════════════════════════ */

.media-block {
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: transform var(--ease), box-shadow var(--ease);
  position: relative;
}
.media-block::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(176,141,76,.0) 0%, rgba(176,141,76,.06) 100%);
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none;
}
.media-block:hover::after { opacity: 1; }
.media-block img { border-radius: 0; aspect-ratio: 4 / 3; object-fit: cover; }
@media (hover: hover) {
  .media-block:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
}

/* ═══ Forms ══════════════════════════════════════════════════════════════ */

form { display: grid; gap: .7rem; }
label {
  font-size: .84rem; font-weight: 620; color: var(--ink);
  display: inline-block; margin-bottom: .2rem;
}
input, textarea, select {
  width: 100%;
  min-height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  padding: .6rem .75rem;
  font: inherit; font-size: .92rem;
  color: var(--ink);
  background: var(--surface);
  transition: border-color var(--ease), box-shadow var(--ease);
}
input::placeholder, textarea::placeholder { color: #9ca3b0; }
input:hover, textarea:hover, select:hover {
  border-color: #c8bda8;
  background: #fdfcfa;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
textarea { min-height: 100px; resize: vertical; }

.field-group { position: relative; }
.field-group .field-error {
  font-size: .78rem; color: var(--error);
  margin-top: .15rem; display: none;
}
.field-group.has-error input,
.field-group.has-error textarea,
.field-group.has-error select { border-color: var(--error); box-shadow: 0 0 0 3px rgba(191, 42, 29, .1); }
.field-group.has-error .field-error { display: block; }
.field-group.is-valid input,
.field-group.is-valid textarea { border-color: var(--success); box-shadow: 0 0 0 3px rgba(22, 113, 74, .08); }

.form-status { font-size: .88rem; margin-top: .15rem; padding: .5rem .6rem; border-radius: var(--r-sm); }
.form-status:empty { display: none; }
.form-status.success { color: var(--success); background: var(--success-bg); border: 1px solid #c2e1cd; display: block; }
.form-status.error { color: var(--error); background: var(--error-bg); border: 1px solid #f0c9c5; display: block; }

.prefill-note { font-size: .86rem; padding: .55rem .65rem; border-radius: var(--r-sm); border: 1px solid #ddd5c3; background: #f7f2e7; color: #5b4827; }
.copy-feedback { font-size: .84rem; color: var(--ink-muted); min-height: 1.2rem; margin-top: .1rem; }

.form-fallback {
  margin-top: .5rem; padding: .65rem .75rem;
  border-radius: var(--r-md); border: 1px solid #ddd5c3; background: #f9f5ec;
  display: none;
}
.form-fallback.visible { display: block; }
.form-fallback p { font-size: .86rem; color: #5b4827; margin-bottom: .35rem; }

/* ═══ Cards, Panels ══════════════════════════════════════════════════════ */

.grid { display: grid; gap: 1rem; }
.grid-3, .grid-2 { grid-template-columns: 1fr; }

.card, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid rgba(176,141,76,.2);
  border-radius: var(--r-lg);
  padding: clamp(1rem, 2.5vw, 1.4rem);
  box-shadow: var(--shadow-card);
  transition: transform var(--ease), box-shadow var(--ease);
}
.card-accent { background: var(--surface-warm); border-color: #ddd5c2; border-top-color: rgba(176,141,76,.3); }

.badge {
  display: inline-block;
  font-size: .66rem; text-transform: uppercase; letter-spacing: .1em;
  background: #f0e8d6; color: var(--brand-deep);
  padding: .2rem .55rem; border-radius: 999px;
  margin-bottom: .5rem;
}

/* ═══ Service matrix ═════════════════════════════════════════════════════ */

.service-matrix { display: grid; gap: .75rem; margin-top: .85rem; }
.matrix-item {
  border: 1px solid var(--line);
  border-top: 2px solid rgba(176,141,76,.25);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(.9rem, 2vw, 1.2rem);
  box-shadow: var(--shadow-card);
  transition: transform var(--ease), box-shadow var(--ease);
}

/* ═══ Lists ══════════════════════════════════════════════════════════════ */

.list-clean { margin: 0; padding-left: 1rem; color: var(--ink-soft); }
.list-clean li + li { margin-top: .35rem; }
.list-clean li::marker { color: var(--brand); }
.list-clean.ordered { padding-left: 1.1rem; }
.list-clean.ordered li + li { margin-top: .45rem; }

/* ═══ Split list ═════════════════════════════════════════════════════════ */

.split-list { display: grid; gap: .7rem; }
.split-list article {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: .85rem .9rem;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

/* ═══ Process steps ══════════════════════════════════════════════════════ */

.process-steps { display: grid; gap: .6rem; }
.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: .65rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: .85rem .9rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--ease), box-shadow var(--ease);
}
.step-number {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #f0e5cf, #e4d5b8);
  color: var(--brand-deep);
  font-weight: 700; font-size: .82rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(176,141,76,.25), inset 0 1px 2px rgba(255,255,255,.8);
}
.step p { margin: .25rem 0 0; font-size: .92rem; }

/* ═══ Meta pills ═════════════════════════════════════════════════════════ */

.meta-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.meta-pill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .4rem .7rem;
  font-size: .82rem;
  color: var(--ink-soft);
}

.service-link-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }

/* ═══ Contact actions ════════════════════════════════════════════════════ */

.contact-actions {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .6rem; margin: 1rem 0 1.25rem;
}
.contact-action {
  min-height: 80px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  padding: .8rem;
  text-decoration: none;
  display: flex; flex-direction: column; justify-content: center; gap: .15rem;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.contact-action strong { color: var(--ink); font-size: .92rem; }
.contact-action span { color: var(--ink-muted); font-size: .82rem; line-height: 1.45; }
.contact-action:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: #c8bda8;
}

/* ═══ FAQ ═════════════════════════════════════════════════════════════════ */

.faq-list { display: grid; gap: .6rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: .75rem .9rem;
  min-height: 44px;
  font-weight: 600; font-size: .95rem;
  color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  transition: background var(--ease);
}
.faq-item summary:hover { background: var(--surface-warm); }
.faq-item summary::after {
  content: "+"; color: var(--brand-deep); font-weight: 600; font-size: 1.15rem;
  width: 20px; text-align: center; flex-shrink: 0;
  transition: transform 200ms ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 .9rem .9rem; margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* ═══ Testimonials ═══════════════════════════════════════════════════════ */

.testimonial {
  border: 1px solid var(--line);
  border-top: 2px solid rgba(176,141,76,.25);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 1rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--ease), box-shadow var(--ease);
}
.testimonial p {
  margin-bottom: .7rem;
  font-size: .93rem;
  line-height: 1.7;
  color: var(--ink-soft);
  font-style: italic;
  position: relative;
}
.testimonial p::before {
  content: '"';
  position: absolute;
  left: -.5rem;
  top: -.2rem;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--brand);
  opacity: .3;
}
.testimonial footer { font-size: .82rem; color: var(--ink-muted); display: flex; justify-content: flex-start; gap: .5rem; flex-wrap: wrap; align-items: center; }
.testimonial footer strong { font-style: normal; color: var(--ink); }

.star-rating { display: inline-flex; gap: 2px; margin-bottom: .35rem; }
.star-rating svg { width: 15px; height: 15px; fill: #d4a84b; }

/* ═══ Table ══════════════════════════════════════════════════════════════ */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; min-width: 580px; }
th, td { border-bottom: 1px solid var(--line-soft); padding: .65rem .8rem; text-align: left; font-size: .9rem; }
th { color: var(--brand-deep); font-weight: 640; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }

/* ═══ Section elevated ═══════════════════════════════════════════════════ */

.section-elevated {
  margin-top: 1.5rem;
  border-radius: var(--r-xl);
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid var(--line-soft);
  background: var(--surface-warm);
}

/* ═══ Quote calculator ═══════════════════════════════════════════════════ */

.quote-calc {
  padding: clamp(1rem, 2.5vw, 1.4rem);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  max-width: 720px;
}
.quote-calc h2 { font-family: var(--font-sans); font-size: 1.1rem; margin-bottom: .5rem; max-width: none; }
.quote-calc-grid { display: grid; gap: .65rem; }
.quote-result {
  margin-top: .5rem;
  padding: .85rem 1rem;
  border-radius: var(--r-md);
  background: var(--surface-warm);
  border: 1px solid var(--line-soft);
  text-align: center;
  display: none;
}
.quote-result.visible { display: block; animation: fadeUp 300ms ease; }
.quote-range { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 700; color: var(--brand-deep); letter-spacing: -.02em; }
.quote-note { font-size: .8rem; color: var(--ink-muted); margin-top: .2rem; }
.quote-cta { margin-top: .5rem; }

/* ═══ Legal prose ════════════════════════════════════════════════════════ */

.legal-prose { max-width: 75ch; }
.legal-prose h1, .legal-prose h2 { font-family: var(--font-serif); max-width: none; }
.legal-prose h2 { font-size: clamp(1.2rem, 4vw, 1.5rem); margin-top: 1.5rem; }
.legal-prose p, .legal-prose li { color: var(--ink-soft); }
.page-legal .sticky-cta { display: none; }
.page-legal .site-footer { padding-bottom: 2rem; }

/* ═══ Mobile service cards ═══════════════════════════════════════════════ */

.services-mobile-cards { display: none; }
.services-mobile-cards .service-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: .85rem;
  box-shadow: var(--shadow-xs);
}
.services-mobile-cards h3 { margin-bottom: .35rem; }
.services-mobile-cards p { margin: 0; font-size: .9rem; }

/* ═══ Misc utilities ═════════════════════════════════════════════════════ */

.final-cta { background: var(--surface-warm); border-color: #ddd5c2; }
.mt-1 { margin-top: 1rem; }
.mt-08 { margin-top: .8rem; }
.mb-1 { margin-bottom: 1rem; }
.sans-heading { font-family: var(--font-sans); font-size: 1.1rem; }
.desktop-only { display: inline; }

/* ═══ Footer ═════════════════════════════════════════════════════════════ */

.site-footer {
  border-top: 2px solid rgba(176,141,76,.3);
  padding: 1.5rem 0 5rem;
  background: var(--surface-warm);
  font-size: .88rem;
}
.site-footer p { color: var(--ink-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .3rem; }
.footer-links a {
  text-decoration: none; color: var(--ink-soft);
  min-height: 44px; display: inline-flex; align-items: center;
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--brand-deep); text-decoration: underline; }

/* ═══ Sticky CTA ═════════════════════════════════════════════════════════ */

.sticky-cta {
  position: fixed;
  left: .4rem; right: .4rem;
  bottom: .4rem;
  z-index: 110;
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: .3rem;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: .3rem .3rem calc(.3rem + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  transition: transform 300ms ease, opacity 300ms ease;
}
.sticky-cta.hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
.sticky-cta a {
  min-height: 42px;
  text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 620; font-size: .8rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: transform var(--ease);
}
.sticky-cta a:active { transform: scale(.97); }
.sticky-cta .primary { background: var(--accent); color: #fff; }
.sticky-cta .call { background: var(--surface-muted); color: var(--ink); border-color: var(--line); }
.sticky-cta .whatsapp { background: var(--surface-muted); color: var(--ink-soft); border-color: var(--line); }

/* ═══ Back to top ════════════════════════════════════════════════════════ */

.back-to-top {
  position: fixed; right: .8rem; bottom: 4.5rem; z-index: 105;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(12px);
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease, box-shadow var(--ease), border-color var(--ease);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover {
  box-shadow: var(--shadow-md), 0 0 0 2px rgba(176,141,76,.3);
  border-color: var(--brand);
}
.back-to-top svg { width: 16px; height: 16px; stroke: var(--ink-soft); fill: none; }

/* ═══ Cookie consent ═════════════════════════════════════════════════════ */

.cookie-consent {
  position: fixed;
  bottom: 4rem; left: .5rem; right: .5rem;
  z-index: 120;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: .8rem .9rem;
  box-shadow: var(--shadow-lg);
  display: none;
}
.cookie-consent.visible { display: block; animation: fadeUp 350ms ease; }
.cookie-consent p { font-size: .82rem; color: var(--ink-soft); margin-bottom: .5rem; line-height: 1.5; }
.cookie-consent p a { color: var(--brand-deep); font-weight: 600; }
.cookie-actions { display: flex; gap: .4rem; }
.cookie-actions .btn { font-size: .78rem; padding: .35rem .7rem; min-height: 34px; }

/* ═══ Scroll Reveal ══════════════════════════════════════════════════════ */

/* Reveal elements are visible by default. The .js-reveal-ready class is added
   by JS after layout is complete, enabling the hidden→revealed animation.
   This prevents invisible content if JS is slow, blocked, or cached stale. */
.js-reveal-ready .reveal { opacity: 0; transform: translateY(20px); transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out); }
.js-reveal-ready .reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 70ms; }
.reveal-delay-2 { transition-delay: 140ms; }

.js-reveal-ready .reveal-stagger > * {
  opacity: 0; transform: translateY(14px);
  transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out);
}
.js-reveal-ready .reveal-stagger.revealed > *:nth-child(1) { transition-delay: 50ms; opacity: 1; transform: none; }
.js-reveal-ready .reveal-stagger.revealed > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: none; }
.js-reveal-ready .reveal-stagger.revealed > *:nth-child(3) { transition-delay: 150ms; opacity: 1; transform: none; }
.js-reveal-ready .reveal-stagger.revealed > *:nth-child(4) { transition-delay: 200ms; opacity: 1; transform: none; }
.js-reveal-ready .reveal-stagger.revealed > *:nth-child(5) { transition-delay: 250ms; opacity: 1; transform: none; }
.js-reveal-ready .reveal-stagger.revealed > *:nth-child(6) { transition-delay: 300ms; opacity: 1; transform: none; }

/* ═══ Animations ═════════════════════════════════════════════════════════ */

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ═══ Hover polish (pointer devices) ════════════════════════════════════ */

@media (hover: hover) {
  .card:hover, .panel:hover, .matrix-item:hover, .step:hover, .testimonial:hover,
  .split-list article:hover, .services-mobile-cards .service-card:hover {
    transform: translateY(-2px); box-shadow: var(--shadow-md);
  }
}

/* ═══ Responsive: small ══════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .table-wrap { display: none; }
  .services-mobile-cards { display: grid; gap: .65rem; margin-top: .85rem; }
}

@media (max-width: 430px) {
  body { font-size: 14px; }
  .container { width: 94%; }
  h1 { font-size: clamp(1.8rem, 9vw, 2.2rem); }
  .hero-card, .hero-form, .card, .panel { padding: .95rem; }
  .section { padding: 2.2rem 0; }
  .contact-actions { grid-template-columns: 1fr; }
  .testimonial footer { flex-direction: column; align-items: flex-start; }
  .desktop-only { display: none; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
}

@media (max-width: 359px) {
  .sticky-cta { grid-template-columns: 1fr 1fr; }
  .sticky-cta .primary { grid-column: 1 / -1; }
}

/* ═══ Responsive: tablet+ ════════════════════════════════════════════════ */

@media (min-width: 640px) {
  .quote-calc-grid { grid-template-columns: 1fr 1fr; }
  .hero-highlights { grid-template-columns: repeat(3, 1fr); }
  .trust-inline { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 760px) {
  .service-matrix { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .split-list { grid-template-columns: repeat(2, 1fr); }
}

/* ═══ Responsive: desktop ════════════════════════════════════════════════ */

@media (min-width: 860px) {
  body { font-size: 16px; }
  .menu-toggle { display: none; }
  .site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
  .nav-row { min-height: auto; width: auto; }
  .nav-links {
    display: flex; flex-direction: row; width: auto; padding: 0; gap: .15rem;
    max-height: none; opacity: 1; overflow: visible; transition: none;
  }
  .nav-links a { padding: .45rem .6rem; border-radius: 999px; font-size: .88rem; }
  .nav-links a.active {
    border-left: none; background: var(--surface-muted);
    border: 1px solid var(--line-soft); border-radius: 999px;
  }

  .hero { padding: var(--s7) 0 var(--s6); }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 1.75rem; }
  .hero-form { position: sticky; top: 84px; margin-top: 0; }
  .contact-actions { grid-template-columns: repeat(4, 1fr); }

  .grid-3 { grid-template-columns: repeat(3, 1fr); }

  .sticky-cta {
    left: auto; right: 1rem; bottom: 1rem;
    width: auto; display: flex; gap: .35rem;
    background: rgba(255, 255, 255, .94);
    border-radius: var(--r-md); padding: .35rem;
  }
  .sticky-cta a { min-height: 36px; padding: .25rem .65rem; font-size: .8rem; }

  .site-footer { padding-bottom: 2rem; }
  .cookie-consent { left: auto; right: 1rem; bottom: 4.5rem; max-width: 380px; }
  .back-to-top { bottom: 5rem; right: 1rem; }
  .social-proof { gap: 1rem; }
}

/* ═══ Reduced motion ═════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .js-reveal-ready .reveal { opacity: 1; transform: none; }
  .js-reveal-ready .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ═══ Photo & Image Styles ═══════════════════════════════════════════════ */

/* Hero image banner */
.hero-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--r-md);
  margin: 1rem 0 .5rem;
  box-shadow: var(--shadow-md);
}

/* Service card images — calc offsets match .matrix-item padding */
.matrix-item .matrix-item-img {
  width: calc(100% + 2 * clamp(.9rem, 2vw, 1.2rem));
  margin-left: calc(-1 * clamp(.9rem, 2vw, 1.2rem));
  margin-top: calc(-1 * clamp(.9rem, 2vw, 1.2rem));
  margin-bottom: .75rem;
  height: 170px;
  object-fit: cover;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  display: block;
}

/* About page photo — no extra border-radius since panel wraps it */
.panel-img {
  padding: 0;
  overflow: hidden;
}
.panel-img .about-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}
.panel-img .panel-caption {
  padding: .65rem .85rem;
  font-size: .86rem;
  color: var(--ink-muted);
  margin: 0;
}

/* Page banner images */
.page-banner-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--r-lg);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.page-banner-img--narrow {
  max-width: 680px;
  margin-bottom: 1.4rem;
}

/* ═══ Trust Badges ═══════════════════════════════════════════════════════ */

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .85rem 0;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .6rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: .01em;
  white-space: nowrap;
}

.trust-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.trust-badge--gold {
  background: linear-gradient(135deg, #fdf8ed, #f8f0d8);
  border-color: #e8d5a0;
  color: var(--brand-deep);
}
.trust-badge--gold svg { fill: #d4a84b; }

/* ═══ Urgency & Conversion ═══════════════════════════════════════════════ */

.urgency-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .75rem;
  background: var(--success-bg);
  border: 1px solid #c5e0cc;
  border-radius: var(--r-sm);
  font-size: .8rem;
  color: var(--success);
  font-weight: 500;
  margin: .65rem 0;
}

.urgency-bar svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  fill: var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.7); }
}

.btn-sub {
  display: block;
  font-size: .68rem;
  font-weight: 400;
  opacity: .75;
  margin-top: .05rem;
  text-align: center;
  line-height: 1.2;
}

/* ═══ Testimonial Enhancements ═══════════════════════════════════════════ */

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-glow);
  border: 2px solid var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .82rem;
  color: var(--brand-deep);
  font-family: var(--font-serif);
  flex-shrink: 0;
}

/* Testimonial footer with avatars */
.testimonial footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .5rem;
}
.testimonial footer div:not(.testimonial-avatar) {
  display: flex;
  flex-direction: column;
  gap: .05rem;
}
.testimonial footer div:not(.testimonial-avatar) span {
  font-style: normal;
}

/* ═══ Rating Summary (reviews page) ═════════════════════════════════════ */

.rating-summary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 1rem;
}

.rating-summary-text {
  font-size: .88rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ═══ Google Rating Badge ═══════════════════════════════════════════════ */

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-xs);
  margin: .5rem 0 1rem;
}

.rating-badge-score {
  font-size: 1.3rem;
  font-weight: 750;
  color: var(--ink);
  font-family: var(--font-serif);
}

.rating-badge-stars svg {
  width: 16px;
  height: 16px;
  fill: #f4b400;
}

.rating-badge-text {
  font-size: .78rem;
  color: var(--ink-muted);
}

/* ═══ Responsive image overrides ═════════════════════════════════════════ */

@media (min-width: 768px) {
  .hero-image { height: 300px; }
  .matrix-item .matrix-item-img { height: 190px; }
  .panel-img .about-photo { height: 360px; }
  .page-banner-img { height: 260px; }
}

@media (min-width: 1024px) {
  .hero-image { height: 340px; }
  .panel-img .about-photo { height: 100%; min-height: 360px; }
}

/* ═══ Small-screen image tweaks ═════════════════════════════════════════ */

@media (max-width: 430px) {
  .hero-image { height: 180px; }
  .matrix-item .matrix-item-img { height: 140px; }
  .page-banner-img { height: 160px; }
  .panel-img .about-photo { height: 220px; }
  .trust-badge { font-size: .7rem; padding: .25rem .5rem; }
  .trust-badge svg { width: 12px; height: 12px; }
}

/* ═══ Print ══════════════════════════════════════════════════════════════ */

/* ═══ Scrolled Header State ═════════════════════════════════════════════ */

.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border-bottom-color: var(--line);
}

/* ═══ Button Spinner ════════════════════════════════════════════════════ */

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 600ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══ Breadcrumbs ═══════════════════════════════════════════════════════ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  color: var(--ink-muted);
  margin-bottom: .75rem;
}
.breadcrumb a {
  color: var(--brand-deep);
  text-decoration: none;
  transition: color var(--ease);
}
.breadcrumb a:hover { color: #5a3f16; text-decoration: underline; }
.breadcrumb-sep { color: var(--line); font-size: .7rem; }

/* ═══ Print ══════════════════════════════════════════════════════════════ */

@media print {
  .site-header, .sticky-cta, .back-to-top, .cookie-consent { display: none !important; }
  body { background: #fff; }
  .section-soft { background: none; border: none; }
}
