/* =====================================================================
   Meta Skills Academy — shared site styles (inner pages)
   Used by: blog, about, contact, legal, checkout, thank-you, 404.
   Landing pages keep their own inline styles; this file is NOT loaded there.
   Owner: foundation. Blog-specific styles live in blog.css, funnel UI in funnel.css.
   ===================================================================== */

:root {
  --navy: #0F172A;
  --navy-2: #1E293B;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --cyan: #06B6D4;
  --green: #16A34A;
  --orange: #F97316;
  --red: #DC2626;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --text: #0F172A;
  --text-2: #334155;
  --muted: #64748B;
  --muted-2: #94A3B8;
  --grad: linear-gradient(135deg, var(--blue), var(--cyan));
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 60px rgba(37, 99, 235, .20);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-h: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --container: 1180px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.2; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 2px; border-radius: 4px; }
.icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-white { background: #fff; }
.section-dark { background: var(--navy); color: #CBD5E1; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 52px 0; } }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); background: rgba(37, 99, 235, .08); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 12px; font-weight: 700; font-size: 1rem; line-height: 1.2; border: 2px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(37, 99, 235, .3); }
.btn-primary:hover { color: #fff; box-shadow: var(--shadow-lg); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { color: #fff; background: var(--navy-2); }
.btn-outline { border-color: var(--border); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { color: #fff; background: #1EBE5A; }
.btn-sm { padding: 9px 16px; font-size: .9rem; border-radius: 10px; }
.btn-lg { padding: 18px 34px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav > a, .nav-dropdown-toggle { color: var(--text-2); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px; background: none; border: 0; }
.site-nav > a:hover, .nav-dropdown-toggle:hover, .site-nav > a.is-active, .nav-dropdown-toggle.is-active { color: var(--blue); background: rgba(37, 99, 235, .06); }
.site-nav > a.nav-cta { color: #fff; margin-left: 8px; }
.nav-dropdown { position: relative; }
.nav-dropdown-menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px); min-width: 320px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 8px; opacity: 0; visibility: hidden; transition: .18s ease; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown.is-open .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown-menu a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--navy); }
.nav-dropdown-menu a:hover { background: var(--bg); }
.nav-dropdown-menu strong { display: block; font-size: .95rem; }
.nav-dropdown-menu span { display: block; font-size: .82rem; color: var(--muted); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy); }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.header-secure { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--green); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; background: #fff; padding: 12px 20px 24px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); max-height: calc(100vh - var(--header-h)); overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease; }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav > a, .nav-dropdown-toggle { padding: 12px; text-align: left; width: 100%; }
  .site-nav > a.nav-cta { margin: 10px 0 0; }
  .nav-dropdown-menu { position: static; transform: none; min-width: 0; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; opacity: 1; visibility: visible; }
  .nav-dropdown.is-open .nav-dropdown-menu { display: block; transform: none; }
  .nav-dropdown:hover .nav-dropdown-menu { transform: none; }
}

/* ---------- Page hero ---------- */
.page-hero { background: radial-gradient(1200px 400px at 10% -20%, rgba(37, 99, 235, .14), transparent), radial-gradient(800px 300px at 90% 0%, rgba(6, 182, 212, .12), transparent), #fff; padding: 64px 0 48px; border-bottom: 1px solid var(--border); }
.page-hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.page-hero.text-center p.lead { margin-left: auto; margin-right: auto; }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--muted-2); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.card-hover { transition: transform .2s ease, box-shadow .2s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ---------- Prose (legal pages, blog article body) ---------- */
.prose { font-size: 1.075rem; line-height: 1.8; color: var(--text-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: 1.65rem; }
.prose h3 { margin-top: 1.6em; font-size: 1.3rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin: 1.6em auto; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: .9rem; color: var(--muted); text-align: center; margin-top: .5em; }
.prose blockquote { margin: 1.6em 0; padding: 16px 22px; border-left: 4px solid var(--blue); background: rgba(37, 99, 235, .05); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--navy); font-style: italic; }
.prose code { background: #F1F5F9; padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.prose pre { background: var(--navy); color: #E2E8F0; padding: 18px; border-radius: var(--radius-sm); overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--bg); color: var(--navy); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }

/* ---------- Forms (generic) ---------- */
.form-row { margin-bottom: 14px; }
.form-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.form-control { width: 100%; padding: 13px 14px; border: 1.5px solid var(--border); border-radius: 10px; font: inherit; color: var(--text); background: #fff; transition: border-color .15s, box-shadow .15s; }
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
textarea.form-control { min-height: 120px; resize: vertical; }

/* ---------- Alerts ---------- */
.alert { padding: 14px 16px; border-radius: 10px; font-size: .95rem; }
.alert-success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-info { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #94A3B8; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #CBD5E1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.2fr 1fr 1.1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(148, 163, 184, .18); }
.footer-brand .brand-logo { height: 42px; margin-bottom: 16px; background: #fff; padding: 6px 10px; border-radius: 10px; }
.footer-brand p { max-width: 320px; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li + li { margin-top: 10px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(148, 163, 184, .12); }
.footer-social a:hover { background: var(--blue); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .88rem; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer--minimal { padding: 24px 0; }
.site-footer--minimal .footer-bottom { padding-top: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
