/* ============================================================
   CiDATax SRL · Shared Stylesheet
   Italian Fiscal Representation · Avask Group
   ============================================================ */

:root {
  /* Brand palette — DEEPER, MORE AUTHORITATIVE GOLD */
  --navy-900: #0E1F3A;
  --navy-800: #152744;
  --navy-700: #1f3556;
  --gold:        #A0560E;    /* Burnt amber-orange — darker, higher contrast for visibility */
  --gold-deep:   #6B3700;    /* Very deep burnt amber for hovers and emphasis */
  --gold-darker: #4A2500;    /* Maximum-contrast brown-gold for value displays (WCAG AAA, colorblind-safe) */
  --gold-light:  #C7762B;    /* Warm copper-amber for highlights ONLY on dark backgrounds */

  /* Surfaces */
  --paper: #FAF7F0;
  --ivory: #F5F1E6;
  --line: #E5DCC8;
  --line-soft: #ECE4D2;

  /* Ink */
  --ink: #1f1f1f;
  --muted: #555048;
  --muted-light: #7a7468;

  /* Typography */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============ RESET & BASE ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(212, 160, 23, 0.15);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}

p, h1, h2, h3, h4, h5, li, td, th, a {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

input, select, textarea {
  font-size: 16px;
  font-family: var(--sans);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input[type="checkbox"], input[type="radio"] {
  -webkit-appearance: auto;
  appearance: auto;
}

a { color: inherit; text-decoration: none; }
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

button { font-family: inherit; cursor: pointer; }
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

img { display: block; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ TRICOLORE BAR ============ */
.tricolore {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  display: flex;
  z-index: 200;
}
.tricolore span { flex: 1; }
.tricolore span:nth-child(1) { background: #009246; }
.tricolore span:nth-child(2) { background: #fff; }
.tricolore span:nth-child(3) { background: #CE2B37; }

/* ============ TOPBAR ============ */
.topbar {
  background: var(--navy-900);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 99;
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar-tag {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
}
.topbar-right {
  display: flex;
  gap: 18px;
  align-items: center;
}
.topbar-right a {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.topbar-right a:hover { color: var(--gold); }
.topbar-divider {
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.18);
}

/* ============ MAIN NAV ============ */
.nav {
  background: var(--navy-900);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-bottom-color 0.25s ease;
}
.nav.scrolled {
  background: #050B1A;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  border-bottom-color: rgba(160, 86, 14, 0.35);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  max-width: 1240px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-text {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
}
.logo-text em {
  color: var(--gold);
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.current {
  color: var(--gold);
}
.nav-links a.current::after { width: 100%; }

/* ============ NAV DROPDOWN / MEGA MENU ============ */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.85);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 400;
  cursor: pointer;
  padding: 4px 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.nav-dropdown-trigger::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger {
  color: var(--gold);
}
.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown:focus-within .nav-dropdown-trigger::after,
.nav-dropdown-trigger.current::after {
  width: 100%;
}
.nav-dropdown-trigger.current {
  color: var(--gold);
}
.nav-caret {
  transition: transform 0.25s;
}
.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
}

.nav-mega {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  min-width: 720px;
  background: #fff;
  border-top: 3px solid var(--gold);
  box-shadow: 0 30px 80px rgba(14, 31, 58, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 200;
}
.nav-dropdown:hover .nav-mega,
.nav-dropdown:focus-within .nav-mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-mega::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
}
.nav-mega-inner {
  padding: 30px 32px 32px;
}
.nav-mega-head {
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.nav-mega-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 6px;
}
.nav-mega-lede {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.nav-mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}
.nav-mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink) !important;
  font-size: 13px !important;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
  border-left: 2px solid transparent;
}
.nav-mega-item::after { display: none !important; }
.nav-mega-item:hover {
  background: var(--paper);
  border-left-color: var(--gold);
  transform: translateX(2px);
}
.nav-mega-item-featured {
  background: linear-gradient(135deg, var(--ivory) 0%, #fdf6e3 100%);
  grid-column: 1 / -1;
  border-left-color: var(--gold);
}
.nav-mega-item-featured:hover {
  background: linear-gradient(135deg, #fdf6e3 0%, #f6ecd0 100%);
}
.nav-mega-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--navy-900);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.nav-mega-icon svg { width: 20px; height: 20px; }
.nav-mega-item strong {
  display: block;
  color: var(--navy-900) !important;
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 2px;
  font-family: var(--sans);
}
.nav-mega-item span {
  display: block;
  color: var(--muted) !important;
  font-size: 11.5px !important;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
}

/* Mobile: collapse mega into accordion */
@media (max-width: 980px) {
  .nav-mega {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    border-top: none;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  .nav-dropdown.open .nav-mega {
    display: block;
  }
  .nav-mega-inner {
    padding: 14px 0;
  }
  .nav-mega-grid {
    grid-template-columns: 1fr;
  }
  .nav-mega-head {
    display: none;
  }
  .nav-mega-item {
    display: flex !important;
    align-items: center;
    gap: 12px;
    border-left: none;
    border-radius: 0;
  }
  .nav-mega-item strong {
    color: #fff !important;
    font-size: 14px;
  }
  .nav-mega-item span {
    color: rgba(255,255,255,0.6) !important;
    font-size: 12px !important;
  }
  .nav-mega-item:hover {
    background: rgba(255,255,255,0.06);
    transform: none;
    border-left: none;
  }
  .nav-mega-item-featured {
    background: rgba(160,86,14,0.12);
    grid-column: span 1;
  }
  .nav-mega-icon {
    background: transparent;
    border: 1px solid var(--gold);
  }
}

/* Client Login pill */
.nav-login {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  padding: 9px 16px !important;
  border: 1px solid rgba(212, 160, 23, 0.45) !important;
  color: var(--gold) !important;
  font-size: 12.5px !important;
  letter-spacing: 0.04em !important;
  font-weight: 500 !important;
  transition: all 0.2s !important;
  text-transform: none;
}
.nav-login:hover {
  background: rgba(212, 160, 23, 0.1);
  border-color: var(--gold) !important;
}
.nav-login::after {
  display: none !important;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 26px; height: 26px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  min-height: 48px;
}
.btn-primary {
  background: var(--gold);
  color: #fff;
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--gold-deep);
  color: #fff;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-dark {
  background: var(--navy-900);
  color: #fff;
}
.btn-dark:hover {
  background: var(--gold);
  color: #fff;
}

/* ============ SECTION DEFAULTS ============ */
section {
  padding: 96px 0;
  position: relative;
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 20px;
}
.section-head h2,
h1, h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 500;
  color: var(--navy-900);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
h2 em, h1 em, .section-head em {
  font-style: italic;
  color: var(--gold-deep);
}
.section-head p {
  font-size: 16.5px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--gold) 50%, transparent 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer-brand .logo-text {
  font-size: 26px;
  margin-bottom: 16px;
  display: block;
}
.footer-brand p {
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.65);
  max-width: 340px;
}
.footer-addr {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-addr strong {
  display: block;
  color: var(--gold);
  font-weight: 600;
  font-size: 12.5px;
  margin-bottom: 6px;
}
.footer h5 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.5);
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.footer-bottom span { line-height: 1.6; max-width: 800px; }
.footer-legal-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-legal-links a {
  color: rgba(255,255,255,0.6);
  font-size: 11.5px;
  transition: color 0.2s;
}
.footer-legal-links a:hover { color: var(--gold); }

/* ============ COMMON COMPONENTS ============ */

/* Hero (page heads) */
.page-hero {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff;
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40%;
  background: radial-gradient(ellipse at top right, rgba(184,134,11,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .wrap {
  position: relative;
  z-index: 2;
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 {
  color: #fff;
  margin-bottom: 24px;
  max-width: 880px;
}
.page-hero h1 em { color: var(--gold); }
.page-hero-lede {
  font-size: 19px;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  max-width: 720px;
}
.page-hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* Breadcrumbs */
.breadcrumbs {
  background: var(--paper);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.breadcrumbs-inner {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumbs a {
  color: var(--muted);
  transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--gold-deep); }
.breadcrumbs .sep { color: var(--line); }
.breadcrumbs .current { color: var(--navy-900); font-weight: 500; }

/* Content blocks */
.content-block {
  background: #fff;
}
.content-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.content-grid-2-wide {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px;
  transition: all 0.3s;
}
.card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(14,31,58,0.07);
}
.card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--navy-900);
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Feature list */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
}
.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--gold-deep);
  border-bottom: 2px solid var(--gold-deep);
  transform: rotate(-45deg);
  margin-top: 10px;
}

/* Stats band */
.stats-band {
  background: var(--navy-900);
  color: #fff;
  padding: 64px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num small {
  font-size: 24px;
  font-weight: 400;
}
.stat-label {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(212,160,23,0.08), transparent 65%);
  pointer-events: none;
}
.cta-section h2 {
  color: #fff;
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 44px);
}
.cta-section h2 em { color: var(--gold); }
.cta-section p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.cta-buttons {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Source citations */
.source-cite {
  font-size: 11.5px;
  color: var(--muted-light);
  font-style: italic;
  margin-top: 8px;
  display: block;
}
.source-cite a {
  color: var(--gold-deep);
  border-bottom: 1px solid currentColor;
  transition: color 0.2s;
}
.source-cite a:hover {
  color: var(--navy-900);
}

/* Disclosure block (claims, testimonials) */
.disclosure {
  background: var(--ivory);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  font-style: italic;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  box-shadow: 0 24px 60px rgba(14,31,58,0.20);
  z-index: 1000;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-body {
  padding: 22px 26px 20px;
}
.cookie-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--navy-900);
  margin-bottom: 10px;
}
.cookie-text {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 16px;
}
.cookie-text strong {
  color: var(--navy-900);
  font-weight: 600;
}
.cookie-text a {
  color: var(--gold-deep);
  border-bottom: 1px solid currentColor;
  font-weight: 500;
}
.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
/* GARANTE 2021 COMPLIANCE: all three buttons must have equal visual prominence.
   No "primary" highlight, no colour-coded preference for accept over reject. */
.cookie-btn {
  padding: 12px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--navy-900);
  background: #fff;
  color: var(--navy-900);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
  letter-spacing: 0.02em;
  text-align: center;
}
.cookie-btn:hover {
  background: var(--navy-900);
  color: #fff;
}

/* ============ COOKIE PREFERENCES MODAL ============ */
.cookie-prefs-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14,31,58,0.65);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cookie-prefs-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.cookie-prefs-modal {
  background: #fff;
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--gold);
  box-shadow: 0 32px 80px rgba(14,31,58,0.40);
}
.cookie-prefs-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px 16px;
  border-bottom: 1px solid var(--line);
}
.cookie-prefs-head h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--navy-900);
  margin: 0;
}
.cookie-prefs-close {
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.cookie-prefs-close:hover {
  color: var(--navy-900);
}
.cookie-prefs-body {
  padding: 18px 28px;
  overflow-y: auto;
  flex: 1;
}
.cookie-prefs-intro {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.cookie-cat {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cookie-cat:last-child { border-bottom: none; }
.cookie-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 8px;
}
.cookie-cat-head > div:first-child { flex: 1; }
.cookie-cat-head strong {
  display: block;
  font-size: 14.5px;
  color: var(--navy-900);
  font-weight: 600;
  margin-bottom: 3px;
}
.cookie-cat-head small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.cookie-cat-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  padding-right: 70px;
}

/* Toggle switch */
.cookie-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}
.cookie-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.cookie-toggle-slider {
  width: 40px;
  height: 22px;
  background: #c8c2b3;
  border-radius: 22px;
  position: relative;
  transition: background 0.25s;
}
.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.25s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--gold);
}
.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(18px);
}
.cookie-toggle-locked .cookie-toggle-slider {
  background: var(--navy-900);
  opacity: 0.55;
  cursor: not-allowed;
}
.cookie-toggle-locked .cookie-toggle-slider::before {
  transform: translateX(18px);
}
.cookie-toggle-label {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.cookie-prefs-foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 18px 28px 22px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.cookie-recall {
  position: fixed;
  bottom: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold);
  border: 1px solid var(--gold);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(14,31,58,0.2);
  transition: all 0.2s;
}
.cookie-recall.show { display: flex; }
.cookie-recall:hover {
  background: var(--gold);
  color: var(--navy-900);
}
.cookie-recall svg { width: 20px; height: 20px; }

