/* =====================================================================
   FINALYTICAL SOLUTIONS — SHARED STYLESHEET
   One file styles every page. To change a brand colour site-wide,
   edit the values in ":root" below.
   ===================================================================== */

:root {
  --navy: #0B2545;
  --navy-mid: #134074;
  --navy-lt: #1A5599;
  --accent: #2E86C1;
  --accent-lt: #5DADE2;
  --accent-pale: #EAF4FB;
  --white: #FFFFFF;
  --off-white: #F4F8FC;
  --grey-lt: #DDE8F2;
  --grey: #8FA8C8;
  --grey-dk: #4A6380;
  --text: #0B2545;
  --green: #1a7a4a;
  --green-pale: #e8f7ef;
  --orange: #b35900;
  --orange-pale: #fff4e8;
  --red: #c0392b;
  --red-pale: #fdedec;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(11, 37, 69, 0.06);
  --shadow-hover: 0 10px 32px rgba(11, 37, 69, 0.12);
  --transition: 0.3s cubic-bezier(.4, 0, .2, 1);
  --nav-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.5;
}
img, svg { max-width: 100%; }
a { color: var(--accent); }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--accent-lt); outline-offset: 2px; border-radius: 4px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--grey-lt); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--white); color: var(--navy); padding: .6rem 1rem; z-index: 1000; font-weight: 700; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Typography helpers ---------- */
.section-label { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; color: var(--navy); line-height: 1.18; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.05rem; color: var(--grey-dk); line-height: 1.7; max-width: 620px; }
.blue-line { width: 48px; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-lt)); margin: 1.2rem 0 2rem; border-radius: 2px; }
.text-center { text-align: center; }
.text-center .blue-line, .text-center .section-subtitle { margin-left: auto; margin-right: auto; }
.muted { color: var(--grey-dk); }
.small { font-size: .82rem; }

/* ---------- Animations ---------- */
/* Only hidden when site.js is running (html.js), so content never stays invisible */
.js .fade-up { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .fade-up.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; } .delay-2 { transition-delay: .2s; } .delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; } .delay-5 { transition-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: .3 } }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: var(--nav-h); display: flex; align-items: center;
  background: rgba(11, 37, 69, .97); backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, .2);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-nav.transparent { background: transparent; box-shadow: none; backdrop-filter: none; }
.site-nav.transparent.scrolled { background: rgba(11, 37, 69, .97); box-shadow: 0 4px 30px rgba(0, 0, 0, .2); backdrop-filter: blur(12px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.nav-logo img { width: 30px; height: 30px; }
.nav-logo-text { font-size: 1.1rem; font-weight: 800; color: var(--white); letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; font-size: .87rem; font-weight: 600; color: rgba(255, 255, 255, .82); transition: color var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; right: 0; height: 2px; background: var(--accent-lt); transform: scaleX(0); transform-origin: left; transition: transform var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { background: linear-gradient(135deg, var(--accent), var(--accent-lt)); color: var(--white) !important; padding: .55rem 1.4rem; border-radius: 6px; font-weight: 700 !important; box-shadow: 0 4px 15px rgba(46, 134, 193, .4); }
.nav-cta::after { display: none !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; inset: 0; background: var(--navy); z-index: 998; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.7rem; font-weight: 700; color: var(--white); text-decoration: none; }
.mobile-menu a:hover { color: var(--accent-lt); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem 2rem; border-radius: 8px; font-size: .92rem; font-weight: 700; text-decoration: none; border: none; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition); }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-lt)); color: var(--white); box-shadow: 0 4px 20px rgba(46, 134, 193, .4); }
.btn-dark { background: linear-gradient(135deg, var(--navy), var(--navy-lt)); color: var(--white); }
.btn-dark:hover { box-shadow: 0 8px 25px rgba(11, 37, 69, .3); }
.btn-outline-light { border: 1.5px solid rgba(255, 255, 255, .3); color: var(--white); background: rgba(255, 255, 255, .04); }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); background: var(--white); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); color: var(--white); box-shadow: 0 4px 18px rgba(37, 211, 102, .35); }
.btn-whatsapp svg { width: 22px; height: 22px; fill: currentColor; }
.btn-block { width: 100%; }
.btn-sm { padding: .6rem 1.1rem; font-size: .82rem; }
.btn-soft { background: var(--accent-pale); color: var(--accent); border: 1.5px solid rgba(46, 134, 193, .25); }
.btn-soft:hover { background: var(--accent); color: var(--white); }
.btn-soft-green { background: var(--green-pale); color: var(--green); border: 1.5px solid rgba(26, 122, 74, .25); }
.btn-soft-green:hover { background: var(--green); color: var(--white); }
.btn-soft-orange { background: var(--orange-pale); color: var(--orange); border: 1.5px solid rgba(179, 89, 0, .25); }
.btn-soft-orange:hover { background: var(--orange); color: var(--white); }

