/* =========================================================
   EazyAz Finance & Mortgage — main stylesheet
   ========================================================= */
:root {
  --navy-950: #050d22;
  --navy-900: #0a1733;
  --navy-800: #10224a;
  --navy-700: #1a3266;
  --ink: #0f1b33;
  --body: #46536b;
  --muted: #7a869c;
  --line: #DDE2E6;
  --bg: #ffffff;
  --bg-soft: #E9EDF0;
  --emerald: #4F8A8B;
  --teal: #5E9C9D;
  --cyan: #5E9C9D;
  --gold: #4F8A8B;
  --violet: #14213D;
  --grad: linear-gradient(120deg, #4F8A8B 0%, #5E9C9D 55%, #14213D 100%);
  --grad-warm: linear-gradient(120deg, #4F8A8B, #14213D);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px -12px rgba(20, 33, 61, .18);
  --shadow-lg: 0 30px 60px -20px rgba(20, 33, 61, .35);
  --max: 1200px;
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); color: var(--body); background: var(--bg);
  line-height: 1.65; font-size: 16.5px; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--emerald); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.section { padding: clamp(70px, 9vw, 120px) 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head p { font-size: 1.08rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 999px;
  font-weight: 700; font-family: var(--font-head); font-size: .98rem; border: 0; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); background-size: 200% 100%; color: #fff; box-shadow: 0 12px 30px -10px rgba(79, 138, 139, .7); }
.btn-primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 18px 40px -12px rgba(79, 138, 139, .8); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--emerald); color: var(--emerald); }
.btn-block { width: 100%; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy-950); color: #b9c4dc; font-size: .84rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }
.topbar-items { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-items span, .topbar-items a { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 14px; height: 14px; color: var(--emerald); }

.site-header { position: sticky; top: 0; z-index: 100; transition: background .3s, box-shadow .3s; background: rgba(20, 33, 61, .0); }
.site-header.scrolled, .site-header.solid { background: rgba(20, 33, 61, .92); backdrop-filter: blur(14px); box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .5); }
.page-light .site-header { background: rgba(20, 33, 61, .96); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 11px; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.logo-mark { width: 42px; height: 42px; flex: none; }
.logo small { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #E9DCC0; margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a.nav-link { color: #d6def0; font-weight: 600; font-size: .95rem; padding: 10px 14px; border-radius: 10px; display: inline-flex; align-items: center; gap: 4px; transition: color .2s, background .2s; }
.nav-links a.nav-link:hover, .nav-links a.nav-link.active { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-links a.nav-link svg { width: 14px; height: 14px; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: -10px; min-width: 290px; background: #fff; border-radius: 16px; padding: 10px;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .93rem; }
.dropdown a:hover { background: var(--bg-soft); color: var(--emerald); }
.dropdown .dd-ico { width: 34px; height: 34px; border-radius: 9px; background: #E4EEEE; color: var(--emerald); display: grid; place-items: center; flex: none; }
.dropdown .dd-ico svg { width: 18px; height: 18px; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 12px 20px; }
.nav-phone { color: #fff; font-weight: 700; display: flex; align-items: center; gap: 8px; font-family: var(--font-head); }
.nav-phone svg { width: 18px; height: 18px; color: var(--emerald); }
.menu-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--navy-900); color: #c9d3e8; overflow: hidden; margin-top: -78px; padding: 170px 0 110px;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: float 18s ease-in-out infinite; }
.blob-1 { width: 560px; height: 560px; background: #4F8A8B; top: -180px; left: -140px; }
.blob-2 { width: 480px; height: 480px; background: #14213D; top: 20%; right: -160px; animation-delay: -6s; opacity: .45; }
.blob-3 { width: 420px; height: 420px; background: #5E9C9D; bottom: -220px; left: 35%; animation-delay: -12s; opacity: .4; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(60px, -40px) scale(1.08); } 66% { transform: translate(-40px, 50px) scale(.95); } }
.grid-overlay {
  position: absolute; inset: 0;
  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: 60px 60px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 { color: #fff; }
.hero-lead { font-size: 1.18rem; max-width: 560px; margin-bottom: 32px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px; background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; color: #e5ebf7; margin-bottom: 24px; backdrop-filter: blur(6px);
}
.hero-badge b { background: var(--grad); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .74rem; letter-spacing: .05em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-trust div { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: #dfe6f4; }
.hero-trust svg { width: 22px; height: 22px; color: var(--emerald); flex: none; }
.rotator { display: inline-block; position: relative; }
.rotator span { display: inline-block; animation: rot-in .6s ease both; }
@keyframes rot-in { from { opacity: 0; transform: translateY(20px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* hero card */
.hero-visual { position: relative; }
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(18px); border-radius: var(--radius-lg); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.calc-card { padding: 30px; color: #fff; position: relative; z-index: 2; }
.calc-card h3 { color: #fff; font-size: 1.15rem; display: flex; justify-content: space-between; align-items: center; }
.calc-card h3 span { font-size: .72rem; padding: 4px 10px; border-radius: 999px; background: rgba(79, 138, 139, .2); color: #E9DCC0; font-family: var(--font-body); letter-spacing: .04em; }
.calc-row { margin: 20px 0; }
.calc-row label { display: flex; justify-content: space-between; font-size: .88rem; color: #c3cde3; margin-bottom: 10px; }
.calc-row label b { color: #fff; font-family: var(--font-head); font-size: 1rem; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .18); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--emerald); cursor: pointer; box-shadow: 0 0 0 6px rgba(79, 138, 139, .25); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 5px solid var(--emerald); cursor: pointer; }
.calc-result { margin-top: 24px; padding: 20px; border-radius: 16px; background: rgba(20, 33, 61, .45); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.calc-result small { display: block; color: #a8b4cd; font-size: .8rem; }
.calc-result .big { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; color: #fff; line-height: 1; }
.calc-note { font-size: .72rem; color: #94a1bd; margin: 12px 0 0; }
.float-chip {
  position: absolute; z-index: 3; padding: 13px 16px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; font-size: .85rem; animation: bob 6s ease-in-out infinite;
}
.float-chip b { display: block; font-family: var(--font-head); font-size: 1rem; }
.float-chip .chip-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--grad); }
.float-chip .chip-ico svg { width: 20px; height: 20px; }
.chip-1 { top: -26px; left: -40px; }
.chip-2 { bottom: -30px; right: -20px; animation-delay: -3s; }
.chip-2 .chip-ico { background: var(--grad-warm); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--navy-900); color: #c9d3e8; overflow: hidden; margin-top: -78px; padding: 160px 0 80px; text-align: center; }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.page-hero p { max-width: 680px; margin: 0 auto; font-size: 1.12rem; }
.crumbs { font-size: .85rem; color: #93a0bc; margin-bottom: 18px; }
.crumbs a:hover { color: #fff; }

/* ---------- Marquee / stats ---------- */
.stats { margin-top: -60px; position: relative; z-index: 5; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { padding: 34px 28px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: 2.5rem; color: var(--ink); line-height: 1; margin-bottom: 8px; }
.stat .num span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { margin: 0; font-size: .92rem; }

.marquee { overflow: hidden; padding: 34px 0; border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: scroll 40s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #a3adbf; white-space: nowrap; display: flex; align-items: center; gap: 60px; }
.marquee-track span::after { content: "✦"; color: var(--emerald); font-size: .9rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Cards / services ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; position: relative; overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.card:hover::before { transform: scaleX(1); }
.icon-box { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(135deg, #E4EEEE, #E4EEEE); color: var(--emerald); transition: .35s; }
.icon-box svg { width: 28px; height: 28px; }
.card:hover .icon-box { background: var(--grad); color: #fff; transform: rotate(-6deg) scale(1.05); }
.card p { font-size: .96rem; }
.card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--emerald); font-weight: 700; font-size: .93rem; font-family: var(--font-head); }
.card-link svg { width: 16px; height: 16px; transition: transform .25s; }
.card:hover .card-link svg { transform: translateX(4px); }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list li svg { width: 24px; height: 24px; flex: none; color: #fff; background: var(--grad); border-radius: 50%; padding: 4px; margin-top: 1px; }
.check-list b { color: var(--ink); }
.visual-panel { position: relative; border-radius: var(--radius-lg); background: var(--navy-900); padding: 40px; overflow: hidden; min-height: 440px; color: #fff; }
.visual-panel .blob { opacity: .5; }
.vp-stack { position: relative; display: grid; gap: 16px; }
.vp-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(10px); }
.vp-item .vp-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; flex: none; }
.vp-item .vp-ico svg { width: 22px; height: 22px; }
.vp-item b { font-family: var(--font-head); display: block; }
.vp-item small { color: #b3bfd8; }
.vp-item .tick { margin-left: auto; color: #E9DCC0; font-weight: 700; font-size: .85rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--emerald) 0 8px, transparent 8px 16px); opacity: .5; }
.step { text-align: center; position: relative; }
.step-num {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; background: #fff;
  border: 2px solid var(--line); font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--ink); position: relative; transition: .3s;
}
.step:hover .step-num { background: var(--grad); color: #fff; border-color: transparent; transform: scale(1.08); }
.step p { font-size: .95rem; }

/* ---------- Dark CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy-900); padding: clamp(40px, 6vw, 70px); color: #c9d3e8; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; position: relative; }
.cta-band > * { position: relative; }

/* ---------- Calculators ---------- */
.calc-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.calc-tab { padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-family: var(--font-head); color: var(--ink); cursor: pointer; transition: .25s; font-size: .95rem; }
.calc-tab.active, .calc-tab:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.calc-panel { display: none; }
.calc-panel.active { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; animation: rot-in .4s ease; }
.calc-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; }
.calc-output { background: var(--navy-900); color: #c9d3e8; border-radius: var(--radius-lg); padding: 34px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.calc-output > * { position: relative; }
.calc-output h3 { color: #fff; }
.out-big { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.3rem, 4vw, 3.2rem); color: #fff; line-height: 1.05; margin: 8px 0 6px; }
.out-rows { margin: 22px 0; display: grid; gap: 2px; }
.out-rows div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .95rem; }
.out-rows b { color: #fff; font-family: var(--font-head); }
.out-disclaimer { font-size: .76rem; color: #8f9bb7; margin-top: auto; padding-top: 16px; }
.bar-chart { display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .1); margin: 14px 0 8px; }
.bar-chart .b1 { background: var(--emerald); transition: width .5s; }
.bar-chart .b2 { background: var(--violet); transition: width .5s; }
.legend { display: flex; gap: 18px; font-size: .82rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .9rem; margin-bottom: 7px; }
.field label .req { color: #e5484d; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: .97rem; color: var(--ink);
  background: #E9EDF0; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald); background: #fff; box-shadow: 0 0 0 4px rgba(79, 138, 139, .14); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #e5484d; }
.field .err { color: #e5484d; font-size: .8rem; margin-top: 5px; display: none; }
.field.invalid .err { display: block; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.input-prefix input { padding-left: 32px; }
.input-suffix { position: relative; }
.input-suffix span { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; line-height: 1.5; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--emerald); }
.consent a { color: var(--emerald); text-decoration: underline; }
.consent.invalid { color: #e5484d; }
.hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(26px, 4vw, 44px); border: 1px solid var(--line); }
.form-step-title { display: flex; align-items: center; gap: 12px; margin: 30px 0 18px; font-size: 1.1rem; }
.form-step-title:first-child { margin-top: 0; }
.form-step-title span { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success.show { display: block; animation: rot-in .5s ease; }
.form-success .ok { width: 80px; height: 80px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; margin: 0 auto 20px; }
.form-success .ok svg { width: 40px; height: 40px; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 14px; }
.chip-select { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-select label { margin: 0; }
.chip-select input { position: absolute; opacity: 0; pointer-events: none; }
.chip-select span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .9rem; cursor: pointer; transition: .2s; color: var(--ink); background: #fff; }
.chip-select input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chip-select input:focus-visible + span { box-shadow: 0 0 0 4px rgba(79, 138, 139, .3); }

/* ---------- Contact info ---------- */
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.info-card { background: var(--navy-900); color: #c9d3e8; border-radius: var(--radius-lg); padding: 38px; position: relative; overflow: hidden; }
.info-card > * { position: relative; }
.info-card h3 { color: #fff; }
.info-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.info-item:last-of-type { border-bottom: 0; }
.info-item .ii-ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(79, 138, 139, .15); color: #E9DCC0; display: grid; place-items: center; flex: none; }
.info-item .ii-ico svg { width: 22px; height: 22px; }
.info-item small { display: block; color: #8f9bb7; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.info-item b, .info-item a { color: #fff; font-family: var(--font-head); font-weight: 700; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); margin-top: 40px; height: 380px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Refer ---------- */
.reward-card { position: relative; border-radius: var(--radius-lg); padding: 40px; color: #fff; overflow: hidden; background: var(--navy-900); }
.reward-card > * { position: relative; }
.reward-card h3 { color: #fff; font-size: 1.6rem; }
.gift { width: 90px; height: 90px; border-radius: 24px; background: var(--grad-warm); display: grid; place-items: center; margin-bottom: 22px; box-shadow: 0 20px 40px -10px rgba(20, 33, 61, .6); animation: bob 5s ease-in-out infinite; }
.gift svg { width: 46px; height: 46px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 26px; transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-family: var(--font-head); font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; font-size: 1.3rem; flex: none; transition: .3s; color: var(--emerald); }
.faq details[open] summary::after { content: "–"; background: var(--grad); color: #fff; }
.faq details p { padding-bottom: 22px; margin: 0; }

/* ---------- Promise / values ---------- */
.promise { text-align: center; padding: 40px 30px; }
.promise .icon-box { margin: 0 auto 22px; }

/* ---------- Service detail ---------- */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 70px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.service-block:last-child { border-bottom: 0; }
.service-block:nth-child(even) .sb-visual { order: -1; }
.sb-visual { border-radius: var(--radius-lg); min-height: 320px; position: relative; overflow: hidden; background: var(--navy-900); display: grid; place-items: center; }
.sb-visual .big-ico { width: 130px; height: 130px; border-radius: 36px; background: var(--grad); display: grid; place-items: center; color: #fff; position: relative; box-shadow: 0 30px 60px -20px rgba(79, 138, 139, .7); animation: bob 6s ease-in-out infinite; }
.sb-visual .big-ico svg { width: 64px; height: 64px; }
.sb-visual .blob { opacity: .45; }
.tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #E4EEEE; color: #4F8A8B; font-size: .78rem; font-weight: 700; margin: 0 6px 6px 0; }

/* ---------- Legal pages ---------- */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal h3 { font-size: 1.12rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .4em; }
.legal a { color: var(--emerald); text-decoration: underline; }
.notice { background: #fff8e8; border: 1px solid #f7dfa5; border-radius: 14px; padding: 16px 20px; font-size: .92rem; color: #7a5a12; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9aa6c0; padding-top: 80px; font-size: .93rem; position: relative; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.footer-about p { margin: 18px 0; max-width: 340px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); transition: .25s; }
.socials a:hover { background: var(--grad); color: #fff; transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.subscribe-form { display: flex; gap: 8px; margin-top: 10px; background: rgba(255, 255, 255, .06); border-radius: 999px; padding: 6px; border: 1px solid rgba(255, 255, 255, .1); }
.subscribe-form input[type=email] { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; padding: 10px 14px; font: inherit; outline: none; }
.subscribe-form button { padding: 10px 18px; }
.sub-consent { font-size: .76rem; margin-top: 10px; display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.sub-consent input { accent-color: var(--emerald); margin-top: 3px; }
.sub-msg { font-size: .85rem; margin-top: 8px; color: #E9DCC0; min-height: 1em; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .08); padding: 30px 0; font-size: .78rem; line-height: 1.7; color: #7f8ba6; }
.footer-legal p { margin-bottom: .8em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: .84rem; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.ack { display: flex; gap: 14px; align-items: flex-start; font-size: .82rem; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.ack-flags { display: flex; gap: 4px; flex: none; margin-top: 3px; }
.ack-flags i { width: 22px; height: 14px; border-radius: 2px; display: block; }

/* ---------- Floating actions ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 14px 30px -10px rgba(79, 138, 139, .8); transition: transform .25s; }
.fab a:hover { transform: scale(1.08); }
.fab a svg { width: 24px; height: 24px; }
.fab .to-top { background: var(--navy-800); opacity: 0; pointer-events: none; transition: .3s; width: 46px; height: 46px; }
.fab .to-top.show { opacity: 1; pointer-events: auto; }
.fab .pulse { position: relative; }
.fab .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--emerald); animation: ring 2s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-phone { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 78px 0 auto 0; background: var(--navy-900); flex-direction: column; align-items: stretch; padding: 16px 20px 26px; gap: 2px;
    max-height: calc(100vh - 78px); overflow-y: auto; transform: translateY(-120%); transition: transform .35s ease; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); z-index: -1;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a.nav-link { padding: 14px 12px; font-size: 1.05rem; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255, 255, 255, .04); min-width: 0; padding: 4px; margin: 0 0 8px; display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown a { color: #d6def0; }
  .dropdown a:hover { background: rgba(255, 255, 255, .06); }
  .nav-cta .btn { display: none; }
  .hero .container, .split, .contact-layout, .calc-panel.active, .service-block, .cta-band { grid-template-columns: 1fr; }
  .service-block:nth-child(even) .sb-visual { order: 0; }
  .hero { padding: 140px 0 100px; }
  .hero-visual { max-width: 520px; margin: 30px auto 0; width: 100%; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cta-band .actions { justify-content: flex-start; }
  .sb-visual { min-height: 240px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .topbar .hide-sm { display: none; }
  .grid-3, .grid-2, .grid-4, .form-grid, .footer-top { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .chip-1 { left: -6px; top: -34px; }
  .chip-2 { right: -6px; }
  .float-chip { padding: 10px 12px; font-size: .78rem; }
  .card, .calc-form, .calc-output { padding: 26px; }
  .stat { padding: 24px 14px; }
  .stat .num { font-size: 2rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .logo { font-size: 1.12rem; }
  .logo-mark { width: 36px; height: 36px; }
}

/* fixes */
.nav-links a.nav-link { white-space: nowrap; }
.rotator.grad-text { background: none; color: inherit; }
.rotator span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
@media (max-width: 1180px) and (min-width: 961px) { .nav-links a.nav-link { padding: 10px 9px; font-size: .9rem; } .nav-cta .btn { padding: 11px 16px; } }
