/* ---------- Tokens ---------- */
:root {
  --color-bg: #f7f8fa;
  --color-bg-alt: #ffffff;
  --color-text: #1e2530;
  --color-text-muted: #545e6b;
  --color-border: #e1e5ea;
  --color-accent: #2f6f8f;
  --color-accent-dark: #234f66;
  --color-accent-tint: #eaf2f5;
  --color-whatsapp: #25a866;
  --color-whatsapp-dark: #1c8a53;

  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(30, 37, 48, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 37, 48, 0.08);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --header-height: 72px;
  --container-width: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3, p { overflow-wrap: anywhere; }
ul, ol { padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  background: var(--color-accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 8px;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px;
}
.btn:hover { transform: translateY(-1px); }

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-whatsapp:hover { background: var(--color-whatsapp-dark); }

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
}
.wordmark img {
  height: 46px;
  width: auto;
}

.main-nav ul {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-whatsapp {
  padding: 9px 18px;
  min-height: 40px;
  font-size: 0.9rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 72px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy { min-width: 0; }

.eyebrow {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.hero-desc {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 52ch;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.hero-trust li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
.hero-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ---------- Image placeholder system ---------- */
.image-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(155deg, var(--color-accent-tint), #dbe6ea);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: flex-end;
}

.image-placeholder.is-square { aspect-ratio: 1 / 1; }

.image-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-label {
  display: none;
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 12px 16px;
  font-size: 0.75rem;
  color: var(--color-accent-dark);
  background: rgba(255, 255, 255, 0.7);
  font-family: monospace;
}

.image-placeholder.is-empty img { display: none; }
.image-placeholder.is-empty .placeholder-label { display: block; }

/* ---------- Stats ---------- */
.stats {
  background: var(--color-accent-dark);
  padding: 44px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Cards / Services ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--color-accent-tint);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.96rem;
  margin-bottom: 18px;
}

.card-link {
  font-weight: 600;
  color: var(--color-accent);
  font-size: 0.92rem;
}
.card-link:hover { text-decoration: underline; }

/* ---------- Why us ---------- */
.why { background: var(--color-bg-alt); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-accent-dark);
}

.feature p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.process-step {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.step-no {
  display: block;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.process-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px 22px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 32px 18px 0;
  font-weight: 600;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-accent);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  padding-bottom: 20px;
}

/* ---------- Contact CTA ---------- */
.contact-cta {
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
  color: #fff;
  text-align: center;
}

.contact-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  max-width: 640px;
  margin: 0 auto 16px;
  letter-spacing: -0.01em;
}

.contact-inner p {
  max-width: 560px;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.contact-inner .hero-ctas {
  justify-content: center;
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 0 28px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
}

.footer-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-location {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}

.footer-contact {
  display: flex;
  gap: 24px;
  font-weight: 600;
  font-size: 0.92rem;
}
.footer-contact a:hover { color: #fff; }

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Floating WhatsApp ---------- */
.floating-whatsapp {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 168, 102, 0.4);
  z-index: 600;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.floating-whatsapp:hover {
  background: var(--color-whatsapp-dark);
  transform: scale(1.05);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1024px) {
  .container { padding: 0 18px; }

  .hero-inner { gap: 36px; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 320px; }

  .main-nav ul {
    flex-direction: column;
    padding: 8px 20px 20px;
    gap: 4px;
  }
  .main-nav a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid var(--color-border);
  }

  .hamburger { display: flex; }
  .header-whatsapp { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-media { order: -1; width: 100%; max-width: 420px; margin: 0 auto; }

  .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }

  .feature-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stats-grid { grid-template-columns: 1fr; gap: 28px; }

  .hero-ctas .btn,
  .contact-inner .hero-ctas .btn {
    width: 100%;
  }
  .hero-ctas, .contact-inner .hero-ctas { flex-direction: column; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .wordmark { font-size: 1rem; }
}