/* ---------- Page header (inner pages) ---------- */
.page-header { background: var(--navy); padding: calc(var(--nav-h) + 3rem) 0 3.5rem; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(26, 85, 153, .6) 0%, transparent 70%); }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px); background-size: 60px 60px; }
.page-header .container { position: relative; z-index: 2; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.2rem; font-size: .8rem; font-weight: 600; color: rgba(255, 255, 255, .45); list-style: none; }
.breadcrumb a { color: rgba(255, 255, 255, .5); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-lt); }
.breadcrumb li + li::before { content: '›'; margin-right: .5rem; color: rgba(255, 255, 255, .25); }
.breadcrumb [aria-current] { color: var(--accent-lt); }
.page-header h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; color: var(--white); letter-spacing: -.02em; margin-bottom: .6rem; }
.page-header h1 span { color: var(--accent-lt); }
.page-header p { font-size: 1rem; color: rgba(255, 255, 255, .65); line-height: 1.7; max-width: 620px; }
.meta-tags { display: flex; gap: 1.2rem; margin-top: 1.4rem; flex-wrap: wrap; }
.meta-tags span { font-size: .75rem; font-weight: 600; color: rgba(255, 255, 255, .5); letter-spacing: .05em; }

/* ---------- Generic sections & cards ---------- */
.section { padding: 6rem 0; }
.section-alt { background: var(--off-white); }
.tool-section { padding: 3.5rem 0 4rem; background: var(--off-white); }
.card { background: var(--white); border: 1.5px solid var(--grey-lt); border-radius: var(--radius-lg); padding: 2.2rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 2rem; }
.card-title { font-size: 1.05rem; font-weight: 800; color: var(--navy); margin-bottom: 1.5rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.card-head .card-title { margin-bottom: 0; }

/* ---------- Calculator layout ---------- */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem; align-items: start; }
.calc-layout .card + .card { margin-top: 0; }
.sticky-col { position: sticky; top: calc(var(--nav-h) + 1.5rem); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.form-label, .form-group > label { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin-bottom: .5rem; }
.hint { font-size: .72rem; font-weight: 500; color: var(--grey-dk); text-transform: none; letter-spacing: 0; }
.field-note { font-size: .74rem; color: var(--grey-dk); margin-top: .4rem; line-height: 1.5; }
.field-error { font-size: .74rem; color: var(--red); margin-top: .4rem; font-weight: 600; display: none; }
.field-error.show { display: block; }
.input-wrap { position: relative; }
.input-prefix, .input-suffix { position: absolute; top: 50%; transform: translateY(-50%); font-size: .9rem; font-weight: 600; color: var(--grey-dk); pointer-events: none; }
.input-prefix { left: 1rem; }
.input-suffix { right: 1rem; }
.input, .form-group input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), .form-group select, .form-group textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--grey-lt); border-radius: 10px;
  background: var(--off-white); font-family: inherit; font-size: .95rem; font-weight: 600; color: var(--text);
  outline: none; transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-group textarea { min-height: 110px; resize: vertical; font-weight: 500; }
