/* ===== Tokens ===== */
:root {
  --bg: #F7FAFC;
  --bg-alt: #EAF1F7;
  --ink: #10233B;
  --ink-soft: #4B5D71;
  --primary: #1C5FA6;
  --primary-dark: #123E6E;
  --primary-light: #4F8FCB;
  --accent: #F2A73B;
  --accent-light: #F7C578;
  --white: #FFFFFF;
  --line: rgba(16, 35, 59, 0.1);
  --shadow: 0 20px 50px -20px rgba(16, 35, 59, 0.25);
  --radius: 22px;
  --font-display: "Fraunces", serif;
  --font-body: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0 0 .5em; line-height: 1.15; color: var(--primary-dark); }
p { margin: 0 0 1em; color: var(--ink-soft); }
em { font-style: italic; color: var(--primary); }
ul { list-style: none; margin: 0; padding: 0; }

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9em;
}

section { padding: 100px 6vw; position: relative; }
@media (max-width: 720px) { section { padding: 70px 6vw; } }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.section-head__lead { color: var(--ink-soft); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 26px; border-radius: 100px; font-weight: 700; font-size: .95rem;
  border: none; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: var(--white); box-shadow: 0 12px 30px -12px rgba(61,107,92,.55); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(61,107,92,.6); }
.btn--ghost { background: transparent; color: var(--primary-dark); border: 1.5px solid var(--line); }
.btn--ghost:hover { background: var(--white); border-color: var(--primary-light); transform: translateY(-2px); }
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--nav { margin-left: 12px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 239, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: 1240px; margin: 0 auto; padding: 16px 6vw;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__mark { display: flex; }
.brand__logo { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; box-shadow: 0 4px 12px -4px rgba(16,35,59,.35); }
.brand__logo--footer { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px; }
.brand__text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--primary-dark); display: flex; flex-direction: column; line-height: 1.05; }
.brand__text em { font-style: normal; font-family: var(--font-body); font-size: .58rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.brand__amp { color: var(--accent); }
.brand__text--footer { font-size: 1.6rem; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: .92rem; font-weight: 600; color: var(--ink-soft); position: relative; padding: 4px 0; }
.main-nav a::after { content:''; position:absolute; left:0; bottom:-2px; width:0; height:2px; background:var(--accent); transition: width .25s ease; }
.main-nav a:hover { color: var(--primary-dark); }
.main-nav a:hover::after { width: 100%; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 22px; height: 2px; background: var(--primary-dark); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .main-nav { position: fixed; top: 70px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: flex-start; padding: 20px 6vw 26px; gap: 16px; border-bottom: 1px solid var(--line); transform: translateY(-130%); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
  .main-nav.is-open { transform: translateY(0); opacity: 1; }
  .btn--nav { display: none; }
  .burger { display: flex; }
}

/* ===== Hero ===== */
.hero { padding-top: 90px; padding-bottom: 40px; overflow: hidden; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; z-index: 0; }
.hero__blob--1 { width: 420px; height: 420px; background: var(--primary-light); top: -120px; right: -80px; animation: float1 14s ease-in-out infinite; }
.hero__blob--2 { width: 320px; height: 320px; background: var(--accent-light); bottom: -100px; left: -60px; animation: float2 16s ease-in-out infinite; }

.hero__path { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .5; }
#heroPath { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw-path 2.4s cubic-bezier(.65,0,.35,1) forwards .2s; }

.hero__content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }
.hero__title { font-size: clamp(2.3rem, 6vw, 4.1rem); }
.reveal-line { display: block; overflow: hidden; }
.reveal-line__inner { display: block; transform: translateY(110%); animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards; }
.reveal-line:nth-child(1) .reveal-line__inner { animation-delay: .15s; }
.reveal-line:nth-child(2) .reveal-line__inner { animation-delay: .3s; }
.reveal-line:nth-child(3) .reveal-line__inner { animation-delay: .45s; }

.hero__lead { font-size: 1.1rem; max-width: 560px; margin: 20px auto 32px; }
.hero__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }

.hero__stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid var(--line); }
.stat { text-align: center; }
.stat__num, .stat__suffix { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; color: var(--primary-dark); }
.stat__label { display: block; font-size: .8rem; color: var(--ink-soft); margin-top: 4px; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; max-width: 1200px; margin: 0 auto; }
.about__frame { position: relative; }
.about__illustration { width: 100%; height: 480px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 880px) { .about__illustration { height: 320px; } }
.about__badge { position: absolute; bottom: 18px; left: 18px; right: 18px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); padding: 10px 14px; border-radius: 12px; font-size: .78rem; font-weight: 700; color: var(--primary-dark); text-align: center; }
.about__text h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.checklist { display: grid; gap: 14px; margin-top: 24px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; color: var(--ink); }
.checklist svg { flex-shrink: 0; color: var(--accent); margin-top: 2px; }

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

/* ===== Services ===== */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; }
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 32px 28px;
  border: 1px solid var(--line); transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.service-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--bg-alt); color: var(--primary); margin-bottom: 18px; transition: background .35s ease, color .35s ease; }
.service-card:hover .service-card__icon { background: var(--primary); color: var(--white); }
.service-card h3 { font-size: 1.15rem; margin-bottom: .4em; }
.service-card p { font-size: .92rem; margin: 0; }

@media (max-width: 980px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services__grid { grid-template-columns: 1fr; } }

