/* ============================================================
   Grabiner & Co Solicitors — Main Stylesheet
   Colours preserved from original UI design
   ============================================================ */

/* -----------------------------------------------------------
   1. Design Tokens
   ----------------------------------------------------------- */
:root {
  /* Brand Colours */
  --background:   #FFFFFF;
  --foreground:   #263238;
  --primary:      #FFC107;
  --primary-fg:   #263238;
  --primary-text: #A16700;
  --secondary:    #008080;
  --secondary-fg: #FFFFFF;
  --secondary-text:#008080;
  --tertiary:     #333333;
  --tertiary-fg:  #FFFFFF;
  --tertiary-text:#333333;
  --muted:        #F1F5F9;
  --muted-fg:     #52616B;
  --accent:       #E6F4F4;
  --accent-fg:    #263238;
  --accent-text:  #697676;
  --card:         #F8FAFC;
  --card-fg:      #263238;
  --destructive:  #B42318;
  --border:       #D9E2E7;
  --input-border: #D9E2E7;
  --ring:         #008080;

  /* Typography */
  --font-sans:    "Inter", system-ui, sans-serif;
  --font-heading: "Merriweather", Georgia, serif;
  --font-mono:    "JetBrains Mono", monospace;

  /* Spacing & Shape */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;
  --max-w: 80rem;       /* 1280px */
  --max-w-content: 64rem; /* 1024px */

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 16px -4px rgba(15,23,42,.12), 0 2px 6px -2px rgba(15,23,42,.08);
  --shadow-lg: 0 10px 30px -8px rgba(15,23,42,.14), 0 4px 12px -4px rgba(15,23,42,.10);

  /* Transitions */
  --transition: 150ms cubic-bezier(.4,0,.2,1);
  --transition-md: 250ms cubic-bezier(.4,0,.2,1);
}

/* -----------------------------------------------------------
   2. CSS Reset & Base
   ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea, button { font: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  font-weight: 700;
  color: var(--foreground);
}

/* -----------------------------------------------------------
   3. Layout Utilities
   ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 1024px) {
  .container { padding-inline: 2.5rem; }
}

.section { padding-block: 4rem; }
@media (min-width: 1024px) { .section { padding-block: 6rem; } }

.section-sm { padding-block: 2.5rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* Grid helpers */
.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.5rem; }
.grid-4 { display: grid; gap: 1.5rem; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* -----------------------------------------------------------
   4. Header & Navigation
   ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-lg);
  background: var(--secondary);
  color: var(--secondary-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.logo:hover .logo-mark { transform: scale(1.05); }

.logo-text { line-height: 1.25; }
.logo-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
}
.logo-sub {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

/* Primary nav */
.primary-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}
@media (min-width: 1024px) { .primary-nav { display: flex; } }

.primary-nav a {
  color: var(--foreground);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--secondary);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-md);
}
.primary-nav a:hover,
.primary-nav a.active { color: var(--secondary); }
.primary-nav a.active::after,
.primary-nav a:hover::after { transform: scaleX(1); }

/* Header CTA — hide on very small screens, show from 640 px */
.header-cta {
  display: none;
}
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

/* Mobile menu button — visible below 1024 px, hidden above */
.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  color: var(--foreground);
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.menu-btn:hover  { background: var(--muted); }
.menu-btn:active { background: var(--border); }
@media (min-width: 1024px) { .menu-btn { display: none; } }

/* Prevent header from being cramped on very small phones (< 380 px) */
@media (max-width: 379px) {
  .logo-text   { display: none; }      /* hide text, keep the G mark */
  .header-cta  { display: none !important; }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--background);
  /* shadow so it floats above page content */
  box-shadow: 0 8px 24px -4px rgba(15,23,42,.12);
}
.mobile-nav.open { display: flex; }

