/* Dromela — site styles. Tokens first; Australian flag blue + white. */
:root {
  --bg: #f6f9fe;
  --surface: #ffffff;
  --surface-2: #edf2fb;
  --border: #d6e0f2;
  --text: #0c1a36;
  --text-muted: #46567a;
  --accent: #1553c7;
  --accent-hover: #0e3f9e;
  --accent-tint: #e4edfc;
  --navy: #0a1f4d;
  --navy-2: #0f2c6b;
  --red: #c8102e;
  --green: #12805c;
  --grid: rgba(21, 83, 199, .09);
  --land-top: #bcd0f2;
  --land-bottom: #dbe6f8;
  --land-line: #b4c9ee;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(10, 31, 77, .06);
  --shadow-md: 0 1px 2px rgba(10, 31, 77, .06), 0 10px 28px rgba(21, 63, 150, .10);
  --shadow-lg: 0 2px 6px rgba(10, 31, 77, .08), 0 24px 56px rgba(21, 63, 150, .18);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .6, .2, 1);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--bg); overflow-x: hidden;
}
img, svg, iframe, video, canvas { max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; color: var(--text); }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.75rem); font-weight: 750; }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.icon { flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  min-height: 46px; padding: 0 22px; border-radius: 12px; font: 650 1rem/1 var(--font);
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(1px); box-shadow: none; }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--ghost:hover { background: var(--accent-tint); color: var(--accent-hover); }
.btn--ghost:active { background: var(--accent); color: #fff; }
.btn--light { background: #fff; color: var(--accent-hover); }
.btn--light:hover { background: var(--accent-tint); color: var(--navy); transform: translateY(-1px); }
.btn--lg { min-height: 54px; padding: 0 30px; font-size: 1.05rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 249, 254, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); transition: box-shadow .2s var(--ease), background .2s var(--ease); }
.site-header.is-scrolled { box-shadow: var(--shadow-lg); background: rgba(255, 255, 255, .97); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.site-header__logo { color: var(--text); display: flex; align-items: center; }
.logo { display: block; height: 36px; width: auto; overflow: visible; }
.primary-nav { display: flex; align-items: center; gap: 12px; }
.primary-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-group { position: relative; }
.nav-group__trigger {
  display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer;
  font: 600 .96rem/1 var(--font); color: var(--text); padding: 12px 12px; border-radius: 10px;
  transition: background .15s var(--ease);
}
.nav-group__trigger:hover, .nav-group__trigger[aria-expanded="true"] { background: var(--accent-tint); }
.nav-group__trigger .icon { transition: transform .18s var(--ease); }
.nav-group__trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-group__menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; margin: 0; padding: 8px; list-style: none;
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s var(--ease), transform .15s var(--ease), visibility .15s;
}
.nav-group__menu::before { content: ""; position: absolute; top: -6px; left: 24px; width: 10px; height: 10px; background: var(--bg); border-left: 1px solid var(--border); border-top: 1px solid var(--border); transform: rotate(45deg); }
.nav-group.is-open > .nav-group__menu { opacity: 1; visibility: visible; transform: none; }
.nav-group--wide > .nav-group__menu { min-width: 300px; }
.nav-group:nth-last-child(-n+2) > .nav-group__menu { left: auto; right: 0; }
.nav-group:nth-last-child(-n+2) > .nav-group__menu::before { left: auto; right: 24px; }
.nav-group__menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 550; font-size: .95rem; transition: background .12s; }
.nav-group__menu a:hover, .nav-group__menu a:focus-visible, .nav-group__menu a[aria-current] { background: var(--accent-tint); color: var(--accent-hover); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 12px; width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; color: var(--text); }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }
.nav-toggle .icon { display: block; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    padding: 12px clamp(16px, 4vw, 40px) 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .primary-nav__list { flex-direction: column; align-items: stretch; }
  .nav-group__trigger { width: 100%; justify-content: space-between; padding: 14px 12px; }
  .nav-group__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: var(--surface-2); display: none; margin: 0 0 6px; min-width: 0 !important; }
  .nav-group__menu::before { display: none; }
  .nav-group.is-open > .nav-group__menu { display: block; }
  .primary-nav__cta { width: 100%; }
}