/* ============ FORM ============ */
.enquiry-section {
  background: var(--paper);
  padding: 96px 0;
}
.enquiry-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  padding: 48px;
}
.enquiry-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.enquiry-field {
  display: flex;
  flex-direction: column;
}
.enquiry-field.full {
  grid-column: span 2;
}
.enquiry-field label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-900);
  font-weight: 600;
  margin-bottom: 6px;
}
.enquiry-field label .required {
  color: #A0560E;
  margin-left: 2px;
}
.enquiry-field input,
.enquiry-field select,
.enquiry-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 15px;
  color: var(--ink);
  font-family: var(--sans);
  transition: border-color 0.2s;
}
.enquiry-field input:focus,
.enquiry-field select:focus,
.enquiry-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.enquiry-field textarea {
  min-height: 120px;
  resize: vertical;
}
.enquiry-consent {
  grid-column: span 2;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.enquiry-consent input { margin-top: 3px; }
.enquiry-consent a {
  color: var(--gold-deep);
  border-bottom: 1px solid currentColor;
}
.enquiry-submit {
  grid-column: span 2;
  padding: 16px 32px;
  background: var(--navy-900);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 56px;
}
.enquiry-submit:hover {
  background: var(--gold);
  color: #fff;
}

/* ============ RESPONSIVE LAYER ============ */
@media (max-width: 980px) {
  section { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid-2,
  .content-grid-2-wide { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  section { padding: 56px 0; }

  /* Topbar */
  .topbar { font-size: 11px; padding: 8px 0; }
  .topbar-divider { display: none; }
  .topbar-tag { font-size: 9.5px; }
  .topbar-right { gap: 12px; }

  /* Nav */
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    padding: 16px 0;
    display: block;
    width: 100%;
    font-size: 15px;
  }
  .nav-links .nav-login {
    padding: 12px 16px !important;
    margin: 8px 0;
    text-align: center;
  }

  /* Mobile dropdown */
  .nav-dropdown-trigger {
    padding: 16px 0;
    font-size: 15px;
    width: 100%;
    justify-content: space-between;
  }
  .nav-mega {
    display: none !important;
    position: static !important;
    transform: none !important;
    min-width: 0 !important;
    width: 100% !important;
    box-shadow: none !important;
    border-top: none !important;
    background: rgba(255,255,255,0.04) !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: auto;
  }
  .nav-dropdown.open > .nav-mega {
    display: block !important;
  }
  .nav-mega::before {
    display: none;
  }
  .nav-mega-inner {
    padding: 12px 0 16px;
  }
  .nav-mega-head {
    display: none;
  }
  .nav-mega-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .nav-mega-item {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    color: rgba(255,255,255,0.9) !important;
    border-left: none;
    font-size: 14px !important;
  }
  .nav-mega-item:hover {
    background: rgba(255,255,255,0.06);
    border-left: none;
    transform: none;
  }
  .nav-mega-item strong {
    color: #fff;
    font-size: 14px;
  }
  .nav-mega-item span {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
  }
  .nav-mega-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
  .nav-mega-item-featured {
    background: rgba(160,86,14,0.12);
    grid-column: span 1;
  }
  .nav-mega-item-featured:hover {
    background: rgba(160,86,14,0.18);
  }

  /* Section heads */
  .section-head { margin-bottom: 40px; }
  .section-head h2, h1, h2 { font-size: clamp(28px, 6vw, 36px); }
  .section-head p { font-size: 15px; }

  /* Hero */
  .page-hero { padding: 48px 0 64px; }
  .page-hero h1 { font-size: clamp(30px, 7vw, 42px); }
  .page-hero-lede { font-size: 16px; }
  .page-hero-cta .btn { width: 100%; }

  /* Cards */
  .card-grid { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 28px 24px; }
  .stats-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: left; }

  /* Cookie */
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; }
  .cookie-actions { grid-template-columns: 1fr; gap: 8px; }
  .cookie-prefs-foot { grid-template-columns: 1fr; gap: 8px; }
  .cookie-prefs-modal { max-height: 92vh; }
  .cookie-prefs-head, .cookie-prefs-body, .cookie-prefs-foot { padding-left: 18px; padding-right: 18px; }
  .cookie-cat-desc { padding-right: 0; margin-top: 4px; }
  .cookie-cat-head { flex-direction: column; gap: 8px; }
  .cookie-body { padding: 20px 18px; }

  /* Enquiry */
  .enquiry-card { padding: 28px 20px; }
  .enquiry-fields { grid-template-columns: 1fr; gap: 16px; }
  .enquiry-field.full,
  .enquiry-consent,
  .enquiry-submit { grid-column: span 1; }

  /* CTA */
  .cta-section { padding: 56px 20px; }
  .cta-buttons { flex-direction: column; width: 100%; }
  .cta-buttons .btn { width: 100%; }
}

@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .stat-num { font-size: 36px; }
}

/* ============ PRINT ============ */
@media print {
  .topbar, .nav, .cookie-banner, .cookie-recall, .menu-toggle,
  .cta-buttons, .footer-bottom { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
  section { page-break-inside: avoid; padding: 24px 0 !important; }
}

@media (prefers-color-scheme: dark) {
  input, select, textarea { color-scheme: light; }
}

/* ============ SUPPORTS SAFE-AREA ============ */
@supports (padding: max(0px)) {
  .nav-inner { padding-left: max(32px, env(safe-area-inset-left)); padding-right: max(32px, env(safe-area-inset-right)); }
  .cookie-banner { left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
}
