/* ==========================================================================
   Aegis Consultancy — design system
   Works alongside Tailwind utilities; these component classes are the single
   source of truth for buttons, cards, forms, modals and responsive behaviour.
   ========================================================================== */

:root {
  --navy: #061B40;
  --navy-700: #0B2A5C;
  --navy-900: #041129;
  --navy-50: #EEF2F9;
  --gold: #D4AF37;
  --gold-600: #B8942A;
  --gold-50: #FBF6E4;
  --ink: #0F172A;
  --muted: #64748B;
  --line: #E3E9F2;
  --danger: #DC2626;
  --success: #0F8A5F;
  --display: 'Source Serif 4', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --shadow-sm: 0 2px 10px rgba(6, 27, 64, .05);
  --shadow: 0 18px 45px rgba(6, 27, 64, .10);
  --shadow-lg: 0 30px 80px rgba(4, 17, 41, .25);
  --radius: 20px;
}

[x-cloak] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; font-family: var(--sans); }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.font-sans { font-family: var(--sans); }
.font-display { font-family: var(--display); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--navy); }

/* ---------- Layout ------------------------------------------------------- */
.wrap { width: min(100% - 3rem, 1180px); margin-inline: auto; }
.wrap-narrow { width: min(100% - 3rem, 860px); margin-inline: auto; }
.section { padding-block: clamp(2.75rem, 8vw, 7rem); }
.section-soft { background: var(--navy-50); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.section-head > div:first-child { max-width: 45rem; }
.gold-rule { width: 56px; height: 3px; border-radius: 3px; background: var(--gold); }
.eyebrow { margin: 0 0 .9rem; color: var(--gold-600); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section-title { margin: 0; font-family: var(--display); font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.14; letter-spacing: -.02em; color: var(--navy); }
.section-sub { margin: .9rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.lead { color: #CBD5E1; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.8; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--gold-600); font-weight: 700; font-size: .9rem; }
.text-link:hover { color: var(--navy); }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Header ------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(6,27,64,.08); transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(6,27,64,.09); }
.topbar { background: var(--navy); color: #CBD5E1; font-size: .75rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 34px; }
.topbar a { transition: color .2s; }
.topbar a:hover { color: var(--gold); }
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-name { font-family: var(--display); font-size: 1.3rem; font-weight: 700; line-height: 1; color: var(--navy); }
.brand-sub { display: block; margin-top: .18rem; color: var(--gold-600); font-size: .63rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.nav-links { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.7rem); }
.nav-link { position: relative; padding: .55rem 0; color: var(--navy); font-size: .88rem; font-weight: 700; white-space: nowrap; transition: color .2s; }
.nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s ease; }
.nav-link:hover, .nav-link.active { color: var(--gold-600); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); cursor: pointer; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(4,17,41,.55); backdrop-filter: blur(4px); }
.drawer-panel { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; width: min(88vw, 360px); height: 100%; padding: 1.4rem; background: #fff; box-shadow: var(--shadow-lg); overflow-y: auto; }
.drawer-link { display: flex; align-items: center; justify-content: space-between; padding: .85rem .25rem; border-bottom: 1px solid var(--line); color: var(--navy); font-weight: 700; }
.drawer-link.active { color: var(--gold-600); }

/* ---------- Buttons ------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: .72rem 1.45rem; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-size: .9rem; font-weight: 800; line-height: 1.2; text-align: center; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(6,27,64,.18); }
.btn-primary:hover { background: var(--navy-700); box-shadow: 0 14px 28px rgba(6,27,64,.24); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 20px rgba(212,175,55,.28); }
.btn-gold:hover { background: #E2BE4B; }
.btn-outline { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-dark { border-color: rgba(6,27,64,.22); color: var(--navy); background: #fff; }
.btn-outline-dark:hover { border-color: var(--gold); color: var(--gold-600); }
.btn-light { background: #fff; color: var(--navy); }
.btn-danger { background: #FEF2F2; color: var(--danger); border-color: #FECACA; }
.btn-danger:hover { background: #FEE2E2; }
.btn-sm { min-height: 38px; padding: .5rem 1rem; font-size: .8rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Hero --------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 58%, #071B3D 100%); color: #fff; }
.hero::before { content: ''; position: absolute; width: 780px; height: 780px; top: -320px; right: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(212,175,55,.18), transparent 65%); pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, #000, transparent 85%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(2.5rem, 6vw, 5rem); padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(2.35rem, 5.6vw, 4.25rem); line-height: 1.08; letter-spacing: -.025em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-art { position: relative; isolation: isolate; }
.hero-art::before { content: ''; position: absolute; inset: -18px -18px 18px 18px; z-index: -1; border: 1px solid rgba(212,175,55,.55); border-radius: 30px; }
.hero-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow-lg); }
.hero-badge { position: absolute; left: -1rem; bottom: 1.5rem; display: flex; align-items: center; gap: .7rem; padding: .85rem 1.1rem; border: 1px solid rgba(212,175,55,.4); border-radius: 16px; background: rgba(4,17,41,.9); backdrop-filter: blur(8px); }
.hero-badge strong { display: block; font-family: var(--display); font-size: 1.35rem; line-height: 1; color: var(--gold); }
.hero-badge span { color: #CBD5E1; font-size: .72rem; }
.hero-compact .hero-inner { grid-template-columns: 1fr; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.hero-compact h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); }

/* Homepage carousel */
.hero-carousel { min-height: 620px; }
.hero-carousel::before { z-index: 1; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s ease; }
.hero-slide.is-active { position: relative; z-index: 1; opacity: 1; visibility: visible; }
.hero-slide-media { position: absolute; inset: 0; overflow: hidden; }
.hero-slide-img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide-fallback { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy), var(--navy-700)); color: var(--gold); font-size: 6rem; }
.hero-slide-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,27,64,.95) 0%, rgba(6,27,64,.78) 44%, rgba(6,27,64,.24) 100%); }
.hero-slide-inner { position: relative; z-index: 2; display: flex; align-items: center; min-height: clamp(560px, 78vh, 760px); padding-block: clamp(4.5rem, 9vw, 7rem); }
.hero-slide-copy { max-width: 720px; }
.hero-slide-copy h1 { margin: 0; font-family: var(--display); font-size: clamp(2.35rem, 5.6vw, 4.25rem); line-height: 1.08; letter-spacing: -.025em; }
.hero-slide-copy .lead { color: #E2E8F0; }
.hero-stats { position: relative; z-index: 2; padding-bottom: 2.2rem; }
.hero-carousel-controls { position: absolute; z-index: 4; top: 50%; right: clamp(1rem, 3vw, 2.4rem); transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.carousel-arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(4,17,41,.45); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s, border-color .2s; }
.carousel-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.carousel-dots { display: flex; flex-direction: column; gap: .45rem; }
.carousel-dot { position: relative; width: 9px; height: 9px; padding: 0; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: transparent; cursor: pointer; transition: background .2s, transform .2s; }
.carousel-dot::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; }
.carousel-dot.active { background: var(--gold); border-color: var(--gold); transform: scale(1.35); }

