/* ==========================================================================
   UEC Australia — static site stylesheet
   Palette taken from the current TYPO3/pizpalue site:
     navy  #03285B (footer / "What is VAST" bands)
     blue  #137FC4 (logo, links, 25-years band)
     btn   #0277D5 (buttons)
     orange #D45D00 (Halo/Aura notice)
   ========================================================================== */
:root {
  --navy-950: #011735;
  --navy-900: #03285b;
  --navy-800: #0a3672;
  --navy-700: #12478f;
  --blue-700: #0f669d;
  --blue-600: #137fc4;
  --blue-500: #0277d5;
  --blue-300: #7cc3f2;
  --blue-100: #e7f2fb;
  --orange-600: #d45d00;
  --orange-500: #ec7014;
  --orange-100: #fdf0e6;

  --ink: #14202e;
  --muted: #5a6776;
  --line: #dde4ea;
  --surface: #ffffff;
  --surface-soft: #f2f5f8;

  --shadow-sm: 0 10px 28px rgba(3, 40, 91, .08);
  --shadow-md: 0 18px 44px rgba(3, 40, 91, .14);
  --shadow-lg: 0 28px 70px rgba(1, 23, 53, .26);
  --radius-sm: .6rem;
  --radius-md: 1.1rem;
  --radius-lg: 1.75rem;
  --container: 1180px;
  --header-height: 76px;
  --font: "Figtree", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: var(--font); font-size: 1rem; line-height: 1.65; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-600); }
a:hover { color: var(--blue-700); }
button, input, select, textarea { font: inherit; }
address { font-style: normal; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.025em; color: var(--navy-900); }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 700; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; }

