/* ============================================================
   GLOBAL DESIGN SYSTEM — Λογιστικό Γραφείο Ξωμεριτάκης
   ------------------------------------------------------------
   Palette is drawn from the logo (deep navy + antique gold).
   Signature device: the accountant's DOUBLE RULE (see .section-label,
   .page-hero::after, .hero-stats::after, .total-obligations-card).

   Every custom-property name that existed before is kept, so
   inline styles and JS-generated markup that use var(--…) still work.
   ============================================================ */

/* IBM Plex Sans = UI + headings · EB Garamond = figures & pull-quote only
   (both include the Greek subset). */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  color-scheme: light;

  /* Surfaces */
  --bg:            #F4F6FA;
  --white:         #FFFFFF;
  --gray-50:       #F8F9FC;
  --gray-100:      #EEF1F6;
  --gray-200:      #DDE2EB;
  --gray-300:      #BCC4D2;
  --gray-400:      #747E93;   /* ≥4.5:1 on white — safe for small text */
  --gray-500:      #5D677B;
  --gray-600:      #475266;
  --gray-700:      #333E52;
  --gray-800:      #1F2937;
  --gray-900:      #101828;

  /* Brand — navy */
  --navy-dark:     #060F22;
  --navy:          #0B1F3F;
  --navy-light:    #153060;
  --navy-lighter:  #1F4382;

  /* Brand — gold */
  --gold:          #C9A44C;
  --gold-light:    #E4CB8B;
  --gold-dark:     #A8842F;
  --gold-ink:      #7A5A12;

  /* Legacy "accent" names → now gold family.
     --accent is the TEXT-safe gold (5.4:1 on white); use --gold for fills. */
  --accent:        #8A6414;
  --accent-light:  #C9A44C;
  --accent-bright: #E4CB8B;
  --accent-glow:   rgba(201, 164, 76, 0.28);
  --accent-bg:     rgba(201, 164, 76, 0.14);

  /* Status */
  --success:       #0F9F6E;
  --success-bg:    rgba(15, 159, 110, 0.10);
  --warning:       #C98A12;
  --warning-bg:    rgba(201, 138, 18, 0.12);
  --danger:        #D6382B;
  --danger-bg:     rgba(214, 56, 43, 0.09);
  --success-ink:   #0B7A55;
  --warning-ink:   #8A5A00;
  --danger-ink:    #B42318;

  /* Contextual ink (re-defined inside dark sections, see below) */
  --ink-heading:   var(--navy);
  --ink-body:      var(--gray-600);
  --ink-muted:     var(--gray-500);
  --label:         var(--accent);
  --focus:         var(--navy-lighter);

  /* Typography */
  --font:          'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif:    'EB Garamond', 'GFS Didot', Georgia, 'Times New Roman', serif;
  --text-xs:       0.75rem;
  --text-sm:       0.875rem;
  --text-base:     1rem;
  --text-lg:       1.125rem;
  --text-xl:       1.25rem;
  --text-2xl:      1.5rem;
  --text-3xl:      1.875rem;
  --text-4xl:      2.25rem;
  --text-5xl:      3rem;
  --text-6xl:      3.75rem;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --section-y: clamp(4rem, 2.6rem + 4.6vw, 6.5rem);
  --gutter:    1.5rem;

  /* Radii — a hierarchy, not one value for everything */
  --radius-sm:   8px;
  --radius:      12px;
  --radius-md:   16px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* Shadows — navy-tinted, layered */
  --shadow-xs:  0 1px 2px rgba(11, 31, 63, 0.06);
  --shadow-sm:  0 1px 2px rgba(11, 31, 63, 0.05), 0 4px 12px -2px rgba(11, 31, 63, 0.07);
  --shadow:     0 2px 4px rgba(11, 31, 63, 0.04), 0 10px 24px -6px rgba(11, 31, 63, 0.10);
  --shadow-md:  0 4px 8px rgba(11, 31, 63, 0.04), 0 18px 40px -10px rgba(11, 31, 63, 0.14);
  --shadow-lg:  0 8px 16px rgba(11, 31, 63, 0.05), 0 28px 60px -14px rgba(11, 31, 63, 0.20);
  --shadow-xl:  0 12px 24px rgba(11, 31, 63, 0.08), 0 40px 80px -20px rgba(11, 31, 63, 0.28);
  --shadow-accent: 0 8px 22px -8px rgba(168, 132, 47, 0.65);

  /* Motion */
  --ease:            cubic-bezier(0.2, 0.7, 0.2, 1);
  --transition-fast: 0.15s ease;
  --transition:      0.25s ease;
  --transition-slow: 0.4s ease;

  /* Z-index */
  --z-nav:     1000;
  --z-overlay: 1200;
  --z-modal:   2000;
  --z-toast:   3000;

  /* Layout */
  --nav-height: 68px;
  --nav-top:    0.75rem;
  --nav-clear:  calc(var(--nav-height) + var(--nav-top) + 1.25rem);
  --container:  1200px;
  --container-sm: 760px;
}