/* ---------- Cards & content ---------------------------------------------- */
.card { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.card-hover { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card-hover:hover { transform: translateY(-6px); border-color: rgba(212,175,55,.45); box-shadow: var(--shadow); }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--gold-50); color: var(--gold-600); font-size: 1.3rem; }
.card-title { margin: 1.1rem 0 .5rem; font-family: var(--display); font-size: 1.25rem; color: var(--navy); }
.card-text { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(255,255,255,.12); }
.stat { padding: 1.4rem; background: rgba(4,17,41,.55); backdrop-filter: blur(6px); text-align: center; }
.stat strong { display: block; font-family: var(--display); font-size: 1.8rem; color: var(--gold); }
.stat span { color: #CBD5E1; font-size: .75rem; }
.team-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 18px; transition: transform .4s ease; }
.team-card:hover .team-photo { transform: scale(1.03); }
.team-fallback { display: grid; place-items: center; width: 100%; aspect-ratio: 4/5; border-radius: 18px; background: linear-gradient(145deg, var(--navy), var(--navy-700)); color: var(--gold); font-family: var(--display); font-size: 3.5rem; }
.news-card { display: block; transition: transform .25s ease; }
.news-card:hover { transform: translateY(-5px); }
.news-image { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 16px; }
.news-fallback { display: grid; place-items: center; width: 100%; aspect-ratio: 16/10; border-radius: 16px; background: var(--navy); color: var(--gold); font-size: 2rem; }
.news-date { margin: 1rem 0 .35rem; color: var(--gold-600); font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.news-title { margin: 0; font-family: var(--display); font-size: 1.25rem; color: var(--navy); }
.quote-card { padding: 1.7rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stars { color: var(--gold); letter-spacing: .12em; font-size: .85rem; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.faq-item + .faq-item { margin-top: .8rem; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.3rem; cursor: pointer; color: var(--navy); font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-item p { margin: 0; padding: 1.15rem 1.3rem; color: var(--muted); font-size: .92rem; line-height: 1.75; }
.faq-toggle { transition: transform .25s ease; color: var(--gold-600); }
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.filter-chip { padding: .55rem 1.05rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font-size: .84rem; font-weight: 700; cursor: pointer; transition: .2s; }
.filter-chip:hover { border-color: var(--gold); }
.filter-chip.active { border-color: var(--navy); background: var(--navy); color: #fff; }
.badge { display: inline-flex; align-items: center; padding: .2rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 800; text-transform: capitalize; background: var(--navy-50); color: var(--navy); }
.badge-new { background: var(--gold-50); color: var(--gold-600); }
.badge-contacted { background: #EFF6FF; color: #2563EB; }
.badge-confirmed { background: #ECFDF5; color: var(--success); }
.badge-closed { background: #F1F5F9; color: var(--muted); }
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; }
.pagination a { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 .5rem; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-size: .85rem; font-weight: 700; }
.pagination a.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Formatted article bodies */
.prose { color: #334155; font-size: 1.05rem; line-height: 1.85; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.1rem; }
.prose h2, .prose h3, .prose h4 { margin: 1.8rem 0 .7rem; font-family: var(--display); line-height: 1.25; color: var(--navy); }
.prose h2 { font-size: 1.7rem; }
.prose h3 { font-size: 1.4rem; }
.prose h4 { font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35rem; }
.prose a { color: var(--gold-600); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { padding-left: 1.1rem; border-left: 3px solid var(--gold); color: var(--muted); font-style: italic; }
.prose hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--line); }

/* ---------- Forms -------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: block; min-width: 0; }
.field-label { display: block; margin-bottom: .45rem; color: var(--navy); font-size: .8rem; font-weight: 800; }
.field-hint { display: block; margin-top: .35rem; color: var(--muted); font-size: .72rem; }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: .7rem .9rem; border: 1px solid #CBD5E1; border-radius: 12px; background: #fff; color: var(--ink); font-size: .9rem; transition: border-color .2s, box-shadow .2s; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,.18); }
.input::placeholder, .textarea::placeholder { color: #94A3B8; }

/* Rich-text editor */
.rich-editor { overflow: hidden; border: 1px solid #CBD5E1; border-radius: 12px; background: #fff; }
.rich-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; padding: .5rem; border-bottom: 1px solid var(--line); background: var(--navy-50); }
.rich-tool { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 .55rem; border: 1px solid transparent; border-radius: 8px; background: #fff; color: var(--navy); font-size: .78rem; font-weight: 800; cursor: pointer; transition: border-color .2s, background .2s; }
.rich-tool:hover { border-color: var(--gold); background: var(--gold-50); }
.rich-tool.rich-source { margin-left: auto; min-width: 54px; }
.rich-divider { width: 1px; height: 22px; margin: 0 .25rem; background: #CBD5E1; }
.rich-content { min-height: 190px; max-height: 360px; overflow-y: auto; padding: 1rem 1.1rem; outline: none; font-size: .92rem; line-height: 1.7; }
.rich-content:focus { box-shadow: inset 0 0 0 3px rgba(212,175,55,.18); }
.rich-content:empty::before { content: 'Write your article…'; color: #94A3B8; }
.rich-content p, .rich-content ul, .rich-content ol, .rich-content blockquote { margin: 0 0 .8rem; }
.rich-content h2, .rich-content h3, .rich-content h4 { margin: 1rem 0 .5rem; font-family: var(--display); color: var(--navy); }
.rich-content a { color: var(--gold-600); text-decoration: underline; }
.rich-input { display: none; min-height: 220px; border: 0; border-radius: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; }
.rich-editor.source-mode .rich-content { display: none; }
.rich-editor.source-mode .rich-input { display: block; }
.form-tabs { display: flex; gap: .3rem; margin-bottom: 1.4rem; padding: .35rem; border-radius: 999px; background: var(--navy-50); }
.form-tab { flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--navy); font-size: .85rem; font-weight: 800; cursor: pointer; transition: .2s; }
.form-tab.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #CBD5E1; transition: background .2s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch input:checked + span { background: var(--gold); }
.switch input:checked + span::after { transform: translateX(20px); }
.form-error, .form-success { display: none; margin-bottom: 1rem; padding: .9rem 1rem; border-radius: 12px; font-size: .86rem; font-weight: 600; line-height: 1.5; }
.form-error.show, .form-success.show { display: block; }
.form-error { background: #FEF2F2; border-left: 4px solid var(--danger); color: #991B1B; }
.form-success { background: #ECFDF5; border-left: 4px solid var(--success); color: #065F46; }
.honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Modals ------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 1.25rem; }
.modal.open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(4,17,41,.68); backdrop-filter: blur(6px); cursor: default; }
.modal-panel { position: relative; width: min(100%, 650px); max-height: min(90dvh, 900px); overflow-y: auto; border-radius: 24px; background: #fff; box-shadow: var(--shadow-lg); animation: modal-in .24s ease both; }
.modal-panel.small { width: min(100%, 450px); }
.modal-panel.wide { width: min(100%, 760px); }
.modal-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.6rem 1.1rem; background: #fff; border-bottom: 1px solid var(--line); }
.modal-title { margin: 0; font-family: var(--display); font-size: 1.5rem; color: var(--navy); }
.modal-sub { margin: .3rem 0 0; color: var(--muted); font-size: .84rem; }
.modal-close { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; transition: .2s; }
.modal-close:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.modal-body { padding: 1.5rem 1.6rem; }
.modal-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .7rem; padding: 0 1.6rem 1.6rem; }
.modal-open, .drawer-open { overflow: hidden; }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Alerts, toast, floating controls ----------------------------- */
.alert { padding: 1rem 1.15rem; border-radius: 14px; font-size: .9rem; font-weight: 600; }
.alert-success { background: #ECFDF5; border-left: 4px solid var(--success); color: #065F46; }
.alert-error { background: #FEF2F2; border-left: 4px solid var(--danger); color: #991B1B; }
.toast-wrap { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 130; display: grid; gap: .6rem; width: min(360px, calc(100% - 2.5rem)); }
.toast { display: flex; align-items: center; gap: .75rem; padding: .95rem 1.1rem; border-radius: 14px; background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); font-size: .86rem; animation: toast-in .25s ease both; }
.toast.success { border-left: 4px solid var(--gold); }
.toast.error { border-left: 4px solid #F87171; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.floating-wa { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 50; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; font-size: 1.7rem; box-shadow: 0 12px 30px rgba(37,211,102,.35); transition: transform .2s; }
.floating-wa:hover { transform: scale(1.08); }
.back-top { position: fixed; left: 1.2rem; bottom: 1.2rem; z-index: 50; display: none; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); cursor: pointer; }
.back-top.show { display: grid; }
.social-link { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: #fff; font-size: .85rem; transition: .2s; }
.social-link:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ---------- Footer ------------------------------------------------------- */
.site-footer { background: var(--navy); color: #CBD5E1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 3rem; padding-block: clamp(3.5rem, 7vw, 5rem); }
.footer-title { margin: 0 0 1.1rem; color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { display: grid; gap: .7rem; font-size: .88rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-block: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; }
.map-frame { width: 100%; min-height: 260px; border: 0; border-radius: 18px; background: var(--navy-50); }

/* ---------- Admin -------------------------------------------------------- */
.admin-shell { display: flex; min-height: 100vh; background: #F4F7FB; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 80; display: flex; flex-direction: column; width: 260px; background: var(--navy); color: #CBD5E1; transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto; }
.admin-sidebar.open { transform: none; }
.admin-main { flex: 1; min-width: 0; }
.admin-content { width: min(100%, 1280px); margin-inline: auto; padding: clamp(1.25rem, 3vw, 2.25rem); }
.admin-topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 1rem; min-height: 68px; padding: .8rem clamp(1.25rem, 3vw, 2.25rem); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.admin-nav-link { display: flex; align-items: center; gap: .75rem; padding: .72rem .85rem; border-radius: 12px; color: #CBD5E1; font-size: .86rem; font-weight: 700; }
.admin-nav-link:hover { background: var(--navy-700); color: #fff; }
.admin-nav-link.active { background: var(--gold); color: var(--navy); }
.admin-stat { display: flex; align-items: center; gap: 1rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.admin-stat-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--gold-50); color: var(--gold-600); font-size: 1.15rem; }
.admin-stat strong { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1; color: var(--navy); }
.admin-stat span { color: var(--muted); font-size: .78rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.admin-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .87rem; }
.admin-table th { padding: .9rem 1rem; background: var(--navy-50); color: var(--navy); font-size: .74rem; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.admin-table td { padding: .9rem 1rem; border-top: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:hover td { background: #FBFCFE; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--navy); cursor: pointer; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold-600); }
.icon-btn.danger { color: var(--danger); }
.icon-btn.danger:hover { border-color: #FECACA; background: #FEF2F2; }
.setting-card { padding: 1.6rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.setting-card + .setting-card { margin-top: 1.2rem; }
.settings-subnav { position: sticky; top: 68px; z-index: 35; display: flex; gap: .35rem; margin-bottom: 1.25rem; padding: .4rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); overflow-x: auto; scrollbar-width: none; }
.settings-subnav::-webkit-scrollbar { display: none; }
.settings-tab { display: inline-flex; align-items: center; gap: .55rem; flex: none; min-height: 42px; padding: .55rem 1rem; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: .86rem; font-weight: 800; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.settings-tab:hover { background: var(--navy-50); color: var(--navy); }
.settings-tab.active { background: var(--navy); color: #fff; box-shadow: 0 8px 18px rgba(6,27,64,.18); }
.settings-tab.active i { color: var(--gold); }
.settings-panel[hidden], .settings-actions[hidden] { display: none !important; }
.settings-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1rem; }
.empty-state { padding: 2.5rem; text-align: center; color: var(--muted); }
.login-card { display: grid; grid-template-columns: 1fr; }
.login-aside { display: none; }
@media (min-width: 768px) { .login-card { grid-template-columns: 1fr 1fr; } .login-aside { display: block; } }

/* ---------- Motion & responsive ------------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (min-width: 1024px) {
  .admin-sidebar { position: sticky; top: 0; height: 100vh; transform: none; }
  .admin-overlay { display: none; }
}
@media (max-width: 960px) {
  .nav-links, .topbar .wrap > span:last-child { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
  .hero-slide-media::after { background: linear-gradient(180deg, rgba(6,27,64,.94) 0%, rgba(6,27,64,.72) 62%, rgba(6,27,64,.55) 100%); }
  .hero-slide-copy { max-width: calc(100% - 5rem); }
  .hero-slide-inner { min-height: 620px; }
  .hero-carousel-controls { top: 42%; right: 1rem; transform: translateY(-50%); }
  .hero-stats { padding-bottom: 1.5rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap, .wrap-narrow { width: min(100% - 2rem, 1180px); }
  .topbar { display: none; }
  .grid, .form-grid { gap: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-head { gap: 1rem; }
  .section-title { font-size: clamp(1.75rem, 7vw, 2.15rem); }
  .section-sub { font-size: .94rem; line-height: 1.65; }
  .card { padding: 1.25rem; }
  .hero-compact .hero-inner { padding-block: 3rem; }
  .hero-actions { gap: .6rem; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 1rem .75rem; }
  .stat strong { font-size: 1.5rem; }
  .team-card { text-align: center; }
  .team-photo, .team-fallback { width: min(100%, 220px); aspect-ratio: 4 / 5; margin-inline: auto; }
  .team-fallback { font-size: 2.75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-slide-inner { min-height: 680px; padding-block: 4rem 7.5rem; }
  .hero-slide-copy h1 { font-size: clamp(2rem, 9vw, 2.9rem); }
  .hero-stats { padding-bottom: 1.5rem; }
  .carousel-arrow { width: 40px; height: 40px; }
  .rich-toolbar { gap: .2rem; }
  .rich-tool { min-width: 32px; height: 32px; padding: 0 .4rem; }
  .hero-art::before { inset: -10px 10px 10px -10px; }
  .hero-badge { left: .5rem; bottom: .5rem; }
  .modal { padding: 0; place-items: stretch; }
  .modal-panel { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .modal-header, .modal-body { padding-inline: 1.15rem; }
  .modal-footer { padding-inline: 1.15rem; }
  .modal-footer .btn { flex: 1; }
  .toast-wrap { right: 1rem; left: 1rem; bottom: 5.5rem; width: auto; }
  .floating-wa { width: 50px; height: 50px; }
  .section-head { align-items: flex-start; }
  .footer-links > a, .footer-links > button { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer .space-y-2 a, .card-text a { display: inline-flex; align-items: center; min-height: 44px; }
  .filter-chip { min-height: 44px; }
  .settings-subnav { top: 60px; margin-inline: -.15rem; padding: .3rem; }
  .settings-tab { min-height: 44px; padding: .55rem .8rem; font-size: .8rem; }
  .settings-tab i { display: none; }
  .settings-actions { align-items: stretch; }
  .settings-actions .btn { width: 100%; }
  .icon-btn { width: 42px; height: 42px; }
  .admin-topbar { min-height: 60px; gap: .6rem; }
  .admin-content { padding: 1rem; }
  .admin-sidebar { width: min(86vw, 300px); }
  .hero-carousel { min-height: 0; }
  .hero-slide-inner { min-height: 520px; padding-block: 2.5rem 4.75rem; }
  .hero-slide-copy h1 { font-size: clamp(1.8rem, 8vw, 2.45rem); line-height: 1.12; }
  .hero-slide-copy .lead { margin-top: 1rem; font-size: .92rem; line-height: 1.6; }
  .hero-actions { margin-top: 1.3rem; gap: .5rem; }
  .hero-carousel-controls { top: auto; bottom: 11.5rem; right: 1rem; transform: none; flex-direction: row; gap: .5rem; }
  .hero-stats { padding-bottom: 1rem; }
  .stat { padding: .75rem .5rem; }
  .stat strong { font-size: 1.3rem; }
  .stat span { font-size: .68rem; }
  .carousel-dots { flex-direction: row; gap: .35rem; }
  .table-wrap { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  .admin-table { display: block; min-width: 0; }
  .admin-table thead { display: none; }
  .admin-table tbody { display: grid; gap: .85rem; }
  .admin-table tr { display: block; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
  .admin-table td { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: .45rem 0; border: 0; text-align: right !important; }
  .admin-table td::before { content: attr(data-label); flex: none; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
  .admin-table td:last-child { justify-content: flex-end; }
  .admin-table td.empty-state, .admin-table td[colspan] { display: block; padding: 1rem; text-align: center !important; }
  .admin-table td.empty-state::before, .admin-table td[colspan]::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
