/* ============================================================
   SEA GLOBAL SOLUTIONS — SHARED DESIGN SYSTEM v1.0
   Dark navy + gold + teal — bilingual EN/ES
   All pages import this file.
   ============================================================ */

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

:root {
  --bg:           #0a1628;
  --bg-card:      #0d1b35;
  --bg-card-2:    #0f2040;
  --gold:         #f5a623;
  --gold-hover:   #f7b93a;
  --teal:         #4ec9b0;
  --blue-mid:     #7aaac8;
  --blue-light:   #8ab0cc;
  --blue-pale:    #c8dff5;
  --border-dim:   #1a3460;
  --border-mid:   #1e3a6a;
  --white:        #ffffff;
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--blue-light);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--gold); color: var(--bg);
  font-size: 13px; font-weight: 700;
  padding: 8px 16px; border-radius: 4px;
  z-index: 9999; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

*:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(78,201,176,0.5);
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── NAV ── */
.site-nav {
  width: 100%;
  background: rgba(10,22,40,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dim);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-svg { width: 38px; height: 38px; flex-shrink: 0; display: block; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.01em;
  line-height: 1;
}
.nav-logo-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-light);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.nav-links a.active { color: var(--teal); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  border: 1px solid var(--border-dim);
  border-radius: 30px;
  overflow: hidden;
}
.lang-btn {
  padding: 10px 14px;
  min-height: 44px;
  min-width: 44px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  background: transparent;
  color: var(--blue-light);
  border: none;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font);
}
.lang-btn.active {
  background: var(--teal);
  color: var(--bg);
}

/* Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--gold);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .25s;
}

/* ── FOOTER ── */
.site-footer {
  width: 100%;
  background: var(--bg-card);
  border-top: 1px solid var(--border-dim);
  margin-top: auto;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand-logo { width: 46px; height: 46px; display: block; margin-bottom: 1rem; }
/* Typography: prevent single-word orphan lines */
h1, h2, h3, h4 { text-wrap: balance; }
p, li, blockquote { text-wrap: pretty; }
.footer-brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-brand-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.footer-brand-desc {
  font-size: 13px;
  color: var(--blue-light);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a {
  font-size: 13px;
  color: var(--blue-light);
  text-decoration: none;
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--teal); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom-copy {
  font-size: 12px;
  color: var(--blue-mid);
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  font-size: 12px;
  color: var(--blue-mid);
  text-decoration: none;
}
.footer-bottom-links a:hover { color: var(--teal); }

/* ── COMMON SECTION PATTERNS ── */
.section-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  display: block;
}

.section-headline {
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}

.section-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: .75rem 0 1.5rem;
}

.section-sub {
  font-size: 17px;
  color: var(--blue-light);
  line-height: 1.8;
  max-width: 640px;
}
.section-sub strong { color: var(--blue-pale); font-weight: 600; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--bg);
  font-size: 18px;
  font-weight: 700;
  padding: 11px 30px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  text-decoration: none;
  transition: all .22s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(245,166,35,0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--blue-light);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid var(--border-mid);
  text-decoration: none;
  transition: all .2s;
  font-family: var(--font);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ── CARD ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color .2s, background .2s;
}
.card:hover {
  border-color: var(--border-mid);
  background: var(--bg-card-2);
}

/* ── DIVIDER ── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border-dim);
  margin: 0;
}

/* ── WHATSAPP FLOATING BTN ── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 200;
  animation: wa-pulse 2.5s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
}
.wa-float svg { width: 28px; height: 28px; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5), 0 4px 16px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(37,211,102,0), 0 4px 16px rgba(37,211,102,0.4); }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease-out, transform .55s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE NAV ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: rgba(10,22,40,0.98);
    border-bottom: 1px solid var(--border-dim);
    padding: 1rem 2rem 1.5rem;
    gap: 4px;
  }
  .nav-links.open a { font-size: 16px; padding: 10px 0; }
  .nav-cta { display: none; }
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .section-wrap { padding: 3.5rem 1.25rem; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

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