/* Slide-down animation only plays when drawer opens */
.mobile-nav.open { animation: slideDown 200ms ease-out; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Every direct <a> inside the drawer gets a bottom border */
.mobile-nav > a {
  padding: 0.875rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
  display: block;
}
.mobile-nav > a:hover,
.mobile-nav > a.active { color: var(--secondary); }

/* The CTA button at the bottom of the drawer — no underline border */
.mobile-nav .btn {
  border-bottom: none;
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}

/* -----------------------------------------------------------
   5. Buttons
   ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  min-height: 2.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); background: #e6ac00; }

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-fg);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { box-shadow: var(--shadow-md); background: #006b6b; }

.btn-outline {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}
.btn-outline:hover { background: var(--accent); }

.btn-outline-light {
  background: transparent;
  color: var(--secondary-fg);
  border-color: rgba(255,255,255,.5);
}
.btn-outline-light:hover { background: rgba(255,255,255,.1); }

.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--muted); }

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  min-height: 3.25rem;
}

/* -----------------------------------------------------------
   6. Cards
   ----------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-md), transform var(--transition-md);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card-body { padding: 1.75rem; }

.icon-wrap {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-wrap-accent {
  background: var(--accent);
  color: var(--secondary);
}
.icon-wrap-primary {
  background: var(--primary);
  color: var(--primary-fg);
}
.icon-wrap-secondary {
  background: var(--secondary);
  color: var(--secondary-fg);
}

/* -----------------------------------------------------------
   7. Forms
   ----------------------------------------------------------- */
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}
.form-control {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-md);
  background: var(--background);
  color: var(--foreground);
  font-size: 0.9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control::placeholder { color: var(--muted-fg); }
.form-control:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(0,128,128,.15);
}

select.form-control { cursor: pointer; appearance: auto; }
textarea.form-control { resize: vertical; min-height: 7rem; padding-top: 0.75rem; }

.form-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--muted-fg);
}
.form-check input[type="checkbox"] {
  margin-top: 3px;
  width: 1rem;
  height: 1rem;
  accent-color: var(--secondary);
  flex-shrink: 0;
}

/* -----------------------------------------------------------
   8. Hero Section
   ----------------------------------------------------------- */
.hero {
  background: var(--background);
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-full);
  background: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}
.hero-badge iconify-icon { color: var(--secondary); }

.hero h1 { text-wrap: balance; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
}
.hero-trust span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-trust iconify-icon { color: var(--secondary); }

.hero-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

.hero-float-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 1.25rem 1.5rem;
  max-width: 22rem;
  margin-top: 1rem;
}
@media (min-width: 1024px) {
  .hero-float-card {
    position: absolute;
    bottom: -1.75rem;
    left: -1.75rem;
    margin-top: 0;
  }
}

/* -----------------------------------------------------------
   9. Sections & Banners
   ----------------------------------------------------------- */

/* Value strip */
.value-strip {
  background: var(--secondary);
  color: var(--secondary-fg);
}
.value-strip-inner {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 640px) {
  .value-strip-inner { grid-template-columns: repeat(3, 1fr); }
}
.value-strip-item + .value-strip-item {
  border-top: 1px solid rgba(255,255,255,.2);
}
@media (min-width: 640px) {
  .value-strip-item + .value-strip-item {
    border-top: none;
    border-left: 1px solid rgba(255,255,255,.2);
  }
}

/* Section labels */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
}
.section-label-muted { color: var(--muted-fg); }
.section-label-light { color: rgba(255,255,255,.85); }

/* Dividers */
.section-divider {
  height: 1px;
  background: var(--border);
  border: none;
}

/* Process steps */
.process-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

/* CTA band */
.cta-band {
  background: var(--secondary);
  color: var(--secondary-fg);
}
.cta-band-dark {
  background: var(--tertiary);
  color: var(--tertiary-fg);
}
.cta-band-accent {
  background: var(--accent);
  color: var(--accent-fg);
}
.cta-band-muted {
  background: var(--muted);
  color: var(--foreground);
}

/* -----------------------------------------------------------
   10. Team Cards
   ----------------------------------------------------------- */
