/* ==========================================================================
   School ERP — public website styles
   ========================================================================== */
:root {
  --ink: #14213d;
  --ink-2: #334155;
  --muted: #5b6475;
  --primary: #2b3a9f;
  --primary-2: #4553d6;
  --primary-soft: #eceefe;
  --accent: #f59e0b;
  --accent-2: #ff7a00;
  --accent-soft: #fff4dc;
  --leaf: #10b981;
  --rose: #f43f5e;
  --sky: #0ea5e9;
  --bg: #fbf8f3;
  --card: #ffffff;
  --line: #e7e3da;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(20, 33, 61, .25);
  --shadow-lg: 0 24px 60px -20px rgba(20, 33, 61, .35);
  --font-head: "Baloo 2", "Mukta", system-ui, sans-serif;
  --font-body: "Mukta", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--ink);
  background: var(--bg); overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -0.18em; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.hide-sm { }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body); cursor: pointer; text-align: center;
  background: var(--b); color: #fff; position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 8px 20px -10px var(--b);
}
.btn::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.btn:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 14px 28px -12px var(--b); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn-accent { --b: var(--accent-2); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.btn-leaf { --b: var(--leaf); }
.btn-outline { background: transparent; color: var(--primary); border-color: currentColor; box-shadow: none; }
.btn-outline:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-ghost-light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff; box-shadow: none; backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: #fff; color: var(--primary); }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-lg { padding: 1em 1.9em; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- Topbar & header ---------- */
.topbar { background: var(--ink); color: #cbd5e1; font-size: .88rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; }
.topbar a { color: #e2e8f0; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--accent); }
.topbar-contact { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 2px 11px; border-radius: 999px; font-weight: 600; }
.lang-switch a.active { background: var(--accent); color: var(--ink); }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .88);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(20,33,61,.4); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-logo, .brand-crest svg { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; }
.brand-crest { display: block; transition: transform .4s; }
.brand:hover .brand-crest { transform: rotate(-6deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-family: var(--font-head); font-size: 1.22rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.main-nav ul a {
  display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .98rem; position: relative;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 0; height: 3px; border-radius: 3px; background: var(--accent);
  transition: width .25s, left .25s;
}
.main-nav ul a:hover::after, .main-nav ul a.active::after { left: 25%; width: 50%; }
.main-nav ul a.active { color: var(--primary); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: var(--primary-soft); border-radius: 12px; cursor: pointer; padding: 12px 11px; }
.nav-toggle span { display: block; height: 3px; background: var(--primary); border-radius: 3px; margin: 4px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Alerts ---------- */
.alert { margin: 18px 0 0; padding: 14px 18px; border-radius: var(--radius-sm); border-left: 5px solid; background: #fff; box-shadow: var(--shadow); animation: slideDown .4s ease; }
.alert-success { border-color: var(--leaf); background: #ecfdf5; color: #065f46; }
.alert-error { border-color: var(--rose); background: #fff1f2; color: #9f1239; }
.alert-info { border-color: var(--sky); background: #f0f9ff; color: #075985; }
.alert-warning { border-color: var(--accent); background: var(--accent-soft); color: #92400e; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 60px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(245, 158, 11, .18), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(43, 58, 159, .14), transparent 60%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff;
  box-shadow: var(--shadow); font-weight: 600; font-size: .92rem; color: var(--ink-2); margin-bottom: 18px;
}
.hero-badge .dot { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--leaf), #059669); display: grid; place-items: center; color: #fff; }
.hero-badge .dot::before { content: ""; width: 8px; height: 8px; background: #fff; border-radius: 50%; animation: pulse 1.6s infinite; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.01em; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--primary), #7c3aed, var(--accent-2), var(--primary));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 8s linear infinite;
}
.hero-lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.hero-trust span { display: inline-flex; gap: 6px; align-items: center; }
.hero-trust .icon { color: var(--leaf); }
.hero-visual { position: relative; }
.hero-art { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(20,33,61,.18)); }
.hero-art .float { animation: floaty 6s ease-in-out infinite; transform-box: fill-box; }
.hero-art .float-2 { animation-duration: 7s; animation-delay: -1s; }
.hero-art .float-3 { animation-duration: 5s; animation-delay: -2s; }
.hero-art .float-4 { animation-duration: 6.5s; animation-delay: -3s; }
.hero-art .float-5 { animation-duration: 5.5s; animation-delay: -1.5s; }
.hero-art .cloud-a { animation: drift 18s ease-in-out infinite alternate; }
.hero-art .cloud-b { animation: drift 14s ease-in-out infinite alternate-reverse; }
.hero-art .sun-rays { animation: spinPulse 6s ease-in-out infinite; }
.hero-art .flag { animation: wave 2.4s ease-in-out infinite; transform-origin: 151px -32px; transform-box: view-box; }
.hero-card {
  position: absolute; background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; animation: floaty 5s ease-in-out infinite;
}
.hero-card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.hero-card small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; line-height: 1.2; }
.hero-card.c1 { left: -10px; bottom: 40px; }
.hero-card.c1 .ic { background: linear-gradient(135deg, var(--leaf), #059669); }
.hero-card.c2 { right: 0; top: 10px; animation-delay: -2.5s; }
.hero-card.c2 .ic { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

/* ---------- Ticker ---------- */
.ticker { background: var(--primary); color: #fff; overflow: hidden; }
.ticker-inner { display: flex; align-items: center; gap: 16px; min-height: 52px; }
.ticker-label { flex-shrink: 0; background: var(--accent); color: var(--ink); font-weight: 700; padding: 6px 14px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: inline-flex; gap: 48px; white-space: nowrap; animation: marquee 30s linear infinite; padding-left: 100%; }
.ticker-move a { color: #fff; font-weight: 500; }
.ticker-move a::before { content: "★ "; color: var(--accent); }
.ticker:hover .ticker-move { animation-play-state: paused; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; position: relative; }
.section-alt { background: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; font-weight: 700; color: var(--accent-2); letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; margin-bottom: 8px; }
.lang-mr .eyebrow, .lang-hi .eyebrow { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.underline { position: relative; display: inline-block; }
.underline::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10'%3E%3Cpath d='M2 7c50-6 140-6 196-1' stroke='%23f59e0b' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; }

/* Page hero (inner pages) */
.page-hero { position: relative; padding: 56px 0 64px; background: linear-gradient(135deg, var(--primary) 0%, #3730a3 55%, #6d28d9 100%); color: #fff; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin: 0; }
.page-hero p { color: rgba(255,255,255,.85); margin: 8px 0 0; font-size: 1.1rem; max-width: 40em; }
.page-hero .crumbs { font-size: .9rem; margin-bottom: 10px; color: rgba(255,255,255,.75); }
.page-hero .crumbs a { color: #fff; }
.page-hero .bubbles span { position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); animation: floaty 8s ease-in-out infinite; }
.page-hero .bubbles span:nth-child(1) { width: 220px; height: 220px; right: -60px; top: -80px; }
.page-hero .bubbles span:nth-child(2) { width: 120px; height: 120px; right: 18%; bottom: -50px; animation-delay: -3s; background: rgba(245,158,11,.25); }
.page-hero .bubbles span:nth-child(3) { width: 60px; height: 60px; right: 35%; top: 20px; animation-delay: -5s; }

/* ---------- Stats ---------- */
.stats { margin-top: -50px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { padding: 28px 20px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: var(--line); }
.stat .num { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--primary); line-height: 1; }
.stat .num sup { font-size: .5em; color: var(--accent-2); }
.stat .lbl { color: var(--muted); font-weight: 600; margin-top: 6px; }
.stat .ic { width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.stat:nth-child(2) .ic { background: var(--accent-soft); color: var(--accent-2); }
.stat:nth-child(3) .ic { background: #e6fbf3; color: var(--leaf); }
.stat:nth-child(4) .ic { background: #ffe9ee; color: var(--rose); }

/* ---------- Cards ---------- */
.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); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; position: relative; }
.wing-card {
  border-radius: 24px; padding: 30px 26px; color: #fff; position: relative; overflow: hidden; min-height: 260px;
  display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.wing-card:hover { transform: translateY(-8px) rotate(-.5deg); box-shadow: var(--shadow-lg); color: #fff; }
.wing-card h3 { color: #fff; font-size: 1.45rem; }
.wing-card p { color: rgba(255,255,255,.88); flex: 1; }
.wing-card .wing-ic { width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.2); display: grid; place-items: center; margin-bottom: 18px; }
.wing-card .wing-ic .icon { width: 28px; height: 28px; }
.wing-card .wing-classes { font-weight: 700; font-size: .9rem; background: rgba(0,0,0,.15); padding: 4px 12px; border-radius: 999px; align-self: flex-start; }
.wing-card::after { content: ""; position: absolute; width: 160px; height: 160px; right: -50px; bottom: -60px; border-radius: 50%; background: rgba(255,255,255,.12); transition: transform .5s; }
.wing-card:hover::after { transform: scale(1.4); }
.wing-1 { background: linear-gradient(150deg, #fb7185, #e11d48); }
.wing-2 { background: linear-gradient(150deg, #fbbf24, #ea580c); }
.wing-3 { background: linear-gradient(150deg, #34d399, #047857); }
.wing-4 { background: linear-gradient(150deg, #818cf8, #3730a3); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 38px; left: 12%; right: 12%; height: 3px; background: repeating-linear-gradient(90deg, var(--accent) 0 12px, transparent 12px 22px); }
.step { text-align: center; position: relative; }
.step .bubble {
  width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 16px; background: #fff; box-shadow: var(--shadow);
  display: grid; place-items: center; color: var(--primary); position: relative; border: 3px solid var(--primary-soft); transition: transform .3s;
}
.step:hover .bubble { transform: scale(1.08) rotate(6deg); }
.step .bubble .icon { width: 30px; height: 30px; }
.step .bubble::after {
  counter-increment: step; content: counter(step); position: absolute; top: -6px; right: -6px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--ink); font-weight: 800; font-size: .9rem; display: grid; place-items: center;
}
.step h3 { font-size: 1.15rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .96rem; }

/* About split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-visual { position: relative; }
.about-visual .blob {
  border-radius: 42% 58% 55% 45% / 45% 40% 60% 55%; background: linear-gradient(135deg, var(--primary), #6d28d9); aspect-ratio: 1;
  display: grid; place-items: center; animation: morph 12s ease-in-out infinite; box-shadow: var(--shadow-lg);
}
.about-visual .blob svg { width: 62%; height: auto; color: #fff; }
.quote-card { border-left: 5px solid var(--accent); background: var(--accent-soft); padding: 20px 24px; border-radius: 0 16px 16px 0; margin-top: 18px; }
.quote-card p { font-size: 1.08rem; font-style: italic; margin-bottom: 8px; }
.quote-card cite { font-style: normal; font-weight: 700; color: var(--ink-2); }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: #fff; background: var(--leaf); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 3px; }

/* Facilities */
.facility {
  background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); text-align: left; transition: transform .3s, box-shadow .3s;
  border: 1px solid transparent;
}
.facility:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-soft); }
.facility .f-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; color: #fff; transition: transform .3s; }
.facility:hover .f-ic { transform: rotate(-8deg) scale(1.08); }
.facility .f-ic .icon { width: 26px; height: 26px; }
.facility h3 { font-size: 1.15rem; margin-bottom: 4px; }
.facility p { color: var(--muted); font-size: .95rem; margin: 0; }
.bg-1 { background: linear-gradient(135deg, #6366f1, #4338ca); }
.bg-2 { background: linear-gradient(135deg, #10b981, #047857); }
.bg-3 { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.bg-4 { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.bg-5 { background: linear-gradient(135deg, #f43f5e, #be123c); }
.bg-6 { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.bg-7 { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.bg-8 { background: linear-gradient(135deg, #eab308, #a16207); }

/* Notices */
.notice-list { display: grid; gap: 14px; }
.notice-item { display: flex; gap: 16px; background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--shadow); align-items: center; transition: transform .25s; color: var(--ink); }
.notice-item:hover { transform: translateX(6px); color: var(--ink); }
.notice-date { flex-shrink: 0; width: 64px; text-align: center; background: var(--primary-soft); border-radius: 12px; padding: 8px 4px; line-height: 1.1; }
.notice-date b { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--primary); }
.notice-date small { font-weight: 700; color: var(--muted); font-size: .78rem; text-transform: uppercase; }
.notice-item h3 { font-size: 1.08rem; margin: 0; }
.notice-item p { margin: 2px 0 0; color: var(--muted); font-size: .93rem; }
.badge-new { display: inline-block; background: var(--rose); color: #fff; font-size: .7rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; animation: pulse 1.6s infinite; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery-item { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; background: var(--primary-soft); box-shadow: var(--shadow); display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 10px; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.gallery-empty { text-align: center; padding: 40px; color: var(--muted); }
.lightbox { position: fixed; inset: 0; background: rgba(10,15,30,.9); display: none; place-items: center; z-index: 200; padding: 20px; }
.lightbox.open { display: grid; animation: fadeIn .25s; }
.lightbox img { max-height: 86vh; border-radius: 12px; }
.lightbox button { position: absolute; top: 16px; right: 16px; background: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; cursor: pointer; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%); border-radius: 28px; padding: 46px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--ink); position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.18); right: -80px; top: -120px; }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-band p { margin: 0; font-weight: 500; }
.cta-band .btn { --b: var(--ink); background: var(--ink); position: relative; }

/* ---------- Forms ---------- */
.form-shell { max-width: 980px; margin: -40px auto 0; position: relative; z-index: 2; }
.form-card { background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); padding: 34px; }
.form-section { border: 0; padding: 0; margin: 0 0 30px; }
.form-section legend {
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; padding: 0;
  display: flex; align-items: center; gap: 10px; width: 100%;
}
.form-section legend .n { width: 32px; height: 32px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 1rem; }
.form-section legend::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--primary-soft), transparent); }
.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 18px; }
.col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; } .col-4 { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 5px; color: var(--ink-2); }
.field label .req { color: var(--rose); }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.input, .field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field input[type=number], .field input[type=password], .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 2px solid var(--line); border-radius: 12px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fdfcfa; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary-2); box-shadow: 0 0 0 4px rgba(69, 83, 214, .15); background: #fff; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--rose); background: #fff7f8; }
.field-error { color: #be123c; font-size: .85rem; margin-top: 4px; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--primary); flex-shrink: 0; }
.photo-drop { border: 2px dashed var(--line); border-radius: 16px; padding: 16px; display: flex; gap: 16px; align-items: center; background: #fdfcfa; }
.photo-drop .preview { width: 96px; height: 120px; border-radius: 10px; background: var(--primary-soft) center/cover no-repeat; display: grid; place-items: center; color: var(--primary); flex-shrink: 0; }
.photo-drop .preview .icon { width: 36px; height: 36px; opacity: .6; }
.photo-drop.has-image .preview .icon { display: none; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; align-items: center; border-top: 1px solid var(--line); padding-top: 22px; }
.form-note { background: var(--accent-soft); border-radius: 14px; padding: 14px 18px; margin-bottom: 24px; display: flex; gap: 12px; color: #78350f; }
.form-note .icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: 3px; }
.hp { position: absolute !important; left: -9999px !important; }

/* Success / application */
.success-card { text-align: center; padding: 44px 30px; }
.success-ic { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--leaf), #059669); color: #fff; animation: pop .6s cubic-bezier(.2,1.6,.4,1); }
.success-ic .icon { width: 44px; height: 44px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .3s forwards; }
.app-no { display: inline-block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--primary); background: var(--primary-soft); padding: 8px 20px; border-radius: 14px; letter-spacing: .02em; margin: 6px 0 18px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-rejected, .status-cancelled { background: #ffe4e6; color: #9f1239; }

/* Info blocks */
.doc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.doc-list li { display: flex; gap: 10px; background: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: 0 4px 14px -10px rgba(0,0,0,.3); }
.doc-list .icon { color: var(--primary); margin-top: 3px; }
.info-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.info-table th, .info-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.info-table th { background: var(--primary); color: #fff; font-weight: 600; }
.info-table tr:last-child td { border-bottom: 0; }
.info-table tr:nth-child(even) td { background: #faf9f6; }

.contact-card { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-card .c-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.map-wrap { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); margin-top: 20px; }
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; }
.prose { max-width: 760px; }
.prose p { font-size: 1.06rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; margin-top: 80px; position: relative; padding-top: 30px; }
.footer-wave { position: absolute; top: -79px; left: 0; right: 0; height: 80px; }
.footer-wave svg { width: 100%; height: 100%; display: block; }
.footer-wave path { fill: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-title { color: #fff; font-size: 1.2rem; margin-bottom: 14px; }
.site-footer a { color: #e2e8f0; }
.site-footer a:hover { color: var(--accent); }
.footer-line { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; }
.footer-line .icon { margin-top: 5px; color: var(--accent); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links:not(.plain) a::before { content: "›"; margin-right: 8px; color: var(--accent); }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .2s, transform .2s; }
.social a:hover { background: var(--accent); color: var(--ink); transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.1); padding: 18px 20px; font-size: .9rem; }
.fab-whatsapp { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(37,211,102,.7); z-index: 60; animation: pulseRing 2.4s infinite; }
.fab-whatsapp .icon { width: 28px; height: 28px; }
.fab-whatsapp:hover { color: #fff; transform: scale(1.06); }

/* ---------- Hero entrance (pure CSS, visible even without JS) ---------- */
.hero-in { animation: fadeUp .7s cubic-bezier(.2,.8,.2,1) both; }
.hero-in.d1 { animation-delay: .08s; } .hero-in.d2 { animation-delay: .16s; } .hero-in.d3 { animation-delay: .24s; } .hero-in.d4 { animation-delay: .32s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-l { transform: translateX(-36px); }
.reveal-r { transform: translateX(36px); }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift { from { transform: translateX(-12px); } to { transform: translateX(22px); } }
@keyframes spinPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: .8; } }
@keyframes wave { 0%,100% { transform: skewY(0); } 50% { transform: skewY(-6deg) scaleX(.96); } }
@keyframes shimmer { to { background-position: 300% 0; } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
@keyframes morph { 0%,100% { border-radius: 42% 58% 55% 45% / 45% 40% 60% 55%; } 50% { border-radius: 58% 42% 45% 55% / 55% 60% 40% 45%; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-move { padding-left: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 22px;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.35); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s ease;
    max-height: calc(100vh - 90px); overflow-y: auto;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { padding: 12px 6px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .main-nav ul a::after { display: none; }
  .nav-cta { margin-top: 14px; }
}
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .col-3 { grid-column: 1 / -1; }
  .cta-band { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-sm { display: none !important; }
  .header-inner { min-height: 66px; }
  .brand-text strong { font-size: 1.02rem; max-width: 58vw; }
  .brand-text small { display: none; }
  .brand-logo, .brand-crest svg { width: 44px; height: 44px; }
  .section { padding: 60px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .grid-2, .grid-3, .grid-4, .steps, .doc-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; border-radius: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .col-2 { grid-column: 1 / -1; }
  .form-actions .btn { width: 100%; }
  .hero-card { display: none; }
  .cta-band { padding: 32px 22px; }
  .info-table th, .info-table td { padding: 10px; font-size: .92rem; }
}
