/* ============================================================
   CAPORA — Shared Stylesheet
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --teal:        #0e6e6e;
  --teal-lt:     #14a5a5;
  --teal-bg:     #e6f7f7;
  --gold:        #c8a96e;
  --gold-lt:     #e8d4a8;
  --gold-dk:     #9a7040;
  --ink:         #0c1220;
  --ink-soft:    #1e293b;
  --muted:       #64748b;
  --border:      #e2e8f0;
  --light-bg:    #f1f5f9;
  --green:       #10b981;
  --amber:       #f59e0b;
  --red:         #ef4444;
  --white:       #ffffff;

  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-heading: Georgia, 'Times New Roman', Times, serif;

  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.07);
  --shadow:     0 4px 20px rgba(0,0,0,.09);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.14);

  --transition: .25s ease;
  --nav-h:      72px;
}

/* ── Skip Link (accessibility + SEO) ────────────────────────── */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  background: var(--teal);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top .2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Typography Utilities ───────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.25;
  font-weight: 700;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-bg);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--ink);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
}

.highlight {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-lt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight-gold {
  background: linear-gradient(135deg, var(--gold-dk) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

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

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-lt) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(14,110,110,.30);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14,110,110,.40);
}

.btn-outline {
  border: 2px solid var(--border);
  color: var(--ink-soft);
  background: var(--white);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dk) 0%, var(--gold) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(200,169,110,.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,169,110,.45);
}

.btn-white {
  background: var(--white);
  color: var(--teal);
  font-weight: 700;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* ── Navigation ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

/* Reset fixed positioning for in-page nav elements */
nav.legal-index,
nav.legal-page-footer-links {
  position: static;
  height: auto;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  z-index: auto;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon svg {
  width: 36px;
  height: 36px;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
  background: var(--teal-bg);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-dk), var(--gold));
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: 100px;
  text-transform: uppercase;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.hamburger:hover { background: var(--light-bg); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-soft);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  display: block;
  padding: 14px 18px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: var(--radius);
  transition: all var(--transition);
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--teal);
  background: var(--teal-bg);
  border-bottom-color: transparent;
}

.mobile-menu .btn {
  margin-top: 8px;
  justify-content: center;
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: var(--white);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .nav-logo-text {
  color: var(--white);
}

.footer-desc {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin: 16px 0 20px;
}

.footer-contact {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

.footer-contact a {
  color: var(--teal-lt);
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--white); }

.footer-col-title {
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer-reg {
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  max-width: 400px;
  text-align: right;
  line-height: 1.5;
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--white); }

/* ── Trust Strip ─────────────────────────────────────────────── */
.trust-strip {
  background: var(--light-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.trust-item svg {
  color: var(--teal);
  flex-shrink: 0;
}

/* ── CTA Banner ──────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 50%, #0e3535 100%);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,110,110,.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,169,110,.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-note {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

/* ── Page Hero ───────────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 72px) 0 80px;
  background: linear-gradient(135deg, var(--teal-bg) 0%, var(--white) 100%);
  text-align: center;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-bg);
  color: var(--teal);
  border: 1px solid rgba(14,110,110,.2);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.page-hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

.page-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Reveal Animations ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ── Keyframes ───────────────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.5); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

@keyframes bar-grow {
  from { width: 0; }
}

@keyframes draw-stroke {
  from { stroke-dashoffset: 1000; }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-links,
  .nav-cta { display: none; }

  .hamburger { display: flex; }

  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .trust-items {
    gap: 16px;
    justify-content: flex-start;
  }

  .trust-item {
    white-space: normal;
  }

  .cta-banner { padding: 64px 0; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .footer-legal { align-items: flex-start; }
  .footer-reg   { text-align: left; max-width: 100%; }

  .page-hero {
    padding: calc(var(--nav-h) + 48px) 0 56px;
  }

  .page-hero-sub {
    font-size: 1rem;
  }
}

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

  .btn {
    white-space: normal;
    text-align: center;
  }

  .btn-lg {
    padding: 14px 20px;
    font-size: .95rem;
  }

  .section { padding: 48px 0; }
  .section-sm { padding: 36px 0; }

  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }

  .cta-actions { flex-direction: column; align-items: center; }
  .page-hero-actions { flex-direction: column; align-items: center; }

  .footer-bottom-links { gap: 12px; }
  .footer-copy { font-size: .75rem; }

  .mobile-menu { padding: 16px; }
}

@media (max-width: 375px) {
  .container { padding: 0 12px; }
  .nav-inner  { padding: 0 12px; }
}