/* Dark surfaces re-point the contextual ink once; everything inside —
   including JS-generated markup — adapts automatically. */
.hero,
.page-hero,
.features-section,
.values-section,
.services-cta,
.footer,
.auth-left,
.dashboard-sidebar,
.admin-sidebar {
  --ink-heading: #FFFFFF;
  --ink-body:    rgba(255, 255, 255, 0.80);
  --ink-muted:   rgba(255, 255, 255, 0.64);
  --label:       var(--gold-light);
  --focus:       var(--gold-light);
}

/* Gold surface */
.cta-section {
  --ink-heading: var(--navy-dark);
  --ink-body:    #14284B;
  --ink-muted:   #1D3459;
  --label:       var(--navy);
  --focus:       var(--navy);
}

/* ── Reset & base ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-clear) + 0.5rem);
  overflow-x: hidden;
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: var(--font); font-size: 1rem; }
table { border-collapse: collapse; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold-light); color: var(--navy-dark); }

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-sm {
  width: 100%;
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink-heading);
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.35rem + 2.7vw, 3.5rem); line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.65rem, 1.25rem + 1.5vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem); letter-spacing: -0.015em; }
h4 { font-size: 1.1rem; letter-spacing: -0.01em; }
h5 { font-size: var(--text-lg); }

p {
  color: var(--ink-body);
  line-height: 1.75;
  text-wrap: pretty;
}

strong { font-weight: 600; }

/* Figures = the "ledger hand" (serif, lining + tabular) */
.figure,
.hero-stat-num,
.stat-value,
.card-amount,
.summary-amount,
.total-amount {
  font-family: var(--font-serif);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
  letter-spacing: -0.01em;
}

/* ── Section layout ─────────────────────────────────────────── */
.section    { padding: var(--section-y) 0; }
.section-sm { padding: calc(var(--section-y) * 0.65) 0; }

.section-header {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

/* Section label — a small lead-in marked with the double rule
   (replaces the old uppercase pill). */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--label);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 5px;
  flex: none;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.85;
}

.section-title {
  font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.6rem);
  color: var(--ink-heading);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--ink-muted);
  line-height: 1.7;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.98rem;
  font-weight: 600;
  font-family: var(--font);
  line-height: 1.2;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: background-color var(--transition), border-color var(--transition),
              color var(--transition), box-shadow var(--transition), translate var(--transition);
}

.btn:active { translate: 0 1px; }

.btn[disabled], .btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Primary — gold fill, navy text (6.9:1) */
.btn-primary {
  background: linear-gradient(180deg, #D4B158 0%, var(--gold) 100%);
  color: var(--navy-dark);
  border-color: rgba(138, 100, 20, 0.35);
  box-shadow: var(--shadow-accent), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #EBD595 0%, #DDBE6A 100%);
  border-color: rgba(138, 100, 20, 0.5);
  translate: 0 -1px;
  box-shadow: 0 12px 26px -10px rgba(168, 132, 47, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-primary:active { translate: 0 0; }

/* Secondary — quiet outline */
.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--gray-300);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  border-color: var(--navy);
  background: var(--white);
  translate: 0 -1px;
  box-shadow: var(--shadow-sm);
}

/* Secondary on dark surfaces */
.hero .btn-secondary,
.page-hero .btn-secondary,
.services-cta .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: none;
}

