/* E clean, Vere — logo palette: blue header, yellow CTAs, green accents, forest text */
:root {
  --brand-blue: #0059b3;
  --brand-blue-dark: #003d7a;
  --brand-green: #4caf50;
  --brand-yellow: #ffd700;
  --ink: #002200;
  --ink-navy: #001a33;

  --bg: #f7faf8;
  --surface: #ffffff;
  --surface-elevated: #f2f7f3;
  --text: #0d2818;
  --text-muted: #6b7a6e;
  --accent: var(--brand-blue);
  --accent-bright: #0070d6;
  --accent-soft: #e6f0fa;
  --accent-glow: rgba(0, 89, 179, 0.28);
  --secondary: var(--brand-green);
  --secondary-soft: rgba(76, 175, 80, 0.12);
  --violet: var(--brand-green);
  --border: #dfe8df;
  --border-strong: #c5d1c5;
  --ring: rgba(76, 175, 80, 0.45);
  --cta-from: var(--brand-blue);
  --cta-to: var(--brand-blue-dark);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(24, 24, 27, 0.06), 0 2px 4px -2px rgba(24, 24, 27, 0.04);
  --shadow-lg: 0 20px 40px -16px rgba(24, 24, 27, 0.12);
  --shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 12px 40px -8px var(--accent-glow);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 4rem;
  /* Offset for anchor links: sticky header + safe area only */
  --header-scroll-offset: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  --wrap: min(100% - 1.5rem, 70rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-scroll-offset);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .feature-card {
    transition: none;
  }

  .feature-card:hover {
    transform: none;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 767px) {
  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink-navy);
  color: var(--surface);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: max(0px, env(safe-area-inset-left));
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* Mobile menu — dim layer under overlay (tap to close) */
.nav-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 40;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(0, 26, 51, 0.45);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    visibility 0s linear 0.28s;
}

body.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.28s ease,
    visibility 0s;
}

@media (min-width: 768px) {
  .nav-backdrop {
    display: none !important;
  }
}

/* Header — brand blue bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-blue);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
  padding-block: 0.3rem;
}

.logo {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1.15;
  text-decoration: none;
  order: 1;
}

.logo:hover .logo-img {
  filter: brightness(1.06);
}

.logo-img {
  display: block;
  flex-shrink: 0;
  height: clamp(3.15rem, 10.5vw, 3.95rem);
  width: auto;
  max-width: min(16rem, 60vw);
  object-fit: contain;
  object-position: left center;
}

.logo-text {
  font-weight: 800;
  font-size: clamp(1.18rem, 4.2vw, 1.55rem);
  letter-spacing: -0.03em;
  color: #fff;
}

.logo-text-accent {
  color: var(--brand-yellow);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  order: 2;
  margin-left: auto;
  box-shadow: none;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: #fff;
  position: relative;
  transition: transform 0.2s ease;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

.site-nav.is-open .nav-toggle-bar {
  background: transparent;
}

.site-nav.is-open .nav-toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.site-nav.is-open .nav-toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: contents;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1 0 100%;
  width: 100%;
  order: 3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.4rem;
  margin-top: 0.25rem;
  box-shadow: var(--shadow-lg);
}

.site-nav.is-open .nav-list {
  display: flex;
}

@media (max-width: 767px) {
  .nav-list {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 101;
    width: 100%;
    height: auto;
    max-height: min(85vh, calc(100dvh - var(--header-h) - 0.75rem));
    margin: 0;
    margin-top: 0;
    padding: 0.65rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border: none;
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.65rem);
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
      visibility 0s linear 0.32s;
  }

  .site-nav.is-open .nav-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition:
      opacity 0.22s ease,
      transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
      visibility 0s;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .nav-list,
  .site-nav.is-open .nav-list {
    transform: none !important;
  }

  .nav-list {
    transition: opacity 0.12s ease, visibility 0s linear 0.12s;
  }

  .site-nav.is-open .nav-list {
    transition: opacity 0.12s ease, visibility 0s;
  }

  .nav-backdrop {
    transition: opacity 0.12s ease, visibility 0s linear 0.12s;
  }

  body.nav-open .nav-backdrop {
    transition: opacity 0.12s ease, visibility 0s;
  }
}

.nav-list a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.nav-list a:not(.btn):hover {
  background: var(--accent-soft);
  color: var(--accent);
}

@media (min-width: 768px) {
  .nav-list a:not(.btn) {
    color: #fff;
  }

  .nav-list a:not(.btn):hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }
}

.nav-cta {
  margin-top: 0.35rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    order: 2;
    margin-left: auto;
  }

  .logo {
    flex: 0 0 auto;
    order: 1;
  }

  .nav-list {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 0.2rem;
    flex: 0 0 auto;
    width: auto;
    order: 0;
    margin-top: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    position: static;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    max-height: none;
    overflow: visible;
    transition: none !important;
  }

  .nav-cta {
    margin-top: 0;
    margin-left: 0.5rem;
  }
}

/* Buttons — pill primary */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--small {
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  font-size: 0.8125rem;
}

