/* ==========================================================================
   Jurisa Legal — energy transition & commercial law
   Design system & site styles
   Palette: Sapphire navy + gold (shared with the Jurisa brand)
   Type:    Fraunces (display serif) + Inter (UI/body)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Top-banner height. 0 while no site-wide announcement bar is in use;
     set this back to the bar's height and re-add the markup to bring one back. */
  --banner-h: 0px;
  /* Sapphire navy */
  --navy-900: #071B30;
  --navy-800: #0A2440;
  --navy-700: #0C2A48;
  --navy-600: #123B63;
  --navy-500: #1C5C7A;
  --navy-400: #3E7D97;

  /* Gold */
  --gold-600: #B0863A;
  --gold-500: #C9A24B;
  --gold-400: #D8B970;
  --gold-200: #E8DCBB;
  --gold-050: #F4ECD8;

  /* Sea / sapphire accent */
  --sea-500: #2E7D8A;
  --sea-300: #7FC7D9;

  /* Neutrals */
  --ink: #13202E;
  --slate-800: #24313F;
  --slate-700: #33465A;
  --slate-600: #4C5E70;
  --slate-500: #6A7B8C;
  --slate-400: #98A6B4;
  --slate-300: #C6D0D9;
  --line: #E7E4DC;
  --line-soft: #F0EDE5;
  --paper: #F7F5EF;
  --paper-2: #FBFAF5;
  --white: #FFFFFF;

  /* Semantic */
  --bg: var(--paper);
  --text: var(--slate-700);
  --heading: var(--navy-800);

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Type scale — every fixed font-size routes through one of these steps so
     sibling elements can't drift a hair apart. Fluid headings (display/h1–h3,
     lead, stat number) stay on their own clamp() rules below. */
  --fs-3xs: 0.78rem;  /* eyebrows, tags */
  --fs-2xs: 0.85rem;  /* meta, captions, small labels */
  --fs-xs:  0.9rem;   /* small UI text, form labels, small buttons */
  --fs-sm:  0.96rem;  /* small body copy, nav & footer links, buttons */
  --fs-md:  1rem;     /* form inputs, base UI text */
  --fs-lg:  1.05rem;  /* emphasised inline, small numerals */
  --fs-xl:  1.15rem;  /* small headings, panel titles, FAQ, pull quotes */
  --fs-2xl: 1.25rem;  /* card & step titles */
  --fs-3xl: 1.35rem;  /* compact section sub-headings */
  --fs-4xl: 1.5rem;   /* larger sub-headings */
  --fs-5xl: 1.7rem;   /* prose h2 */

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(10, 36, 64, 0.06);
  --shadow-sm: 0 4px 14px rgba(10, 36, 64, 0.07);
  --shadow-md: 0 18px 40px -18px rgba(10, 36, 64, 0.22);
  --shadow-lg: 0 40px 80px -30px rgba(7, 27, 48, 0.35);

  /* Layout */
  --container: 1200px;
  --container-narrow: 780px;
  --gutter: clamp(20px, 5vw, 48px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--gold-600); }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.display {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: var(--fs-xl); }

.lead {
  font-size: clamp(1.12rem, 1.6vw, 1.32rem);
  line-height: 1.6;
  color: var(--slate-600);
}

strong { color: var(--slate-800); font-weight: 600; }
em { font-style: italic; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: var(--container-narrow); }
.container.mid { max-width: 960px; }

.section { padding-block: clamp(64px, 9vw, 120px); }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: var(--fs-3xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--gold-500);
  display: inline-block;
}

.muted { color: var(--slate-500); }

/* Font-size utilities — reuse the scale for one-off headings/text in markup
   instead of inline font-size values. */