/* Breadcrumbs */
.breadcrumbs { padding: 14px 0 0; font-size: .88rem; color: var(--text-muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--border); }
.breadcrumbs a { color: var(--text-muted); }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 5vw, 72px); background: linear-gradient(180deg, #e8f0fd 0%, var(--bg) 82%); }
.hero__art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__art .hero-art { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: max(100%, 1100px); height: auto; aspect-ratio: 1440 / 640; display: block; }
.hero-art__bg { will-change: transform; }
.ha-candle line { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.ha-candle.is-up rect { fill: var(--accent); fill-opacity: .55; }
.ha-candle.is-down rect { fill: var(--navy); fill-opacity: .28; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-areas: "head form" "more form"; column-gap: clamp(24px, 4vw, 56px); row-gap: 20px; align-items: start; }
.hero__head { grid-area: head; }
.hero__more { grid-area: more; }
.hero__form { grid-area: form; }
.hero--text .hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head"; }
.hero .lead { font-size: 1.12rem; color: var(--text-muted); max-width: 60ch; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.hero__badges li { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px 7px 10px; font-size: .92rem; font-weight: 600; box-shadow: var(--shadow-sm); }
.hero__badges .icon { color: var(--accent); }
.hero__offices { display: inline-flex; background: rgba(255,255,255,.75); border-radius: 999px; padding: 6px 14px 6px 8px; align-items: center; gap: 12px; margin: 20px 0 0; font-weight: 600; color: var(--text-muted); font-size: .95rem; }
.flag { width: 40px; height: 26px; border-radius: 5px; box-shadow: 0 0 0 1px var(--border), var(--shadow-sm); flex: none; }
.hero__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.icon-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-weight: 650; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 16px 10px 10px; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s; }
.icon-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); color: var(--text); }
.icon-link small { display: block; font-weight: 500; color: var(--text-muted); font-size: .82rem; }

/* Form block */
.form-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(18px, 3vw, 28px); }
.form-block__title { font-size: 1.3rem; margin-bottom: .35em; }
.form-block__intro { color: var(--text-muted); font-size: .96rem; }
.form-block__note { margin: 12px 0 0; font-weight: 600; font-size: .95rem; color: var(--navy-2); display: flex; align-items: center; gap: 8px; }
.form-legal { margin: 14px 0 0; font-size: .82rem; color: var(--text-muted); line-height: 1.5; }

/* Sections */
.section { position: relative; padding: clamp(44px, 6vw, 84px) 0; overflow: hidden; isolation: isolate; }
.section--tint { background: linear-gradient(180deg, var(--surface-2), var(--bg)); }
.section--dots::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--grid) 1.4px, transparent 1.6px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); }
.section--mesh::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><g fill='none' stroke='%231553c7' stroke-opacity='.08'><path d='M0 40L40 0M0 100L100 0M0 160L160 0M60 160L160 60M120 160L160 120'/></g></svg>"); }
.section__deco { position: absolute; z-index: -1; pointer-events: none; color: var(--accent); opacity: .14; }
.section__head { max-width: 760px; margin-bottom: clamp(24px, 3vw, 40px); }
.section__head p { color: var(--text-muted); font-size: 1.08rem; margin: 0; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.split { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.split--wide-l { grid-template-columns: 1.15fr .85fr; }
.split--wide-r { grid-template-columns: .85fr 1.15fr; }

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 24px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); height: 100%; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #b6c9ee; }
.card h3 { display: flex; align-items: center; gap: 12px; margin-bottom: .5em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card--link { text-decoration: none; color: var(--text); display: block; }
.card--link:hover { color: var(--text); }
.card--flat { box-shadow: var(--shadow-sm); }
.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-tint); color: var(--accent); flex: none; }
.icon-badge--sm { width: 40px; height: 40px; border-radius: 12px; }
.card .icon-badge { margin-bottom: 14px; }
.card h3 .icon-badge { margin-bottom: 0; }
.muted { color: var(--text-muted); }
.stack > * + * { margin-top: 16px; }

