/* ==========================================================================
   London Children's Lawyers — site stylesheet
   Palette drawn from the LCL logo: slate navy, silver grey, white.
   ========================================================================== */

:root {
  --navy: #2c3e50;
  --navy-dark: #1f2d3a;
  --navy-deeper: #16212c;
  --silver: #b9c0c9;
  --silver-light: #d8dde3;
  --ink: #20272e;
  --muted: #5c6670;
  --bg: #f5f6f8;
  --card: #ffffff;
  --line: #e4e8ed;
  --shadow-sm: 0 1px 3px rgba(22, 33, 44, 0.08);
  --shadow-md: 0 6px 24px rgba(22, 33, 44, 0.10);
  --shadow-lg: 0 14px 40px rgba(22, 33, 44, 0.16);
  --radius: 10px;
  --font-sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
}

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

.container {
  width: min(92%, 1100px);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-top: 5px solid var(--navy);
  background: #fff;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: #9aa3ad;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav a {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.site-nav .nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  transition: background-color 0.25s ease, transform 0.2s ease;
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, #fbfcfd 0%, #e9edf2 60%, var(--silver-light) 100%);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 5rem 0 5.5rem;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--navy);
}
.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-logo-card {
  justify-self: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-md);
}
.hero-logo-card img {
  display: block;
  width: min(280px, 100%);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.25s ease, color 0.25s ease,
              transform 0.2s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-outline-navy {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover {
  background: rgba(44, 62, 80, 0.07);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover {
  background: var(--navy-dark);
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, #fbfcfd 0%, #e9edf2 60%, var(--silver-light) 100%);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 3.25rem 0;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--navy);
}
.page-hero p {
  margin-top: 0.5rem;
  color: var(--muted);
  max-width: 46em;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 4.5rem 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }

.section-heading {
  margin-bottom: 2.5rem;
  max-width: 46em;
}
.section-heading h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--navy);
}
.section-heading h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 0.7rem;
  background: var(--silver);
}
.section-heading p { margin-top: 0.9rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.card p { color: var(--muted); font-size: 0.99rem; }

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.2rem;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--navy);
}
.card-icon svg { width: 26px; height: 26px; }

/* --------------------------------------------------------------------------
   Membership band
   -------------------------------------------------------------------------- */
.band {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
}
.band h2 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--navy);
}
.band p { color: var(--muted); max-width: 38em; }

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */
.prose { max-width: 46em; }
.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.7rem;
}
.prose p { margin-bottom: 1rem; color: var(--ink); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.goal-list {
  list-style: none;
  counter-reset: goal;
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.goal-list li {
  counter-increment: goal;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 4.5rem;
  box-shadow: var(--shadow-sm);
}
.goal-list li::before {
  content: counter(goal);
  position: absolute;
  left: 1.4rem;
  top: 1.35rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Past events
   -------------------------------------------------------------------------- */
.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.year-nav a {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.year-nav a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.event-year { margin-bottom: 2.75rem; scroll-margin-top: 6rem; }
.event-year > h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.event-year > h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.event-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}
.event-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.3rem;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.event-list a:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--silver);
}
.event-list .pdf-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--navy);
}
.event-list .pdf-icon svg { width: 20px; height: 20px; }
.event-list .event-title { flex: 1; font-weight: 500; }
.event-list .pdf-badge {
  flex: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.15rem 0.5rem;
  background: var(--bg);
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.contact-card .avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.1rem;
}
.contact-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.contact-card .email {
  font-size: 0.95rem;
  color: var(--muted);
  word-break: break-word;
}
.contact-note {
  margin-top: 2rem;
  padding: 1.1rem 1.4rem;
  background: #fff;
  border-left: 4px solid var(--silver);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--ink);
  padding: 3.5rem 0 0;
  margin-top: 4rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.site-footer h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}
.site-footer p { color: var(--muted); max-width: 32em; }
.site-footer ul { list-style: none; display: grid; gap: 0.45rem; }
.site-footer a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer a:hover { color: var(--navy-dark); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Scroll-reveal animation
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* No-JS and reduced-motion fallbacks: content must never stay hidden */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .contact-card:hover, .event-list a:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero p { margin-inline: auto; }
  .hero-logo-card { order: -1; padding: 1.5rem 2rem; }
  .hero-logo-card img { width: min(200px, 100%); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 4%;
  }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border-bottom: none; padding: 0.9rem 0; }
  .site-nav a { display: block; padding: 0.9rem 0.25rem; }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta { text-align: center; }
  .band { padding: 2rem; }
}