.team-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-md), transform var(--transition-md);
}
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.team-card img { width: 100%; height: 14rem; object-fit: cover; }
.team-card-body { padding: 1.25rem; }
.team-card-name { font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 700; }
.team-card-role { font-size: 0.8125rem; font-weight: 600; color: var(--secondary); margin-top: 0.25rem; }
.team-card-area { font-size: 0.8125rem; color: var(--muted-fg); margin-top: 0.625rem; line-height: 1.5; }

/* -----------------------------------------------------------
   11. Testimonials
   ----------------------------------------------------------- */
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.star-row { display: flex; gap: 0.25rem; color: var(--primary); font-size: 1rem; }
.testimonial-quote {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--foreground);
  margin-top: 1.25rem;
  flex: 1;
}
.testimonial-author { margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.testimonial-name { font-weight: 700; font-size: 0.875rem; }
.testimonial-loc { font-size: 0.8125rem; color: var(--muted-fg); }

/* -----------------------------------------------------------
   12. FAQ Accordion
   ----------------------------------------------------------- */
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-item + .faq-item { margin-top: 0.75rem; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--foreground);
  background: transparent;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--muted); }
.faq-question iconify-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--secondary);
  transition: transform var(--transition-md);
}
.faq-item.open .faq-question iconify-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.5rem;
  color: var(--muted-fg);
  line-height: 1.75;
  font-size: 0.9375rem;
}
.faq-item.open .faq-answer { display: block; animation: fadeIn 180ms ease; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* -----------------------------------------------------------
   13. Policy / Legal pages
   ----------------------------------------------------------- */
.policy-aside {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.policy-aside-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--foreground);
}
.policy-aside nav { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.625rem; }
.policy-aside nav a {
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color var(--transition);
}
.policy-aside nav a:hover { color: var(--secondary); }

.policy-article { line-height: 1.8; color: var(--muted-fg); }
.policy-article h2 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 0;
}
.policy-article p + p { margin-top: 1rem; }
.policy-article section { display: flex; flex-direction: column; gap: 1rem; }

.policy-callout {
  background: var(--card);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  color: var(--foreground);
  font-size: 0.9375rem;
}

/* -----------------------------------------------------------
   14. Practice Area pages
   ----------------------------------------------------------- */
.practice-hero { background: var(--accent); border-bottom: 1px solid var(--border); }
.practice-hero-teal { background: var(--secondary); color: var(--secondary-fg); }

.process-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.process-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.process-step-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-heading);
}

/* -----------------------------------------------------------
   15. Back link
   ----------------------------------------------------------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  transition: color var(--transition);
}
.back-link:hover { color: var(--secondary); }

/* -----------------------------------------------------------
   16. Footer
   ----------------------------------------------------------- */
.site-footer {
  background: var(--tertiary);
  color: var(--tertiary-fg);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.footer-logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--primary);
  color: var(--primary-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  flex-shrink: 0;
}
.footer-logo-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
}
.footer-logo-sub {
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}
.footer-tagline { font-size: 0.875rem; line-height: 1.7; opacity: 0.8; max-width: 28rem; }

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--tertiary-fg);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col a {
  font-size: 0.875rem;
  opacity: 0.8;
  transition: opacity var(--transition), color var(--transition);
}
.footer-col a:hover { opacity: 1; color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  opacity: 0.7;
}
.footer-bottom a:hover { opacity: 1; text-decoration: underline; }

/* -----------------------------------------------------------
   17. Page hero (inner pages)
   ----------------------------------------------------------- */
.page-hero {
  background: var(--accent);
  padding-block: 3.5rem 5rem;
}
@media (min-width: 768px) { .page-hero { padding-block: 5rem 7rem; } }

.page-hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-fg);
  margin-bottom: 1rem;
}

.page-hero h1 {
  max-width: 42rem;
  text-wrap: balance;
}

.page-hero-body {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--muted-fg);
}

/* -----------------------------------------------------------
   18. Misc Helpers
   ----------------------------------------------------------- */
.text-balance { text-wrap: balance; }
.text-pretty  { text-wrap: pretty; }
.text-teal    { color: var(--secondary-text); }
.text-amber   { color: var(--primary-text); }
.text-muted   { color: var(--muted-fg); }