.input-wrap .has-prefix { padding-left: 2.1rem !important; }
.input-wrap .has-suffix { padding-right: 3.2rem !important; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus, .input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46, 134, 193, .12); background: var(--white); }
.form-group input[readonly] { background: var(--accent-pale); color: var(--navy); }
.form-group input[type=file] { width: 100%; padding: .7rem; border: 1.5px dashed var(--grey); border-radius: 10px; background: var(--off-white); cursor: pointer; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }
input[type=range] { width: 100%; margin-top: .7rem; accent-color: var(--accent); }
.range-labels { display: flex; justify-content: space-between; font-size: .7rem; color: var(--grey); margin-top: .2rem; }
.checkbox { display: flex; align-items: center; gap: .55rem; font-size: .85rem; font-weight: 600; color: var(--grey-dk); cursor: pointer; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--accent); }

/* Segmented toggle */
.segmented { display: flex; background: var(--off-white); border: 1.5px solid var(--grey-lt); border-radius: 10px; overflow: hidden; }
.segmented button { flex: 1; padding: .7rem .5rem; border: none; background: none; font-size: .82rem; font-weight: 700; color: var(--grey-dk); cursor: pointer; transition: background var(--transition), color var(--transition); }
.segmented button.active { background: var(--navy); color: var(--white); }
.segmented.small button { padding: .4rem .8rem; font-size: .74rem; }
.segmented.inline { display: inline-flex; }

