/* CRECER CO. — Shared Components v3.0 */

/* ════════════════════════════════
   NAVBAR
════════════════════════════════ */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), var(--container-max));
  z-index: 100;
  height: 60px;
  background: #ffffff;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow var(--duration-base) var(--ease);
}
.nav.scrolled {
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.13), 0 1px 4px rgba(0, 0, 0, 0.06);
}
.nav__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 100%;
  padding-inline: 24px;
  gap: var(--space-4);
}
.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
}
.nav__end {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  justify-content: flex-end;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
.nav__logo-wordmark {
  font-family: var(--font-label);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #090909;
  line-height: 1;
}
.nav__logo-wordmark span { color: var(--color-forest); }
.nav__logo-icon { flex-shrink: 0; display: block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  color: rgba(0, 12, 56, 0.6);   /* Midnight Blue 60% — 5.1:1 ✅ */
  transition: color var(--duration-fast);
}
.nav__link:hover, .nav__link.active { color: #000c38; }   /* 18:1 ✅ */

.nav__phone {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(0, 12, 56, 0.65);
  white-space: nowrap;
  transition: color var(--duration-fast);
}
.nav__phone:hover { color: #000c38; }

.nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Nav CTA pill override */
.nav .btn--primary {
  border-radius: var(--radius-pill);
  padding: 9px 20px;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 2px;
}
.lang-toggle__btn {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: rgba(0,12,56,0.5);
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast);
}
.lang-toggle__btn.active {
  background: #000c38;   /* Midnight Blue — white on it: 18:1 ✅ */
  color: var(--color-white);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #090909;
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease),
              opacity var(--duration-base);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.nav__drawer {
  display: none;
  position: fixed;
  inset: 80px 0 0 0;
  background: rgba(255, 255, 255, 0.99);
  backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  z-index: 99;
}
.nav__drawer.open { display: flex; }
.nav__drawer .nav__link {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: #090909;
}

@media (max-width: 768px) {
  .nav__links, .nav__right .btn, .nav__phone { display: none; }
  .nav__hamburger { display: flex; }
  .nav__end { gap: var(--space-2); }
  .nav { width: calc(100% - 24px); top: 10px; }
  .nav__inner { grid-template-columns: auto 1fr auto; }
}

/* ════════════════════════════════
   BUTTONS
════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--duration-base) var(--ease),
              border-color var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease);
  white-space: nowrap;
  will-change: transform;
}
.btn:active { transform: scale(0.98) !important; box-shadow: none !important; }
.btn--primary {
  background: var(--color-forest);
  color: #090909;
}
.btn--primary:hover {
  background: var(--color-amber-light);
  box-shadow: 0 4px 16px rgba(255, 183, 3, 0.28);
  transform: translateY(-1px);
}
.btn--secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(255, 183, 3, 0.35);
}
.btn--secondary:hover {
  background: rgba(255, 183, 3, 0.07);
  border-color: var(--color-forest);
  transform: translateY(-1px);
}
.btn--dark {
  background: #090909;
  color: var(--color-forest);
  border: 1px solid rgba(255, 183, 3, 0.3);
}
.btn--dark:hover {
  background: var(--color-midnight);
  border-color: var(--color-forest);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}
.btn--light {
  background: var(--color-white);
  color: var(--color-navy);
  border: none;
}
.btn--light:hover {
  background: var(--color-parchment);
  transform: translateY(-1px);
}
.btn--lg {
  padding: 14px 32px;
  font-size: 12px;
}
.btn--sm {
  padding: 8px 16px;
  font-size: 10px;
}

/* ════════════════════════════════
   SERVICE CARDS
════════════════════════════════ */
.service-card {
  background: var(--color-bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 3px solid var(--color-forest);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.service-card__number {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);  /* Fogstone #6c757d — 4.6:1 on white ✅ */
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.service-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-4);
  color: var(--color-forest);  /* Amber — decorative icon, fine ✅ */
}
.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #090909;   /* 18.7:1 ✅ */
  margin-bottom: var(--space-3);
  line-height: 1.25;
}
.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);   /* Fogstone — 4.6:1 ✅ */
  line-height: 1.7;
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000c38;   /* Midnight Blue — 18:1 ✅ */
  transition: gap var(--duration-fast);
}
.service-card__link:hover { gap: var(--space-3); color: var(--color-forest-dark); }

/* ════════════════════════════════
   STATS BAR
════════════════════════════════ */
.stats-bar {
  background: #090909;
  border-bottom: 3px solid var(--color-forest);
  padding-block: var(--space-10);
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  text-align: center;
}
.stats-bar__item { position: relative; }
.stats-bar__item + .stats-bar__item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%;
  height: 60%; width: 1px;
  background: rgba(255,255,255,0.1);
}
.stats-bar__number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-forest);  /* Amber on #090909 — 8:1 ✅ */
  line-height: 1;
}
.stats-bar__label {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);  /* on dark bg — ~6:1 ✅ */
  margin-top: var(--space-2);
}
@media (max-width: 768px) {
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar__item:nth-child(3)::before { display: none; }
}
@media (max-width: 480px) {
  .stats-bar__grid { grid-template-columns: 1fr; }
  .stats-bar__item::before { display: none; }
}

/* ════════════════════════════════
   KPI / METRIC BADGE
════════════════════════════════ */
.kpi-badge {
  background: rgba(255, 183, 3, 0.07);
  border: 1px solid rgba(255, 183, 3, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  text-align: center;
}
.kpi-badge__number {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-forest-light);
  line-height: 1;
}
.kpi-badge__label {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gray);
  margin-top: var(--space-2);
}

