/* ============================================================
   JIC Chem Tech — chemistry-themed responsive stylesheet
   Light + dark mode, animated borders, carousels
   ============================================================ */

:root {
  color-scheme: light;
  --bg: #f6f9ff;
  --surface: #ffffff;
  --surface-2: #eef4ff;
  --ink: #0f1d3a;
  --muted: #5d6b86;
  --navy: #102a5a;
  --blue: #2563eb;
  --cyan: #0891b2;
  --accent: #ea580c;
  --line: rgba(16, 42, 90, 0.11);
  --header-bg: rgba(255, 255, 255, 0.9);
  --on-blue: #ffffff;
  --shadow-sm: 0 4px 18px rgba(16, 42, 90, 0.06);
  --shadow-md: 0 16px 40px rgba(16, 42, 90, 0.11);
  --shadow-lg: 0 26px 60px rgba(16, 42, 90, 0.16);
  --radius: 20px;
  --container: 1180px;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070d1d;
  --surface: #0d1730;
  --surface-2: #132043;
  --ink: #e6edfb;
  --muted: #98a7c5;
  --navy: #dce7fb;
  --blue: #60a5fa;
  --cyan: #22d3ee;
  --accent: #fbbf24;
  --line: rgba(255, 255, 255, 0.12);
  --header-bg: rgba(7, 13, 29, 0.9);
  --on-blue: #051025;
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 26px 60px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0; letter-spacing: -.025em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
em { font-style: normal; color: var(--accent); }
svg { fill: currentColor; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: .93rem;
  border: 1.5px solid transparent;
  transition: transform .22s ease, box-shadow .22s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: var(--on-blue); box-shadow: 0 10px 24px rgba(37, 99, 235, .28); }
.btn-primary:hover { box-shadow: 0 14px 32px rgba(37, 99, 235, .4); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-dark { background: var(--navy); color: var(--bg); box-shadow: 0 10px 24px rgba(16, 42, 90, .2); }
html[data-theme="dark"] .btn-dark { background: #e6edfb; color: #08122a; }
.btn-dark:hover { background: var(--blue); color: var(--on-blue); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--navy); color: var(--bg); border-color: var(--navy); }
html[data-theme="dark"] .btn-outline:hover { background: #e6edfb; color: #08122a; }
.btn-light { background: #ffffff; color: #0f2a5a; }
.btn-whatsapp { background: #25d366; color: #063d1d; }
.btn-whatsapp:hover { background: #1ebe5d; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .35s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(145deg, var(--blue), #123a86);
  color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .3);
}
.brand-mark svg { width: 32px; height: 32px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-head); font-size: 1.04rem; color: var(--navy); }
.brand-text strong span { color: var(--blue); }
.brand-text small { font-size: .69rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 3px; }
.nav-link { padding: 8px 12px; font-size: .88rem; font-weight: 600; color: var(--muted); border-radius: 8px; transition: color .2s, background .2s; }
.nav-link:hover { color: var(--blue); background: var(--surface-2); }
.nav-link.active { color: var(--blue); }
.nav-cta { margin-left: 10px; padding: 10px 17px; font-size: .85rem; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .menu-toggle {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: background .25s, border-color .25s, transform .25s;
}
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--blue); transform: translateY(-1px); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 19px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; padding: clamp(58px, 8vw, 104px) 0 clamp(72px, 9vw, 116px); background: var(--bg); }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle, var(--blue) 1px, transparent 1.4px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at 20% 30%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse at 20% 30%, #000 0%, transparent 68%);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero::before { width: 460px; height: 460px; background: rgba(37, 99, 235, .15); top: -190px; left: -150px; }
.hero::after { width: 400px; height: 400px; background: rgba(8, 145, 178, .13); bottom: -210px; right: -130px; }
.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubble { position: absolute; border-radius: 50%; border: 1px solid var(--blue); opacity: .18; animation: floatUp linear infinite; }
.b1 { width: 12px; height: 12px; left: 8%; bottom: 12%; animation-duration: 14s; }
.b2 { width: 7px; height: 7px; left: 24%; bottom: 5%; animation-duration: 11s; animation-delay: 2s; }
.b3 { width: 18px; height: 18px; right: 30%; bottom: 8%; animation-duration: 17s; animation-delay: 4s; }
.b4 { width: 9px; height: 9px; right: 9%; bottom: 20%; animation-duration: 13s; animation-delay: 1s; }
.b5 { width: 14px; height: 14px; left: 45%; bottom: 2%; animation-duration: 19s; animation-delay: 6s; }
.b6 { width: 6px; height: 6px; right: 45%; bottom: 15%; animation-duration: 10s; animation-delay: 3s; }
@keyframes floatUp { to { transform: translateY(-720px) scale(1.4); opacity: 0; } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(36px, 6vw, 76px); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px 7px 11px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--navy); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent); } }
.hero h1 { font-size: clamp(2.4rem, 5.1vw, 4.2rem); margin: 22px 0 20px; color: var(--navy); letter-spacing: -.04em; }
.hero-lead { font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--muted); max-width: 590px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 42px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 620px; }
.stat { padding: 16px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow-sm); transition: transform .25s, border-color .25s; }
.stat:hover { transform: translateY(-4px); border-color: var(--blue); }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.62rem; color: var(--navy); line-height: 1.1; }
.stat strong span { color: var(--accent); font-size: 1.1rem; }
.stat small { font-size: .72rem; color: var(--muted); font-weight: 600; }

