/* =========================================================
   Clavis Consulting — design system
   Shared by index.html and services.html (Tailwind CDN is used
   for layout utilities; brand components live here).
   ========================================================= */

:root {
  --navy-950: #050b1a;
  --navy-900: #0a1428;
  --navy-800: #111e3a;
  --navy-700: #1b2b4f;
  --ink: #0b1324;
  --ink-soft: #475569;
  --ink-mute: #64748b;
  --line: #e5e9f0;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --surface-3: #eef2f7;
  --accent: #0ea5e9;
  --accent-600: #0284c7;
  --accent-700: #0369a1;
  --accent-2: #22d3ee;
  --violet: #6366f1;
  --success: #10b981;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 19, 36, .06), 0 1px 3px rgba(11, 19, 36, .04);
  --shadow: 0 10px 30px -12px rgba(11, 19, 36, .18);
  --shadow-lg: 0 30px 60px -20px rgba(11, 19, 36, .28);
  --grad-accent: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  --header-h: 4.75rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); font-size: 16px; }
/* Scale the whole layout (Tailwind sizes are rem-based) so large screens are filled, not boxed in */
@media (min-width: 1440px) { html { font-size: 17px; } }
@media (min-width: 1680px) { html { font-size: 18px; } }
@media (min-width: 1920px) { html { font-size: 19px; } }
@media (min-width: 2400px) { html { font-size: 21px; } }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

::selection { background: rgba(14, 165, 233, .2); }

:focus-visible { outline: 3px solid rgba(14, 165, 233, .55); outline-offset: 3px; border-radius: 8px; }

.container-x { width: 100%; max-width: 88rem; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container-x { padding-inline: 32px; } }
@media (min-width: 1280px) { .container-x { padding-inline: 48px; } }

.section { padding-block: 96px; position: relative; }
@media (max-width: 767px) { .section { padding-block: 72px; } }
.section-alt { background: var(--surface-2); }
.section-dark { background: var(--navy-950); color: #e2e8f0; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-700);
  padding: .4rem .85rem; border-radius: 999px;
  background: rgba(14, 165, 233, .08); border: 1px solid rgba(14, 165, 233, .18);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(14, 165, 233, .18); }
