/* =========================================================
   Employment Law assist LLP — main stylesheet
   Brand tokens (from client package):
   primary #44355B · secondary #6A5A82 · accent #E1B07E
   background #F8F6F9 · text #221B2E
   Typography: traditional serif display + humanist sans body
   ========================================================= */

:root {
  --primary: #44355B;
  --primary-deep: #2E2440;
  --secondary: #6A5A82;
  --accent: #E1B07E;
  --accent-soft: #F3E2CC;
  --bg: #F8F6F9;
  --surface: #FFFFFF;
  --text: #221B2E;
  --muted: #5C516E;
  --line: #E2DCEA;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(34, 27, 46, 0.10);
  --shadow-sm: 0 2px 10px rgba(34, 27, 46, 0.07);
  --container: 72rem;
}

* { box-sizing: border-box; }

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

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary);
  margin: 0 0 0.6em;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--secondary); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 1.2rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.4rem;
}

/* ------- Header ------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 249, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--primary);
}

.brand img {
  width: 42px;
  height: 42px;
  /* logo.svg is a self-contained rounded badge — no crop, border, or fill needed */
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.15;
}
.brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  color: var(--primary);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover { color: var(--primary); border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--accent); }

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.72rem 1.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-deep); color: #fff; box-shadow: var(--shadow-sm); }

.btn-accent {
  background: var(--accent);
  color: var(--primary-deep);
}
.btn-accent:hover { background: #d8a066; color: var(--primary-deep); }

.btn-ghost {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-ghost:hover { background: var(--primary); color: #fff; }

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  background: transparent;
}
.btn-ghost-light:hover { background: #fff; color: var(--primary); }

.site-nav .btn { padding: 0.55rem 1.2rem; border-bottom: none; }

/* ------- Hero ------- */

.hero {
  position: relative;
  background: linear-gradient(140deg, var(--primary-deep) 0%, var(--primary) 55%, var(--secondary) 115%);
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38rem 24rem at 88% -10%, rgba(225, 176, 126, 0.22), transparent 60%),
    radial-gradient(30rem 20rem at -5% 110%, rgba(225, 176, 126, 0.12), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 0 4.8rem;
}

.hero h1 { color: #fff; margin-bottom: 0.5em; }
.hero h1 em { font-style: italic; color: var(--accent); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.hero p.lead {
  font-size: 1.16rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-note {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}
.hero-note span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-note svg { color: var(--accent); flex: none; }

/* ------- Trust bar ------- */

.trust-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.8rem 0;
}

.trust-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.trust-item svg { color: var(--primary); flex: none; margin-top: 0.15rem; }

.trust-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--primary);
}
.trust-item span { font-size: 0.92rem; color: var(--muted); }

/* ------- Sections ------- */

.section { padding: 4.6rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  max-width: 44rem;
  margin-bottom: 2.6rem;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* ------- Cards ------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--secondary); }

.card .icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
}

.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.99rem; }

.card .meta-list {
  list-style: none;
  margin: 1.1rem 0 1.3rem;
  padding: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.card .meta-list li {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.25rem 0;
}
.card .meta-list strong { color: var(--text); font-weight: 600; }

.text-link {
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.text-link:hover { color: var(--secondary); text-decoration: underline; }

/* ------- About strip ------- */

.about-strip {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.4rem;
  align-items: center;
}

.about-strip img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

.checklist { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.checklist li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.45rem 0;
}
.checklist svg { color: var(--primary); flex: none; margin-top: 0.2rem; }
.checklist strong { color: var(--primary); }

/* ------- Team ------- */

.person-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s;
}
.person-card:hover { box-shadow: var(--shadow); }

.person-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.person-card .person-body { padding: 1.6rem 1.7rem 1.9rem; }
.person-card h3 { margin-bottom: 0.15rem; }
.person-role {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.person-card p { color: var(--muted); font-size: 0.97rem; }

.cred-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.cred-list li { display: flex; gap: 0.55rem; padding: 0.22rem 0; align-items: baseline; }
.cred-list svg { flex: none; color: var(--accent); position: relative; top: 2px; }

/* ------- Blog ------- */

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.post-card:hover { box-shadow: var(--shadow); border-color: var(--secondary); }

.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

.post-body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }

.post-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.6rem;
}