/* ===== Gallery ===== */
.gallery__grid {
  max-width: 1200px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.gallery__item { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery__item--tall { grid-row: span 2; aspect-ratio: auto; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.gallery__item--top img { object-position: center bottom; }
.gallery__item:hover img { transform: scale(1.06); }

@media (max-width: 880px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--tall { grid-row: span 1; aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .gallery__grid { grid-template-columns: 1fr; }
}

/* ===== Process ===== */
.process { background: var(--bg-alt); }
.timeline { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.timeline__line { position: absolute; top: 22px; left: 6%; right: 6%; height: 2px; background: var(--line); z-index: 0; }
.timeline__line-fill { display: block; height: 100%; width: 0%; background: var(--accent); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.timeline__step { position: relative; z-index: 1; }
.timeline__num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 2px solid var(--primary); color: var(--primary-dark); font-family: var(--font-display); font-weight: 600; margin-bottom: 18px; }
.timeline__step h3 { font-size: 1.1rem; }
.timeline__step p { font-size: .9rem; }

@media (max-width: 880px) { .timeline { grid-template-columns: 1fr 1fr; } .timeline__line { display: none; } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }

/* ===== Testimonials ===== */
.testi-carousel { max-width: 760px; margin: 0 auto; overflow: hidden; }
.testi-track { display: flex; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.testi-card {
  flex: 0 0 100%; margin: 0; background: var(--white); border-radius: var(--radius);
  padding: 40px; border: 1px solid var(--line); text-align: center;
}
.testi-card p { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); font-style: italic; }
.testi-card footer { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; }
.testi-card footer div { text-align: left; font-size: .85rem; }
.testi-card footer strong { display: block; color: var(--primary-dark); }
.testi-card footer span { color: var(--ink-soft); }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.testi-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.testi-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; padding: 0; transition: background .3s ease, transform .3s ease; }
.testi-dots button.is-active { background: var(--accent); transform: scale(1.25); }

/* ===== Contact ===== */
.contact__inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; }
.contact__list { display: grid; gap: 16px; margin-top: 28px; }
.contact__list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.contact__list svg { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.contact__list em { font-style: normal; color: var(--ink-soft); font-weight: 500; }
.contact__list a { color: var(--primary); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.contact__list a:hover { border-color: var(--primary); }
.contact__list li { flex-wrap: wrap; }
.contact__maplink { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-left: 4px; }
.contact__map { margin-top: 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact__map iframe { display: block; }

.contact__form { background: var(--white); border-radius: var(--radius); padding: 36px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 6px; color: var(--primary-dark); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  font-family: var(--font-body); font-size: .95rem; background: var(--bg); color: var(--ink);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(107,155,135,.18);
}
.field textarea { resize: vertical; }
.contact__hint { text-align: center; font-size: .78rem; margin: 14px 0 0; }

@media (max-width: 880px) { .contact__inner { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.85); padding: 70px 6vw 0; }
.site-footer__inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .brand__text--footer, .site-footer .brand__amp { color: var(--white); }
.site-footer__brand p { color: rgba(255,255,255,.6); max-width: 260px; margin-top: 8px; }
.socials { display: flex; gap: 12px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; transition: background .25s ease, border-color .25s ease; }
.socials a:hover { background: var(--accent); border-color: var(--accent); }
.site-footer__links { display: flex; gap: 60px; flex-wrap: wrap; }
.site-footer__links h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.5); margin-bottom: 14px; }
.site-footer__links a { display: block; font-size: .92rem; margin-bottom: 10px; color: rgba(255,255,255,.85); transition: color .2s ease; }
.site-footer__links a:hover { color: var(--accent-light); }
.site-footer__bottom { max-width: 1200px; margin: 0 auto; padding: 22px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: rgba(255,255,255,.55); }
.footer-credit a { font-weight: 700; color: var(--accent-light); }

/* ===== WhatsApp FAB ===== */
.whats-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px -10px rgba(37,211,102,.6);
  animation: pulse 2.6s ease-in-out infinite;
}
.whats-fab:hover { transform: scale(1.08); }

/* ===== Scroll reveal ===== */
.reveal, .reveal-scale { opacity: 0; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal { transform: translateY(24px); }
.reveal-scale { transform: translateY(24px) scale(.97); }
.reveal.is-visible, .reveal-scale.is-visible { opacity: 1; transform: none; }

/* stagger children of grids that share a reveal wrapper */
.services__grid .service-card:nth-child(1) { transition-delay: .05s; }
.services__grid .service-card:nth-child(2) { transition-delay: .1s; }
.services__grid .service-card:nth-child(3) { transition-delay: .15s; }
.services__grid .service-card:nth-child(4) { transition-delay: .2s; }
.services__grid .service-card:nth-child(5) { transition-delay: .25s; }
.services__grid .service-card:nth-child(6) { transition-delay: .3s; }
.timeline__step:nth-child(2) { transition-delay: .1s; }
.timeline__step:nth-child(3) { transition-delay: .2s; }
.timeline__step:nth-child(4) { transition-delay: .3s; }

/* ===== Keyframes ===== */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes draw-path { to { stroke-dashoffset: 0; } }
@keyframes rise { to { transform: translateY(0); } }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, 30px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px, -20px); } }
@keyframes pulse { 0%,100% { box-shadow: 0 14px 30px -10px rgba(37,211,102,.6); } 50% { box-shadow: 0 14px 30px -10px rgba(37,211,102,.95); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal-scale { opacity: 1; transform: none; }
}