.section-dark .eyebrow, .eyebrow-light { color: #7dd3fc; background: rgba(125, 211, 252, .08); border-color: rgba(125, 211, 252, .2); }

.h-display { font-size: clamp(2.4rem, 5.6vw, 4.5rem); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; }
.h-section { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.h-card { font-size: 1.2rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.7; color: var(--ink-soft); }
.section-dark .lead { color: #94a3b8; }
.text-grad { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-grad-light { background: linear-gradient(135deg, #7dd3fc, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .h-section { margin: 18px 0 14px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  height: 48px; padding: 0 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .005em; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .2s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn i { font-size: .85em; transition: transform .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:hover i.fa-arrow-right { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn-sm { height: 40px; padding: 0 1.1rem; font-size: .88rem; }
.btn-lg { height: 56px; padding: 0 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--grad-accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(14, 165, 233, .7); background-size: 140% 140%; background-position: 0% 50%; }
.btn-primary:hover { box-shadow: 0 16px 32px -10px rgba(99, 102, 241, .6); background-position: 100% 50%; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn-dark:hover { background: var(--navy-700); }
.btn-outline { background: transparent; color: var(--ink); border-color: #cbd5e1; }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(8px); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-whatsapp { background: #16a34a; color: #fff; }
.btn-whatsapp:hover { background: #15803d; }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--accent-700); transition: gap .25s ease, color .2s ease; }
.link-arrow:hover { gap: .75rem; color: var(--violet); }

/* ---------- Header / navigation ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.site-header .bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header .brand { flex-shrink: 0; display: flex; align-items: center; gap: 12px; color: #fff; min-width: 0; }
.site-header .brand img { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; }
.site-header .brand-name { font-weight: 800; letter-spacing: -.02em; font-size: 1.05rem; line-height: 1.1; }
.site-header .brand-sub { display: block; font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }

.nav-pill { display: none; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(12px); }
@media (min-width: 1200px) { .nav-pill { display: flex; } }
.nav-pill a { position: relative; white-space: nowrap; padding: .55rem 1rem; border-radius: 999px; font-size: .9rem; font-weight: 500; color: rgba(255, 255, 255, .85); transition: color .2s ease, background-color .2s ease; }
.nav-pill a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav-pill a.active { color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn-cta { display: none; }
@media (min-width: 640px) { .header-actions .btn-cta { display: inline-flex; } }

.menu-btn { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); cursor: pointer; }
@media (min-width: 1200px) { .menu-btn { display: none; } }

.site-header.scrolled { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11, 19, 36, .4); }
.site-header.scrolled .brand { color: var(--ink); }
.site-header.scrolled .nav-pill { background: var(--surface-3); border-color: var(--line); }
.site-header.scrolled .nav-pill a { color: var(--ink-soft); }
.site-header.scrolled .nav-pill a:hover { color: var(--ink); background: #fff; }
.site-header.scrolled .nav-pill a.active { color: #fff; background: var(--ink); }
.site-header.scrolled .menu-btn { color: var(--ink); background: var(--surface-3); border-color: var(--line); }

.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--grad-accent); transition: width .1s linear; }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(5, 11, 26, .55); backdrop-filter: blur(4px); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.drawer { position: fixed; top: 0; right: 0; height: 100dvh; width: min(360px, 88vw); background: #fff; z-index: 80; transform: translateX(100%); transition: transform .35s cubic-bezier(.22, 1, .36, 1); display: flex; flex-direction: column; padding: 20px; box-shadow: var(--shadow-lg); }
body.menu-open { overflow: hidden; }
body.menu-open .drawer { transform: none; }
body.menu-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.menu-open .fab-stack { opacity: 0; pointer-events: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.drawer nav { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; }
.drawer nav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; border-radius: 12px; font-weight: 600; color: var(--ink); }
.drawer nav a:hover, .drawer nav a.active { background: var(--surface-2); color: var(--accent-700); }
.drawer nav a i { color: var(--ink-mute); font-size: .8rem; }
.drawer-foot { margin-top: auto; display: grid; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy-950); padding-top: var(--header-h); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; transform: scale(1.04); transition: opacity 1.1s ease, transform 6s ease; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60% 60% at 85% 20%, rgba(99, 102, 241, .35) 0%, transparent 60%),
  radial-gradient(50% 50% at 10% 90%, rgba(14, 165, 233, .32) 0%, transparent 60%),
  linear-gradient(180deg, rgba(5, 11, 26, .55) 0%, rgba(5, 11, 26, .85) 70%, var(--navy-950) 100%); }
.hero-grid { position: absolute; inset: 0; z-index: 0; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); }
.hero-content { position: relative; z-index: 2; width: 100%; }

.badge-glass { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .9rem .45rem .45rem; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); font-size: .85rem; font-weight: 500; color: #e2e8f0; }
.hero-pecb { display: inline-flex; align-items: center; gap: 16px; padding: 10px 22px 10px 10px; border-radius: 22px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); color: #fff; transition: background-color .3s ease, border-color .3s ease, transform .3s ease; }
.hero-pecb:hover { background: rgba(255, 255, 255, .13); border-color: rgba(125, 211, 252, .5); transform: translateY(-2px); }
.hp-logo { flex-shrink: 0; width: 62px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.hp-logo img { display: block; width: 100%; height: auto; }
.hp-text strong { display: block; font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.hp-text small { display: block; margin-top: 3px; font-size: .85rem; color: #94a3b8; }
.hp-go { font-size: .8rem; color: #7dd3fc; margin-left: 4px; transition: transform .3s ease; }
.hero-pecb:hover .hp-go { transform: translateX(4px); }
@media (min-width: 768px) { .hp-logo { width: 72px; } .hp-text strong { font-size: 1.35rem; } }
@media (max-width: 400px) { .hero-pecb { gap: 12px; padding-right: 16px; } .hp-logo { width: 52px; } .hp-text strong { font-size: 1.05rem; } }
.badge-glass .dot { display: inline-flex; align-items: center; justify-content: center; height: 26px; padding: 0 .6rem; border-radius: 999px; background: var(--grad-accent); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }

/* Rotating word: a single element whose text is swapped, so gradient text can never overlap */
.rotator { display: inline-block; white-space: nowrap; transition: opacity .35s ease, transform .35s ease, filter .35s ease; }
.rotator.out { opacity: 0; transform: translateY(-.25em); filter: blur(4px); }
.rotator.pre { opacity: 0; transform: translateY(.25em); filter: blur(4px); transition: none; }

.hero-card { position: relative; border-radius: var(--radius-lg); padding: 24px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.hero-card .row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; transition: background-color .25s ease; color: #e2e8f0; }
.hero-card .row:hover { background: rgba(255, 255, 255, .07); }
.hero-card .row + .row { margin-top: 4px; }
.hero-card .ico { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(14, 165, 233, .15); color: #7dd3fc; }
.hero-card .row:nth-child(2) .ico { background: rgba(99, 102, 241, .18); color: #a5b4fc; }
.hero-card .row:nth-child(3) .ico { background: rgba(16, 185, 129, .15); color: #6ee7b7; }
.hero-card .row:nth-child(4) .ico { background: rgba(244, 114, 182, .15); color: #f9a8d4; }

.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 768px) { .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero-stats > div { background: rgba(5, 11, 26, .55); padding: 20px; backdrop-filter: blur(6px); }
.hero-stats strong { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.hero-stats > div > span { font-size: .82rem; color: #94a3b8; }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .35); display: none; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 4px; background: #fff; transform: translateX(-50%); animation: cue 1.6s ease-in-out infinite; }
@media (min-width: 768px) and (min-height: 760px) { .scroll-cue { display: block; } }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* Page hero (inner pages) */
.page-hero { position: relative; color: #fff; background: var(--navy-950); padding: calc(var(--header-h) + 72px) 0 72px; overflow: hidden; }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip { display: inline-flex; align-items: center; gap: .5rem; height: 42px; padding: 0 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--ink); white-space: nowrap; box-shadow: var(--shadow-sm); }
.chip i { color: var(--accent); }
.section-dark .chip, .chip-dark { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); color: #e2e8f0; box-shadow: none; }

/* ---------- Cards ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .35s ease; }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(14, 165, 233, .35); }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--accent-700); background: linear-gradient(135deg, rgba(14, 165, 233, .14), rgba(99, 102, 241, .14)); transition: transform .35s ease, background .35s ease, color .35s ease; }
.card-hover:hover .card-icon { background: var(--grad-accent); color: #fff; transform: rotate(-6deg) scale(1.05); }

.check-list { display: grid; gap: .65rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .65rem; flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(14, 165, 233, .12); color: var(--accent-700); }
.section-dark .check-list li { color: #cbd5e1; }
.section-dark .check-list li::before { background: rgba(125, 211, 252, .14); color: #7dd3fc; }

/* Bento service grid */
.bento { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .bento { grid-template-columns: repeat(12, 1fr); } .bento > :nth-child(1) { grid-column: span 7; } .bento > :nth-child(2) { grid-column: span 5; } .bento > :nth-child(3) { grid-column: span 5; } .bento > :nth-child(4) { grid-column: span 7; } }
.service-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.service-card .media { position: relative; height: 200px; overflow: hidden; }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.service-card:hover .media img { transform: scale(1.06); }
.service-card .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(5, 11, 26, .75)); }
.service-card .media .tag { position: absolute; left: 20px; bottom: 16px; z-index: 1; color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: inline-flex; gap: .5rem; align-items: center; }
.service-card .body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.service-card .foot { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: .78rem; font-weight: 600; padding: .35rem .7rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft); }

/* Process steps */
.steps { display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 28px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); transition: background-color .3s ease, border-color .3s ease, transform .3s ease; }
.step:hover { background: rgba(255, 255, 255, .07); border-color: rgba(125, 211, 252, .35); transform: translateY(-4px); }
.step .num { font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: #7dd3fc; }
.step .num::before { counter-increment: step; content: "0" counter(step); font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; display: block; line-height: 1; margin-bottom: 18px; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .15)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { color: #fff; font-weight: 700; font-size: 1.15rem; margin: 10px 0 8px; }
.step p { color: #94a3b8; font-size: .95rem; line-height: 1.6; }

/* Segmented tabs */
.segmented { display: inline-flex; padding: 6px; gap: 4px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line); }
.segmented button { height: 42px; padding: 0 1.2rem; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--ink-soft); background: transparent; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.segmented button:hover { color: var(--ink); }
.segmented button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: panelIn .5s cubic-bezier(.22, 1, .36, 1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Values */
.value { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: border-color .3s ease, box-shadow .3s ease; }
.value:hover { border-color: rgba(14, 165, 233, .35); box-shadow: var(--shadow); }
.value .n { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: var(--ink); font-size: .9rem; }

/* PECB partner band */
.pecb-band-wrap { padding: 72px 0 0; background: #fff; }
.pecb-band { position: relative; overflow: hidden; display: grid; gap: 28px; align-items: center; padding: 28px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #fff7f5 0%, #f0f9ff 55%, #eef2ff 100%); border: 1px solid #e2e8f0; box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .pecb-band { grid-template-columns: auto 1fr; padding: 36px 40px; gap: 40px; } }
@media (min-width: 1200px) { .pecb-band { grid-template-columns: auto 1fr auto; } }
.pecb-logo { width: 132px; flex-shrink: 0; padding: 14px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); transform: rotate(-3deg); transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
.pecb-band:hover .pecb-logo { transform: rotate(0) scale(1.03); }
@media (min-width: 1200px) { .pecb-logo { width: 150px; } }
.pecb-logo img { display: block; width: 100%; height: auto; }
.pecb-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 14px 0 10px; }
.pecb-copy p { color: var(--ink-soft); line-height: 1.7; max-width: 46rem; }
.pecb-courses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pecb-courses span { padding: .35rem .75rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.pecb-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 768px) and (max-width: 1199px) { .pecb-actions { grid-column: 2; } }
@media (min-width: 1200px) { .pecb-actions { flex-direction: column; } .pecb-actions .btn { justify-content: center; } }

/* About: image story with floating cards */
.about-visual { position: relative; padding: 0 0 56px; }
@media (min-width: 640px) { .about-visual { padding: 0 32px 64px 0; } }
.av-main { position: relative; height: 380px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
@media (min-width: 1024px) { .av-main { height: 480px; } }
.av-main img { width: 100%; height: 100%; object-fit: cover; }
.am-chip { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; background: rgba(5, 11, 26, .78); backdrop-filter: blur(8px); color: #fff; font-size: .85rem; font-weight: 600; }
.am-chip i { color: #7dd3fc; }
.av-card { position: absolute; border-radius: 20px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.av-pecb { right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; max-width: 290px; }
.av-pecb img { width: 58px; height: 70px; object-fit: contain; flex-shrink: 0; }
.av-pecb strong { display: block; font-weight: 800; font-size: 1rem; line-height: 1.2; color: var(--ink); }
.av-pecb span { display: block; margin-top: 2px; font-size: .8rem; line-height: 1.4; color: var(--ink-mute); }
.av-journey { left: 16px; bottom: 20px; padding: 14px 16px; display: none; }
@media (min-width: 640px) { .av-journey { display: block; left: -16px; bottom: 96px; } }
.av-journey small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 10px; }
.av-journey ol { display: flex; gap: 6px; }
.av-journey li { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 62px; font-size: .75rem; font-weight: 700; color: var(--ink); }
.av-journey li i { width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--accent-700); }
.av-journey li:first-child i { background: var(--grad-accent); color: #fff; }

.about-points { display: grid; gap: 12px; }
@media (min-width: 640px) { .about-points { grid-template-columns: 1fr 1fr; } }
.about-points li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); font-size: .85rem; line-height: 1.5; color: var(--ink-mute); transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease; }
.about-points li:hover { background: #fff; border-color: rgba(14, 165, 233, .35); box-shadow: var(--shadow); }
.about-points i { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--accent-700); box-shadow: var(--shadow-sm); }
.about-points strong { display: block; font-size: .95rem; color: var(--ink); font-weight: 700; margin-bottom: 2px; }

/* About: vision, mission and numbers in one dark panel */
.purpose { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy-900); color: #cbd5e1; isolation: isolate; }
.purpose::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 100% 0%, rgba(99, 102, 241, .4), transparent 65%), radial-gradient(45% 55% at 0% 100%, rgba(14, 165, 233, .3), transparent 65%); }
.purpose-grid { display: grid; }
@media (min-width: 768px) { .purpose-grid { grid-template-columns: 1fr 1fr; } }
.purpose-item { padding: 32px 28px; }
@media (min-width: 768px) { .purpose-item { padding: 48px; } .purpose-item + .purpose-item { border-left: 1px solid rgba(255, 255, 255, .1); } }
@media (max-width: 767px) { .purpose-item + .purpose-item { border-top: 1px solid rgba(255, 255, 255, .1); } }
.purpose-item h3 { color: #fff; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 14px; }
.purpose-item p { font-size: 1.02rem; line-height: 1.75; }
.vm-label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7dd3fc; }
.vm-icon { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 22px; background: rgba(125, 211, 252, .12); color: #7dd3fc; }
.purpose-stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 768px) { .purpose-stats { grid-template-columns: repeat(4, 1fr); } }
.purpose-stats > div { padding: 24px 28px; }
.purpose-stats > div + div { border-left: 1px solid rgba(255, 255, 255, .1); }
@media (max-width: 767px) { .purpose-stats > div:nth-child(3) { border-left: 0; } .purpose-stats > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); } }
.purpose-stats strong { display: block; font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #fff; }
.purpose-stats > div > span { display: block; margin-top: 8px; font-size: .85rem; color: #94a3b8; }

.value-card { position: relative; padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(14, 165, 233, .35); }
.value-card:hover .card-icon { background: var(--grad-accent); color: #fff; }
.value-card .vc-num { position: absolute; top: 20px; right: 24px; font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; color: var(--surface-3); line-height: 1; }
.value-card h4 { font-weight: 700; font-size: 1.1rem; margin: 20px 0 6px; }
.value-card p { color: var(--ink-soft); font-size: .93rem; line-height: 1.6; }

/* Contact modal */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 11, 26, .6); backdrop-filter: blur(6px); }
.modal-panel { position: relative; width: 100%; max-width: 980px; max-height: calc(100dvh - 32px); overflow: auto; border-radius: 28px; background: #fff; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .5); display: grid; transform: translateY(20px) scale(.98); transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
@media (min-width: 900px) { .modal-panel { grid-template-columns: 340px 1fr; } }
.modal.open .modal-panel { transform: none; }
.modal-aside { position: relative; overflow: hidden; padding: 32px; color: #cbd5e1; background: var(--navy-900); display: none; flex-direction: column; gap: 14px; isolation: isolate; }
.modal-aside::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 0% 0%, rgba(14, 165, 233, .35), transparent 60%), radial-gradient(60% 50% at 100% 100%, rgba(99, 102, 241, .35), transparent 60%); }
@media (min-width: 900px) { .modal-aside { display: flex; } }
.modal-aside h3 { color: #fff; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.modal-body { padding: 28px 22px; }
@media (min-width: 640px) { .modal-body { padding: 36px; } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
body.modal-open { overflow: hidden; }
body.modal-open .fab-stack { opacity: 0; pointer-events: none; }

/* Why: feature story card and strengths */
.why-hero { position: relative; overflow: hidden; padding: 32px; border-radius: var(--radius-lg); background: var(--navy-900); color: #94a3b8; isolation: isolate; }
.why-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 45% at 100% 0%, rgba(99, 102, 241, .45), transparent 65%), radial-gradient(55% 40% at 0% 100%, rgba(14, 165, 233, .35), transparent 65%); }
.why-hero h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 14px; }
.why-hero > p { line-height: 1.7; }
.why-list { display: grid; gap: 14px; margin-top: 26px; }
.why-list li { padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
@media (min-width: 768px) { .why-hero { padding: 48px; } }
.why-list li { display: flex; gap: 14px; align-items: flex-start; font-size: .9rem; line-height: 1.5; }
.why-list i { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(125, 211, 252, .12); color: #7dd3fc; }
.why-list strong { display: block; color: #fff; font-weight: 700; }

.feature { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .35s ease; }
.feature p { color: var(--ink-soft); font-size: .95rem; line-height: 1.65; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(14, 165, 233, .35); }
.feature:hover .card-icon { background: var(--grad-accent); color: #fff; transform: rotate(-6deg) scale(1.05); }
.feature-tag { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft); }

/* Cursor spotlight on cards (position set from JS) */
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(14, 165, 233, .12), transparent 70%); }
.why-hero.spot::after { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(125, 211, 252, .14), transparent 70%); z-index: -1; }
.spot:hover::after { opacity: 1; }

/* Copy button + toast */
.copy-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #cbd5e1; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.copy-btn:hover { background: #fff; color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: inline-flex; align-items: center; gap: .6rem; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg); transition: opacity .3s ease, transform .3s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast i { color: #4ade80; }

/* Email chooser (opened by any mailto: link) */
.mail-menu { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.mail-menu.open { opacity: 1; pointer-events: auto; }
.mail-menu-backdrop { position: absolute; inset: 0; background: rgba(5, 11, 26, .55); backdrop-filter: blur(4px); }
.mail-menu-panel { position: relative; width: 100%; max-width: 420px; padding: 28px 24px 24px; border-radius: 24px; background: #fff; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .5); text-align: center; transform: translateY(16px) scale(.98); transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.mail-menu.open .mail-menu-panel { transform: none; }
@media (max-width: 639px) { .mail-menu { align-items: flex-end; padding: 0; } .mail-menu-panel { max-width: none; border-radius: 24px 24px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); } }
.mail-menu-close { position: absolute; top: 12px; right: 12px; }
.mail-menu-ico { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; background: var(--grad-accent); color: #fff; }
.mail-menu h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin-top: 14px; color: var(--ink); }
.mail-menu-addr { margin-top: 4px; font-size: .92rem; font-weight: 600; color: var(--accent-700); word-break: break-all; }
.mail-menu-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; text-align: left; }
.mail-menu-opts > * { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; font: inherit; color: var(--ink); text-align: left; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.mail-menu-opts > *:hover, .mail-menu-opts > *:focus-visible { background: #fff; border-color: rgba(14, 165, 233, .45); transform: translateY(-1px); outline: none; }
.mail-menu-opts i { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--accent-700); box-shadow: var(--shadow-sm); }
.mail-menu-opts strong { display: block; font-size: .88rem; font-weight: 700; line-height: 1.2; }
.mail-menu-opts small { display: block; font-size: .72rem; color: var(--ink-mute); line-height: 1.3; }
.mail-menu-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: .82rem; line-height: 1.5; text-align: left; }
.mail-menu-note[hidden] { display: none; }
.mail-menu-note i { margin-top: 3px; color: #d97706; }
body.mail-open { overflow: hidden; }
body.mail-open .fab-stack { opacity: 0; pointer-events: none; }

/* Partners */
.logo-tile { display: flex; align-items: center; justify-content: center; height: 110px; padding: 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease; }
.logo-tile img { max-height: 76px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .35s ease, opacity .35s ease; }
.logo-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.logo-tile:hover img { filter: none; opacity: 1; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--line); transition: transform .3s ease, background-color .3s ease, color .3s ease; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--ink); color: #fff; }
.faq details p { padding: 0 4px 22px; color: var(--ink-soft); line-height: 1.7; max-width: 760px; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 32px; padding: 56px 28px; color: #fff; background: var(--navy-900); isolation: isolate; }
@media (min-width: 768px) { .cta-band { padding: 72px 64px; } }
.cta-band::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 180deg at 50% 50%, #0ea5e9, #6366f1, #22d3ee, #0ea5e9); filter: blur(90px); opacity: .45; animation: spin 18s linear infinite; }
.cta-band::after { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: 31px; background: linear-gradient(180deg, rgba(10, 20, 40, .82), rgba(10, 20, 40, .94)); }
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field label .opt { font-weight: 500; color: var(--ink-mute); }
.input { width: 100%; height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid #d6dce5; background: #fff; font: inherit; font-size: .95rem; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease; }
textarea.input { height: auto; min-height: 130px; padding: 14px 16px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.input::placeholder { color: #94a3b8; }
.input:hover { border-color: #b8c2d0; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(14, 165, 233, .15); }
.input.invalid { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .12); }
.iti { width: 100%; }
.iti--separate-dial-code .iti__selected-flag { background: var(--surface-2); border-radius: 12px 0 0 12px; }
.field-error { color: #dc2626; font-size: .8rem; font-weight: 500; min-height: 0; }
.field-error:empty { display: none; }
.char-count { margin-left: auto; color: var(--ink-mute); font-size: .78rem; }
.char-count.near { color: #d97706; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[data-contact-form][hidden], .form-success[hidden] { display: none !important; }
.form-success { text-align: center; padding: 32px 8px; }
.form-success .success-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, #10b981, #0ea5e9); box-shadow: 0 14px 30px -10px rgba(16, 185, 129, .6); animation: pop .5s cubic-bezier(.22, 1.4, .36, 1); }
.form-success h4 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.form-success p { color: var(--ink-soft); margin-top: 8px; line-height: 1.6; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.form-status { display: none; align-items: center; gap: .6rem; padding: 12px 14px; border-radius: 12px; font-size: .92rem; font-weight: 500; }
.form-status.show { display: flex; }
.form-status.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-status.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.contact-tile { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #e2e8f0; transition: background-color .25s ease, border-color .25s ease, transform .25s ease; }
.contact-tile:hover { background: rgba(255, 255, 255, .09); border-color: rgba(125, 211, 252, .35); transform: translateX(4px); }
.contact-tile .ico { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(14, 165, 233, .16); color: #7dd3fc; flex-shrink: 0; font-size: 1.1rem; }
.contact-tile small { display: block; color: #94a3b8; font-size: .78rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #94a3b8; padding: 80px 0 28px; }
.site-footer h2 { color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: 18px; }
.site-footer ul { display: grid; gap: 12px; }
.site-footer a { transition: color .2s ease; }
.site-footer a:hover { color: #fff; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #cbd5e1; transition: background-color .25s ease, color .25s ease, transform .25s ease; }
.social a:hover { background: #fff; color: var(--ink); transform: translateY(-3px); }

/* ---------- Floating actions ---------- */
.fab-stack { position: fixed; right: 18px; bottom: 18px; z-index: 55; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fbtn { width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); transition: transform .25s ease, opacity .3s ease; border: 0; cursor: pointer; }
.fbtn:hover { transform: translateY(-3px) scale(1.04); }
.fbtn-wa { background: #22c55e; font-size: 1.6rem; position: relative; }
.fbtn-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e; z-index: -1; animation: ping 2.2s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(1.6); opacity: 0; } }
.fbtn-top { width: 44px; height: 44px; background: var(--ink); opacity: 0; pointer-events: none; transform: translateY(10px); }
.fbtn-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Services page specifics ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.subnav .scroller { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 12px 0; }
.subnav .scroller::-webkit-scrollbar { display: none; }
.subnav button { flex-shrink: 0; display: inline-flex; align-items: center; gap: .55rem; height: 44px; padding: 0 1.1rem; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--ink-soft); background: transparent; border: 1px solid transparent; cursor: pointer; transition: all .25s ease; }
.subnav button:hover { background: var(--surface-2); color: var(--ink); }
.subnav button.active { background: var(--ink); color: #fff; }
.subnav button i { font-size: .9rem; }

.detail-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.detail-media img { width: 100%; height: 100%; min-height: 320px; max-height: 460px; object-fit: cover; }
.detail-media .float-card { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 16px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); }

.mini { padding: 22px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.mini h3 { font-weight: 700; display: flex; align-items: center; gap: .6rem; margin-bottom: 12px; color: var(--ink); }
.mini h3 i { color: var(--accent-600); }

.timeline { display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 22px 36px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: linear-gradient(var(--accent), rgba(14, 165, 233, .1)); }
.timeline li:last-child::before { display: none; }
.timeline li span.b { position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--accent); font-size: .7rem; font-weight: 800; color: var(--accent-700); }
.timeline li strong { display: block; color: var(--ink); font-weight: 700; }
.timeline li p { color: var(--ink-soft); font-size: .92rem; line-height: 1.55; margin-top: 2px; }

.plan { display: flex; flex-direction: column; }
.plan.featured { background: var(--navy-900); color: #e2e8f0; border-color: transparent; box-shadow: var(--shadow-lg); }
.plan.featured .h-card { color: #fff; }
.plan.featured .check-list li { color: #cbd5e1; }
.plan.featured .check-list li::before { background: rgba(125, 211, 252, .14); color: #7dd3fc; }
.plan .ribbon { position: absolute; top: 20px; right: 20px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px; background: var(--grad-accent); color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@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; }
}
