/* Fonts — self-hosted */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/Fraunces-Variable.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/Fraunces-Italic-Variable.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/assets/fonts/WorkSans-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f4ec;
  --bg-alt: #ecf0e2;
  --paper: #ffffff;
  --text: #20261c;
  --text-dim: #626b58;
  --accent: #2c6e68;
  --accent-soft: #7fb3a8;
  --on-accent: #f6f4ec;
  --line: #dee3d2;
  --radius: 18px;
  --shadow: 0 2px 6px rgba(32,38,28,.04), 0 12px 28px -14px rgba(32,38,28,.14);
  --shadow-hover: 0 6px 12px rgba(32,38,28,.06), 0 24px 44px -18px rgba(32,38,28,.22);
}

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

html { scroll-behavior: smooth; }

body {
  position: relative;
  font-family: "Work Sans", system-ui, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
body::before {
  width: 620px;
  height: 620px;
  top: -220px;
  left: -180px;
  background: radial-gradient(circle, rgba(44,110,104,.20), transparent 70%);
}
body::after {
  width: 700px;
  height: 700px;
  bottom: -260px;
  right: -220px;
  background: radial-gradient(circle, rgba(127,179,168,.22), transparent 70%);
}

main {
  position: relative;
}
main::before {
  content: "";
  position: absolute;
  top: 35%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44,110,104,.08), transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  font-family: "Work Sans", sans-serif;
}
.eyebrow::before { content: "— "; }

.center { text-align: center; margin-left: auto; margin-right: auto; }

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 22px; font-weight: 500; }
h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin-bottom: 12px; }
h3 { font-family: "Fraunces", serif; font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }

.section-sub { color: var(--text-dim); max-width: 600px; margin-bottom: 44px; }
.section-sub.center { margin-left: auto; margin-right: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246,244,236,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.3rem; }
.logo span { color: var(--accent); font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  transition: color .2s;
}
.nav-links li > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--accent);
  transition: right .25s ease;
}
.nav-links li > a:not(.btn):hover::after { right: 0; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(44,110,104,.28); }
.btn-outline { border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: 9px 20px; font-size: .88rem; }

/* Hero */
.hero { padding: 100px 0 70px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.hero-sub { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 30px; max-width: 500px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-trust { list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--text-dim); font-size: .9rem; }
.hero-trust li::before { content: "✓ "; color: var(--accent); }

.hero-visual { position: relative; height: 420px; }

.dash-panel {
  position: absolute;
  top: 20px;
  left: -10px;
  width: 460px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 28px 30px 32px;
  transform: rotate(-2deg);
  animation: dash-float 7s ease-in-out infinite;
}
.dash-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}
.dash-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dash-title {
  margin-left: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-dim);
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.dash-stat { display: flex; flex-direction: column; gap: 6px; }
.dash-label { font-size: .8rem; color: var(--text-dim); }
.dash-value {
  font-family: "Fraunces", serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--accent);
}
.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 90px;
}
.dash-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  opacity: 0;
  transform: scaleY(0);
  transform-origin: bottom;
  animation: bar-grow .6s ease forwards;
}
.dash-bars span:nth-child(1) { animation-delay: .1s; }
.dash-bars span:nth-child(2) { animation-delay: .18s; }
.dash-bars span:nth-child(3) { animation-delay: .26s; }
.dash-bars span:nth-child(4) { animation-delay: .34s; }
.dash-bars span:nth-child(5) { animation-delay: .42s; }
.dash-bars span:nth-child(6) { animation-delay: .5s; }
.dash-bars span:nth-child(7) { animation-delay: .58s; }

.dash-badge {
  position: absolute;
  top: -6px;
  right: 0;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .88rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  animation: dash-float 7s ease-in-out infinite reverse;
}

@keyframes dash-float {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-10px); }
}
@keyframes bar-grow {
  to { opacity: 1; transform: scaleY(1); }
}

/* Sections */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:nth-child(even) { transform: translateY(10px); }
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-hover); }
.card:nth-child(even):hover { transform: translateY(6px); }
.card p { color: var(--text-dim); font-size: .95rem; }
.card.featured { border-color: var(--accent); }

.badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