.fs-xs  { font-size: var(--fs-xs); }
.fs-2xl { font-size: var(--fs-2xl); }
.fs-3xl { font-size: var(--fs-3xl); }
.fs-4xl { font-size: var(--fs-4xl); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn svg { width: 18px; height: 18px; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary { --btn-bg: linear-gradient(135deg, var(--gold-400), var(--gold-600)); --btn-fg: var(--navy-900); box-shadow: 0 10px 26px -10px rgba(176, 134, 58, 0.7); }
.btn--primary:hover { box-shadow: 0 16px 34px -12px rgba(176, 134, 58, 0.85); }

.btn--dark { --btn-bg: var(--navy-800); --btn-fg: #fff; }
.btn--dark:hover { --btn-bg: var(--navy-700); box-shadow: var(--shadow-md); }


.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-800); border-color: var(--line); box-shadow: var(--shadow-xs); }
.btn--light:hover { border-color: var(--gold-400); color: var(--navy-800); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy-700); border-color: rgba(12, 42, 72, 0.22); }
.btn--ghost:hover { --btn-bg: rgba(12, 42, 72, 0.04); border-color: var(--navy-600); color: var(--navy-700); }

.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,0.32); }
.btn--ghost-light:hover { --btn-bg: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.6); }

.btn--sm { padding: 11px 18px; font-size: var(--fs-xs); }
.btn--lg { padding: 17px 32px; font-size: var(--fs-lg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--navy-700);
}
.textlink svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.textlink:hover { color: var(--gold-600); }
.textlink:hover svg { transform: translateX(4px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: var(--banner-h); z-index: 100;
  background: rgba(247, 245, 239, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled { background: rgba(247, 245, 239, 0.94); border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(10,36,64,0.4); }
.nav { display: flex; align-items: center; gap: 28px; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy-800); }
.brand:hover { color: var(--navy-800); }
.brand__mark { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 6px 12px rgba(10,36,64,0.18)); }
.brand__word { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1; }
.brand__word b { color: var(--gold-600); font-weight: 600; }

/* The wordmark is a two-line lockup: "Jurisa" over a letter-spaced "LEGAL".
   The sub-line is optically centred under the word by trimming the last
   letter's trailing tracking. */
.brand__stack { display: flex; flex-direction: column; gap: 5px; }
.brand__sub {
  font-family: var(--font-sans);
  font-size: 0.66rem; font-weight: 700; line-height: 1;
  letter-spacing: 0.44em; text-indent: 0.44em;
  text-transform: uppercase; text-align: center;
  color: var(--gold-600);
}
.footer-brand .brand__sub { color: var(--gold-400); }

.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-menu a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  color: var(--slate-700);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-menu a:hover { color: var(--navy-800); background: rgba(12,42,72,0.05); }
.nav-menu a.active { color: var(--navy-800); }
.nav-menu a.active::after {
  content: ""; display: block; height: 2px; width: 18px; margin: 3px auto 0;
  background: var(--gold-500); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--navy-800);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-open { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  color: #E7EEF5;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 12%, rgba(28, 92, 122, 0.55), transparent 60%),
    radial-gradient(45% 45% at 12% 90%, rgba(201, 162, 75, 0.14), transparent 60%);
}
.hero__facets { position: absolute; inset: 0; z-index: -1; opacity: 0.5; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-weight: 500; }
.hero .lead { color: #B9C9D6; }
.hero .eyebrow { color: var(--gold-400); }
.hero .eyebrow::before { background: var(--gold-400); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-2xs); font-weight: 500; color: #CBD8E3;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 14px; border-radius: var(--r-pill);
}
.badge svg { width: 15px; height: 15px; color: var(--gold-400); }

/* ---------- Interior page hero ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: #E7EEF5; position: relative; overflow: hidden; isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 60% at 88% 0%, rgba(28,92,122,0.5), transparent 60%);
}
.page-hero__inner { padding-block: clamp(56px, 8vw, 104px); max-width: 820px; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #B9C9D6; }
.page-hero .eyebrow { color: var(--gold-400); }
.page-hero .eyebrow::before { background: var(--gold-400); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--fs-2xs); color: #90A6B7; margin-bottom: 22px; }
.breadcrumb a { color: #A9BBC9; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: 0.5; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-200); }
.card h3 { font-size: var(--fs-2xl); margin-bottom: 10px; }
.card p { color: var(--slate-600); font-size: var(--fs-sm); }

.icon-badge {
  width: 54px; height: 54px; border-radius: 15px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-800));
  color: var(--gold-400);
  box-shadow: inset 0 0 0 1px rgba(201,162,75,0.2);
}
.icon-badge svg { width: 26px; height: 26px; }


/* Service card with top rule */
.card--service { position: relative; overflow: hidden; }
.card--service::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.card--service:hover::before { transform: scaleX(1); }

/* Checklist */
.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; color: var(--slate-700); }
.checklist li svg { width: 22px; height: 22px; flex: none; color: var(--gold-600); margin-top: 1px; }
.checklist.light li { color: #C9D6E1; }
.checklist.light li svg { color: var(--gold-400); }

/* ---------- Split media/text ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split > * { min-width: 0; }
.grid > * { min-width: 0; }
.split--media-right .split__media { order: 2; }
.split__media { position: relative; }

.feature-panel {
  border-radius: var(--r-lg);
  padding: 34px;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: #DCE6EF;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden; isolation: isolate;
}
.feature-panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 50% at 80% 10%, rgba(28,92,122,0.5), transparent 60%);
}
.feature-panel h3 { color: #fff; }
.feature-panel .textlink { color: #fff; }
.feature-panel .textlink:hover { color: var(--gold-400); }
.feature-panel .muted { color: #C9D6E1; }

/* ---------- Accordion / FAQ ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%; text-align: left; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; font-size: var(--fs-xl); font-weight: 600; color: var(--navy-800);
  font-family: var(--font-display);
}
.acc-trigger .plus { position: relative; width: 20px; height: 20px; flex: none; }
.acc-trigger .plus::before, .acc-trigger .plus::after {
  content: ""; position: absolute; background: var(--gold-600); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.acc-trigger .plus::before { top: 9px; left: 0; width: 20px; height: 2px; }
.acc-trigger .plus::after { top: 0; left: 9px; width: 2px; height: 20px; }
.acc-item.open .plus::after { transform: rotate(90deg); opacity: 0; }
.acc-body { overflow: hidden; height: 0; transition: height 0.35s var(--ease); }
.acc-body-inner { padding: 0 4px 26px; color: var(--slate-600); max-width: 760px; }

/* ---------- Bands / backgrounds ---------- */
.bg-paper2 { background: var(--paper-2); }
.bg-white { background: #fff; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  color: #E7EEF5;
  box-shadow: var(--shadow-lg);
}
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 85% 10%, rgba(28,92,122,0.55), transparent 60%), radial-gradient(40% 60% at 10% 100%, rgba(201,162,75,0.16), transparent 60%); }
.cta h2 { color: #fff; }
.cta .lead { color: #B9C9D6; }
.cta__facet { position: absolute; right: -40px; top: -40px; width: 260px; height: 260px; opacity: 0.25; z-index: -1; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--slate-700); margin-bottom: 7px; }
.field label .req { color: var(--gold-600); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: var(--fs-md); color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper-2); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-400); background: #fff;
  box-shadow: 0 0 0 4px rgba(201,162,75,0.15);
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate-400); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-note { font-size: var(--fs-2xs); color: var(--slate-500); margin-top: 6px; }
.form-success { display: none; padding: 16px 18px; border-radius: var(--r-sm); background: var(--gold-050); border: 1px solid var(--gold-200); color: var(--slate-800); font-weight: 500; margin-bottom: 20px; }
.form-success.show { display: block; }