.bg-muted  { background: var(--muted); }
.bg-accent { background: var(--accent); }
.bg-teal   { background: var(--secondary); color: var(--secondary-fg); }
.bg-dark   { background: var(--tertiary); color: var(--tertiary-fg); }

.border-top    { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }

/* Checklist */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.check-list iconify-icon {
  color: var(--secondary);
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Contact detail blocks */
.contact-detail {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.contact-detail iconify-icon {
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Disclaimer box */
.disclaimer-box {
  background: var(--accent);
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.disclaimer-box iconify-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  color: var(--secondary);
}

/* Quote pull */
.pull-quote {
  background: var(--accent);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.pull-quote blockquote {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--foreground);
}

/* Hero image container for about page */
.about-hero-img {
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* -----------------------------------------------------------
   19. Responsive utilities
   ----------------------------------------------------------- */
@media (max-width: 639px)  { .hide-xs { display: none; } }
@media (max-width: 767px)  { .hide-sm { display: none; } }
@media (min-width: 1024px) { .show-mobile { display: none; } }

/* -----------------------------------------------------------
   20. Responsive two-column grids used across pages
   All grids are single-column on mobile and stack up
   gracefully at the breakpoints shown.
   ----------------------------------------------------------- */

/* Base: all single-column, full width */
.about-grid,
.hero-grid,
.contact-grid,
.rp-grid,
.lh-grid,
.policy-grid {
  display: grid;
  gap: 2rem;
}

/* about-grid, rp-grid, lh-grid → 2-col from 768 px */
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .rp-grid    { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
  .lh-grid    { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; }
}

/* hero-grid → 2-col only from 1024 px (avoid cramped tablet layout) */
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

/* contact-grid → sidebar + form, from 1024 px */
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 3rem; }
}

/* policy-grid → sidebar TOC + article, from 768 px */
@media (min-width: 768px) {
  .policy-grid { grid-template-columns: 13rem 1fr; gap: 3rem; }
}

/* Policy aside sticky on wide screens */
@media (min-width: 768px) {
  .policy-aside { position: sticky; top: 5.5rem; }
}

/* -----------------------------------------------------------
   21. Animate spin for loading state
   ----------------------------------------------------------- */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-spin { animation: spin 1s linear infinite; }

/* -----------------------------------------------------------
   22. Final mobile polish
   ----------------------------------------------------------- */

/* Hide floating hero card on mobile (it uses absolute positioning) */
@media (max-width: 1023px) {
  .hero-float-card { display: none; }
}

/* Footer always single-col on small screens */
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Service link tile — reusable */
.service-link {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-weight: 600;
  font-size: .9375rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--foreground);
  transition: background var(--transition), color var(--transition);
}
.service-link:hover {
  background: var(--accent);
  color: var(--secondary);
}

/* Ensure inline display:grid styles on pages don't break at mobile */
@media (max-width: 767px) {
  /* Any element that sets an inline two-column grid via style= attribute
     will be overridden by the .about-grid / .contact-grid classes above.
     These extra rules catch sections that use inline grid without a class. */
  .section [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* Except known single-row grids (e.g. icon + text rows) */
  .contact-detail,
  .process-step,
  .form-check,
  .footer-logo,
  .hero-trust,
  .disclaimer-box {
    grid-template-columns: unset !important;
  }
}

/* Tablet (768–1023): keep two-col for simple about/rp/lh grids
   but stack contact and hero */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-grid    { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Touch targets: minimum 44 × 44 px on mobile */
@media (max-width: 1023px) {
  .btn { min-height: 2.875rem; }
  .primary-nav a, .mobile-nav > a { min-height: 2.75rem; }
}

/* Prevent long words breaking layout on small screens */
* { overflow-wrap: break-word; word-break: break-word; hyphens: auto; }
/* But don't hyphenate headings or buttons */
h1, h2, h3, h4, h5, h6, .btn { hyphens: none; word-break: normal; }