.hero .btn-secondary:hover,
.page-hero .btn-secondary:hover,
.services-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.7);
}

/* Secondary on the gold CTA band = solid navy */
.cta-section .btn-secondary {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
  box-shadow: 0 10px 24px -10px rgba(6, 15, 34, 0.7);
}

.cta-section .btn-secondary:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  translate: 0 -1px;
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
}

.btn-ghost:hover { background: var(--accent-bg); }

.btn-lg {
  min-height: 54px;
  padding: 0.9rem 2.1rem;
  font-size: 1.05rem;
}

.btn-sm {
  min-height: 38px;
  padding: 0.45rem 1.05rem;
  font-size: var(--text-sm);
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition), translate var(--transition);
}

.card:hover {
  translate: 0 -3px;
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 164, 76, 0.55);
}

.card-body { padding: var(--sp-6); }

/* ── Form elements ──────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--gray-900);
  background-color: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

/* Native <select> lost its arrow with appearance:none — restore one. */
select.form-select,
select.form-input,
select.client-dropdown {
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23475266' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 16px;
  cursor: pointer;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--gray-400); opacity: 1; }

.form-input:hover,
.form-textarea:hover,
.form-select:hover { border-color: var(--gray-400); }

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

.form-error {
  font-size: var(--text-sm);
  color: var(--danger-ink);
  display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-textarea,
.form-group.has-error .form-select {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-bg);
}

.form-group.has-error .form-error { display: block; }

/* ── Badge ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 11px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.badge-accent  { background: var(--accent-bg);  color: var(--gold-ink); }
.badge-success { background: var(--success-bg); color: var(--success-ink); }
.badge-warning { background: var(--warning-bg); color: var(--warning-ink); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger-ink); }
.badge-navy    { background: rgba(11, 31, 63, 0.08); color: var(--navy); }

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--gray-200);
  margin: var(--sp-8) 0;
}

/* ── Icon wrapper ───────────────────────────────────────────── */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.icon-box-accent { background: var(--accent-bg); color: var(--accent); }
.icon-box-navy   { background: rgba(11, 31, 63, 0.08); color: var(--navy); }
.icon-box-lg     { width: 68px; height: 68px; border-radius: var(--radius-lg); }

/* ── Grid layouts ───────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }

/* ── Flex utilities ─────────────────────────────────────────── */
.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4  { gap: var(--sp-4); }
.gap-6  { gap: var(--sp-6); }
.gap-8  { gap: var(--sp-8); }
.flex-1 { flex: 1; }

/* ── Text utilities ─────────────────────────────────────────── */
.text-center   { text-align: center; }
.text-accent   { color: var(--accent); }
.text-navy     { color: var(--navy); }
.text-gray     { color: var(--gray-500); }
.text-white    { color: var(--white); }
.font-bold     { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ── Reveal on scroll ───────────────────────────────────────── */
/* Animation-based (not transition-based) so it never fights the hover
   transitions or stagger delays of the elements it is applied to. */
.reveal { opacity: 0; }

.reveal.visible {
  opacity: 1;
  animation: reveal-in 0.65s var(--ease) backwards;
  animation-delay: var(--reveal-delay, 0s);
}

.reveal-delay-1 { --reveal-delay: 0.06s; }
.reveal-delay-2 { --reveal-delay: 0.12s; }
.reveal-delay-3 { --reveal-delay: 0.18s; }
.reveal-delay-4 { --reveal-delay: 0.24s; }
.reveal-delay-5 { --reveal-delay: 0.30s; }

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(12px); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; }
  .reveal.visible { animation: none; }
}

/* No-JS safety net: never leave content invisible */
@media (scripting: none) {
  .reveal { opacity: 1; }
}

