/* ==========================================================
   Vertex CPA Inc. — site stylesheet
   Brand colours are taken from the Vertex CPA logo.
   Change them here and every page updates.
   ========================================================== */
:root {
  --navy: #152a49;
  --navy-deep: #0c1b30;
  --blue: #2d5288;
  --gold: #b5934f;
  --gold-dark: #977a3f;
  --gold-soft: #f4ecdc;
  --ink: #1b2737;
  --muted: #586678;
  --line: #e2e6ec;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --radius: 10px;
  --max: 1180px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.prose p a, .prose li a, .legal a, .faq a, .consent a, .map-link a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.2; color: var(--navy); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.2rem; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
section { padding-block: 84px; }
.alt { background: var(--bg-alt); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.12rem; color: var(--ink); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy-deep); padding: 10px 16px; z-index: 200; }
.skip:focus { left: 10px; top: 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 6px; font-weight: 600; font-size: .95rem; transition: background .2s, color .2s, border-color .2s; cursor: pointer; border: 2px solid transparent; text-decoration: none; font-family: var(--body); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-deep); color: #c5cfdc; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 8px 22px; padding-block: 8px; flex-wrap: wrap; }
.topbar .group { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }

/* ---------- Header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img { height: 52px; width: auto; }
.logo-text { font-family: var(--display); font-size: 1.35rem; font-weight: 600; color: var(--navy); line-height: 1; white-space: nowrap; }
.logo-text small { display: block; font-family: var(--body); font-size: .6rem; letter-spacing: .2em; color: var(--muted); font-weight: 500; margin-top: 5px; }
.menu > ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.menu > ul > li { position: relative; }
.menu > ul > li > a { display: block; padding: 10px 14px; font-weight: 500; font-size: .95rem; border-radius: 6px; }
.menu > ul > li > a:hover, .menu a[aria-current="page"] { color: var(--blue); }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 0 3px 8px; }
.sub { list-style: none; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 40px rgba(12,27,48,.12); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 12px; border-radius: 6px; font-size: .93rem; }
.sub a:hover { background: var(--bg-alt); color: var(--blue); }
.menu .nav-cta { margin-left: 10px; }
.menu .nav-cta a { color: #fff; padding: 11px 20px; }
.menu .nav-cta a:hover { color: #fff; }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; transition: .3s; }

/* ---------- Home hero ---------- */
.hero { position: relative; color: #fff; padding-block: 100px 110px; overflow: hidden;
  background: radial-gradient(circle at 85% 20%, rgba(45,82,136,.6), transparent 52%), linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, #1d3a63 100%); }
.hero::after { content: ""; position: absolute; right: -140px; bottom: -160px; width: 560px; height: 560px; border: 1px solid rgba(255,255,255,.06); transform: rotate(12deg);
  background: linear-gradient(135deg, transparent 49.6%, rgba(181,147,79,.35) 50%, transparent 50.4%), linear-gradient(45deg, transparent 49.6%, rgba(255,255,255,.07) 50%, transparent 50.4%); }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.45fr 1fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hero .tagline { font-family: var(--display); font-size: clamp(1.2rem, 2.2vw, 1.55rem); color: var(--gold); margin-top: 14px; font-weight: 500; }
.hero p.intro { max-width: 600px; font-size: 1.08rem; color: #d0dae6; margin: 22px 0 34px; }
.hero .eyebrow { color: var(--gold); }
.hero-logo { width: 100%; max-width: 360px; justify-self: end; }
.pillars { display: flex; gap: 18px 44px; margin-top: 56px; flex-wrap: wrap; }
.pillars div { border-left: 2px solid var(--gold); padding-left: 14px; font-family: var(--display); color: #fff; font-size: 1.05rem; }

/* ---------- Inner page hero ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy-deep), var(--navy) 70%, #1d3a63); color: #fff; padding-block: 64px 70px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; top: -40px; width: 340px; height: 340px; border: 1px solid rgba(181,147,79,.25); transform: rotate(45deg); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero p { color: #cdd7e4; max-width: 680px; margin-top: 14px; font-size: 1.1rem; }
.crumbs { font-size: .85rem; color: #9fb0c6; margin-bottom: 18px; }
.crumbs a { color: #c5d2e2; }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 8px; }

/* ---------- Cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; min-width: 0; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(12,27,48,.09); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }
.card .more { margin-top: auto; padding-top: 16px; font-weight: 600; font-size: .9rem; color: var(--blue); }
.card-cta { background: var(--navy); border-color: var(--navy); }
.card-cta h3 { color: #fff; }
.card-cta p { color: #c5d0de; }
.card-cta .more { color: var(--gold); }
.icon { width: 50px; height: 50px; border-radius: 10px; background: var(--gold-soft); color: var(--navy); display: grid; place-items: center; margin-bottom: 20px; flex-shrink: 0; }
.icon svg { width: 25px; height: 25px; }

/* Feature list (why choose / approach) */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 50px; }
.feature { display: flex; gap: 18px; }
.feature .icon { margin: 0; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); }

/* ---------- Inner page layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 60px; align-items: start; }
.prose > * + * { margin-top: 18px; }
.prose > h2 { margin-top: 52px; }
.prose > h2:first-child { margin-top: 0; }
.prose p { max-width: 68ch; }
.items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 26px !important; }
.item { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; background: #fff; min-width: 0; }
.item h3 { font-size: 1.08rem; margin-bottom: 6px; display: flex; gap: 10px; align-items: baseline; }
.item h3::before { content: ""; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; position: relative; top: -2px; }
.item p { color: var(--muted); font-size: .95rem; }
.checks { list-style: none; display: grid; gap: 10px; }
.checks.two { grid-template-columns: repeat(2, 1fr); gap: 10px 30px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.process { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.process li { counter-increment: s; display: flex; gap: 16px; align-items: center; background: var(--bg-alt); border-radius: var(--radius); padding: 16px 18px; }
.process li::before { content: counter(s); font-family: var(--display); font-size: 1.3rem; color: var(--navy); background: var(--gold-soft); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.note { background: var(--gold-soft); border-radius: var(--radius); padding: 18px 22px; font-size: .95rem; color: #4a3f28; }
.note strong { color: var(--navy); }

/* Sidebar */
.aside { position: sticky; top: 104px; display: grid; gap: 22px; }
.aside-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.aside-box h3 { font-size: 1.05rem; margin-bottom: 12px; }
.aside-box ul { list-style: none; }
.aside-box li a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .94rem; text-decoration: none; color: var(--ink); }
.aside-box li:last-child a { border-bottom: 0; }
.aside-box li a:hover, .aside-box li a[aria-current="page"] { color: var(--blue); font-weight: 600; }
.aside-contact { background: var(--navy); border-color: var(--navy); color: #d3dce8; }
.aside-contact h3 { color: #fff; }
.aside-contact p { font-size: .94rem; margin-bottom: 14px; }
.aside-contact .line { display: block; color: #fff; font-weight: 600; margin-bottom: 4px; }
.aside-contact .btn { margin-top: 14px; width: 100%; justify-content: center; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue); color: #fff; padding-block: 56px; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { color: #d7e1ef; margin-top: 6px; max-width: 620px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-family: var(--display); font-size: 1.1rem; color: var(--navy); position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-family: var(--body); font-size: 1.5rem; color: var(--gold); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 22px 22px; color: var(--muted); }

/* ---------- Blog ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: .9rem; background: #fff; }
.post .cat { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px; }
.post .soon { margin-top: auto; padding-top: 16px; font-size: .85rem; color: var(--muted); font-style: italic; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.info-list { list-style: none; display: grid; gap: 24px; margin-top: 28px; }
.info-list li { display: flex; gap: 16px; }
.info-list .icon { margin: 0; width: 46px; height: 46px; }
.info-list strong { display: block; color: var(--navy); }
.info-list span, .info-list a { color: var(--muted); text-decoration: none; }
.info-list a:hover { color: var(--blue); }
form.inquiry { background: var(--bg-alt); padding: 36px; border-radius: var(--radius); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin-bottom: 18px; min-width: 0; }
label, .label { display: block; font-size: .87rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
label .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; padding: 12px 14px; border: 1px solid #ccd3dd; border-radius: 6px; font: inherit; font-size: .96rem; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45,82,136,.18); }
textarea { min-height: 140px; resize: vertical; }
.radios { display: flex; gap: 22px; flex-wrap: wrap; }
.radios label, .consent { font-weight: 400; color: var(--ink); display: flex; gap: 8px; align-items: flex-start; font-size: .95rem; margin: 0; }
.radios input, .consent input { margin-top: 5px; accent-color: var(--blue); }
.consent { margin-bottom: 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { border-radius: 8px; padding: 14px 16px; margin-bottom: 20px; font-size: .95rem; background: #fdecea; color: #8a1f17; border: 1px solid #f3c2bc; }
.map { margin-top: 64px; border-radius: var(--radius); overflow: hidden; height: 380px; background: var(--bg-alt); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-link { margin-top: 12px; font-size: .92rem; }

/* ---------- Legal ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.35rem; margin-top: 38px; }
.legal p { margin-top: 10px; color: var(--ink); }
.legal .effective { color: var(--muted); font-size: .95rem; }

/* ---------- Team ---------- */
.profile { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 34px; align-items: start; }
.profile-photo { aspect-ratio: 4/5; border-radius: var(--radius); background: linear-gradient(160deg, #e3e9f1, #c9d4e2); display: grid; place-items: center; }
.profile-photo img { width: 46%; opacity: .55; }

/* ---------- Footer ---------- */
footer { background: var(--navy-deep); color: #a8b6c8; padding-top: 70px; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1fr; gap: 40px; }
footer h4 { color: #fff; font-weight: 500; font-size: 1.08rem; margin-bottom: 16px; }
footer ul { list-style: none; display: grid; gap: 9px; }
footer a:hover { color: var(--gold); }
.foot-logo { width: 180px; height: auto; }
.foot-about { margin-top: 16px; max-width: 300px; }
.disclaimer { margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; color: #8797ab; }
.copyright { padding-block: 20px 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }
.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: .3s; box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 90; font-weight: 700; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .menu > ul > li > a { padding: 10px 10px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; gap: 44px; }
  .aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .burger { display: block; }
  .menu { position: absolute; top: 80px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .35s ease; box-shadow: 0 20px 30px rgba(12,27,48,.08); }
  .menu.open { max-height: calc(100vh - 80px); overflow-y: auto; }
  .menu > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .menu > ul > li > a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .has-sub > a::after { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px 14px; min-width: 0; }
  .sub a { padding: 8px 4px; color: var(--muted); }
  .menu .nav-cta { margin: 16px 0 0; }
  .menu .nav-cta a { text-align: center; justify-content: center; display: flex; }
  .burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero .container { grid-template-columns: 1fr; }
  .hero-logo { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section { padding-block: 60px; }
  .hero { padding-block: 70px 80px; }
  .page-hero { padding-block: 46px 52px; }
  .grid-4, .grid-3, .grid-2, .features, .items, .checks.two, .row, .foot-grid, .aside, .profile { grid-template-columns: 1fr; }
  .profile-photo { max-width: 220px; }
  form.inquiry { padding: 24px 20px; }
  .logo img { height: 44px; }
  .logo-text { font-size: 1.15rem; }
  .logo-text small { font-size: .52rem; letter-spacing: .14em; }
  .topbar .hide-sm { display: none; }
  .map { height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ==========================================================
   ANIMATIONS
   All motion switches off for visitors who turn on
   "reduce motion" in their device settings.
   ========================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes logoIn { from { opacity: 0; transform: translateY(20px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift { 0%, 100% { transform: rotate(12deg) translate(0, 0); } 50% { transform: rotate(16deg) translate(-24px, -14px); } }
@keyframes driftSmall { 0%, 100% { transform: rotate(45deg); } 50% { transform: rotate(52deg) translate(-12px, 8px); } }
@keyframes glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes lineGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Home hero: staggered entrance */
.hero .container > div > * { animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) both; }
.hero .container > div > *:nth-child(1) { animation-delay: .05s; }
.hero .container > div > *:nth-child(2) { animation-delay: .18s; }
.hero .container > div > *:nth-child(3) { animation-delay: .32s; }
.hero .container > div > *:nth-child(4) { animation-delay: .46s; }
.hero .container > div > *:nth-child(5) { animation-delay: .6s; }
.hero .container > div > *:nth-child(6) { animation-delay: .74s; }
.hero-logo { animation: logoIn 1s .35s cubic-bezier(.2,.7,.2,1) both, floaty 6s 1.4s ease-in-out infinite; }
.hero::after { animation: drift 18s ease-in-out infinite; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 30%, rgba(181,147,79,.16), transparent 40%); animation: glow 7s ease-in-out infinite; pointer-events: none; }
.pillars div { position: relative; border-left-color: transparent; }
.pillars div::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--gold); transform-origin: top; animation: lineGrow .7s 1s ease-out both; }

/* Inner page heroes */
.page-hero .crumbs, .page-hero .eyebrow, .page-hero h1, .page-hero p { animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) both; }
.page-hero h1 { animation-delay: .1s; }
.page-hero p { animation-delay: .22s; }
.page-hero::after { animation: driftSmall 16s ease-in-out infinite; }

/* Header: compact shadow once the visitor scrolls */
.site-header { transition: box-shadow .3s, background .3s; }
.site-header.scrolled { box-shadow: 0 8px 26px rgba(12,27,48,.08); }
.nav { transition: height .3s; }
.site-header.scrolled .nav { height: 68px; }
.logo img { transition: height .3s, transform .4s; }
.site-header.scrolled .logo img { height: 44px; }
.logo:hover img { transform: rotate(-4deg) scale(1.04); }

/* Menu: gold underline slides in on hover */
@media (min-width: 1081px) {
  .menu > ul > li:not(.nav-cta) > a { position: relative; }
  .menu > ul > li:not(.nav-cta) > a::before { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
  .menu > ul > li:not(.nav-cta) > a:hover::before, .menu > ul > li > a[aria-current="page"]::before { transform: scaleX(1); }
  .sub li { opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
  .has-sub:hover .sub li, .has-sub:focus-within .sub li { opacity: 1; transform: none; }
  .has-sub:hover .sub li:nth-child(2) { transition-delay: .03s; } .has-sub:hover .sub li:nth-child(3) { transition-delay: .06s; }
  .has-sub:hover .sub li:nth-child(4) { transition-delay: .09s; } .has-sub:hover .sub li:nth-child(5) { transition-delay: .12s; }
  .has-sub:hover .sub li:nth-child(6) { transition-delay: .15s; } .has-sub:hover .sub li:nth-child(7) { transition-delay: .18s; }
}

/* Buttons: lift and shine */
.btn { position: relative; overflow: hidden; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(12,27,48,.18); }
.btn:active { transform: translateY(0); }
.btn::after { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s; }
.btn:hover::after { left: 130%; }

/* Cards: icon fills with navy, arrow nudges */
.icon { transition: background .3s, color .3s, transform .3s; }
a.card:hover .icon, .feature:hover .icon { background: var(--navy); color: var(--gold); transform: rotate(-6deg) scale(1.06); }
.card-cta:hover .icon { background: var(--gold); color: var(--navy); }
.card .more { transition: letter-spacing .3s, color .2s; }
a.card:hover .more { letter-spacing: .03em; }
.item { transition: transform .25s, box-shadow .25s, border-color .25s; }
.item:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(12,27,48,.08); border-color: var(--gold); }
.item h3::before { transition: transform .4s; }
.item:hover h3::before { transform: rotate(225deg); }
.aside-box li a span { transition: transform .25s; }
.aside-box li a:hover span { transform: translateX(4px); }
.process li { transition: transform .25s, background .25s; }
.process li:hover { transform: translateX(6px); background: var(--gold-soft); }
.tags li { transition: background .2s, color .2s, border-color .2s, transform .2s; }
.tags li:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); }

/* FAQ: answer slides open */
.faq details { transition: border-color .25s, box-shadow .25s; }
.faq details:hover { border-color: #c9d2de; }
.faq details[open] { border-color: var(--gold); box-shadow: 0 10px 26px rgba(12,27,48,.06); }
.faq summary::after { transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.faq details[open] > div { animation: fadeUp .4s ease both; }

/* Form fields */
input[type=text], input[type=email], input[type=tel], select, textarea { transition: border-color .2s, box-shadow .2s; }

/* Back-to-top */
.to-top { transition: opacity .3s, transform .3s; transform: translateY(12px); }
.to-top.show { transform: none; }
.to-top:hover { transform: translateY(-3px); }

/* Scroll reveal (applied by main.js; content stays visible if scripts don't run) */
.anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.anim .reveal.in { opacity: 1; transform: none; }
.anim a.card.reveal.in:hover, .anim .item.reveal.in:hover { transform: translateY(-4px); transition-delay: 0s; }
.anim .process li.reveal.in:hover { transform: translateX(6px); transition-delay: 0s; }
.anim .tags li.reveal.in:hover { transform: translateY(-2px); transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   MOUSE POINTER HIGHLIGHTS
   Only on computers with a mouse; phones/tablets are unaffected.
   ========================================================== */
.cursor-ring, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; opacity: 0; will-change: transform; }
.cursor-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid var(--gold); background: rgba(181,147,79,.06);
  transition: width .25s, height .25s, margin .25s, background .25s, border-color .25s, opacity .3s; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); transition: opacity .3s, width .2s, height .2s, margin .2s; }
.has-cursor .cursor-ring, .has-cursor .cursor-dot { opacity: 1; }
/* over links and buttons: ring grows and fills */
.cursor-ring.hover { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(181,147,79,.16); border-color: rgba(181,147,79,.8); }
.cursor-dot.hover { width: 0; height: 0; margin: 0; }
/* over text fields: ring shrinks out of the way */
.cursor-ring.text { width: 6px; height: 28px; margin: -14px 0 0 -3px; border-radius: 3px; background: rgba(181,147,79,.25); border-color: transparent; }
.cursor-ring.press { width: 28px; height: 28px; margin: -14px 0 0 -14px; background: rgba(181,147,79,.3); }
.cursor-hidden .cursor-ring, .cursor-hidden .cursor-dot { opacity: 0; }

/* Spotlight glow that follows the pointer inside cards and banners */
.spot { --mx: 50%; --my: 50%; --spot: 0; }
.card.spot, .item.spot, .aside-box.spot, .faq details.spot, form.inquiry.spot, .process li.spot, .feature.spot {
  background-image: radial-gradient(circle 240px at var(--mx) var(--my), rgba(181,147,79, calc(.14 * var(--spot))), transparent 70%); }
.card-cta.spot, .aside-contact.spot {
  background-image: radial-gradient(circle 240px at var(--mx) var(--my), rgba(181,147,79, calc(.28 * var(--spot))), transparent 70%); }
.feature { border-radius: var(--radius); padding: 10px; margin: -10px; }
.cta-band.spot { background-image: radial-gradient(circle 380px at var(--mx) var(--my), rgba(255,255,255, calc(.12 * var(--spot))), transparent 70%); }
.hero.spot::before, .page-hero.spot::before {
  background: radial-gradient(circle 460px at var(--mx) var(--my), rgba(181,147,79, calc(.10 + .14 * var(--spot))), transparent 62%); }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero.spot::before { animation: none; }

@media (hover: none), (pointer: coarse) {
  .cursor-ring, .cursor-dot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-ring, .cursor-dot { display: none; }
}

/* ==========================================================
   APPOINTMENT BOOKING
   ========================================================== */
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
form.booking { display: grid; gap: 14px; }
.step { border: 0; padding: 0 0 26px; border-bottom: 1px solid var(--line); min-width: 0; }
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step legend { font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 0; }
.step-no { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-size: 1rem; flex-shrink: 0; }
.hint { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.choice-row { display: flex; gap: 8px; flex-wrap: wrap; }
.choice { position: relative; margin: 0; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: inline-block; padding: 10px 16px; border: 1px solid #ccd3dd; border-radius: 999px; background: #fff; font-size: .92rem; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.choice input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.choice span:hover { border-color: var(--navy); }

.calendar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; max-width: 460px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head strong { font-family: var(--display); color: var(--navy); font-size: 1.1rem; }
.cal-nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--navy); transition: background .2s, color .2s; }
.cal-nav:hover:not(:disabled) { background: var(--navy); color: #fff; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow { font-size: .74rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 4px 0 6px; }
.cal-day { aspect-ratio: 1; max-width: 100%; border: 0; border-radius: 8px; background: var(--bg-alt); font: inherit; font-size: .95rem; font-variant-numeric: tabular-nums; color: var(--ink); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.cal-day:hover:not(:disabled) { background: var(--gold-soft); transform: scale(1.06); }
.cal-day:disabled { background: transparent; color: #b9c1cc; cursor: default; text-decoration: line-through; text-decoration-color: rgba(185,193,204,.6); }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--gold); }
.cal-day.selected { background: var(--navy); color: #fff; font-weight: 600; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.slots .hint { grid-column: 1 / -1; margin: 0; }
.slot { padding: 11px 8px; border: 1px solid #ccd3dd; border-radius: 8px; background: #fff; font: inherit; font-size: .92rem; font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer; color: var(--ink); transition: background .2s, color .2s, border-color .2s, transform .2s; animation: fadeUp .35s ease both; }
.slot:hover { border-color: var(--navy); transform: translateY(-2px); }
.slot.selected { background: var(--navy); color: #fff; border-color: var(--navy); }

.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; font-size: .94rem; margin-bottom: 14px; }
.summary dt { color: var(--muted); }
.summary dd { font-weight: 600; color: var(--navy); min-width: 0; }
.summary dd.empty { font-weight: 400; color: #9aa5b3; font-style: italic; }
.booking-aside { top: 104px; }

@media (max-width: 1080px) { .booking-layout { grid-template-columns: 1fr; } .booking-aside { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .booking-aside { grid-template-columns: 1fr; } .calendar { padding: 12px; } .cal-grid { gap: 3px; } }

/* Designer credit */
.copyright .credit a { color: var(--gold); font-weight: 500; }
.copyright .credit a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Section header with a button on the right (used by the reviews section) */
.news-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; flex-wrap: wrap; margin-bottom: 36px; }
@media (max-width: 640px) { .news-head .btn { width: 100%; justify-content: center; } }

/* ==========================================================
   GOOGLE REVIEWS
   ========================================================== */
.reviews-summary { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; flex-wrap: wrap; }
.reviews-score { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; }
.reviews-count { font-size: .88rem; color: var(--muted); margin-top: 2px; }
.reviews-attr { font-size: .8rem; font-weight: 600; color: var(--muted); border-left: 1px solid var(--line); padding-left: 14px; }
.stars { position: relative; display: inline-block; font-size: 1.05rem; line-height: 1; letter-spacing: 2px; color: #d9dee6; }
.stars::before { content: "\2605\2605\2605\2605\2605"; }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--gold); }
.stars-fill::before { content: "\2605\2605\2605\2605\2605"; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.reviews-grid:empty { display: none; }
.review-card { gap: 12px; }
.review-head { display: flex; align-items: center; gap: 12px; }
.review-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.review-initial { display: grid; place-items: center; background: var(--gold-soft); color: var(--navy); font-weight: 600; }
.review-author { font-weight: 600; color: var(--navy); }
a.review-author:hover { color: var(--blue); text-decoration: underline; }
.review-when { font-size: .82rem; color: var(--muted); }
.review-text { color: var(--ink) !important; font-size: .95rem; }
.reviews-note { font-size: .82rem; color: var(--muted); margin-top: 18px; }
.reviews-actions { margin-top: 28px; }
.reviews .news-head { margin-bottom: 30px; }

/* ==========================================================
   WELCOME POP-UP
   ========================================================== */
.vx-pop-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(12,27,48,.55); backdrop-filter: blur(3px); display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  opacity: 0; transition: opacity .25s ease; }
.vx-pop-overlay.show { opacity: 1; }
.vx-pop { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 14px;
  box-shadow: 0 30px 80px rgba(12,27,48,.35); border-top: 4px solid var(--gold); padding: 28px 28px 24px; transform: translateY(18px) scale(.97); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.vx-pop-overlay.show .vx-pop { transform: none; }
.vx-pop-close { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg-alt); color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.vx-pop-close:hover { background: var(--navy); color: #fff; }
.vx-pop-head { display: flex; gap: 14px; align-items: center; padding-right: 36px; margin-bottom: 18px; }
.vx-pop-head img { height: 40px; width: auto; }
.vx-pop-head h2 { font-size: 1.35rem; }
.vx-pop-head p { font-size: .86rem; color: var(--gold-dark); margin-top: 2px; }
.vx-pop-block { border-top: 1px solid var(--line); padding: 16px 0; }
.vx-pop-block h3 { font-size: .78rem; font-family: var(--body); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.vx-pop-sub { font-size: .9rem; color: var(--muted); }
.vx-pop-score { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vx-pop-score strong { font-family: var(--display); font-size: 1.8rem; color: var(--navy); line-height: 1; }
.vx-pop-links { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-top: 10px; }
.vx-pop-more { font-weight: 600; font-size: .9rem; color: var(--blue); }
.vx-pop-more:hover { text-decoration: underline; }
.vx-pop-actions { display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }
.vx-pop-actions .btn { flex: 1 1 200px; justify-content: center; }
.vx-pop-open, .vx-pop-open body { overflow: hidden; }
@media (max-width: 480px) { .vx-pop { padding: 24px 18px 18px; } .vx-pop-head h2 { font-size: 1.15rem; } }
@media (prefers-reduced-motion: reduce) { .vx-pop-overlay, .vx-pop { transition: none; } }

/* ==========================================================
   TAX TOOLS (calculators + checklist)
   ========================================================== */
.estimate-note { background: var(--gold-soft); border: 1px solid #e6d6b4; border-radius: var(--radius); padding: 14px 18px; font-size: .93rem; color: #4a3f28; margin-bottom: 26px; }
.estimate-note strong { color: var(--navy); }
.estimate-note a { color: var(--blue); text-decoration: underline; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.calc-form, .calc-results { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; min-width: 0; }
.calc-results { background: #fff; border: 1px solid var(--line); position: sticky; top: 100px; }
.calc-h { font-size: 1.15rem; margin-bottom: 14px; }
.calc-form .calc-h + .field { margin-top: 0; }
.calc-form .calc-h:not(:first-child) { margin-top: 26px; }
.calc-sub { font-size: .95rem; margin: 22px 0 8px; }
.money { position: relative; }
.money span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.money input { padding-left: 26px !important; font-variant-numeric: tabular-nums; }
.field .hint { display: block; margin-top: 5px; }
table.results { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
table.results th { text-align: left; font-weight: 400; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--line); }
table.results td { text-align: right; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
table.results tr.sum th, table.results tr.sum td { font-weight: 600; color: var(--navy); }
table.results tr.sum td { font-size: 1.05rem; }
.result-total { margin-top: 16px; border-radius: 8px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; }
.result-total strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.result-total.refund { background: #e7f4ec; color: #1d6b3b; }
.result-total.owing { background: #fdecea; color: #8a1f17; }
.calc-notes { margin-top: 40px; }
.calc-notes h2 { font-size: 1.3rem; }
.calc-notes ul { padding-left: 1.2em; display: grid; gap: 6px; }
.card .cat { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px; }

/* checklist */
.cl-bar-wrap { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 22px; }
.cl-progress { flex: 1 1 200px; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.cl-progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.cl-actions { display: flex; gap: 8px; }
.cl-actions .btn { padding: 8px 14px; }
.cl-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 20px 10px; margin-bottom: 16px; background: #fff; }
.cl-group legend { font-family: var(--display); font-weight: 600; color: var(--navy); font-size: 1.1rem; padding: 0 8px; margin-left: -8px; }
.cl-group ul { list-style: none; }
.cl-group li + li { border-top: 1px solid var(--line); }
.cl-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; cursor: pointer; font-weight: 400; margin: 0; color: var(--ink); }
.cl-item input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex-shrink: 0; }
.cl-item strong { display: block; color: var(--navy); font-weight: 600; }
.cl-item .hint { margin: 2px 0 0; }
.cl-item input:checked + span strong { text-decoration: line-through; text-decoration-color: var(--gold); }

/* articles */
.resource-article h2 { font-size: 1.45rem; }
.resource-article ul { padding-left: 1.3em; display: grid; gap: 6px; }
.advice-box { background: var(--navy); color: #d3dce8; border-radius: var(--radius); padding: 26px 28px; margin-top: 40px !important; }
.advice-box h2 { color: #fff; font-size: 1.3rem; margin: 0 0 16px !important; }
.advice-box .checks { padding: 0 !important; }
.advice-box .checks li { color: #e6ecf4; }
.advice-box .checks li::before { background-color: var(--gold); }
.advice-box p { margin-top: 20px; }
.advice-box .btn-navy { background: var(--gold); color: var(--navy-deep); text-decoration: none; }

/* footer service areas */
.areas-line { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; color: #a8b6c8; }
.areas-line strong { color: #fff; font-weight: 500; }
.areas-line a { color: var(--gold); }
.areas-line + .disclaimer { margin-top: 14px; padding-top: 0; border-top: 0; }

/* ==========================================================
   QUICK CONTACT BUTTON
   ========================================================== */
.quick-contact { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 95; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.qc-toggle { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; padding: 13px 20px 13px 16px; font: 600 .95rem var(--body); cursor: pointer; box-shadow: 0 10px 28px rgba(12,27,48,.3); transition: background .2s, transform .2s; }
.qc-toggle:hover { background: var(--blue); transform: translateY(-2px); }
.qc-toggle svg { width: 20px; height: 20px; }
.qc-close { display: none; font-size: 1.4rem; line-height: 1; width: 20px; text-align: center; }
.qc-toggle[aria-expanded="true"] .qc-open { display: none; }
.qc-toggle[aria-expanded="true"] .qc-close { display: inline; }
.qc-panel { width: min(320px, calc(100vw - 40px)); background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(12,27,48,.28); border-top: 4px solid var(--gold); padding: 16px; display: grid; gap: 4px; animation: fadeUp .25s ease both; }
.qc-title { font-family: var(--display); font-weight: 600; color: var(--navy); font-size: 1.05rem; padding: 2px 8px 8px; }
.qc-link { display: flex; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 8px; color: var(--ink); transition: background .2s; }
.qc-link:hover { background: var(--bg-alt); }
.qc-link strong { display: block; color: var(--navy); font-size: .95rem; }
.qc-link span span, .qc-link > span:last-child { font-size: .85rem; color: var(--muted); }
.qc-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--gold-soft); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.qc-ic svg { width: 19px; height: 19px; }
.qc-book .qc-ic { background: var(--navy); color: var(--gold); }
.qc-note { font-size: .78rem; color: var(--muted); padding: 8px 8px 0; border-top: 1px solid var(--line); margin-top: 6px; }
.to-top { bottom: 86px; right: max(28px, env(safe-area-inset-right, 0px)); }
@media (max-width: 640px) {
  .calc { grid-template-columns: 1fr; }
  .calc-results { position: static; }
  .qc-label { display: none; }
  .qc-toggle { padding: 15px; }
  .to-top { bottom: 82px; right: max(22px, env(safe-area-inset-right, 0px)); }
  .advice-box { padding: 22px 20px; }
}
@media (max-width: 1080px) { .calc { grid-template-columns: 1fr; } .calc-results { position: static; } }

/* print: checklist and calculators print cleanly */
@media print {
  .topbar, .site-header, footer, .quick-contact, .to-top, .aside, .cta-band, .page-hero, .cl-actions, .cursor-ring, .cursor-dot, .vx-pop-overlay { display: none !important; }
  .layout { grid-template-columns: 1fr !important; }
  section { padding-block: 10px !important; }
  .cl-group { break-inside: avoid; }
  .anim .reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================
   ONLINE TAX CLIENT FORM
   ========================================================== */
.tf-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; background: var(--navy); color: #d3dce8; border-radius: var(--radius); padding: 20px 24px; margin-top: 24px !important; }
.tf-cta strong { display: block; color: #fff; font-family: var(--display); font-size: 1.15rem; }
.tf-cta .btn { text-decoration: none; }
.tf-secure { display: flex; gap: 14px; align-items: flex-start; background: #eef4fb; border: 1px solid #cfdcee; border-radius: var(--radius); padding: 16px 18px; font-size: .93rem; margin-bottom: 24px; max-width: 980px; }
.tf-secure .icon { margin: 0; width: 42px; height: 42px; background: var(--navy); color: var(--gold); }
.tf-secure strong { color: var(--navy); }
form.tax-form { max-width: 980px; background: var(--bg-alt); border-radius: var(--radius); padding: 28px; }
.tf-progress { list-style: none; display: flex; gap: 6px; margin-bottom: 28px; counter-reset: none; overflow-x: auto; padding-bottom: 4px; }
.tf-progress li { flex: 1 1 0; min-width: 44px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .74rem; color: var(--muted); cursor: default; }
.tf-progress li span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid #ccd3dd; font-weight: 600; color: var(--muted); }
.tf-progress li em { font-style: normal; line-height: 1.25; }
.tf-progress li.on span { background: var(--navy); border-color: var(--navy); color: var(--gold); }
.tf-progress li.on em { color: var(--navy); font-weight: 600; }
.tf-progress li.done { cursor: pointer; }
.tf-progress li.done span { background: var(--gold-soft); border-color: var(--gold); color: var(--navy); }
.tf-step { border: 0; padding: 0; min-width: 0; }
.tf-step legend { margin-bottom: 14px; }
.step-intro { color: var(--muted); margin-bottom: 18px; font-size: .95rem; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 8px; }
.person-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.person-col h3, .rep-col h3 { font-size: 1.05rem; margin-bottom: 12px; }
.people:has(#spouse-col[hidden]) { grid-template-columns: minmax(0, 520px); }
.sub-h { font-size: 1.05rem; margin: 24px 0 12px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 16px; }
.req { color: #b4351f; }
.field.invalid input, .field.invalid select, .consent.invalid { border-color: #c0392b !important; box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
.consent.invalid { border: 1px solid; border-radius: 8px; padding: 8px; }
.tf-toggle { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.rep-row { display: grid; grid-template-columns: 28px 2fr 1fr 1fr; gap: 0 14px; align-items: end; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 0; margin-bottom: 12px; }
.rep-row.rep-5 { grid-template-columns: 28px 2fr 1fr 1fr 1fr 1fr; }
.rep-no { width: 28px; height: 28px; border-radius: 50%; background: var(--gold-soft); color: var(--navy); display: grid; place-items: center; font-weight: 600; font-size: .85rem; margin-bottom: 26px; }
.add-row { margin: 4px 0 20px; }
.rep-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.rep-cols.two { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.rep-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.tbl-wrap { overflow-x: auto; }
table.tf-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
table.tf-table th, table.tf-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: .93rem; }
table.tf-table thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fafbfc; }
table.tf-table tbody th { font-weight: 500; color: var(--ink); }
table.tf-table td { width: 30%; min-width: 130px; }
table.tf-table.compact th, table.tf-table.compact td { padding: 5px 8px; }
table.tf-table.compact td { width: 45%; min-width: 110px; }
table.tf-table input { padding: 8px 10px 8px 24px !important; font-size: .92rem; }
.money.km input { padding-left: 10px !important; padding-right: 34px !important; }
.money.km span { left: auto; right: 12px; }
.auto-tbl { max-width: 520px; }
.net-line { font-size: .95rem; margin-top: -8px; }
.no-spouse .sp, .no-spouse .sp-only { display: none; }
.engage { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 18px 20px; margin: 10px 0 18px; font-size: .95rem; }
.engage h3 { font-size: 1.05rem; margin-bottom: 8px; }
.engage p + p { margin-top: 8px; }
.tf-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.tf-count { color: var(--muted); font-size: .9rem; }
.tf-nav #tf-back[hidden] + .tf-count { margin-right: auto; }
@media (max-width: 760px) {
  form.tax-form { padding: 20px 16px; }
  .people, .row3 { grid-template-columns: 1fr; }
  .rep-row, .rep-row.rep-5 { grid-template-columns: 1fr; padding-top: 10px; }
  .rep-no { margin-bottom: 4px; }
  .tf-progress li em { display: none; }
  .rep-cols.two { grid-template-columns: 1fr; }
}
input[type=date] { width: 100%; padding: 11px 14px; border: 1px solid #ccd3dd; border-radius: 6px; font: inherit; font-size: .96rem; background: #fff; color: var(--ink); min-height: 46px; }
input[type=date]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45,82,136,.18); }

/* ==========================================================
   ONLINE TAX FORM: menu button + side tab
   ========================================================== */
.menu .nav-form { margin-left: 10px; }
.menu .nav-form + .nav-cta { margin-left: 8px; }
.menu .nav-form a { color: var(--navy-deep); }
.menu .nav-form a:hover { color: #fff; }
.form-tab { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 94; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy-deep); padding: 14px 9px; border-radius: 10px 0 0 10px; box-shadow: -4px 8px 24px rgba(12,27,48,.22);
  font-weight: 600; font-size: .86rem; letter-spacing: .02em; transition: padding .2s, background .2s; }
.form-tab:hover { background: var(--gold-dark); color: #fff; padding-right: 13px; }
.form-tab-ic svg { width: 20px; height: 20px; }
.form-tab-txt { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
@media (max-width: 1180px) { .menu .nav-form a { padding: 11px 14px; } .menu > ul > li > a { padding: 10px 8px; } .logo-text small { display: none; } }
@media (max-width: 1080px) {
  .menu .nav-form { margin: 16px 0 0; }
  .menu .nav-form + .nav-cta { margin: 10px 0 0; }
  .menu .nav-form a { text-align: center; justify-content: center; display: flex; }
  .form-tab { top: auto; bottom: max(20px, env(safe-area-inset-bottom, 0px)); right: auto; left: max(16px, env(safe-area-inset-left, 0px)); transform: none;
    flex-direction: row; border-radius: 999px; padding: 13px 18px; }
  .form-tab:hover { padding-right: 18px; }
  .form-tab-txt { writing-mode: horizontal-tb; transform: none; }
}
@media (max-width: 400px) { .form-tab-txt { font-size: .8rem; } .form-tab { padding: 12px 14px; } }
@media print { .form-tab { display: none !important; } }
.menu > ul > li > a, .menu .nav-cta a { white-space: nowrap; }
@media (max-width: 1360px) and (min-width: 1081px) {
  .logo-text small { display: none; }
  .logo img { height: 46px; }
  .menu > ul > li > a { padding: 10px 9px; font-size: .93rem; }
  .menu .nav-cta a { padding: 10px 14px; font-size: .9rem; }
  .menu .nav-form { margin-left: 6px; }
  .menu .nav-form + .nav-cta { margin-left: 6px; }
  .menu > ul > li:not(.nav-cta) > a::before { left: 9px; right: 9px; }
}
@media (max-width: 1100px) and (min-width: 1081px) {
  .logo-text { font-size: 1.15rem; }
  .menu > ul > li > a { padding: 10px 7px; font-size: .9rem; }
  .has-sub > a::after { margin-left: 5px; }
}

/* ==========================================================
   SERVICE CLIENT FORMS
   ========================================================== */
.sf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.sf-grid > .wide, .sf-grid > .sf-group { grid-column: 1 / -1; }
.sf-grid .field { min-width: 0; }
.sf-grid .field > .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; color: var(--ink); }
.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.chk { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid #ccd3dd; border-radius: 8px; padding: 10px 12px; cursor: pointer; font-size: .93rem; margin: 0; font-weight: 400; }
.chk input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.chk:has(input:checked) { border-color: var(--navy); background: #eef4fb; }
.checks-field.invalid .chk-grid { outline: 2px solid #c0392b; outline-offset: 4px; border-radius: 8px; }
.field.invalid .choice-row { outline: 2px solid #c0392b; outline-offset: 4px; border-radius: 999px; }
.field.invalid textarea { border-color: #c0392b !important; }
.rep-row.sf-rep { grid-template-columns: 28px repeat(4, minmax(0, 1fr)); }
.sf-group .sub-h { margin-top: 6px; }
@media (max-width: 760px) {
  .sf-grid { grid-template-columns: 1fr; }
  .rep-row.sf-rep { grid-template-columns: 1fr; }
}

/* ==========================================================
   SOCIAL + WHATSAPP
   ========================================================== */
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); transition: background .2s, color .2s, transform .2s; }
.social a:hover { background: var(--gold); color: var(--navy-deep); transform: translateY(-2px); }
.topbar .top-soc { display: inline-grid; place-items: center; opacity: .85; }
.topbar .top-soc:hover { opacity: 1; color: var(--gold); }
.topbar .top-soc svg { width: 15px; height: 15px; }
.wa-float { display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff; border-radius: 999px; padding: 12px 18px 12px 14px; font-weight: 600; font-size: .95rem; box-shadow: 0 8px 24px rgba(0,0,0,.22); transition: transform .2s, box-shadow .2s; }
.wa-float svg { width: 24px; height: 24px; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.28); color: #fff; }
@media print { .wa-float { display: none !important; } }
.topbar .group:has(.top-soc) { gap: 8px 14px; align-items: center; }
.quick-contact:has(.qc-panel:not([hidden])) .wa-float { display: none; }
@media (max-width: 640px) { .wa-float { padding: 13px; } .wa-float span { display: none; } }
.to-top { bottom: 150px; }
@media (max-width: 640px) { .to-top { bottom: 140px; } }

/* ==========================================================
   AI CHAT ASSISTANT
   ========================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ai-toggle { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--gold), #d4b46d); color: var(--navy-deep); padding: 12px 18px 12px 14px; font: 600 .95rem var(--body); cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.22); transition: transform .2s, box-shadow .2s; }
.ai-toggle:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.28); }
.ai-toggle svg { width: 22px; height: 22px; }
.ai-open .quick-contact .ai-toggle, .ai-open .quick-contact .wa-float { display: none; }
.quick-contact:has(.qc-panel:not([hidden])) .ai-toggle { display: none; }
.to-top { bottom: 214px; }
.ai-chat { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: 90px; z-index: 120; width: min(380px, calc(100vw - 32px)); height: min(580px, calc(100vh - 120px)); background: #fff; border-radius: 16px; box-shadow: 0 24px 70px rgba(12,27,48,.32); display: flex; flex-direction: column; overflow: hidden; animation: fadeUp .25s ease both; }
.ai-chat[hidden] { display: none !important; }
.ai-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--navy); color: #fff; padding: 14px 16px; border-bottom: 3px solid var(--gold); }
.ai-head strong { display: block; font-family: var(--display); font-size: 1.08rem; }
.ai-head span { font-size: .78rem; color: #c5d0de; }
.ai-x { background: none; border: 0; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.ai-x:hover { background: rgba(255,255,255,.12); }
.ai-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-alt); }
.ai-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: .93rem; line-height: 1.5; overflow-wrap: anywhere; }
.ai-msg p { margin: 0; } .ai-msg p + p { margin-top: 7px; }
.ai-msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; color: var(--ink); }
.ai-msg.bot a { color: var(--blue); text-decoration: underline; font-weight: 500; }
.ai-msg.me { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.ai-msg.typing p { animation: aiPulse 1s infinite; letter-spacing: 2px; font-weight: 700; }
@keyframes aiPulse { 50% { opacity: .3; } }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; background: var(--bg-alt); }
.ai-chips:not(:empty) { padding-bottom: 12px; }
.ai-chips button { border: 1px solid #ccd3dd; background: #fff; border-radius: 999px; padding: 7px 12px; font: 500 .84rem var(--body); color: var(--navy); cursor: pointer; }
.ai-chips button:hover { border-color: var(--navy); background: #eef4fb; }
.ai-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.ai-form textarea { flex: 1; resize: none; border: 1px solid #ccd3dd; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: .95rem; max-height: 110px; min-height: 42px; }
.ai-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45,82,136,.18); }
.ai-form button { width: 42px; height: 42px; flex: none; border: 0; border-radius: 10px; background: var(--navy); color: var(--gold); display: grid; place-items: center; cursor: pointer; }
.ai-foot { margin: 0; padding: 0 14px 10px; font-size: .72rem; color: var(--muted); background: #fff; }
@media (max-width: 640px) {
  .ai-toggle { padding: 13px; } .ai-toggle span { display: none; }
  .to-top { bottom: 200px; }
  .ai-chat { right: 0; left: 0; bottom: 0; width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
}
@media print { .ai-chat, .ai-toggle { display: none !important; } }

/* floating buttons: same size, always labelled */
.quick-contact .ai-toggle, .quick-contact .wa-float, .quick-contact .qc-toggle { width: 158px; height: 50px; padding: 0 16px; justify-content: flex-start; gap: 10px; font: 600 .95rem var(--body); border-radius: 999px; box-sizing: border-box; }
.quick-contact .ai-toggle svg, .quick-contact .wa-float svg, .quick-contact .qc-toggle svg { width: 22px; height: 22px; flex: none; }
.quick-contact .ai-toggle span, .quick-contact .wa-float span, .quick-contact .qc-label { display: inline !important; }
.to-top { right: max(76px, env(safe-area-inset-right, 0px)); }
@media (max-width: 640px) {
  .quick-contact .ai-toggle, .quick-contact .wa-float, .quick-contact .qc-toggle { width: 138px; height: 46px; padding: 0 14px; font-size: .88rem; gap: 8px; }
  .to-top { bottom: 196px; right: max(66px, env(safe-area-inset-right, 0px)); }
}
/* floating buttons: same colour */
.quick-contact .ai-toggle, .quick-contact .wa-float, .quick-contact .qc-toggle { background: var(--navy); color: #fff; border: 1px solid rgba(255,255,255,.14); }
.quick-contact .ai-toggle svg, .quick-contact .wa-float svg, .quick-contact .qc-toggle svg { color: var(--gold); }
.quick-contact .ai-toggle:hover, .quick-contact .wa-float:hover, .quick-contact .qc-toggle:hover { background: var(--navy-deep); color: #fff; }

/* compact footer */
footer { padding-top: 40px; font-size: .88rem; }
.foot-grid { grid-template-columns: 1.1fr 1.2fr 1.1fr 1.2fr; gap: 28px; }
footer h4 { font-size: 1rem; margin-bottom: 10px; }
footer ul { gap: 5px; }
footer ul.two-col { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.foot-logo { width: 110px; }
.foot-about { margin-top: 10px; font-size: .84rem; line-height: 1.5; }
.social { margin-top: 12px; }
.social a { width: 34px; height: 34px; }
.areas-line { margin-top: 24px; padding-top: 14px; font-size: .82rem; }
.disclaimer { font-size: .78rem; }
.areas-line + .disclaimer { margin-top: 6px; }
.copyright { padding-block: 12px 16px; font-size: .8rem; }
@media (max-width: 1080px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px 28px; } }
@media (max-width: 640px) {
  footer { padding-top: 30px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 20px 18px; }
  .foot-grid > div:first-child, .foot-grid > div:last-child { grid-column: 1 / -1; }
  .foot-grid > div:first-child { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .foot-grid > div:first-child .foot-about { display: none; }
  .foot-grid > div:first-child .social { margin-top: 0; }
  .foot-logo { width: 80px; }
  footer ul.two-col { grid-template-columns: 1fr; }
  .copyright { flex-direction: column; align-items: flex-start; gap: 4px; }
}
.areas-line, .disclaimer { text-align: center; }

/* contact page: contact cards */
.ct-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.ct-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; min-width: 0; }
.ct-card:hover { border-color: var(--gold); box-shadow: 0 10px 26px rgba(12,27,48,.08); transform: translateY(-2px); }
.ct-ic { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; }
.ct-ic svg { width: 20px; height: 20px; }
.ct-txt { min-width: 0; }
.ct-txt strong { display: block; color: var(--navy); font-size: .98rem; }
.ct-txt span { display: block; color: var(--muted); font-size: .88rem; line-height: 1.4; overflow-wrap: anywhere; }
.ct-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 12px; background: var(--bg-alt); border-radius: 12px; padding: 16px 18px; }
.ct-meta strong { display: block; color: var(--navy); font-size: .95rem; }
.ct-meta > div > span { color: var(--muted); font-size: .9rem; }
.ct-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-links a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-size: .85rem; font-weight: 500; text-decoration: none; transition: border-color .2s, background .2s; }
.ct-links a svg { width: 16px; height: 16px; color: var(--gold-dark, #8f7234); }
.ct-links a:hover { border-color: var(--navy); }
@media (max-width: 480px) { .ct-cards { grid-template-columns: 1fr; } }