/* Steps */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-md); }
.steps li::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: 12px; }
.steps h3 { margin-bottom: .35em; }
.steps p { margin: 0; color: var(--text-muted); font-size: .98rem; }
.steps--rail li:not(:last-child)::after { content: ""; position: absolute; top: 38px; left: 66px; right: -20px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); opacity: .35; }
@media (max-width: 760px) { .steps--rail li::after { display: none; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-md); }
.table-wrap + .table-wrap, .table-wrap + p { margin-top: 20px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .97rem; }
th, td { text-align: left; padding: 14px 18px; vertical-align: top; border-bottom: 1px solid var(--border); }
thead th { background: var(--surface-2); font-weight: 700; font-size: .9rem; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f8faff; }
td.is-center, th.is-center { text-align: center; }
.mark { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; }
.mark--yes { background: #dff3ea; color: var(--green); }
.mark--no { background: #fbe3e7; color: var(--red); }
.compare th:nth-child(2), .compare td:nth-child(2) { background: rgba(21, 83, 199, .05); }
.table-title { margin: 28px 0 12px; }

/* Calculator + charts */
.calc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(18px, 3vw, 32px); }
.chart-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 22px; }
.chart-panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; margin-bottom: 8px; }
.chart-panel__head h3 { margin: 0; }
.chart-panel__head span { font-size: .84rem; color: var(--text-muted); }
.chart-canvas { display: block; width: 100%; height: 300px; }
.chart-canvas--tall { height: 340px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; padding: 0; margin: 12px 0 0; font-size: .9rem; font-weight: 600; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.chart-note { font-size: .84rem; color: var(--text-muted); margin: 12px 0 0; }
.spark-table td { vertical-align: middle; }
.spark { width: 120px; height: 36px; display: block; }
.coin-chip { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; font-weight: 750; font-size: .72rem; color: #fff; margin-right: 12px; vertical-align: middle; }
.up { color: var(--green); font-weight: 650; }
.down { color: var(--red); font-weight: 650; }

/* Exchanges */
.exchange-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.exchange-row li { display: flex; align-items: center; justify-content: center; min-height: 76px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--navy-2); box-shadow: var(--shadow-sm); padding: 10px 14px; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.exchange-row li:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.exchange-row svg { width: 100%; max-width: 150px; height: 34px; opacity: .88; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.review { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 22px; }
.review__who { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.review__who img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-tint); flex: none; }
.review__who h3 { margin: 0; font-size: 1.05rem; }
.review__who p { margin: 0; font-size: .88rem; color: var(--text-muted); }
.review__text { flex: 1 1 auto; margin: 0 0 16px; }
.review__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding-top: 14px; border-top: 1px solid var(--border); }
.review__stats dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.review__stats dd { margin: 2px 0 0; font-weight: 700; font-size: .98rem; }
.reviews-note { margin-top: 18px; font-size: .88rem; color: var(--text-muted); }
@media (max-width: 980px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .reviews { grid-template-columns: minmax(0, 1fr); } }

/* Company block */
.company-facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.company-facts li { display: flex; gap: 12px; align-items: flex-start; }
.company-facts strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: box-shadow .2s var(--ease), border-color .2s; }
.faq-list details[open] { box-shadow: var(--shadow-md); border-color: #b6c9ee; }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 650; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; width: 10px; height: 10px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg); transition: transform .2s var(--ease); flex: none; margin-top: -4px; }
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-list .faq-body { padding: 0 20px 18px; color: var(--text-muted); }
.faq-list .faq-body p:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 40px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--accent) 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band h2, .cta-band h3 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: #dbe6fb; max-width: 56ch; }
.cta-band::after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.22); }

