/* Furniss Family Law Group, site styles. No build step: edit and upload. */

:root {
  /* Logo palette (from "Logo and color pallet.ai") */
  --logo-teal: #317588;
  --logo-slate-blue: #6d808b;
  --logo-slate: #5c676e;

  /* Dark theme built from the logo palette */
  --bg: #22292d;
  --bg-alt: #2a3237;
  --surface: #323b41;
  --footer: #1a2023;
  --line: rgba(255, 255, 255, 0.12);
  --text: #d9e0e3;
  --muted: #a3afb5;
  --heading: #ffffff;
  --accent: #8cc8d8;          /* light logo teal, readable on dark backgrounds */
  --teal: var(--logo-teal);
  --teal-hover: #24596a;     /* darker on hover keeps white text above 4.5:1 */
  --teal-deep: #24596a;
  --white: #ffffff;
  --ink: #1f2629;
  --error: #ff9b94;
  --success: #7fd1a4;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--heading);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1.1em; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--white); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin-top: 1.6em; }
.lead { font-size: 1.2rem; color: var(--heading); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9em;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border: 2px solid var(--teal); border-radius: var(--radius);
  background: var(--teal); color: var(--white);
  font: 600 1rem/1 var(--font-body); letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--teal-hover); border-color: var(--teal-hover); color: var(--white); }
.btn-ghost { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-ghost:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--teal-deep); }
.btn-light:hover { background: #e3eef1; border-color: #e3eef1; color: var(--teal-deep); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }

/* ---------- Logo band ---------- */
.brand-band { background: var(--white); border-bottom: 4px solid var(--logo-teal); }
.brand-band .container { display: flex; justify-content: center; padding-top: 18px; padding-bottom: 16px; }
.brand-logo { display: block; }
.brand-band .brand-logo img { width: clamp(170px, 20vw, 240px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(42, 50, 55, 0.97);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 64px; gap: 24px; }
.site-nav { grid-column: 2; }
.header-phone { grid-column: 3; justify-self: end; }

.site-nav ul { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 6px 0;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.98rem; letter-spacing: 0.03em;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--accent); }

.nav-toggle { display: none; }

@media (max-width: 899px) {
  .header-inner { display: flex; justify-content: space-between; min-height: 58px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 46px; margin-left: -6px; padding: 0 6px;
    background: none; border: 0; cursor: pointer;
    color: var(--text); font: 600 0.98rem/1 var(--font-body);
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 22px; height: 2px; background: var(--text);
    transition: transform 0.2s, background-color 0.2s;
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -7px; }
  .nav-toggle-bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 4px var(--gutter) 16px;
    background: var(--bg-alt); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--line); }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); padding: 28px 0 52px; }
.hero-inner { display: grid; gap: 32px; align-items: center; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 50%;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-text { order: 2; }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 0.35em; }
.hero-title span { color: var(--accent); }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (min-width: 900px) {
  .hero { padding: clamp(48px, 7vw, 88px) 0; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 5vw, 72px); }
  .hero-text { order: 0; }
}

/* ---------- Intro ---------- */
.intro-grid { display: grid; gap: 24px; }
.intro-heading { font-size: clamp(2rem, 4vw, 2.9rem); color: var(--accent); }
@media (min-width: 900px) {
  .intro-grid { grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
}

/* ---------- Pillars ---------- */
.pillars { background: var(--bg-alt); }
.pillar { display: grid; gap: 28px; align-items: center; }
.pillar + .pillar { margin-top: clamp(56px, 8vw, 96px); }
.pillar-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; }
.pillar-label {
  font: 600 1rem/1 var(--font-body); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.pillar-label::after { content: ""; display: block; width: 48px; height: 2px; margin-top: 14px; background: var(--logo-teal); }
@media (min-width: 900px) {
  .pillar { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); }
  .pillar-reverse .pillar-media { order: 2; }
}

/* ---------- Cards ---------- */
.section-head { max-width: 40em; margin-bottom: 36px; }
.card-grid { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; padding: 28px 24px;
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--logo-teal);
  border-radius: var(--radius); transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-top-color: var(--accent); }
.card h3 { font-size: 1.35rem; }
.card h3 a { color: var(--heading); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 a { color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--logo-teal); color: #e6f1f4; padding: clamp(48px, 7vw, 80px) 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { margin: 0; max-width: 36em; }
.cta-inner { display: grid; gap: 28px; align-items: center; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.cta-phone { color: var(--white); font: 600 1.5rem/1 var(--font-display); text-decoration: none; }
.cta-phone:hover { color: var(--white); text-decoration: underline; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.4fr auto; } }

/* ---------- Page intro ---------- */
.page-intro { padding: clamp(56px, 8vw, 96px) 0 0; }
.page-intro-lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }

/* ---------- Practice areas ---------- */
.practice-layout { display: grid; gap: 32px; }
.practice-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.practice-nav a {
  display: block; padding: 10px 14px; border-left: 3px solid var(--line);
  color: var(--text); text-decoration: none; font-weight: 600;
}
.practice-nav a:hover { border-left-color: var(--accent); color: var(--white); background: var(--surface); }
.practice-area { scroll-margin-top: 90px; }
.practice-area + .practice-area { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }
.practice-area h2 { margin-top: 0; color: var(--accent); }
@media (min-width: 900px) {
  .practice-layout { grid-template-columns: 260px 1fr; gap: 72px; }
  .practice-nav { position: sticky; top: 96px; align-self: start; }
  .practice-content { max-width: 46em; }
}

