/* =========================================================
   S&S Legis LLP – site styles
   Brand: Martel (headings) + Mulish/Muli (body)
   ========================================================= */

:root {
  --navy: #1b2c58;
  --navy-soft: #3a4a72;
  --gold: #9e875a;
  --gold-light: #b9a273;
  --gold-grad: linear-gradient(135deg, #b8975a 0%, #d9bf86 45%, #9e7d45 100%);
  --cream: #f4efe8;
  --cream-deep: #ecebe4;
  --blush: #fff0eb;
  --blush-mid: #fee4dd;
  --blush-deep: #e8c7be;
  --text: #5b606b;
  --muted: #868890;
  --nav: #51646f;
  --line: #ddd6ca;
  --white: #fff;
  --dark: #2a2b30;

  --font-head: 'Martel', Georgia, 'Times New Roman', serif;
  --font-body: 'Mulish', 'Muli', 'Helvetica Neue', Arial, sans-serif;

  --header-h: 100px;
  --container: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::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;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, iframe { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--gold); }
p { margin: 0 0 1.1em; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin: 0 0 .6em;
}

.sr-only, .hp {
  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: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 2px; }
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container.narrow { max-width: 900px; }
.center { text-align: center; }

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--blush);
  border-bottom: 1px solid rgba(232, 199, 190, .7);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(27, 44, 88, .08); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); padding: 0 50px;
  transition: height .3s var(--ease);
}
.site-header.is-scrolled .header-inner { height: 76px; }
.logo img { height: 65px; width: auto; transition: height .3s var(--ease); }
.site-header.is-scrolled .logo img { height: 50px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 38px; }
.site-nav a {
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--nav);
  position: relative; padding: 6px 0;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--gold); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.nav-phone a {
  font-family: var(--font-head); font-size: 15px; font-weight: 400; letter-spacing: 0;
  text-transform: none; color: var(--navy); display: inline-flex; align-items: center; gap: 8px;
}
.nav-phone a::after { display: none; }
.nav-phone .icon { color: var(--gold); font-size: 13px; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 26px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 500px; overflow: hidden;
  background: var(--dark);
  border-bottom: 5px solid var(--blush-deep);
  display: flex; align-items: center; justify-content: center;
}
.hero-media {
  position: absolute; inset: 0;
  background: var(--dark) url('/media/poster.jpg') center / cover no-repeat;
  animation: heroZoom 22s ease-in-out infinite alternate;
}
.hero-video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); pointer-events: none; }
.hero-video.is-ready { opacity: 1; }
.hero-video iframe {
  position: absolute; top: 50%; left: 50%; border: 0;
  width: 177.78vh; height: 56.25vw; min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%);
}
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(20, 22, 30, .05) 0%, rgba(20, 22, 30, .35) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 24px; }
.hero-title {
  color: #fff; font-size: clamp(30px, 4vw, 42px); font-weight: 600; letter-spacing: -0.025em;
  margin: 0; text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.06); } }

/* ---------- Eyebrows & headings ---------- */
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--nav); margin: 0 0 18px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.eyebrow--center { text-align: center; border-bottom-style: dashed; }
.lead-heading { font-size: 22px; line-height: 1.45; color: var(--navy); margin-bottom: 22px; }
.lead-heading--lg { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.35; }
.section-heading { font-size: clamp(24px, 2.4vw, 30px); }