.post-body h3 { font-size: 1.22rem; }
.post-body h3 a { text-decoration: none; }
.post-body h3 a:hover { text-decoration: underline; }
.post-body p { color: var(--muted); font-size: 0.95rem; flex: 1; }

.post-meta { font-size: 0.85rem; color: var(--muted); margin-top: 0.8rem; }

/* Article pages */

.article-hero {
  background: linear-gradient(140deg, var(--primary-deep), var(--primary));
  color: #fff;
  padding: 3.6rem 0 3.2rem;
}
.article-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 46rem; }
.article-hero .post-meta { color: rgba(255, 255, 255, 0.75); }
.article-hero .eyebrow { margin-bottom: 0.8rem; }

.article-body {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3.4rem 1.4rem 4.5rem;
}
.article-body h2 { font-size: 1.6rem; margin-top: 2.2em; }
.article-body ul { padding-left: 1.3rem; }
.article-body li { margin-bottom: 0.5em; }
.article-body blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.6rem;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--primary);
}

.article-footer-note {
  margin-top: 3rem;
  padding: 1.4rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--muted);
}

/* ------- Offices ------- */

.office-card address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.7;
}
.office-card address strong { color: var(--primary); font-family: var(--serif); font-size: 1.12rem; }
.office-card a { color: var(--primary); font-weight: 600; }

/* ------- CTA band ------- */

.cta-band {
  background: linear-gradient(130deg, var(--primary-deep), var(--primary) 70%, var(--secondary));
  color: #fff;
  text-align: center;
  padding: 4.4rem 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 36rem; margin: 0 auto 1.8rem; }
.cta-band .btn { margin: 0 0.4rem 0.6rem; }

/* ------- Forms ------- */

.form-anti-spam {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
}

.contact-form p { margin: 0 0 1.2rem; }

.contact-form label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--primary);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.72rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(106, 90, 130, 0.25);
}

.contact-form textarea { resize: vertical; }

.form-status {
  font-weight: 600;
  color: var(--primary);
  background: var(--accent-soft);
  border-radius: 9px;
  padding: 0.8rem 1rem;
}
.form-status--error { background: #fbe4e4; color: #7a1f1f; }

.contact-aside .card { margin-bottom: 1.4rem; }

.contact-lines { list-style: none; margin: 0; padding: 0; }
.contact-lines li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.5rem 0; }
.contact-lines svg { color: var(--primary); flex: none; margin-top: 0.2rem; }
.contact-lines a { font-weight: 600; }

/* ------- Page hero (interior pages) ------- */

.page-hero {
  background: linear-gradient(140deg, var(--primary-deep), var(--primary) 75%, var(--secondary));
  color: #fff;
  padding: 3.8rem 0 3.4rem;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255, 255, 255, 0.85); max-width: 40rem; font-size: 1.12rem; margin-bottom: 0; }

/* ------- Footer ------- */

.site-footer {
  background: var(--primary-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.6rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.4rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer .brand { color: #fff; margin-bottom: 0.9rem; }
.site-footer .brand-name small { color: var(--accent); }

.site-footer h4 {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 0.22rem 0; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; }

.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ------- Reveal on scroll ------- */

.reveal {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ------- Responsive ------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 3.4rem 0; }
  .hero-media { order: -1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .about-strip { grid-template-columns: 1fr; gap: 2.2rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 700px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; align-items: center; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1rem 1.4rem 1.4rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .site-nav a { display: block; padding: 0.7rem 0.3rem; border-bottom: none; }
  .site-nav .btn { margin-top: 0.6rem; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; }
}