/* ---------- About ---------- */
.about-hero { background: var(--bg-alt); padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.about-hero-grid { display: grid; gap: 36px; align-items: center; }
.about-portrait img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-width: 420px; }
.about-subtitle { font: italic 500 1.5rem/1.3 var(--font-display); color: var(--accent); }
.facts { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.facts li { padding: 16px 18px; background: var(--surface); border-radius: var(--radius); border-left: 3px solid var(--logo-teal); }
.facts strong { display: block; font: 600 1.9rem/1.1 var(--font-display); color: var(--accent); }
.facts span { font-size: 0.92rem; color: var(--muted); }
@media (min-width: 900px) {
  .about-hero-grid { grid-template-columns: 420px 1fr; gap: 72px; }
  .facts { grid-template-columns: repeat(4, 1fr); }
}

.about-body { display: grid; gap: 40px; }
.about-body .prose { max-width: 46em; }
.about-aside { display: grid; gap: 24px; align-content: start; }
.about-aside > img { border-radius: var(--radius); box-shadow: var(--shadow); }
.cert-card { display: flex; gap: 16px; align-items: center; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cert-card img { width: 88px; flex: none; background: var(--white); padding: 6px; border-radius: 4px; }
.cert-card p { margin: 0; font-size: 0.95rem; color: var(--text); }
@media (min-width: 900px) {
  .about-body { grid-template-columns: 1.6fr 1fr; gap: 64px; }
  .about-aside { position: sticky; top: 96px; align-self: start; }
}

.community { background: var(--bg-alt); }
.community-grid { display: grid; gap: 8px 48px; }
@media (min-width: 900px) { .community-grid { grid-template-columns: 1fr 1fr; } }
.pull-quote {
  margin: 40px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line);
  font: italic 500 clamp(1.4rem, 2.6vw, 1.9rem)/1.4 var(--font-display); color: var(--accent);
  max-width: 44em;
}

.team-photo { padding: clamp(48px, 7vw, 88px) 0; }
.team-photo figure { margin: 0 auto; }
.team-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Contact ---------- */
.contact-section { padding-top: clamp(32px, 5vw, 56px); }
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.5fr; gap: 72px; align-items: start; } }

.contact-list { margin: 28px 0; display: grid; gap: 4px; }
.contact-list dt { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-top: 16px; }
.contact-list dd { margin: 0; }
.contact-list address { font-style: normal; }
.contact-photo { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; max-width: 420px; width: 100%; }
@media (max-width: 899px) { .contact-photo { display: none; } }

.contact-form-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.contact-form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

label { font-weight: 600; font-size: 0.97rem; color: var(--heading); }
.req { color: var(--error); }
.optional { font-weight: 400; color: var(--muted); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #f5f7f8; border: 1px solid #8796a0; border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { resize: vertical; min-height: 150px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(140, 200, 216, 0.35); }
[aria-invalid="true"] { border-color: var(--error) !important; box-shadow: 0 0 0 2px rgba(255, 155, 148, 0.4); }

.field-hint { margin: 0; font-size: 0.88rem; color: var(--muted); }
.field-error { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--error); }

.field-check { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.field-check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--accent); }
.field-check .field-error { grid-column: 2; }

.disclaimer { padding: 18px 20px; background: var(--bg-alt); border-left: 3px solid var(--logo-slate-blue); border-radius: var(--radius); font-size: 0.92rem; color: #c8d0d4; }
.disclaimer h3 { font: 600 0.8rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.disclaimer p:last-child { margin-bottom: 0; }

.btn-submit { justify-self: start; min-width: 200px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; }
.notice p:last-child { margin: 0; }
.notice-error { background: rgba(255, 155, 148, 0.12); border-left: 4px solid var(--error); color: #ffd9d5; }
.notice-success { background: rgba(127, 209, 164, 0.12); border-left: 4px solid var(--success); }
.notice-success h2 { font-size: 1.6rem; color: var(--success); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #b9c4c9; padding: 64px 0 28px; font-size: 0.95rem; border-top: 4px solid var(--logo-teal); }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 36px; }
.brand-logo-footer img { width: 190px; }
.footer-tagline { margin: 18px 0 0; font: italic 500 1.2rem/1.3 var(--font-display); color: #e0e7ea; }
.footer-heading { font: 600 0.8rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.site-footer address { font-style: normal; margin-bottom: 1em; }
.footer-cert { display: flex; gap: 16px; align-items: flex-start; }
.footer-cert img { background: var(--white); padding: 6px; border-radius: 4px; flex: none; }
.footer-cert p { margin: 0; }
.footer-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.85rem; color: #97a4aa; }
.footer-legal p { margin: 0 0 6px; max-width: 70em; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.1fr 1fr 1.3fr; gap: 56px; } }