/* Case study */
.case-study {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 56px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.case-study:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-hover); }
.case-study-text .badge { position: static; display: inline-block; margin-bottom: 14px; }
.case-study-text h3 { font-size: 1.5rem; }
.case-study-text p { color: var(--text-dim); font-size: .96rem; margin-bottom: 16px; }
.case-study-link { color: var(--accent); font-weight: 600; font-size: .92rem; }
.case-study-preview {
  height: 260px;
  background-color: var(--bg-alt);
  background-size: cover;
  background-position: top center;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.subsection { margin-top: 8px; }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 28px; }
.portfolio-item {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.portfolio-thumb {
  height: 260px;
  background-color: var(--bg-alt);
  background-size: cover;
  background-position: top center;
  border-bottom: 1px solid var(--line);
}
.portfolio-info { padding: 20px 22px 24px; }
.portfolio-info h3 { font-size: 1.15rem; margin-bottom: 8px; }
.portfolio-info p { color: var(--text-dim); font-size: .92rem; line-height: 1.55; }
.portfolio-item:nth-child(2) { transform: translateY(-12px); }
.portfolio-item:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow-hover); }
.portfolio-item:nth-child(2):hover { transform: translateY(-18px); }

@media (max-width: 700px) {
  .portfolio-item:nth-child(2) { transform: none; }
  .portfolio-item:nth-child(2):hover { transform: translateY(-6px); }
}

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.price-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.price-card.featured { border-color: var(--accent-soft); }
.price { font-family: "Fraunces", serif; font-size: 1.9rem; font-weight: 600; margin: 8px 0 12px; color: var(--accent); }
.price-desc { color: var(--text-dim); font-size: .92rem; margin-bottom: 16px; }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: .92rem; color: var(--text-dim); }
.price-card li::before { content: "✓ "; color: var(--accent); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }
.contact-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.contact-list a:hover { color: var(--accent); }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: .86rem; color: var(--text-dim); }
.form-row input, .form-row select, .form-row textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-status { font-size: .9rem; min-height: 1.2em; }
.form-status.ok { color: var(--accent); }
.form-status.error { color: #b3543a; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid .logo { font-family: "Fraunces", serif; }
.footer-grid p { color: var(--text-dim); font-size: .92rem; margin-top: 10px; }
.footer-grid h4 { font-family: "Work Sans", sans-serif; font-size: .88rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; color: var(--text-dim); }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--text-dim); font-size: .92rem; }
.footer-grid a:hover { color: var(--accent); }
.copy { text-align: center; color: var(--text-dim); font-size: .85rem; }

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  box-shadow: 0 8px 24px rgba(32,38,28,.25);
  z-index: 200;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(32,38,28,.25), 0 0 0 0 rgba(44,110,104,.4); }
  50% { box-shadow: 0 8px 24px rgba(32,38,28,.25), 0 0 0 10px rgba(44,110,104,0); }
}

/* Scroll reveal */
[data-reveal] .reveal-item,
[data-reveal] > .container > h2,
[data-reveal] > .container > .eyebrow,
[data-reveal] > .container > .section-sub {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-visible .reveal-item,
[data-reveal].is-visible > .container > h2,
[data-reveal].is-visible > .container > .eyebrow,
[data-reveal].is-visible > .container > .section-sub {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal] .reveal-item:nth-child(1) { transition-delay: .05s; }
[data-reveal] .reveal-item:nth-child(2) { transition-delay: .12s; }
[data-reveal] .reveal-item:nth-child(3) { transition-delay: .19s; }
[data-reveal] .reveal-item:nth-child(4) { transition-delay: .26s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Hero quick-form (landing pages) */
.hero-form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-form-card h3 { font-size: 1.3rem; margin-bottom: 0; }
.hero-form-sub { color: var(--text-dim); font-size: .88rem; margin-top: -8px; }
.hero-form-note { color: var(--text-dim); font-size: .78rem; text-align: center; margin-top: 4px; }

/* Trust band */
.trust-band { padding: 32px 0; }
.trust-band-text {
  color: var(--text-dim);
  font-size: .95rem;
  max-width: 640px;
}
.trust-band-text strong { color: var(--accent); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-number {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-soft);
  margin-bottom: 6px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: .95rem; }

/* CTA band */
.cta-band { padding: 70px 0; }
.cta-band-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.cta-band-inner h2 { max-width: 640px; }
.cta-band-inner .btn { margin-top: 18px; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid, .contact-grid, .case-study { grid-template-columns: 1fr; }
  .hero-visual { order: -1; height: 220px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
}