.hero-visual { position: relative; }
.glow-frame { position: relative; padding: 3px; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; isolation: isolate; }
.glow-frame::before {
  content: ""; position: absolute; inset: -130%; z-index: 0;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 60deg, var(--blue) 105deg, var(--cyan) 135deg, transparent 175deg, transparent 245deg, var(--accent) 285deg, transparent 325deg);
  animation: spinBorder 9s linear infinite;
}
@keyframes spinBorder { to { transform: rotate(360deg); } }
.glow-inner { position: relative; z-index: 1; border-radius: 23px; overflow: hidden; height: 100%; background: var(--surface-2); }
.hero-visual .glow-frame { aspect-ratio: 4 / 4.25; }
.glow-inner img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4, 14, 35, .45)); }
.atom-badge {
  position: absolute; top: -26px; left: -26px; z-index: 3;
  width: 108px; height: 108px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-md); color: var(--blue);
}
.atom-badge svg { width: 88px; height: 88px; }
.atom-rings { transform-origin: 60px 60px; animation: spinBorder 14s linear infinite; }
.electron { fill: var(--accent); animation: twinkle 2s ease-in-out infinite; }
.e2 { animation-delay: .6s; } .e3 { animation-delay: 1.2s; }
@keyframes twinkle { 50% { opacity: .25; transform: scale(.7); } }
.floating-card { position: absolute; z-index: 3; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 12px 16px; box-shadow: var(--shadow-md); }
.rating-card { top: 24px; right: -16px; }
.rating-card .stars { color: #f59e0b; letter-spacing: 2px; font-size: .92rem; }
.rating-card p { font-size: .8rem; color: var(--muted); margin: 2px 0 0; }
.rating-card p strong { color: var(--navy); font-size: 1rem; }
.formula-card { bottom: 96px; right: -14px; font-family: var(--font-head); font-weight: 800; color: var(--blue); font-size: .96rem; letter-spacing: .03em; }
.formula-card span { color: var(--accent); margin: 0 4px; }
.status-card { bottom: 24px; left: -18px; display: flex; align-items: center; gap: 11px; }
.status-card strong { display: block; font-family: var(--font-head); font-size: .86rem; color: var(--navy); }
.status-card small { font-size: .72rem; color: var(--muted); }
.status-pulse { position: relative; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; flex: none; }
.status-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(34, 197, 94, .45); animation: pulse 2s infinite; }
@keyframes pulse { to { transform: scale(1.45); opacity: 0; } }
.closed .status-pulse { background: #ef4444; }
.closed .status-pulse::after { border-color: rgba(239, 68, 68, .45); }
.sparkle { position: absolute; z-index: 4; color: var(--accent); font-size: 1.25rem; animation: twinkle 2.8s ease-in-out infinite; pointer-events: none; }
.s1 { top: 20%; left: -14px; }
.s2 { top: 47%; right: -12px; animation-delay: .9s; }
.s3 { bottom: 22%; left: 38%; animation-delay: 1.6s; }
.s4 { bottom: 14%; right: 14px; }

/* ---------------- Marquee ---------------- */
.trust-strip { background: var(--navy); color: #fff; overflow: hidden; padding: 13px 0; }
html[data-theme="dark"] .trust-strip { background: #16264d; }
.trust-track { display: flex; gap: 34px; width: max-content; font-size: .8rem; font-weight: 700; letter-spacing: .04em; animation: marquee 36s linear infinite; }
.trust-track span:nth-child(even) { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- Sections ---------------- */
.section { padding: clamp(72px, 9vw, 116px) 0; }
.section-head { max-width: 730px; margin: 0 auto 52px; text-align: center; }
.section-tag { display: inline-block; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--blue); margin-bottom: 12px; }
.section-head h2, .about-copy h2, .why-copy h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--navy); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.02rem; }

/* ---------------- About ---------------- */
.about { background: var(--surface); }
.about-grid, .why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 82px); align-items: center; }
.about-visual, .why-visual { position: relative; }
.about-visual .glow-frame { aspect-ratio: 1 / .92; }
.about-badge { position: absolute; right: -18px; bottom: 26px; z-index: 3; background: var(--accent); color: #fff; border-radius: 18px; padding: 15px 22px; display: flex; align-items: center; gap: 12px; box-shadow: 0 16px 34px rgba(234, 88, 12, .3); }
.about-badge strong { font-family: var(--font-head); font-size: 2rem; line-height: 1; }
.about-badge span { font-size: .76rem; font-weight: 600; line-height: 1.35; }
.mini-formula { position: absolute; top: 18px; right: 18px; z-index: 3; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 13px; font-family: var(--font-head); font-weight: 800; color: var(--blue); box-shadow: var(--shadow-sm); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-7px); } }
.about-copy p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 11px; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; font-size: .94rem; font-weight: 600; color: var(--ink); }
.check-list span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, #22c55e 14%, transparent); color: #16a34a; font-size: .75rem; font-weight: 800; margin-top: 2px; }
html[data-theme="dark"] .check-list span { color: #4ade80; }

/* ---------------- Courses ---------------- */
.courses { background: var(--bg); }
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.course-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.course-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.course-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.course-card:hover::after { transform: scaleX(1); }
.course-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.course-icon svg { width: 27px; height: 27px; }
.icon-blue { background: #e7f0ff; color: #2563eb; }
.icon-cyan { background: #e2f8fb; color: #0891b2; }
.icon-amber { background: #fff1df; color: #ea580c; }
.icon-violet { background: #f0ebff; color: #7c3aed; }
html[data-theme="dark"] .course-icon { background: var(--surface-2); }
.card-index { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.course-card h3 { font-size: 1.12rem; color: var(--navy); margin-bottom: 9px; }
.course-card p { color: var(--muted); font-size: .9rem; }
.course-foot { display: block; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .75rem; font-weight: 700; color: var(--blue); }

/* ---------------- Why ---------------- */
.why { background: var(--surface); }
.why-visual .glow-frame { aspect-ratio: 1 / 1.02; }
.why-list { margin-top: 28px; display: grid; gap: 17px; }
.why-item { display: flex; gap: 15px; align-items: flex-start; }
.why-icon { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); color: var(--blue); font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; border: 1px solid var(--line); }
.why-item h4 { font-size: 1rem; color: var(--navy); margin-bottom: 3px; }
.why-item p { font-size: .89rem; color: var(--muted); }
.why-quote { position: absolute; left: -22px; bottom: 28px; z-index: 3; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 17px 21px; box-shadow: var(--shadow-md); max-width: 290px; }
.why-quote .stars { color: #f59e0b; letter-spacing: 2px; font-size: .88rem; }
.why-quote p { font-weight: 700; font-size: .91rem; color: var(--navy); margin: 6px 0 3px; }
.why-quote small { color: var(--muted); font-size: .74rem; }

/* ---------------- Carousels ---------------- */
.gallery { background: var(--bg); }
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; border-radius: 24px; }
.carousel-track { display: flex; gap: 20px; transition: transform .6s cubic-bezier(.22,.8,.24,1); will-change: transform; touch-action: pan-y; }
.carousel-slide { flex: 0 0 100%; min-width: 0; }
.gallery .carousel-slide { position: relative; height: clamp(300px, 44vw, 470px); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md); background: var(--surface-2); }
.gallery .carousel-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.gallery .carousel-slide:hover img { transform: scale(1.04); }
.gallery .carousel-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(4, 12, 30, .78)); }
.gallery figcaption { position: absolute; z-index: 2; left: 32px; bottom: 28px; color: #fff; display: grid; gap: 2px; }
.gallery figcaption span { font-size: .74rem; font-weight: 800; letter-spacing: .12em; color: #93c5fd; }
.gallery figcaption strong { font-family: var(--font-head); font-size: 1.35rem; }
.gallery figcaption small { font-size: .85rem; color: #d6e2f7; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--navy);
  font-size: 1.7rem; line-height: 1; display: grid; place-items: center;
  box-shadow: var(--shadow-md); transition: background .25s, color .25s, transform .25s;
}
.carousel-arrow:hover { background: var(--blue); color: #fff; transform: translateY(-50%) scale(1.08); }
.carousel-arrow.prev { left: -20px; }
.carousel-arrow.next { right: -20px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.carousel-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: var(--line); transition: width .3s ease, background .3s ease; }
.carousel-dots button.active { width: 28px; background: var(--blue); }

.reviews { background: var(--surface); }
.review-carousel .carousel-slide { flex: 0 0 calc((100% - 40px) / 3); }
.review-carousel .carousel-viewport { overflow: hidden; border-radius: 0; }
.review-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; box-shadow: var(--shadow-sm); height: 100%; }
.review-top { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: .78rem; color: #fff; }
.avatar-one { background: linear-gradient(135deg,#2563eb,#60a5fa); }
.avatar-two { background: linear-gradient(135deg,#ea580c,#fbbf24); }
.avatar-three { background: linear-gradient(135deg,#7c3aed,#a78bfa); }
.avatar-four { background: linear-gradient(135deg,#0891b2,#22d3ee); }
.avatar-five { background: linear-gradient(135deg,#16a34a,#86efac); }
.avatar-six { background: linear-gradient(135deg,#e11d48,#fb7185); }
.review-top strong { display: block; font-size: .89rem; color: var(--navy); }
.review-top small { font-size: .7rem; color: var(--muted); }
.review-stars { margin-left: auto; color: #f59e0b; font-size: .76rem; letter-spacing: 1px; white-space: nowrap; }
.review-card p { font-size: .9rem; color: var(--ink); font-style: italic; }
.reviews-cta { margin-top: 32px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; box-shadow: var(--shadow-sm); }
.rating-summary { display: flex; align-items: center; gap: 15px; }
.rating-summary > strong { font-family: var(--font-head); font-size: 2.6rem; color: var(--navy); line-height: 1; }
.rating-summary .stars { color: #f59e0b; letter-spacing: 2px; display: block; }
.rating-summary small { color: var(--muted); font-size: .8rem; }

/* ---------------- Timings & map ---------------- */
.timings { background: var(--bg); }
.location-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 24px; align-items: stretch; }
.info-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-sm); }
.open-badge { display: inline-flex; align-items: center; gap: 9px; background: rgba(34,197,94,.12); color: #15803d; border-radius: 999px; padding: 6px 14px; font-size: .77rem; font-weight: 800; margin-bottom: 18px; }
html[data-theme="dark"] .open-badge { color: #4ade80; }
.open-badge.closed-badge { background: rgba(239,68,68,.12); color: #dc2626; }
html[data-theme="dark"] .open-badge.closed-badge { color: #f87171; }
.info-panel h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 14px; }
.timing-list { list-style: none; padding: 0; margin: 0 0 16px; }
.timing-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .87rem; }
.timing-list li:last-child { border-bottom: 0; }
.timing-list span { color: var(--muted); }
.timing-list strong { color: var(--navy); font-weight: 700; }
.info-divider { height: 1px; background: var(--line); margin: 16px 0; }
.info-row { display: flex; gap: 13px; margin-bottom: 16px; }
.info-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--blue); border: 1px solid var(--line); }
.info-icon svg { width: 18px; height: 18px; }
.info-row strong { display: block; font-size: .87rem; color: var(--navy); margin-bottom: 2px; }
.info-row p { font-size: .85rem; color: var(--muted); margin: 0; }
.copy-phone { background: none; border: 0; padding: 0; font-size: .85rem; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.copy-phone span { color: var(--blue); font-size: .72rem; font-weight: 800; text-decoration: underline; }
.info-panel .btn { margin-top: 6px; }
.map-panel { position: relative; border-radius: 22px; overflow: hidden; min-height: 460px; box-shadow: var(--shadow-md); border: 1px solid var(--line); background: var(--surface-2); }
.map-panel iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }
html[data-theme="dark"] .map-panel iframe { filter: invert(.88) hue-rotate(180deg); }
.map-label { position: absolute; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 11px; background: var(--surface); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-md); max-width: calc(100% - 36px); }
.map-pin { font-size: 1.1rem; }
.map-label strong { display: block; font-size: .84rem; color: var(--navy); }
.map-label small { font-size: .73rem; color: var(--muted); }

/* ---------------- CTA ---------------- */
.cta { position: relative; overflow: hidden; background: linear-gradient(120deg, #08173a, #102a5a 55%, #17439a); color: #fff; padding: clamp(64px, 8vw, 96px) 0; }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.05); }
.cta::before { width: 420px; height: 420px; top: -220px; right: -80px; }
.cta::after { width: 300px; height: 300px; bottom: -190px; left: -60px; }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-copy { max-width: 620px; }
.section-tag-light { color: #93c5fd; }
.cta h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 14px; }
.cta h2 em { color: #fbbf24; }
.cta p { color: #c6d4ee; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- Footer ---------------- */
.footer { background: #060f24; color: #b9c7df; padding: 66px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: .87rem; max-width: 300px; margin-top: 16px; color: #93a4c3; }
.footer .brand-text strong { color: #fff; }
.footer .brand-text small { color: #8fa3c4; }
.footer-col h4 { color: #fff; font-size: .94rem; margin-bottom: 16px; }
.footer-col a { display: block; font-size: .86rem; margin-bottom: 9px; color: #a9b9d4; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: .86rem; color: #93a4c3; margin-bottom: 9px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .77rem; color: #7f92b3; }
.footer-bottom p { margin: 0; }

/* ---------------- Floating UI ---------------- */
.float-whatsapp { position: fixed; right: 22px; bottom: 24px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px rgba(37,211,102,.4); transition: transform .25s; }
.float-whatsapp:hover { transform: translateY(-4px) scale(1.05); }
.float-whatsapp svg { width: 28px; height: 28px; }
.back-to-top { position: fixed; right: 24px; bottom: 90px; z-index: 90; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--navy); font-size: 1.1rem; font-weight: 700; box-shadow: var(--shadow-sm); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--blue); color: #fff; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 20px); background: var(--navy); color: var(--bg); padding: 11px 20px; border-radius: 10px; font-size: .86rem; font-weight: 600; opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; box-shadow: var(--shadow-md); }
html[data-theme="dark"] .toast { background: #e6edfb; color: #08122a; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------------- Reveal ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .nav-link { padding: 8px 9px; font-size: .84rem; }
  .nav-cta { margin-left: 5px; padding: 9px 13px; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .review-carousel .carousel-slide { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 2px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); padding: 12px 20px 20px; max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: max-height .3s ease, opacity .25s ease, visibility .25s ease, padding .3s ease; }
  .nav.open { max-height: 540px; opacity: 1; visibility: visible; }
  .nav-link { padding: 11px 12px; font-size: .95rem; }
  .nav-cta { margin: 8px 0 0; width: 100%; }
  .hero-grid, .about-grid, .why-grid, .location-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; width: 100%; max-width: 560px; margin-inline: auto; }
  .hero-visual .glow-frame { aspect-ratio: 4 / 3.2; }
  .about-visual, .why-visual { width: 100%; max-width: 560px; margin-inline: auto; }
  .atom-badge { width: 88px; height: 88px; top: -20px; left: -14px; }
  .atom-badge svg { width: 72px; height: 72px; }
  .rating-card { right: 8px; }
  .formula-card { right: 8px; }
  .status-card { left: 8px; }
  .about-badge { right: 8px; }
  .why-quote { left: 8px; }
  .map-panel, .map-panel iframe { min-height: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 32px, var(--container)); }
  html { scroll-padding-top: 70px; }
  .header-inner { min-height: 68px; }
  .brand-mark { width: 40px; height: 40px; }
  .theme-toggle, .menu-toggle { width: 38px; height: 38px; }
  .brand-text strong { font-size: .95rem; }
  .brand-text small { font-size: .64rem; }
  .hero { padding-top: 48px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .atom-badge { width: 70px; height: 70px; top: -16px; left: -8px; }
  .atom-badge svg { width: 58px; height: 58px; }
  .floating-card { padding: 9px 12px; }
  .rating-card { top: 12px; }
  .status-card { bottom: 12px; }
  .formula-card { bottom: 86px; font-size: .82rem; }
  .course-grid, .review-carousel .carousel-slide { grid-template-columns: 1fr; flex-basis: 100%; }
  .section-head { margin-bottom: 38px; }
  .gallery .carousel-slide { height: 320px; }
  .gallery figcaption { left: 20px; bottom: 20px; }
  .carousel-arrow { width: 40px; height: 40px; }
  .carousel-arrow.prev { left: -8px; }
  .carousel-arrow.next { right: -8px; }
  .reviews-cta { flex-direction: column; text-align: center; }
  .cta-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; }
  .map-panel, .map-panel iframe { min-height: 300px; }
  .float-whatsapp { right: 16px; bottom: 18px; width: 50px; height: 50px; }
  .back-to-top { right: 18px; bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