/* ---------- Split sections ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 580px;
  background: var(--cream); border-bottom: 5px solid var(--cream-deep);
}
.split-media { position: relative; overflow: hidden; background: #b9b6b1; min-height: 320px; }
.split-media--light { background: #f1f1f0; }
.split-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-text { padding: 70px 9%; align-self: center; max-width: 720px; }
.split--reverse .split-media { order: 2; }
.split--tall { min-height: 640px; }
.split-text p { font-size: 14px; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
}
.text-link .icon { transition: transform .3s var(--ease); }
.text-link:hover .icon { transform: translateX(5px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  padding: 14px 30px; border: 1px solid var(--nav); color: var(--nav); background: transparent;
  cursor: pointer; transition: all .3s var(--ease); border-radius: 0; line-height: 1.4;
}
.btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-solid { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn + .btn { margin-left: 10px; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--cream); padding: 60px 0 70px; text-align: center; }
.t-slider { position: relative; display: grid; }
.t-slide {
  grid-area: 1 / 1; align-self: center; margin: 0; opacity: 0; visibility: hidden;
  transition: opacity .7s var(--ease), visibility .7s; transform: translateY(6px);
}
.t-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.t-slide blockquote { margin: 0; }
.t-slide blockquote p {
  font-family: var(--font-head); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--navy); margin: 0 0 10px;
}
.t-slide figcaption, .t-card figcaption { font-size: 12px; font-weight: 600; color: var(--nav); }
.stars { display: flex; justify-content: center; gap: 4px; color: var(--gold); font-size: 18px; margin: 16px 0 10px; }
.stars--sm { justify-content: flex-start; font-size: 14px; margin: 0 0 14px; }
.t-dots { display: flex; justify-content: center; gap: 10px; margin: 0 0 24px; }
.t-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--gold); background: transparent; padding: 0; cursor: pointer; transition: background .3s; }
.t-dot.is-active { background: var(--gold); }

.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.t-card { margin: 0; background: #fff; padding: 36px 32px; border-top: 3px solid var(--gold); box-shadow: 0 10px 30px rgba(27, 44, 88, .05); }
.t-card blockquote { margin: 0 0 16px; }
.t-card blockquote p { font-family: var(--font-head); font-size: 16px; line-height: 1.7; color: var(--navy); }
.center-cta { text-align: center; margin-top: 50px; }

/* ---------- Generic sections ---------- */
.section { padding: 80px 0; }
.section--cream { background: var(--cream); }
.service-block { max-width: 900px; }
.service-body { columns: 2; column-gap: 48px; margin-bottom: 30px; }
.service-body p { break-inside: avoid; font-size: 14px; }

.intro-band { background: var(--cream-deep); padding: 70px 0; text-align: center; border-bottom: 5px solid var(--cream); }
.intro-text { font-family: var(--font-head); font-size: clamp(18px, 1.8vw, 22px); line-height: 1.6; color: var(--navy); margin: 0; }

/* Ethos pillars */
.pillars { background: var(--navy); padding: 60px 0; }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.pillar-mark {
  display: block; font-family: var(--font-head); font-size: 34px; font-weight: 600;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pillar p { color: #fff; font-family: var(--font-head); font-size: 18px; margin: 4px 0 0; letter-spacing: .01em; }

/* ---------- Accordions ---------- */
.accordion { margin-top: 26px; }
.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer; padding: 16px 30px 16px 0; position: relative;
  font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ''; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease);
}
.acc[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.acc summary:hover { color: var(--navy); }
.acc-body { padding: 0 0 12px; animation: accIn .45s var(--ease); }
.acc-body p { font-size: 14px; }
.acc--person { margin-top: 18px; }
@keyframes accIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- People ---------- */
.split--person { min-height: 620px; }
.person-photo { background-size: cover; background-position: center 25%; background-repeat: no-repeat; }
.person-photo--semina { background-image: url('/media/sk.jpg'); }
.person-photo--georgia { background-image: url('/media/gk.jpg'); }
.person-name { font-size: 30px; margin-bottom: 4px; }
.person-role { font-family: var(--font-head); font-size: 18px; color: var(--navy); margin-bottom: 22px; }
.contact-lines { list-style: none; padding: 0; margin: 0 0 6px; }
.contact-lines li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.9; }
.contact-lines .icon { color: var(--navy); margin-top: .5em; font-size: 12px; }
.contact-lines a { color: var(--text); }
.contact-lines a:hover { color: var(--gold); }

/* ---------- Page title (legal pages) ---------- */
.page-title { background: var(--blush-deep); padding: 34px 0 30px; }
.page-title h1 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin: 4px 0 0; }
.breadcrumb { font-size: 12px; color: rgba(255, 255, 255, .9); letter-spacing: .04em; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--navy); }

.prose { max-width: 900px; }
.prose p, .prose li { font-size: 14.5px; }
.prose h2 { font-size: 24px; margin-top: 1.8em; }
.prose h3 { font-size: 21px; margin-top: 1.8em; }
.prose h4 { font-size: 17px; margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--gold); }
.prose a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose a:hover { color: var(--gold); }
.prose .muted { color: var(--muted); font-style: italic; }
.prose .link-list { list-style: none; padding: 0; }
.fee-list { list-style: none !important; padding: 0 !important; border-top: 1px solid var(--line); }
.fee-list li { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; padding: 12px 0; margin: 0; border-bottom: 1px solid var(--line); }
.fee-list li span:last-child { color: var(--navy); font-weight: 600; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 10px; }
.toc a {
  text-decoration: none !important; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 8px 14px; color: var(--nav) !important; background: #fff;
}
.toc a:hover { border-color: var(--gold); color: var(--gold) !important; }