.btn--primary {
  background: var(--brand-yellow);
  color: var(--ink);
  border: 1px solid rgba(0, 34, 0, 0.12);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06), var(--shadow-md);
}

.btn--primary:hover {
  filter: brightness(1.04);
  box-shadow: 0 4px 16px -2px rgba(255, 215, 0, 0.45), var(--shadow-md);
}

.btn--whatsapp {
  gap: 0.45rem;
  background: #25d366;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08), var(--shadow-md);
}

.btn--whatsapp:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 16px -2px rgba(37, 211, 102, 0.45), var(--shadow-md);
}

.btn--whatsapp.btn--nav-cta {
  background: #25d366;
  color: #fff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: none;
}

.btn--whatsapp.btn--nav-cta:hover {
  filter: brightness(1.08);
}

.btn--whatsapp.btn--on-dark {
  background: #25d366;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn--whatsapp.btn--on-dark:hover {
  filter: brightness(1.08);
}

.btn-whatsapp-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.btn-whatsapp-icon svg {
  display: block;
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  border-color: var(--text-muted);
  background: var(--surface-elevated);
}

.btn--nav-cta {
  background: var(--brand-yellow);
  color: var(--ink);
  border-color: rgba(0, 34, 0, 0.15);
  box-shadow: none;
}

.btn--nav-cta:hover {
  filter: brightness(1.05);
}

.btn--on-dark {
  background: var(--brand-yellow);
  color: var(--ink);
  border: 1px solid rgba(0, 34, 0, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn--on-dark:hover {
  filter: brightness(1.05);
}

/* Hero — mesh + grid (no photo) */
.hero {
  position: relative;
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(4rem, 12vw, 7rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 10% -10%, rgba(0, 89, 179, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 95% 15%, rgba(76, 175, 80, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(0, 89, 179, 0.06) 0%, transparent 55%),
    linear-gradient(180deg, #fafdfb 0%, var(--bg) 100%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 40, 24, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 40, 24, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 0%, transparent 85%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 89, 179, 0.2);
  box-shadow: var(--shadow-sm);
}

.hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 6.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
  max-width: 14ch;
  color: var(--text);
}

.hero-title-accent {
  background: linear-gradient(120deg, var(--brand-blue) 0%, var(--brand-green) 55%, #2e7d32 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

/* Sections */
.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section--muted {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.625rem, 3.8vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-lead {
  margin: 0 0 2rem;
  color: var(--text-muted);
  max-width: 40rem;
  font-size: 1.02rem;
}

/* Proof — minimal strips */
.proof-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .proof-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.proof-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.1rem 1.15rem;
  background: var(--surface-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 0.9375rem;
  line-height: 1.55;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.proof-item:hover {
  border-color: rgba(76, 175, 80, 0.35);
  box-shadow: var(--shadow-md);
}

.proof-icon {
  flex-shrink: 0;
  width: 1.625rem;
  height: 1.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  color: var(--brand-green);
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.7rem;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

/* Feature grid — floating cards */
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  padding: 1.5rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(0, 89, 179, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .feature-card:hover {
    transform: none;
  }
}

.feature-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.feature-card-head .feature-icon {
  margin-bottom: 0;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-blue);
  background: linear-gradient(145deg, var(--accent-soft), #fff);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 89, 179, 0.14);
}

.feature-price {
  margin: 0;
  text-align: right;
  line-height: 1.2;
}

.feature-price-prefix {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.feature-price-value {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-blue);
}

.feature-price-unit {
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.feature-title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  list-style-type: disc;
}

.feature-list li {
  margin-bottom: 0.35rem;
}

.feature-list li:last-child {
  margin-bottom: 0;
}

/* CTA band — brand blue */
.cta-band {
  position: relative;
  padding: clamp(3rem, 9vw, 5rem) 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cta-from) 0%, var(--cta-to) 55%, #001a33 100%);
  color: rgba(255, 255, 255, 0.92);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 80% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.cta-band-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.cta-band-title {
  margin: 0;
  font-size: clamp(1.625rem, 4.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #fff;
}

.cta-band-text {
  margin: 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* Contact */
.contact-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
    gap: 3rem;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.input {
  min-height: 48px;
  padding: 0.65rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:hover {
  border-color: var(--border-strong);
}

.input:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px var(--secondary-soft);
}

.input--area {
  min-height: 8rem;
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-note code {
  font-size: 0.85em;
  background: var(--bg);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* Footer */
.site-footer {
  padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--ink-navy);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

@media (min-width: 600px) {
  .footer-links {
    justify-content: flex-end;
  }
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand-yellow);
}