/* ---------- Misc ---------- */

.callout { border-left: 3px solid var(--gold-500); background: var(--paper-2); padding: 20px 24px; border-radius: 0 var(--r-md) var(--r-md) 0; }


.mini-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-050); color: var(--gold-600); flex: none; box-shadow: inset 0 0 0 1px var(--gold-200); }
.mini-ico svg { width: 20px; height: 20px; }


/* Prose (article body) */
.prose { max-width: 720px; }
.prose > * { margin-bottom: 1.4em; }
.prose h2 { font-size: var(--fs-5xl); margin-top: 1.6em; }
.prose h3 { font-size: var(--fs-3xl); margin-top: 1.3em; }
.prose ul { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; color: var(--slate-700); }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--gold-500); }
.prose blockquote { margin: 0; padding: 18px 26px; border-left: 3px solid var(--gold-500); background: var(--paper-2); font-family: var(--font-display); font-size: var(--fs-2xl); color: var(--slate-800); border-radius: 0 var(--r-md) var(--r-md) 0; }
.prose h2[id], .prose h3[id] { scroll-margin-top: calc(96px + var(--banner-h)); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9FB2C4; padding-block: clamp(56px, 7vw, 84px) 34px; position: relative; overflow: hidden; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 88% 0%, rgba(28,92,122,0.35), transparent 55%); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.footer-brand .brand__word { color: #fff; }
.footer-brand p { color: #93A7B9; max-width: 320px; margin-top: 18px; font-size: var(--fs-sm); }
.footer-col h4 { color: #fff; font-family: var(--font-sans); font-size: var(--fs-2xs); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: #9FB2C4; font-size: var(--fs-sm); }
.footer-col a:hover { color: var(--gold-400); }
/* Buttons keep their own foreground; the link colours above would otherwise win on specificity. */
.footer-col a.btn, .footer-col a.btn:hover { color: var(--btn-fg); }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; font-size: var(--fs-sm); color: #9FB2C4; margin-bottom: 12px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold-400); flex: none; margin-top: 2px; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); color: #C9D6E1; }
.footer-social a:hover { background: rgba(201,162,75,0.16); color: var(--gold-400); border-color: rgba(201,162,75,0.35); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: clamp(40px, 5vw, 60px); padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.10); font-size: var(--fs-2xs); color: #7E93A6; }
.footer-bottom a { color: #93A7B9; }
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 20px; }
/* The notes sit on their own row under the links. max-width has to go on the
   paragraphs, not the flex item: a max-width on the item itself caps its
   hypothetical main size and lets it share the row above. */
.footer-notes { flex: 0 0 100%; width: 100%; display: grid; gap: 10px; margin-top: 4px; }
.footer-notes p { margin: 0; max-width: 80ch; color: #6F8497; line-height: 1.6; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none !important; }
}

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy-800); color: #fff; padding: 10px 18px; border-radius: var(--r-sm); transition: top 0.2s var(--ease); }
.skip-link:focus { top: 16px; color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1040px) {
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--media-right .split__media { order: 0; }

  /* Footer links are 19px tall — too small to hit reliably with a thumb.
     Pad to ~40px, tightening the list gap so the column height barely moves. */
  .footer-col ul { gap: 2px; }
  .footer-col li a:not(.btn) { display: inline-block; padding-block: 10px; }

  /* Mobile nav */
  .nav-menu, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  /* .nav-menu carried the margin-left:auto on desktop but is hidden here,
     so push the hamburger to the right edge via its container instead. */
  .nav-actions { margin-left: auto; }
  .nav { height: 66px; }
  .mobile-menu {
    position: fixed; inset: calc(66px + var(--banner-h)) 0 0; z-index: 99;
    background: var(--paper);
    transform: translateX(100%); transition: transform 0.35s var(--ease);
    padding: 24px var(--gutter) 40px; overflow-y: auto;
    display: flex; flex-direction: column;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .mobile-menu { transform: none; }
  .mobile-menu a.m-link { display: block; padding: 16px 4px; font-size: var(--fs-2xl); font-family: var(--font-display); color: var(--navy-800); border-bottom: 1px solid var(--line); }
  .mobile-menu a.m-link:hover { color: var(--gold-600); }
  .mobile-menu .btn { margin-top: 26px; width: 100%; }
}
@media (min-width: 901px) { .mobile-menu { display: none; } }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; }
  .hero .btn-row .btn, .cta .btn-row .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}


/* ==========================================================================
   Jurisa Legal components
   ========================================================================== */

/* ---------- Single column hero ---------- */
.hero-single { max-width: 820px; padding-block: clamp(80px, 13vw, 150px); }

/* ---------- Editorial split: heading column aligns to the top ----------
   The default .split centres its columns, which strands a short heading in
   the middle of a tall column of body copy. */
.split--top { align-items: start; }

/* A short heading beside a column of body copy does not need half the width;
   narrowing the heading column keeps the text block from stranding. */
.split--brief { grid-template-columns: 0.72fr 1.28fr; }
@media (max-width: 900px) { .split--brief { grid-template-columns: 1fr; } }

/* ---------- Legal notice pages: hero meta line ---------- */
.notice-meta { margin-top: 20px; font-size: var(--fs-sm); color: #B9C9D6; }
.notice-meta a { color: var(--gold-400); }

/* ---------- Slim footer: three columns, brand column widest ---------- */
.footer-grid--slim { grid-template-columns: 1.7fr 1fr 1.2fr; }
@media (max-width: 1040px) { .footer-grid--slim { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .footer-grid--slim { grid-template-columns: 1fr; } }

/* ---------- Section anchors clear the sticky header ---------- */
[id] { scroll-margin-top: calc(96px + var(--banner-h)); }

/* ---------- Placeholder flag (development aid) ----------
   Marks copy that must be replaced before go live. Add class="is-placeholder"
   and the note renders in the page for review; delete the class once real
   content is in. */
.is-placeholder {
  display: block; margin-top: 10px; padding: 8px 12px;
  font-family: var(--font-sans); font-size: var(--fs-3xs); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-600); background: var(--gold-050);
  border: 1px dashed var(--gold-400); border-radius: var(--r-sm);
}


/* ==========================================================================
   Sole practitioner components
   ========================================================================== */

/* ---------- Practice area grid ----------
   Eleven areas set out in full on the home page. Two columns on desktop so
   the whole list stays scannable without becoming a wall of prose; grid rows
   equalise card heights automatically. */
.pa-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.2vw, 26px);
}
.pa {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-xs);
  scroll-margin-top: calc(100px + var(--banner-h));
}
.pa__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.pa__head .icon-badge { margin-bottom: 0; width: 46px; height: 46px; border-radius: 13px; }
.pa__head .icon-badge svg { width: 22px; height: 22px; }
.pa h3 { font-size: var(--fs-3xl); margin: 0; }
.pa__summary {
  font-family: var(--font-display); font-size: var(--fs-xl);
  color: var(--gold-600); line-height: 1.4; margin-bottom: 0.9em;
}
.pa p { color: var(--slate-600); font-size: var(--fs-sm); }
.pa__label {
  font-family: var(--font-sans); font-size: var(--fs-3xs); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy-800);
  margin: 22px 0 14px;
}
.pa .checklist li { font-size: var(--fs-sm); }
@media (max-width: 900px) { .pa-grid { grid-template-columns: 1fr; } }