/* ---------- Contact ---------- */
.map-wrap { height: 420px; background: #d9d4cb; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.85) sepia(.15) contrast(1.02); }
.contact-band { background: var(--blush-deep); padding: 30px 0; text-align: center; }
.contact-band-title { color: #fff; font-size: clamp(18px, 1.8vw, 22px); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 70px; }
.contact-form .field { margin-bottom: 18px; }
.contact-form label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--nav); margin-bottom: 6px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--navy);
  background: transparent; border: 1px solid #d4cdc0; padding: 13px 16px; border-radius: 0;
  transition: border-color .25s, background .25s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #a7a39b; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.contact-form textarea { resize: vertical; min-height: 150px; }
.field--check label { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13px; color: var(--text); line-height: 1.6; }
.field--check input { margin-top: 3px; accent-color: var(--navy); }
.has-error input, .has-error textarea { border-color: #b4483c; }
.field-error { display: block; color: #b4483c; font-size: 12px; margin-top: 5px; }
.notice { padding: 20px 24px; margin-bottom: 24px; border-left: 3px solid var(--gold); background: #fff; }
.notice h2 { font-size: 22px; margin-bottom: 6px; }
.notice p { margin: 0; }
.notice--error { border-left-color: #b4483c; }
.aside-title { font-size: 22px; margin-bottom: 20px; }
.btn-phone { font-family: var(--font-head); font-size: 15px; letter-spacing: .04em; text-transform: none; font-weight: 400; color: var(--navy); border-color: var(--line); padding: 14px 22px; margin-bottom: 24px; }
.btn-phone .icon { color: var(--gold); font-size: 13px; }
.btn-phone:hover .icon { color: #fff; }
.contact-lines--aside li { margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blush-mid); color: var(--text); }
.footer-top { padding: 70px 0 50px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr .7fr; gap: 40px; align-items: start; }
.footer-title { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--nav); margin: 0 0 18px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { font-size: 13px; line-height: 1.9; margin-bottom: 6px; }
.footer-list a { color: var(--text); }
.footer-list a:hover { color: var(--gold); }
.badge iframe { border: 0; background: transparent; }
.badge-sra { max-width: 275px; }
.badge-sra iframe { width: 275px; height: 163px; max-width: 100%; }
.badge-leap iframe { width: 113px; height: 162px; }
.footer-small { font-size: 11px; line-height: 1.6; margin: 10px 0 0; max-width: 275px; }
.footer-bottom { background: var(--blush-deep); padding: 22px 0; text-align: center; }
.footer-bottom p { margin: 0; color: #fff; font-size: 12px; letter-spacing: .03em; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 44px; height: 44px;
  display: grid; place-items: center; background: var(--navy); color: #fff;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .35s var(--ease);
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: #fff; }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal-hero { animation: heroIn 1.4s var(--ease) both .2s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); letter-spacing: .02em; } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-hero, .hero-media { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header-inner { padding: 0 28px; }
  .site-nav ul { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 80px; }
  .logo img { height: 50px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--blush);
    padding: 30px 28px; transform: translateX(100%); transition: transform .4s var(--ease);
    overflow-y: auto;
  }
  .site-header.is-scrolled .site-nav { top: 76px; }
  .site-nav.is-open { transform: none; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .site-nav li { width: 100%; border-bottom: 1px solid rgba(158, 135, 90, .2); }
  .site-nav a { display: block; padding: 16px 0; font-size: 13px; }
  .site-nav a::after { display: none; }
  .nav-phone { border-bottom: 0 !important; margin-top: 12px; }
  .nav-phone a { font-size: 18px; }
  body.nav-open { overflow: hidden; }

  .hero { height: 380px; }
  .split, .split--person, .split--tall { grid-template-columns: 1fr; min-height: 0; }
  .split-media, .split--reverse .split-media { order: 0; min-height: 0; aspect-ratio: 16 / 10; }
  .person-photo { aspect-ratio: 4 / 3.4; }
  .split-text { padding: 50px 28px; max-width: none; }
  .service-body { columns: 1; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .t-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  .container { padding: 0 22px; }
  .header-inner { padding: 0 18px; }
  .logo img { height: 42px; }
  .site-header.is-scrolled .logo img { height: 40px; }
  .hero { height: 300px; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .fee-list li { grid-template-columns: 1fr; gap: 4px; }
  .btn + .btn { margin: 10px 0 0; }
  .map-wrap { height: 300px; }
}
