/* =============================================================
   base.css — shared tokens, reset, nav, buttons, footer
   insuranceandmortgages.uk · Supreme Financial Solutions Ltd
   ============================================================= */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --navy:        #0b1f3a;
  --navy-2:      #122645;
  --navy-3:      #1a2f52;
  --gold:        #c9a44e;
  --gold-light:  #e0bb72;
  --gold-soft:   rgba(201,164,78,.12);
  --cream:       #f5f0e8;
  --cream-2:     #faf6ef;
  --white:       #ffffff;
  --ink:         #0b1f3a;
  --ink-2:       #263653;
  --ink-3:       #52617d;
  --muted:       #667392;
  --line:        rgba(11,31,58,.10);
  --line-2:      rgba(11,31,58,.06);
  --shadow-sm:   0 6px 18px rgba(11,31,58,.06);
  --shadow:      0 18px 55px rgba(11,31,58,.10);
  --shadow-lg:   0 24px 70px rgba(11,31,58,.14);
  --radius:      14px;
  --radius-lg:   20px;
  --font-display:'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:   'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --max-w:       1180px;
  --nav-h:       88px;
}

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.container-wide {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--navy);
  padding: 12px 18px; font-weight: 800;
  border-radius: 0 0 8px 0; z-index: 1000;
}
.skip:focus { left: 0; }

/* ---------- NAV (shared) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  background: rgba(11,31,58,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,164,78,.14);
}
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; flex-direction: column; line-height: 1.05;
}
.brand strong {
  font-family: var(--font-display);
  font-size: 1.35rem; color: var(--white);
  font-weight: 600; letter-spacing: .01em;
}
.brand span {
  margin-top: 6px; color: var(--gold);
  font-size: .7rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
}
/* mobile-only forced line break in the brand subtitle (hidden on desktop) */
.brand-nl { display: none; }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,.78);
  font-size: .86rem; font-weight: 700; letter-spacing: .02em;
  padding: 8px 2px;
  border-bottom: 1px solid transparent;
  transition: .18s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
  border-bottom-color: var(--gold);
}
.nav-cta {
  background: var(--gold); color: var(--navy);
  padding: 12px 20px; border-radius: 6px;
  font-weight: 900; font-size: .78rem;
  letter-spacing: .06em; text-transform: uppercase;
  transition: .18s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* lang toggle */
.lang-toggle {
  display: flex; align-items: center;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 6px; overflow: hidden;
}
.lang-toggle button {
  padding: 7px 12px;
  font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  color: rgba(255,255,255,.62); background: transparent;
  transition: .16s ease;
}
.lang-toggle button[aria-pressed="true"] { background: var(--gold); color: var(--navy); }
.lang-toggle button:hover:not([aria-pressed="true"]) { color: var(--white); }

/* hamburger */
.hamburger {
  display: none;
  width: 44px; height: 44px; border-radius: 6px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  border: 1px solid rgba(255,255,255,.22);
}
.hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: .2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(11,31,58,.99);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,164,78,.18);
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: .22s ease; z-index: 79;
}
.mobile-menu[data-open="true"] {
  transform: translateY(0); opacity: 1; pointer-events: auto;
}
.mobile-menu .container { padding-top: 20px; padding-bottom: 28px; }
.mobile-menu a {
  display: block; padding: 14px 0;
  color: rgba(255,255,255,.86);
  font-weight: 700; font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu .nav-cta { display: inline-block; margin-top: 14px; }

/* ---------- BUTTONS (shared) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px; border-radius: 6px;
  font-weight: 900; font-size: .82rem;
  letter-spacing: .06em; text-transform: uppercase;
  transition: .18s ease; border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold); color: var(--navy);
  box-shadow: 0 10px 28px rgba(201,164,78,.22);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(201,164,78,.30);
}
.btn-outline {
  border-color: rgba(255,255,255,.28); color: var(--white);
}
.btn-outline:hover {
  border-color: var(--gold); color: var(--gold-light);
  transform: translateY(-2px);
}
.btn-ghost {
  border-color: rgba(11,31,58,.16);
  color: var(--navy); background: var(--white);
}
.btn-ghost:hover {
  border-color: var(--gold); color: var(--gold);
  transform: translateY(-2px);
}
/* full-width buttons may wrap their label instead of forcing horizontal overflow
   (long PL labels could otherwise overflow the contact column) */
.btn-block { width: 100%; white-space: normal; }

/* ---------- SECTION UTILS (shared) ---------- */
.section { padding: 104px 0; }
.section-cream { background: var(--cream-2); border-bottom: 1px solid var(--line-2); }
.section-white { background: var(--white); border-bottom: 1px solid var(--line-2); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy .section-title { color: var(--white); }
.section-navy .section-sub { color: rgba(255,255,255,.72); }

.section-header { max-width: 790px; margin: 0 auto 56px; text-align: center; }
.accent {
  display: block; width: 54px; height: 3px;
  background: var(--gold); border-radius: 999px;
  margin: 0 auto 22px;
}
.kicker {
  display: block; color: var(--gold);
  font-size: .74rem; font-weight: 900;
  letter-spacing: .22em; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem,4vw,3.45rem);
  line-height: 1.08; margin: 0;
  color: var(--navy); font-weight: 600; letter-spacing: -.01em;
}
.section-sub {
  margin: 20px auto 0; color: var(--ink-3);
  font-size: 1.02rem; max-width: 720px; line-height: 1.72;
}

/* ---------- RESPONSIVE (shared breakpoints) ---------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 640px) {
  :root { --nav-h: 78px; }
  html { scroll-padding-top: 92px; }
  .container,
  .container-wide { padding: 0 20px; }
  .nav-inner { height: var(--nav-h); gap: 12px; }
  .brand strong { font-size: 1.02rem; }
  .brand span { font-size: .62rem; }
  .brand-nl { display: inline; }
  /* tighten the bar so the one-line name + hamburger all fit without overflow */
  .nav-right { gap: 8px; }
  .lang-toggle button { padding: 7px 9px; }
  .hamburger { width: 42px; height: 42px; }
  /* CONTACT is redundant on mobile — full nav (incl. Kontakt) lives in the hamburger menu */
  .nav-right > .nav-cta { display: none; }
  .section { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