/* ════════════════════════════════
   SECTION HEADINGS
════════════════════════════════ */
.section-label {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-label-light);   /* Midnight Blue #000c38 — 18:1 on white ✅ */
  margin-bottom: var(--space-4);
}
/* On dark backgrounds override to amber/white */
.section--dark .section-label,
[data-bg="dark"] .section-label { color: var(--color-forest); }

.section--dark .section-title,
[data-bg="dark"] .section-title { color: #ffffff; }

.section--dark .section-subtitle,
[data-bg="dark"] .section-subtitle { color: rgba(255,255,255,0.65); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #090909;   /* 18.7:1 on white ✅ */
}
.section-title--light { color: var(--color-white); }  /* for dark sections */
.section-title--dark  { color: var(--color-navy); }
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);  /* Fogstone — 4.6:1 ✅ */
  line-height: 1.75;
  max-width: 560px;
  margin-top: var(--space-4);
}
.section-subtitle--on-dark {
  color: rgba(255,255,255,0.65);  /* white 65% on dark — 6.8:1 ✅ */
}
.section-subtitle--dark { color: var(--color-mid-gray); }

/* ════════════════════════════════
   CALLOUT / HIGHLIGHT BOX
════════════════════════════════ */
.callout {
  background: rgba(255, 183, 3, 0.07);
  border-left: 4px solid var(--color-forest);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-6) var(--space-8);
}
.callout__title {
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #000c38;   /* Midnight Blue — 18:1 ✅ */
  margin-bottom: var(--space-2);
  letter-spacing: 0.05em;
}
.callout__text {
  font-size: var(--text-base);
  color: #090909;   /* 18.7:1 ✅ */
  line-height: 1.6;
}

/* ════════════════════════════════
   TESTIMONIAL CARD
════════════════════════════════ */
.testimonial-card {
  background: var(--color-bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
}
.testimonial-card__quote {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-style: italic;
  color: #090909;   /* 18.7:1 ✅ */
  line-height: 1.6;
  margin-bottom: var(--space-6);
}
.testimonial-card__quote::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--color-forest);  /* Amber decorative — large 3rem, AA Large passes at 3:1; amber is 2.7 so borderline but decorative ✅ */
  line-height: 0.5;
  vertical-align: -0.4em;
  margin-right: var(--space-1);
  font-family: var(--font-display);
  font-weight: 700;
}
.testimonial-card__author {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000c38;   /* Midnight Blue — 18:1 ✅ */
}
.testimonial-card__business {
  font-size: var(--text-sm);
  color: var(--color-text-muted);  /* Fogstone — 4.6:1 ✅ */
  margin-top: var(--space-1);
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.footer {
  background: #090909;
  padding-block: var(--space-16) var(--space-8);
  border-top: 1px solid rgba(255, 183, 3, 0.12);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
.footer__logo-wordmark {
  font-family: var(--font-label);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-white);
}
.footer__logo-wordmark span { color: var(--color-forest-light); }
.footer__tagline {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-style: italic;
  color: var(--color-forest-light);
  margin-top: var(--space-2);
}
.footer__desc {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: 1.7;
  margin-top: var(--space-4);
}
.footer__heading {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-forest-light);
  margin-bottom: var(--space-6);
}
.footer__links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__link {
  font-size: var(--text-sm);
  color: var(--color-gray);
  transition: color var(--duration-fast);
}
.footer__link:hover { color: var(--color-white); }
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-gray);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}
.footer__contact-icon {
  width: 16px;
  height: 16px;
  color: var(--color-forest-light);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.07);
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-gray);
}
.footer__bottom-tagline {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-forest-light);
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════
   CTA BANNER
════════════════════════════════ */
.cta-banner {
  background: linear-gradient(108deg, #000c38 0%, #090909 100%);
  padding-block: var(--space-20);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
}
.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffb703;
  line-height: 1.1;
  position: relative;
}
.cta-banner__sub {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.68);
  margin-top: var(--space-4);
  margin-bottom: var(--space-8);
  position: relative;
}
.cta-banner .btn {
  position: relative;
}

/* ════════════════════════════════
   FORM
════════════════════════════════ */
.form-group { margin-bottom: var(--space-6); }
.form-label {
  display: block;
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gray);
  margin-bottom: var(--space-2);
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: var(--text-base);
  color: #090909;   /* 18.7:1 ✅ */
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  outline: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--color-text-muted); }   /* 4.6:1 ✅ */
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.18);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { appearance: none; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }


/* ════════════════════════════════
   LANG PROMPT (English available)
════════════════════════════════ */
.lang-prompt {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid rgba(0,12,56,0.10);
  border-radius: 50px;
  padding: 10px 14px 10px 16px;
  box-shadow: 0 4px 24px rgba(0,12,56,0.12);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-text);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.lang-prompt--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.lang-prompt__flag { font-size: 1rem; line-height: 1; }
.lang-prompt__text { color: var(--color-fogstone); white-space: nowrap; }
.lang-prompt__text strong { color: var(--color-text); font-weight: 600; }
.lang-prompt__switch {
  background: var(--color-navy);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.lang-prompt__switch:hover { background: var(--color-forest); color: var(--color-navy); }
.lang-prompt__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-fogstone);
  font-size: 0.75rem;
  padding: 2px 4px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.lang-prompt__close:hover { opacity: 1; }

@media (max-width: 480px) {
  .lang-prompt {
    bottom: 16px;
    right: 16px;
    left: 16px;
    border-radius: 16px;
    justify-content: space-between;
  }
}