/* Chips (GST rates etc.) */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .5rem 1rem; border: 1.5px solid var(--grey-lt); border-radius: 100px; background: var(--white); font-size: .82rem; font-weight: 700; color: var(--grey-dk); cursor: pointer; transition: all var(--transition); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Info boxes */
.note { border-radius: 0 10px 10px 0; padding: .9rem 1.2rem; font-size: .84rem; line-height: 1.65; margin: 1rem 0; }
.note-info { background: var(--accent-pale); border-left: 4px solid var(--accent); color: var(--navy-mid); }
.note-warn { background: var(--orange-pale); border-left: 4px solid var(--orange); color: #7a3d00; }
.note-ok { background: var(--green-pale); border-left: 4px solid var(--green); color: #0f4d2e; }

/* ---------- Result display ---------- */
.result-hero { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); border-radius: var(--radius-lg); padding: 2rem; color: var(--white); position: relative; overflow: hidden; }
.result-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(93, 173, 226, .22) 0%, transparent 70%); border-radius: 50%; }
.result-hero .label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.result-hero .value { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; margin: .3rem 0; }
.result-hero .sub { font-size: .85rem; color: rgba(255, 255, 255, .6); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.stat { background: var(--white); border: 1.5px solid var(--grey-lt); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.stat .label { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-dk); margin-bottom: .35rem; }
.stat .value { font-size: 1.25rem; font-weight: 800; color: var(--navy); line-height: 1.15; word-break: break-word; }
.stat .sub { font-size: .7rem; color: var(--grey); margin-top: .2rem; }
.stat.dark { background: var(--navy); border-color: var(--navy); }
.stat.dark .label { color: rgba(255, 255, 255, .5); }
.stat.dark .value { color: var(--white); }
.stat.dark .sub { color: rgba(255, 255, 255, .4); }
.v-accent { color: var(--accent) !important; }
.v-green { color: var(--green) !important; }
.v-orange { color: var(--orange) !important; }

/* Split bar (principal vs interest) */
.split-bar { display: flex; height: 12px; border-radius: 100px; overflow: hidden; background: var(--grey-lt); margin: 1.2rem 0 .6rem; }
.split-bar span { display: block; height: 100%; transition: width .5s ease; }
.legend { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .78rem; color: var(--grey-dk); font-weight: 600; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; }

/* Bar chart (SIP) */
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 220px; padding: 0 .2rem; border-bottom: 1.5px solid var(--grey-lt); }
.bar-chart .bar { flex: 1; display: flex; flex-direction: column-reverse; border-radius: 4px 4px 0 0; overflow: hidden; min-width: 4px; cursor: default; }
.bar-chart .bar span { display: block; width: 100%; }
.bar-axis { display: flex; gap: 6px; padding: .4rem .2rem 0; font-size: .64rem; color: var(--grey); }
.bar-axis span { flex: 1; text-align: center; min-width: 4px; overflow: hidden; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }
.table-scroll-hint { display: none; font-size: .72rem; color: var(--grey-dk); text-align: center; padding: .2rem 0 .7rem; font-weight: 600; }
.data-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.data-table th { padding: .7rem .9rem; text-align: left; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-dk); background: var(--off-white); border-bottom: 1.5px solid var(--grey-lt); white-space: nowrap; }
.data-table td { padding: .62rem .9rem; border-bottom: 1px solid var(--grey-lt); white-space: nowrap; }
.data-table .r, .data-table th.r { text-align: right; font-variant-numeric: tabular-nums; }
.data-table td.r { font-weight: 600; }
.data-table tbody tr:not(.total):not(.subtle):hover td { background: var(--accent-pale); }
.data-table tr.total td { background: var(--navy); color: var(--white); font-weight: 700; }
.data-table tr.subtle td { background: var(--off-white); font-weight: 700; color: var(--navy-mid); }
.tag { display: inline-block; font-size: .6rem; font-weight: 700; letter-spacing: .06em; border-radius: 4px; padding: .12rem .4rem; margin-left: .35rem; text-transform: uppercase; vertical-align: middle; }
.tag-half { background: var(--orange-pale); color: var(--orange); }
.tag-full { background: var(--green-pale); color: var(--green); }
.tag-pro { background: var(--accent-pale); color: var(--accent); }
.badge { display: inline-flex; align-items: center; padding: .28rem .75rem; border-radius: 100px; font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.badge-ca { background: var(--accent-pale); color: var(--accent); border: 1px solid rgba(46, 134, 193, .25); }
.badge-it { background: var(--orange-pale); color: var(--orange); border: 1px solid rgba(179, 89, 0, .2); }

/* Placeholder */
.placeholder { text-align: center; padding: 3.5rem 2rem; color: var(--grey-dk); }
.placeholder .icon { font-size: 2.6rem; display: block; margin-bottom: .8rem; opacity: .6; }
.placeholder strong { color: var(--navy); }

/* Toolbar of export buttons */
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- Tool cards (hub & "other tools") ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.tool-card { display: flex; flex-direction: column; background: var(--white); border: 1.5px solid var(--grey-lt); border-radius: 18px; padding: 1.8rem; text-decoration: none; color: inherit; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); position: relative; }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(46, 134, 193, .4); }
.tool-card .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-pale); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 1.1rem; }
.tool-card .cat { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .3rem; }
.tool-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-bottom: .5rem; }
.tool-card p { font-size: .86rem; color: var(--grey-dk); line-height: 1.65; flex: 1; }
.tool-card .go { margin-top: 1.2rem; font-size: .82rem; font-weight: 700; color: var(--accent); }
.tool-card .new { position: absolute; top: 1.2rem; right: 1.2rem; font-size: .6rem; font-weight: 800; letter-spacing: .1em; background: var(--green-pale); color: var(--green); padding: .25rem .55rem; border-radius: 6px; text-transform: uppercase; }
.mini-tools { padding: 4rem 0; background: var(--white); }
.mini-tools h2 { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: .3rem; }
.mini-tools > .container > p { color: var(--grey-dk); font-size: .9rem; margin-bottom: 1.8rem; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.mini-card { display: flex; flex-direction: column; gap: .4rem; background: var(--off-white); border: 1.5px solid var(--grey-lt); border-radius: var(--radius); padding: 1.2rem 1.3rem; text-decoration: none; color: inherit; transition: border-color var(--transition), transform var(--transition); }
.mini-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.mini-card .i { font-size: 1.4rem; }
.mini-card strong { font-size: .88rem; color: var(--navy); }
.mini-card span:last-child { font-size: .75rem; font-weight: 700; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .65); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 2rem; }
.footer-brand-name { font-size: 1.2rem; font-weight: 800; color: var(--white); }
.footer-brand p { font-size: .87rem; line-height: 1.7; color: rgba(255, 255, 255, .5); margin: 1rem 0 1.5rem; }
.footer-social { display: flex; gap: .7rem; }
.social-btn { width: 40px; height: 40px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .8); transition: background var(--transition); }
.social-btn:hover { background: rgba(46, 134, 193, .25); }
.social-btn svg { width: 18px; height: 18px; fill: currentColor; }
.footer-col h4 { font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--accent-lt); margin-bottom: 1.2rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.footer-links a, .footer-contact a { font-size: .87rem; color: rgba(255, 255, 255, .58); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover, .footer-contact a:hover { color: var(--white); }
.footer-contact { display: flex; flex-direction: column; gap: .9rem; font-size: .84rem; line-height: 1.5; }
.footer-contact div { display: flex; gap: .7rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: .8rem; color: rgba(255, 255, 255, .4); }
.footer-bottom-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom-links a { font-size: .78rem; color: rgba(255, 255, 255, .4); text-decoration: none; }
.footer-bottom-links a:hover { color: rgba(255, 255, 255, .75); }

/* Floating WhatsApp button */
.wa-float { position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 900; width: 54px; height: 54px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: transform var(--transition); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(150%); background: var(--navy); color: var(--white); padding: .8rem 1.3rem; border-radius: 10px; font-size: .85rem; font-weight: 600; z-index: 1001; box-shadow: 0 8px 30px rgba(0, 0, 0, .3); transition: transform .35s ease; max-width: calc(100% - 2rem); }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--red); }