/* ---------- Tag ---------- */
.tag {
  display: inline-flex; align-items: center;
  font-size: var(--fs-3xs); font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--navy-600);
  background: var(--gold-050); border: 1px solid var(--gold-200);
  padding: 5px 12px; border-radius: var(--r-pill);
}

/* ---------- Article cards ---------- */
.article-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}
@media (max-width: 1000px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .article-grid { grid-template-columns: 1fr; } }

.article-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-xs);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold-200); }
.article-card__thumb { display: block; aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.article-card__thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.article-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.article-card__meta {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  font-size: var(--fs-2xs); color: var(--slate-500); margin-bottom: 14px;
}
.article-card h3 { font-size: var(--fs-2xl); margin-bottom: 10px; }
.article-card h3 a { color: var(--navy-800); }
.article-card h3 a:hover { color: var(--gold-600); }
.article-card p { color: var(--slate-600); font-size: var(--fs-sm); }
.card-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px;
  font-weight: 600; color: var(--navy-700); font-size: var(--fs-sm);
}
.card-link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.article-card:hover .card-link { color: var(--gold-600); }
.article-card:hover .card-link svg { transform: translateX(4px); }

/* ---------- Source list (end of an article) ---------- */
.source-list li { padding-left: 0; }
.source-list li::before { display: none; }
.prose .source-list { gap: 8px; font-size: var(--fs-sm); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.contact-grid--stack { grid-template-columns: 1fr; gap: 20px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .mini-ico { flex: none; }
.contact-item h3 {
  font-family: var(--font-sans); font-size: var(--fs-3xs); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-800);
  margin: 4px 0 6px;
}
.contact-item p { margin: 0; color: var(--slate-600); font-size: var(--fs-sm); }
.contact-item a { font-weight: 500; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Client list ---------- */
.client-list { display: grid; gap: 4px; }
.client-list li {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 4px; border-top: 1px solid var(--line);
  color: var(--slate-700); font-weight: 500;
}
.client-list li:first-child { border-top: none; }
.client-list .mini-ico { flex: none; }