.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-tinted { background: var(--surface-soft); }
.section-navy { background: var(--navy-900); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-blue { background: var(--blue-600); color: #fff; }
.section-blue h2, .section-blue h3 { color: #fff; }
.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; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 999; padding: .7rem 1rem; border-radius: .5rem; color: #fff; background: var(--navy-900); transform: translateY(-160%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); color: #fff; }

.eyebrow { display: inline-block; margin-bottom: .9rem; color: var(--blue-600); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.on-dark .eyebrow, .eyebrow-light { color: var(--blue-300); }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.on-dark .lead { color: rgba(255,255,255,.8); }

/* ---------- Buttons & links ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.3rem; border: 1px solid transparent; border-radius: 999px; font-size: .95rem; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button svg { flex: none; width: 18px; height: 18px; }
.button-primary { color: #fff; background: var(--blue-500); box-shadow: 0 8px 22px rgba(2,119,213,.28); }
.button-primary:hover { color: #fff; background: #0567b8; }
.button-ghost { color: #fff; border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.06); }
.button-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.14); }
.button-outline { color: var(--navy-900); border-color: var(--line); background: #fff; }
.button-outline:hover { color: var(--navy-900); border-color: var(--blue-600); }
.button-light { color: var(--navy-900); background: #fff; }
.button-light:hover { color: var(--navy-900); background: var(--blue-100); }
.button-sm { min-height: 40px; padding: .55rem 1rem; font-size: .88rem; }
.text-link { display: inline-flex; gap: .4rem; align-items: center; color: var(--blue-600); font-weight: 700; text-decoration: none; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(3px); }
.on-dark .text-link { color: var(--blue-300); }

/* ---------- Header (rendered by site.js) ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-height); border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(1, 23, 53, .45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; }
.site-header.scrolled, .site-header.solid { border-color: rgba(3,40,91,.08); background: rgba(255,255,255,.97); box-shadow: 0 8px 28px rgba(3,40,91,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.brand { position: relative; display: block; flex: none; width: 116px; aspect-ratio: 480 / 198; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .2s ease; }
.brand .logo-colour { opacity: 0; }
.site-header.scrolled .brand .logo-white, .site-header.solid .brand .logo-white { opacity: 0; }
.site-header.scrolled .brand .logo-colour, .site-header.solid .brand .logo-colour { opacity: 1; }

.primary-nav > ul { display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.primary-nav li { position: relative; }
.primary-nav .nav-link { position: relative; display: inline-flex; align-items: center; gap: .3rem; padding: .7rem .85rem; border: 0; color: rgba(255,255,255,.85); background: none; font-size: .95rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.primary-nav .nav-link::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .35rem; height: 2px; border-radius: 2px; background: var(--blue-300); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.primary-nav .nav-link:hover, .primary-nav .nav-link.active, .primary-nav li:focus-within > .nav-link { color: #fff; }
.primary-nav .nav-link:hover::after, .primary-nav .nav-link.active::after { transform: scaleX(1); }
.site-header.scrolled .primary-nav .nav-link, .site-header.solid .primary-nav .nav-link { color: var(--muted); }
.site-header.scrolled .primary-nav .nav-link:hover, .site-header.scrolled .primary-nav .nav-link.active,
.site-header.solid .primary-nav .nav-link:hover, .site-header.solid .primary-nav .nav-link.active { color: var(--navy-900); }
.site-header.scrolled .primary-nav .nav-link::after, .site-header.solid .primary-nav .nav-link::after { background: var(--blue-600); }
.caret { width: 10px; height: 10px; transition: transform .2s ease; }

.dropdown { position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px; margin: 0; padding: .55rem; list-style: none; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown, .has-dropdown.open > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .caret, .has-dropdown.open .caret { transform: rotate(180deg); }
.dropdown a { display: block; padding: .55rem .8rem; border-radius: .55rem; color: var(--ink); font-size: .93rem; font-weight: 600; text-decoration: none; }
.dropdown a:hover, .dropdown a.active { color: var(--navy-900); background: var(--blue-100); }
.dropdown .dropdown-label { display: block; padding: .6rem .8rem .25rem; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dropdown .ext::after { content: " ↗"; color: var(--muted); font-size: .8em; }
.nav-cta { margin-left: .5rem; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.1); cursor: pointer; }
.site-header.scrolled .menu-toggle, .site-header.solid .menu-toggle { color: var(--navy-900); background: var(--surface-soft); }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero (home) — deliberately NOT full screen ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--header-height) + clamp(2.5rem, 5vw, 4rem)) 0 clamp(6rem, 9vw, 7.5rem); color: #fff; background: var(--navy-900); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 40%; opacity: .35; filter: saturate(.85); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(105deg, rgba(1,23,53,.97) 0%, rgba(3,40,91,.9) 45%, rgba(19,127,196,.55) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, black, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1rem; color: #fff; }
.hero h1 small { display: block; margin-top: .35rem; color: var(--blue-300); font-size: .42em; font-weight: 700; letter-spacing: -.01em; }
.hero .lead { max-width: 560px; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.hero-tags li { padding: .35rem .75rem; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: rgba(255,255,255,.88); background: rgba(255,255,255,.06); font-size: .8rem; font-weight: 700; }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; left: 8%; right: 8%; bottom: -6%; height: 30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(124,195,242,.35), transparent); filter: blur(8px); }
.hero-visual img { position: relative; width: 100%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }

/* Quick links overlapping the bottom of the hero */
.quick-links { position: relative; z-index: 5; margin-top: clamp(-4.5rem, -6vw, -3.5rem); }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.quick-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink); background: #fff; box-shadow: var(--shadow-md); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.quick-card:hover { color: var(--ink); transform: translateY(-3px); border-color: var(--blue-300); box-shadow: var(--shadow-lg); }
.quick-card h2 { margin: 0 0 .25rem; font-size: 1.15rem; letter-spacing: -.01em; }
.quick-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.icon-badge { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; color: #fff; background: var(--blue-600); }
.icon-badge svg { width: 22px; height: 22px; }
.icon-badge.navy { background: var(--navy-900); }
.icon-badge.orange { background: var(--orange-600); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-height) + clamp(2rem, 4vw, 3.25rem)) 0 clamp(2.25rem, 4vw, 3.25rem); color: #fff; background: linear-gradient(110deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--blue-700) 100%); }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, black, transparent 90%); -webkit-mask-image: linear-gradient(to bottom, black, transparent 90%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: .6rem; color: #fff; font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
.page-hero .lead { max-width: 720px; margin: 0; color: rgba(255,255,255,.8); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: .85rem; }
.breadcrumb li { color: rgba(255,255,255,.6); }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; color: rgba(255,255,255,.35); }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
.page-hero-grid img { filter: drop-shadow(0 24px 34px rgba(0,0,0,.45)); }

/* ---------- Notice (Halo / Aura) ---------- */
.notice { display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center; padding: 1.25rem 1.5rem; border: 1px solid #f3c9a6; border-left: 6px solid var(--orange-600); border-radius: var(--radius-md); background: var(--orange-100); }
.notice h2 { margin: 0 0 .2rem; color: #8a3a00; font-size: 1.1rem; letter-spacing: -.01em; }
.notice p { margin: 0; color: #5c3415; font-size: .95rem; line-height: 1.55; }
.notice .icon-badge { background: var(--orange-600); }
.notice-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.notice .button-primary { background: var(--orange-600); box-shadow: none; }
.notice .button-primary:hover { background: #b54f00; }

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split-wide-left { grid-template-columns: 1.15fr .85fr; }
.section-heading { max-width: 760px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-heading h2 { margin-bottom: .9rem; }
.section-heading p { color: var(--muted); font-size: 1.05rem; }
.section-heading-left { margin-inline: 0; text-align: left; }
.on-dark .section-heading p, .section-navy .section-heading p, .section-blue .section-heading p { color: rgba(255,255,255,.78); }

.media-frame { position: relative; }
.media-frame::before { content: ""; position: absolute; left: -1rem; bottom: -1rem; width: 55%; height: 58%; border-radius: var(--radius-lg); background: var(--blue-600); }
.media-frame img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

.product-stage { position: relative; padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius-lg); background: radial-gradient(circle at 50% 70%, #ffffff 0%, var(--blue-100) 70%); border: 1px solid var(--line); }
.product-stage img { width: 100%; filter: drop-shadow(0 22px 26px rgba(3,40,91,.25)); }

.check-list { display: grid; gap: .55rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 1.9rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23137fc4'%3E%3Cpath d='M8.2 13.6 4.9 10.3l1.2-1.2 2.1 2.1 5.7-5.7 1.2 1.2z'/%3E%3C/svg%3E") center/80% no-repeat; }
.on-dark .check-list li::before { background-color: rgba(255,255,255,.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%237cc3f2'%3E%3Cpath d='M8.2 13.6 4.9 10.3l1.2-1.2 2.1 2.1 5.7-5.7 1.2 1.2z'/%3E%3C/svg%3E"); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.card-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card .text-link { margin-top: auto; padding-top: 1rem; }
.card .icon-badge { margin-bottom: 1.1rem; }
.section-navy .card { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.05); box-shadow: none; }
.section-navy .card p { color: rgba(255,255,255,.72); }

.legacy-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.legacy-card:hover { color: var(--ink); transform: translateY(-3px); border-color: var(--blue-300); box-shadow: var(--shadow-sm); }
.legacy-card .thumb { display: grid; place-items: center; height: 150px; padding: 1.2rem; background: var(--surface-soft); }
.legacy-card .thumb img { max-height: 110px; width: auto; object-fit: contain; }
.legacy-card .thumb .thumb-fallback { color: var(--navy-700); font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; opacity: .55; }
.legacy-card .body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.25rem; }
.legacy-card h3 { margin-bottom: .35rem; font-size: 1.05rem; }
.legacy-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.legacy-card .meta { margin-top: auto; padding-top: .8rem; color: var(--blue-600); font-size: .85rem; font-weight: 700; }
.status-pill { display: inline-flex; align-self: flex-start; margin-bottom: .6rem; padding: .25rem .6rem; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.status-pill.current { color: #0b6b37; background: #e3f5ea; }
.status-pill.legacy { color: var(--muted); background: #eceff3; }

/* ---------- Feature table / specs ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 2.5rem; margin: 0; padding: 0; list-style: none; }
.spec-grid li { display: flex; gap: .75rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.spec-grid li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-600); transform: translateY(-2px); }
.doc-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.doc-list a { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; transition: border-color .2s ease, box-shadow .2s ease; }
.doc-list a:hover { border-color: var(--blue-600); box-shadow: var(--shadow-sm); color: var(--ink); }
.doc-list .file-tag { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 10px; color: #fff; background: var(--orange-600); font-size: .7rem; font-weight: 800; }
.doc-list small { display: block; color: var(--muted); font-weight: 500; }

/* ---------- Brand band (25 years) ---------- */
.brand-band { position: relative; overflow: hidden; }
.brand-band .badge-25 { width: min(240px, 60%); margin-inline: auto; filter: drop-shadow(0 16px 24px rgba(0,0,0,.25)); }
.vast-strip { display: flex; gap: 1.25rem; align-items: center; padding: 1.4rem 1.6rem; border-radius: var(--radius-md); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; text-decoration: none; transition: background .2s ease; }
.vast-strip:hover { color: #fff; background: rgba(255,255,255,.16); }
.vast-strip strong { display: block; font-size: 1.15rem; }
.vast-strip span { color: rgba(255,255,255,.8); font-size: .95rem; }
.vast-strip .icon-badge { background: #fff; color: var(--blue-600); }

/* ---------- Service band (shared partial) ---------- */
.service-band { position: relative; overflow: hidden; padding: clamp(2.5rem, 5vw, 3.5rem) 0; color: #fff; background: linear-gradient(110deg, var(--navy-900), var(--navy-800)); }
.service-inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.service-band h2 { margin-bottom: .5rem; color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.service-band p { margin: 0; color: rgba(255,255,255,.78); }
.service-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: .9rem; color: rgba(255,255,255,.9); font-size: .93rem; font-weight: 600; }
.service-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.service-meta svg { width: 16px; height: 16px; color: var(--blue-300); }
.open-dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa5b1; }
.open-dot.is-open { background: #34d07a; box-shadow: 0 0 0 4px rgba(52,208,122,.2); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.info-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.info-list li { display: flex; gap: 1rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.info-list .icon-badge { width: 40px; height: 40px; border-radius: 12px; }
.info-list strong { display: block; color: var(--navy-900); }
.info-list div > span, .info-list address { color: var(--muted); font-size: .95rem; }
.sticky-col { position: sticky; top: calc(var(--header-height) + 1.5rem); }

/* ---------- Footer (rendered by site.js) ---------- */
.site-footer { color: rgba(255,255,255,.75); background: var(--navy-950); }
.footer-main { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2rem; padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
.footer-brand img { width: 120px; margin-bottom: 1rem; }
.footer-brand p { max-width: 320px; font-size: .93rem; }
.site-footer h2 { margin-bottom: .9rem; color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .93rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom a { font-size: .85rem; }

/* include placeholders: reserve space so the page doesn't jump while JS renders */
[data-include="header"] { min-height: 0; }
noscript .noscript-nav { padding: calc(var(--header-height) + .5rem) 1rem .5rem; background: var(--navy-900); }
noscript .noscript-nav a { color: #fff; margin-right: 1rem; }

/* ---------- Reveal animation ---------- */
/* site.js adds .pending only to elements below the fold, so content is never hidden without JS */
.reveal { transition: opacity .55s ease, transform .55s ease; }
.reveal.pending { opacity: 0; transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.pending { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .card-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  /* absolute to the header (the header's backdrop-filter makes it the containing block) */
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-height)); height: calc(100dvh - var(--header-height)); overflow-y: auto; border-top: 1px solid var(--line); padding: 1rem 1rem 2rem; background: #fff; transform: translateX(100%); transition: transform .25s ease; }
  body.menu-open .primary-nav { transform: none; }
  body.menu-open .site-header { background: #fff; }
  body.menu-open .site-header .brand .logo-white { opacity: 0; }
  body.menu-open .site-header .brand .logo-colour { opacity: 1; }
  body.menu-open .menu-toggle { color: var(--navy-900); background: var(--surface-soft); }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav .nav-link { justify-content: space-between; width: 100%; padding: .95rem .5rem; border-bottom: 1px solid var(--line); color: var(--navy-900) !important; font-size: 1.05rem; }
  .primary-nav .nav-link::after { display: none; }
  .dropdown { position: static; display: none; min-width: 0; margin: .25rem 0 .5rem; padding: .25rem; border: 0; box-shadow: none; background: var(--surface-soft); opacity: 1; visibility: visible; transform: none; }
  .has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown { display: none; }
  .has-dropdown.open > .dropdown { display: block; }
  .nav-cta { margin: 1rem 0 0; }
  .nav-cta .button { width: 100%; }
  .hero-grid, .split, .split-wide-left, .page-hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; }
  .page-hero-grid .page-hero-visual { display: none; }
  .quick-grid, .card-grid { grid-template-columns: 1fr; }
  .card-grid.cols-2 { grid-template-columns: 1fr; }
  .notice { grid-template-columns: auto 1fr; }
  .notice-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .service-inner { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
}
@media (max-width: 640px) {
  :root { --header-height: 66px; }
  .brand { width: 92px; }
  .card-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .hero { padding-bottom: 5rem; }
  .notice { grid-template-columns: 1fr; }
  .notice .icon-badge { display: none; }
}
@media (max-width: 420px) {
  .card-grid.cols-4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Migrated content (converted TYPO3 pages)
   ========================================================================== */
.flow { display: grid; gap: clamp(1.75rem, 3.5vw, 2.75rem); }
.flow > * { min-width: 0; }
.prose { max-width: 820px; }
.prose > * + * { margin-top: .9rem; }
.prose h2 { margin: 1.6rem 0 .6rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h3 { margin: 1.4rem 0 .5rem; font-size: 1.25rem; }
.prose h4, .prose h5 { margin: 1.2rem 0 .4rem; color: var(--navy-900); font-size: 1.05rem; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { margin: .5rem 0 0; padding-left: 1.3rem; }
.prose li + li { margin-top: .35rem; }
.prose img { border-radius: var(--radius-sm); }
.prose figure { margin: 0; }
.prose a:not(.button) { font-weight: 600; }
.section-navy .prose p, .section-navy .prose li { color: rgba(255,255,255,.82); }
.section-navy .prose a:not(.button), .section-blue .prose a:not(.button) { color: #fff; }
.section-navy .prose h4, .section-blue .prose h4 { color: #fff; }
.section-blue .prose p, .section-blue .prose li { color: rgba(255,255,255,.9); }

.grid-2, .grid-3 { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2.center { align-items: center; }
.grid-spec { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 1rem 2.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.grid-spec h2, .grid-spec h3 { margin: 0; font-size: 1.15rem; }
.grid-cards > .col { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.grid-cards > .col h3 { margin-top: 0; font-size: 1.15rem; }
.section-navy .grid-cards > .col { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.05); box-shadow: none; }
.figure-img { width: 100%; height: auto; border-radius: var(--radius-md); }
.figure-img.cutout { border-radius: 0; filter: drop-shadow(0 18px 24px rgba(3,40,91,.18)); }
.img-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; }
.img-row img { flex: 1 1 220px; max-width: 100%; width: auto; max-height: 520px; object-fit: contain; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap th, .table-wrap td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th, .table-wrap thead td { color: var(--navy-900); background: var(--surface-soft); font-weight: 700; }
.table-wrap tbody tr:nth-child(even) td { background: #fafbfc; }

.faq { display: grid; gap: .6rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.faq details[open] { border-color: var(--blue-300); box-shadow: var(--shadow-sm); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; color: var(--navy-900); font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; color: var(--blue-600); background: var(--blue-100); font-size: 1.2rem; font-weight: 700; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.2rem 1.2rem; border-top: 1px dashed var(--line); }
.faq .faq-body > :first-child { margin-top: 1rem; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.25rem; }
.video-embed { position: relative; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius-md); background: var(--navy-950); box-shadow: var(--shadow-sm); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-item figcaption { margin-top: .5rem; color: var(--muted); font-size: .9rem; font-weight: 600; }

.section-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.section-links a { display: inline-flex; padding: .5rem .95rem; border: 1px solid var(--line); border-radius: 999px; color: var(--navy-900); background: #fff; font-size: .9rem; font-weight: 600; text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.section-links a:hover { border-color: var(--blue-600); }
.section-links a.active { color: #fff; border-color: var(--navy-900); background: var(--navy-900); }
.section-links-title { margin: 0 0 .9rem; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.legacy-banner { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-left: 6px solid var(--navy-700); border-radius: var(--radius-md); background: var(--surface-soft); }
.legacy-banner h2 { margin: 0 0 .2rem; font-size: 1.1rem; }
.legacy-banner p { margin: 0; color: var(--muted); }
.legacy-card .thumb.tall { height: 190px; }
.text-center { text-align: center; }
@media (max-width: 960px) { .grid-2, .grid-3, .grid-spec { grid-template-columns: 1fr; } }
.figure-img.cutout { width: auto; max-width: min(100%, 640px); max-height: 440px; object-fit: contain; }
.grid-2 .figure-img.cutout, .grid-3 .figure-img.cutout { max-width: 100%; }
.prose > .figure-img.cutout { display: block; margin-inline: auto; }
.prose .video-grid { max-width: none; }
/* TYPO3 content-element anchors kept for old #c1234 links */
/* position:absolute takes the anchor out of grid/flex flow (it must never become a grid cell)
   while keeping its place in the page as the scroll target */
.anchor { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.prose > .anchor:first-child + * { margin-top: 0; }
/* keep tall product cut-outs (dishes) from making the inner-page hero tall */
.page-hero-visual img { display: block; width: auto; max-width: 100%; max-height: 280px; margin-left: auto; }