/* ---------- Print ---------- */
@media print {
  .site-nav, .mobile-menu, .site-footer, .mini-tools, .wa-float, .toolbar, .no-print, .hamburger { display: none !important; }
  .page-header { padding: 1rem 0; background: none; }
  .page-header::before, .grid-bg { display: none; }
  .page-header h1, .page-header h1 span { color: #000; }
  .page-header p { color: #333; }
  .card { box-shadow: none; break-inside: avoid; }
  .tool-section { background: none; padding: 0; }
  .sticky-col { position: static; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .calc-layout { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 700px) {
  .table-scroll-hint { display: block; }
}
@media (max-width: 640px) {
  .container { padding: 0 1rem; }
  .section { padding: 4.5rem 0; }
  .card { padding: 1.4rem; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat .value { font-size: 1.05rem; }
  .data-table { font-size: .74rem; }
  .data-table th, .data-table td { padding: .45rem .55rem; }
  .toolbar .btn { flex: 1 1 45%; }
}

/* =====================================================================
   HOME PAGE SECTIONS
   ===================================================================== */
.hero { min-height: 100vh; min-height: 100svh; background: var(--navy); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(26, 85, 153, .65) 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 80% 70%, rgba(46, 134, 193, .12) 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, #050f1e 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; padding: calc(var(--nav-h) + 3rem) 1.5rem 5rem; max-width: 900px; }
.hero-badge { display: inline-flex; align-items: center; gap: .6rem; border: 1px solid rgba(93, 173, 226, .35); background: rgba(46, 134, 193, .08); border-radius: 100px; padding: .4rem 1.1rem; font-size: .72rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--accent-lt); margin-bottom: 1.5rem; }
.hero-badge i { width: 6px; height: 6px; background: var(--accent-lt); border-radius: 50%; animation: blink 2s ease-in-out infinite; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 800; color: var(--white); line-height: 1.06; letter-spacing: -.02em; margin-bottom: 1.2rem; }
.hero h1 span { color: var(--accent-lt); }
.hero-tagline { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255, 255, 255, .75); margin-bottom: .8rem; }
.hero-sub { font-size: .97rem; color: rgba(255, 255, 255, .5); line-height: 1.7; margin-bottom: 2.6rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .5rem; font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255, 255, 255, .35); z-index: 2; text-decoration: none; }
.hero-scroll::before { content: ''; width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255, 255, 255, .35), transparent); }

.about-grid, .why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
.about-visual { position: relative; padding-bottom: 3rem; }
.dark-card { background: var(--navy); border-radius: var(--radius-lg); padding: 2.8rem 2.5rem; color: var(--white); position: relative; overflow: hidden; }
.dark-card::before { content: ''; position: absolute; top: -50px; right: -50px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(46, 134, 193, .2) 0%, transparent 70%); border-radius: 50%; }
.dark-card h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; position: relative; }
.dark-card p { font-size: .92rem; color: rgba(255, 255, 255, .68); line-height: 1.75; position: relative; }
.about-float { position: absolute; bottom: 0; right: 1.5rem; background: linear-gradient(135deg, var(--accent), var(--accent-lt)); border-radius: 14px; padding: 1.1rem 1.5rem; box-shadow: 0 12px 40px rgba(46, 134, 193, .4); color: var(--white); }
.about-float b { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1; }
.about-float span { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.about-intro { font-size: 1.05rem; line-height: 1.8; color: var(--grey-dk); margin-bottom: 2.4rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.stats > div { text-align: center; padding: 1.5rem 1rem; border: 1.5px solid var(--grey-lt); border-radius: var(--radius); background: var(--off-white); transition: transform var(--transition), border-color var(--transition); }
.stats > div:hover { transform: translateY(-3px); border-color: var(--accent); }
.stats b { display: block; font-size: 2.3rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stats b em { font-style: normal; color: var(--accent); }
.stats span { display: block; font-size: .74rem; font-weight: 600; color: var(--grey-dk); letter-spacing: .06em; text-transform: uppercase; margin-top: .45rem; line-height: 1.4; }

.tabs { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 3rem; }
.tab-btn { padding: .55rem 1.3rem; border: 1.5px solid var(--grey-lt); border-radius: 100px; background: var(--white); font-size: .8rem; font-weight: 600; color: var(--grey-dk); cursor: pointer; transition: all var(--transition); }
.tab-btn:hover, .tab-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.svc-cat { margin-bottom: 3.2rem; }
.svc-cat[hidden] { display: none; }
.svc-cat-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; padding-bottom: 1rem; border-bottom: 1.5px solid var(--grey-lt); }
.svc-cat-head .ic { width: 44px; height: 44px; background: var(--navy); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.svc-cat-head h3 { font-size: 1.35rem; font-weight: 700; color: var(--navy); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.svc { background: var(--white); border: 1.5px solid var(--grey-lt); border-radius: var(--radius); padding: 1.5rem; position: relative; overflow: hidden; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.svc::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: linear-gradient(to bottom, var(--accent), var(--accent-lt)); transform: scaleY(0); transform-origin: top; transition: transform var(--transition); }
.svc:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(11, 37, 69, .08); border-color: rgba(46, 134, 193, .35); }
.svc:hover::before { transform: scaleY(1); }
.svc .ic { font-size: 1.6rem; display: block; margin-bottom: .8rem; }
.svc h4 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: .45rem; }
.svc p { font-size: .84rem; color: var(--grey-dk); line-height: 1.65; }
.banner { margin-top: 2rem; background: linear-gradient(135deg, var(--navy), var(--navy-mid)); border-radius: 18px; padding: 2.8rem; display: flex; align-items: center; gap: 2.5rem; color: var(--white); }
.banner h3 { font-size: 1.45rem; font-weight: 700; margin-bottom: .5rem; }
.banner p { font-size: .9rem; color: rgba(255, 255, 255, .68); line-height: 1.6; }
.flags { display: flex; gap: .8rem; flex-shrink: 0; flex-wrap: wrap; }
.flag-chip { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: 8px; padding: .55rem 1rem; font-size: .82rem; font-weight: 600; }

.team-top { background: var(--navy); border-radius: 18px; padding: 3.2rem; margin-bottom: 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; color: var(--white); }
.team-top h3 { font-size: 1.85rem; font-weight: 800; margin-bottom: 1rem; }
.team-top p { font-size: .93rem; color: rgba(255, 255, 255, .66); line-height: 1.75; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.values > div { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 1.1rem; }
.values h4 { font-size: .86rem; color: var(--accent-lt); margin: .3rem 0 .25rem; }
.values p { font-size: .78rem; color: rgba(255, 255, 255, .55); line-height: 1.5; }
.team-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.team-card { background: var(--off-white); border: 1.5px solid var(--grey-lt); border-radius: 16px; padding: 2rem 1.4rem; text-align: center; transition: transform var(--transition), box-shadow var(--transition); }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-mid), var(--navy-lt)); margin: 0 auto 1.1rem; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--accent-lt); }
.team-card h4 { font-size: .9rem; font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.team-card span { font-size: .75rem; color: var(--accent); font-weight: 600; }

.why-list { display: flex; flex-direction: column; gap: 1.1rem; }
.why-item { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.2rem 1.5rem; background: var(--white); border-radius: 12px; border: 1.5px solid var(--grey-lt); transition: border-color var(--transition), box-shadow var(--transition); }
.why-item:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(46, 134, 193, .1); }
.why-item .ic { width: 42px; height: 42px; flex-shrink: 0; background: var(--accent-pale); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.why-item h4 { font-size: .93rem; font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.why-item p { font-size: .83rem; color: var(--grey-dk); line-height: 1.6; }
.markets { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; position: relative; }

.tools-teaser { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; margin-top: 2.5rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-cta { font-size: 1rem; color: var(--grey-dk); line-height: 1.8; margin-bottom: 2.2rem; }
.contact-list { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .ic { width: 44px; height: 44px; flex-shrink: 0; background: var(--navy); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.contact-item h4 { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .2rem; }
.contact-item p, .contact-item a { font-size: .92rem; color: var(--grey-dk); text-decoration: none; line-height: 1.5; }
.contact-item a:hover { color: var(--accent); }
.contact-form { background: var(--off-white); border: 1.5px solid var(--grey-lt); border-radius: var(--radius-lg); padding: 2.6rem; }
.contact-form .form-group input, .contact-form .form-group select, .contact-form .form-group textarea { background: var(--white); font-weight: 500; }
.form-status { margin-top: 1rem; padding: .85rem 1rem; border-radius: 8px; font-size: .86rem; font-weight: 600; display: none; }
.form-status.ok { display: block; background: var(--green-pale); color: var(--green); }
.form-status.err { display: block; background: var(--red-pale); color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 1024px) {
  .about-grid, .why-grid, .contact-grid, .team-top { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .stats > div { padding: 1rem .4rem; }
  .stats b { font-size: 1.7rem; }
  .stats span { font-size: .62rem; }
  .banner { flex-direction: column; align-items: flex-start; padding: 2rem 1.5rem; gap: 1.4rem; }
  .team-top { padding: 2rem 1.4rem; }
  .values { grid-template-columns: 1fr; }
  .contact-form { padding: 1.6rem 1.2rem; }
  .hero-actions .btn { width: 100%; }
}

/* Free GST billing — home page */
.bill-cta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; max-width: 820px; margin: 2.2rem auto 0; }
.bill-box { display: flex; flex-direction: column; gap: .45rem; background: var(--white); border: 1.5px solid var(--grey-lt); border-radius: 18px; padding: 1.6rem; text-decoration: none; color: var(--navy); box-shadow: 0 6px 24px rgba(11, 37, 69, .06); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.bill-box:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 34px rgba(11, 37, 69, .12); }
.bill-box .i { font-size: 1.8rem; }
.bill-box strong { font-size: 1.15rem; font-weight: 800; }
.bill-box span { color: var(--grey-dk); font-size: .92rem; line-height: 1.55; }
.bill-box em { font-style: normal; font-weight: 800; color: var(--accent); margin-top: auto; padding-top: .4rem; }
@media (max-width: 640px) { .bill-cta { grid-template-columns: 1fr; } }