/* Prose pages (legal, guides) */
.page-hero { padding: clamp(24px, 4vw, 48px) 0 clamp(8px, 2vw, 20px); }
.page-hero .lead { font-size: 1.12rem; color: var(--text-muted); max-width: 70ch; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.7em; font-size: clamp(1.3rem, 1rem + 1vw, 1.65rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .45em; }
.layout-doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); font-size: .92rem; }
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .6em; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: .35em; }
.toc a { text-decoration: none; color: var(--text); }
.toc a:hover { color: var(--accent); }
@media (max-width: 960px) { .layout-doc { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } }
.callout { display: flex; gap: 14px; background: var(--accent-tint); border: 1px solid #c4d6f6; border-radius: var(--radius); padding: 16px 18px; margin: 22px 0; }
.callout .icon { color: var(--accent); margin-top: 3px; }
.callout p { margin: 0; }
.callout--warn { background: #fff4e5; border-color: #f2d3a0; }
.callout--warn .icon { color: #a65f00; }
.doc-section { scroll-margin-top: calc(var(--header-h) + 16px); }
.num-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.num { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; align-items: center; justify-content: center; font-size: .95rem; flex: none; }
.mini-flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; list-style: none; margin: 18px 0; padding: 0; }
.mini-flow li { flex: 1 1 140px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; font-weight: 600; font-size: .95rem; position: relative; box-shadow: var(--shadow-sm); }
.mini-flow li + li::before { content: ""; position: absolute; left: -9px; top: 50%; width: 10px; height: 10px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: translateY(-50%) rotate(45deg); }
.mini-flow small { display: block; font-weight: 500; color: var(--text-muted); }
.map-embed { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; max-width: 100%; aspect-ratio: 16 / 9; min-height: 320px; background: var(--surface-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.vacancy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; }
.vacancy ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 10px 0 0; font-size: .9rem; color: var(--text-muted); font-weight: 600; }
@media (max-width: 640px) { .vacancy { grid-template-columns: 1fr; } }
.tier { display: flex; flex-direction: column; }
.tier__price { font-size: 2.2rem; font-weight: 750; letter-spacing: -.02em; margin: 8px 0 4px; }
.tier--featured { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.tier ul { padding-left: 1.1em; flex: 1; }
.article-card { display: flex; flex-direction: column; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--accent-hover); background: var(--accent-tint); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }

/* Footer */
.site-footer { background: var(--navy); color: #cbd7f2; margin-top: 40px; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #e5ecfb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo { color: #fff; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #8fa9de; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer__brand p { margin: 14px 0 10px; }
.site-footer__contact { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 !important; }
.site-footer__contact .icon { margin-top: 3px; color: #8fa9de; }
.site-footer__disclaimer { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .86rem; line-height: 1.6; color: #a9bbe3; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 24px; font-size: .86rem; color: #8fa9de; }
@media (max-width: 1000px) { .site-footer__top { grid-template-columns: repeat(2, 1fr); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__top { grid-template-columns: 1fr; } }

/* Special offer */
.urgency-strip { background: var(--navy); color: #fff; font-size: .9rem; font-weight: 600; }
.urgency-strip .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; padding-block: 9px; }
.urgency-strip span { display: inline-flex; align-items: center; gap: 8px; }
.urgency-strip .icon { color: #8fb4ff; }
.countdown { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.countdown__seg { display: inline-flex; flex-direction: column; align-items: center; }
.countdown__seg b { min-width: 58px; text-align: center; background: var(--navy); color: #fff; border-radius: 10px; padding: 10px 6px; font-size: 1.7rem; line-height: 1; box-shadow: var(--shadow-md); }
.countdown__seg small { font-size: .72rem; margin-top: 4px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.countdown__sep { font-size: 1.6rem; font-weight: 700; color: var(--navy); align-self: flex-start; margin-top: 6px; }
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 31, 77, .62); }
.modal.is-open { display: flex; animation: fade .18s var(--ease); }
.modal__card { position: relative; background: var(--surface); border-radius: var(--radius-lg); max-width: 520px; width: 100%; padding: 28px; box-shadow: var(--shadow-lg); max-height: calc(100vh - 32px); overflow: auto; text-align: center; animation: rise .22s var(--ease); }
.modal__close { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--surface-2); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--text); }
.modal__close:hover { background: var(--accent-tint); }
.modal__art { width: 100%; max-width: 280px; height: auto; margin: 0 auto 8px; display: block; }
.modal .countdown { margin: 12px 0 18px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "form" "more"; }
  .split, .split--wide-l, .split--wide-r { grid-template-columns: minmax(0, 1fr); }
  .hero__art .hero-art { opacity: .75; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .btn { white-space: normal; text-align: center; }
  .countdown__seg b { min-width: 48px; font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Calculator module layout helpers (module files stay untouched) */
.calc-widget__stats { gap: 28px; flex-wrap: wrap; }
.calc-widget__stat-label { margin-bottom: .35rem; }

.exchange-row img { width: auto; max-width: 100%; height: 34px; opacity: .9; }
.hero__form .hero__links { flex-wrap: nowrap; gap: 8px; margin-top: 16px; }
.hero__form .icon-link { flex: 1 1 0; min-width: 0; gap: 8px; padding: 8px; font-size: .9rem; }
.hero__form .icon-link .icon-badge { width: 36px; height: 36px; }
.hero__form .icon-link small { display: none; }
@media (max-width: 640px) {
  .urgency-strip .container { flex-wrap: nowrap; gap: 6px; justify-content: space-between; padding-block: 7px; }
  .urgency-strip span { font-size: .66rem; gap: 4px; line-height: 1.2; text-align: left; }
  .urgency-strip .icon { width: 12px; height: 12px; }
  .hero__form .icon-link { font-size: .78rem; }
}

.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid--3 { grid-template-columns: minmax(0, 1fr); } }

/* Hero background photo */
.hero__art { background: url('/assets/images/bg-au-wall.webp') center bottom / cover no-repeat; will-change: transform; }
.hero { background: var(--bg); }
.hero__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(246,249,254,.82) 0%, rgba(246,249,254,.55) 55%, rgba(246,249,254,.35) 100%); }
/* Readable text over the hero photo: no overlay, white text with a soft shadow */
.hero__art::after { display: none; }
.hero h1, .hero .lead, .hero .eyebrow, .hero .lead strong { color: #fff; text-shadow: 0 1px 3px rgba(5, 10, 40, .65), 0 2px 18px rgba(5, 10, 40, .5); }
.hero .lead a { color: #fff; }
.hero__more .hero__offices { color: var(--text); text-shadow: none; }
/* Dark scrim so white text stays readable over the busy photo */
.hero__art::after { display: block; background: linear-gradient(90deg, rgba(6,12,44,.82) 0%, rgba(6,12,44,.7) 50%, rgba(6,12,44,.3) 100%); }
@media (max-width: 900px) { .hero__art::after { background: rgba(6,12,44,.72); } }
.hero h1, .hero .lead { text-shadow: 0 1px 2px rgba(0,0,0,.6); }
/* Content frame instead of a full-image scrim */
.hero__art::after { display: none !important; }
.hero__grid { row-gap: 0; }
.hero__head, .hero__more { background: rgba(8, 16, 48, .74); padding-inline: clamp(18px, 2.4vw, 30px); }
.hero__head { padding-top: clamp(18px, 2.4vw, 28px); padding-bottom: 6px; border-radius: 20px 20px 0 0; }
.hero__more { padding-top: 0; padding-bottom: clamp(18px, 2.4vw, 28px); border-radius: 0 0 20px 20px; }
.hero--text .hero__head { border-radius: 20px; padding-bottom: 24px; }
@media (max-width: 900px) {
  .hero__head { border-radius: 20px; padding-bottom: 18px; }
  .hero__more { border-radius: 20px; padding-top: 18px; margin-top: 20px; }
}

/* Security block: photo background */
.section--security { background: url('/assets/images/bg-sec-wall.webp') center / cover no-repeat; }
.section--security .section__head h2, .section--security .section__head p { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.section--security .section__head a { color: #fff; }
.section--security .btn--ghost { background: #fff; border-color: #fff; }
/* Hero: text panel and form column share the same top and bottom edges */
@media (min-width: 901px) {
  .hero__grid { align-items: stretch; grid-template-rows: auto 1fr; }
}

/* Compact hero copy so the text panel matches the form height */
.hero h1 { font-size: clamp(1.7rem, 1.1rem + 1.6vw, 2.2rem); }
.hero .lead { font-size: 1rem; line-height: 1.55; }
.hero__badges { margin-top: 12px; }
.hero__offices { margin-top: 12px; }
@media (min-width: 901px) { .hero__grid { align-items: start; grid-template-rows: auto auto; } }
@media (min-width: 901px) {
  .hero__grid { grid-template-areas: "head form" "more form" ". form"; grid-template-rows: auto auto 1fr; align-items: start; }
  .hero--text .hero__grid { grid-template-areas: "head"; grid-template-rows: auto; }
}
@media (min-width: 901px) {
  .hero__grid { grid-template-areas: "head form" "more form"; grid-template-rows: auto 1fr; }
  .hero__head { align-self: start; }
  .hero__more { align-self: stretch; }
  .hero__form { align-self: start; }
}
.split .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 420px) { .split .grid--2 { grid-template-columns: minmax(0, 1fr); } }

/* Company block: photo background */
.section--company { background: url('/assets/images/bg-cc-wall.webp') center / cover no-repeat; }
.section--company h2, .section--company .split > .reveal > p { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.section--company .company-facts li { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.section--company .company-facts strong { color: #cfe0ff; }
.section--company .company-facts a { color: #fff; }

/* Modal: countdown centred, button underneath */
.modal .countdown { display: flex; justify-content: center; }
.modal [data-modal-cta] { display: flex; width: 100%; max-width: 320px; margin: 0 auto; }

/* /special-offer/: original light hero with the drawn scene, no photo, no frame */
.page-special-offer .hero__art { background: none; will-change: auto; }
.page-special-offer .hero__art::after { display: none !important; }
.page-special-offer .hero h1, .page-special-offer .hero .lead, .page-special-offer .hero .eyebrow, .page-special-offer .hero .lead strong { color: var(--text); text-shadow: none; }
.page-special-offer .hero .eyebrow { color: var(--accent); }
.page-special-offer .hero .lead, .page-special-offer .hero .lead strong { color: var(--text-muted); }
.page-special-offer .hero .lead strong { color: var(--text); }
.page-special-offer .hero__head, .page-special-offer .hero__more { background: none; padding-inline: 0; border-radius: 0; }
.page-special-offer .hero__grid { row-gap: 20px; }
/* Dark frame behind text that sits on section photos */
.section--company .split > .reveal:first-child,
.section--security .section__head { background: rgba(8, 16, 48, .78); border-radius: 20px; padding: clamp(18px, 2.4vw, 28px); }
.section--security .section__head { display: inline-block; max-width: 760px; }