/* ── Toast notifications ────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.9rem 1.2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--gold);
  pointer-events: all;
  animation: toastIn 0.35s var(--ease);
  min-width: min(320px, calc(100vw - 2rem));
}

.toast.toast-success { border-left-color: var(--success); }
.toast.toast-error   { border-left-color: var(--danger); }
.toast.toast-warning { border-left-color: var(--warning); }

.toast-icon { font-size: 20px; flex-shrink: 0; }

.toast-msg {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-800);
  flex: 1;
}

.toast.toast-out { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

@keyframes toastOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(8px); }
}

/* ── Page hero (inner pages) ────────────────────────────────── */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: left;
  color: var(--ink-body);
  background:
    radial-gradient(60rem 28rem at 100% -10%, rgba(201, 164, 76, 0.20), transparent 60%),
    radial-gradient(40rem 24rem at -5% 110%, rgba(31, 67, 130, 0.55), transparent 65%),
    linear-gradient(165deg, var(--navy-dark) 0%, var(--navy) 62%, #12295A 100%);
  padding: calc(var(--nav-clear) + clamp(1.5rem, 4vw, 3rem)) 0 clamp(3rem, 6vw, 4.5rem);
}

/* ledger ruling */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 47px, rgba(255, 255, 255, 0.05) 47px, rgba(255, 255, 255, 0.05) 48px);
  -webkit-mask-image: linear-gradient(100deg, transparent 5%, #000 70%);
          mask-image: linear-gradient(100deg, transparent 5%, #000 70%);
}

/* closing double rule */
.page-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  border-top: 1px solid rgba(201, 164, 76, 0.7);
  border-bottom: 1px solid rgba(201, 164, 76, 0.7);
}

.page-hero-content { position: relative; z-index: 1; }

.page-hero-title {
  color: #FFFFFF;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem);
  margin-bottom: 1rem;
}

.page-hero-subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  max-width: 40rem;
  line-height: 1.65;
}

/* contact page's extra intro paragraph (inline colour is white) */
.page-hero .hero-subtitle {
  max-width: 46rem;
  font-size: 1rem;
  line-height: 1.75;
  margin-top: 0;
}

/* ── CTA band (gold) ────────────────────────────────────────── */
.cta-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 4.75rem) 0;
  background: linear-gradient(120deg, #DCBE6E 0%, #C9A44C 48%, #B98F36 100%);
  color: var(--ink-body);
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, rgba(11, 31, 63, 0.07) 35px, rgba(11, 31, 63, 0.07) 36px);
}

.cta-section .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.cta-section h2 {
  grid-column: 1;
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem);
  margin-bottom: 0.65rem;
  max-width: 34rem;
}

.cta-section p {
  grid-column: 1;
  font-size: 1.08rem;
  max-width: 36rem;
}

.cta-section .btn {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

/* banner without a button (contact page): centre the statement so the band isn't half empty */
.cta-section .container:not(:has(.btn)) {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}

.cta-section .container:not(:has(.btn)) h2 { max-width: 46rem; text-wrap: balance; }
.cta-section .container:not(:has(.btn)) p  { max-width: 40rem; margin-inline: auto; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  position: relative;
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(3.5rem, 6vw, 5rem) 0 var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.35fr 1.15fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--sp-8);
}

/* Logo sits on a white plate so the navy globe is never lost on navy */
.footer-brand img {
  width: 184px !important;
  height: auto !important;
  max-height: none !important;
  padding: 0.7rem 1rem;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.6);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.64);
  font-size: var(--text-sm);
  line-height: 1.8;
  margin-top: var(--sp-5);
  max-width: 21rem;
}

.footer-col h4 {
  color: var(--gold-light);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: var(--sp-5);
}

.footer-col ul li { margin-bottom: 0.7rem; }

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-sm);
  line-height: 1.6;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }

.footer-logo { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.footer-logo-icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.footer-logo-text { font-weight: 700; font-size: var(--text-lg); color: var(--white); letter-spacing: -0.02em; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-bottom p { font-size: var(--text-sm); color: rgba(255, 255, 255, 0.56); }
.footer-bottom a { transition: color var(--transition-fast); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; --gutter: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .cta-section .container { grid-template-columns: 1fr; row-gap: 1.5rem; }
  .cta-section .btn { grid-column: 1; grid-row: auto; justify-self: start; }
}

@media (max-width: 480px) {
  .btn-lg { padding: 0.8rem 1.6rem; font-size: 1rem; }
  .card-body { padding: var(--sp-5); }
  .toast-container { left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); }
}
