/* ==========================================================================
   O'Shea Litigation Services — Global stylesheet
   Brand: navy foundation, gold accent, white/paper reading surfaces
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom properties
   -------------------------------------------------------------------------- */
:root {
  --navy-950: #07111d;
  --navy-900: #0b1a2e;
  --navy-800: #12243d;
  --navy-700: #1b3354;
  --navy: #0b1a2e;
  --gold-700: #8f6f32;
  --gold-600: #b08d4a;
  --gold: #c4a35a;
  --gold-300: #ddc48a;
  --white: #ffffff;
  --paper: #f5f3ee;
  --paper-2: #ebe6dc;
  --ink: #17202c;
  --ink-soft: #3d4a5c;
  --muted: #5b6778;
  --border: rgba(11, 26, 46, 0.12);
  --border-strong: rgba(11, 26, 46, 0.22);
  --focus: #c4a35a;
  --danger: #8a2b2b;
  --danger-bg: #f8ecec;
  --ok-bg: #eef4ef;
  --ok: #1d4a32;
  --shadow: 0 18px 50px rgba(7, 17, 29, 0.08);
  --shadow-sm: 0 8px 24px rgba(7, 17, 29, 0.06);
  --radius: 2px;
  --radius-sm: 1px;
  --container: 70rem;
  --narrow: 46rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;
  --header-h: 4.35rem;
  --mobile-bar-h: 4.15rem;
  --font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.35rem;
  --text-3xl: clamp(2.1rem, 4vw, 3.15rem);
  --leading-tight: 1.2;
  --leading: 1.65;
  --measure: 38rem;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading);
  color: var(--ink);
  background: var(--white);
  min-height: 100vh;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--navy-900);
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: var(--text-3xl);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child,
ul:last-child {
  margin-bottom: 0;
}

a {
  color: var(--navy-800);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold-700);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 1000;
  background: var(--gold);
  color: var(--navy-950);
  padding: 0.5rem 0.85rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

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

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, var(--narrow));
}

.section {
  padding: var(--space-8) 0;
}

.section--tight {
  padding: var(--space-7) 0;
}

.section--navy {
  background: var(--navy-900);
  color: var(--paper);
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section--paper {
  background: var(--paper);
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 0.65rem;
}

.section--navy .section-kicker {
  color: var(--gold-300);
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: var(--space-6);
}

.split {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 840px) {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-8);
  }

  .split--start {
    align-items: start;
  }
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-900);
  color: var(--white);
  border-bottom: 1px solid rgba(196, 163, 90, 0.22);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: var(--white);
}

.brand-mark {
  /* LOGO ASSET PLACEHOLDER: replace this mark with images/logo.svg or images/logo.png */
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
}

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

.site-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-300);
}

.nav-cta {
  margin-left: 0.35rem;
}

.nav-overlay {
  display: none;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(7, 17, 29, 0.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  body.nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    width: min(22rem, 100%);
    background: var(--navy-800);
    padding: 1rem 1.15rem 1.25rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-cta {
    margin: 0.85rem 0 0;
  }

  .nav-cta .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: var(--gold);
  color: var(--navy-950);
  border-radius: var(--radius);
}

.btn:hover {
  background: var(--gold-300);
  color: var(--navy-950);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

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

.btn--navy {
  background: var(--navy-900);
  color: var(--white);
}

.btn--navy:hover {
  background: var(--navy-700);
  color: var(--white);
}

.btn--line {
  background: transparent;
  border-color: var(--navy-900);
  color: var(--navy-900);
}

.btn--line:hover {
  background: var(--navy-900);
  color: var(--white);
}

.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.72;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.85rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.phone-link:hover {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background:
    linear-gradient(180deg, rgba(7, 17, 29, 0.18), rgba(7, 17, 29, 0.18)),
    var(--navy-900);
  color: var(--paper);
  padding: clamp(3rem, 8vw, 6.25rem) 0 clamp(3.25rem, 8vw, 6.5rem);
}

.hero h1 {
  color: var(--white);
  max-width: 16ch;
}

.hero-brand {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--gold-300);
  margin-bottom: 0.85rem;
}

.hero p {
  max-width: 36rem;
  color: rgba(245, 243, 238, 0.86);
  font-size: 1.12rem;
}

.hero .phone-link {
  color: var(--gold-300);
}

/* --------------------------------------------------------------------------
   Trust indicators
   -------------------------------------------------------------------------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (min-width: 800px) {
  .trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.trust-item {
  background: var(--white);
  padding: 1.4rem 1.2rem 1.5rem;
}

.trust-item h2,
.trust-item h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.trust-item p {
  color: var(--muted);
  font-size: var(--text-sm);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .card-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.25rem 1.2rem 1.3rem;
  box-shadow: var(--shadow-sm);
}

.section--paper .card {
  box-shadow: none;
}

.card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.45rem;
}

.card p {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.card-index {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

/* --------------------------------------------------------------------------
   Audience / process / why
   -------------------------------------------------------------------------- */
.audience {
  border-top: 1px solid rgba(196, 163, 90, 0.28);
  padding-top: 1.25rem;
}

.checklist {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.45rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 1px;
  background: var(--gold-600);
}

.steps {
  display: grid;
  gap: 0.85rem;
  counter-reset: step;
}

@media (min-width: 900px) {
  .steps--row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.step {
  border-top: 2px solid var(--gold);
  padding-top: 0.9rem;
  background: transparent;
}

.step h3 {
  font-size: 1.08rem;
}

.step p {
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.why-list {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .why-list {
    grid-template-columns: 1fr 1fr;
  }
}

.why-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   Certification placeholder
   -------------------------------------------------------------------------- */
.certification {
  border: 1px solid rgba(196, 163, 90, 0.45);
  background: var(--white);
  padding: 1.5rem 1.35rem;
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 760px) {
  .certification {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}

.cert-badge {
  /* Certification number mark. Do not add an official government seal. */
  width: 6.5rem;
  height: 6.5rem;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--navy-800);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem;
}

.certification dl {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.35rem 0.75rem;
  margin: 0.85rem 0 0;
}

.certification dt {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.certification dd {
  margin: 0;
}

.placeholder-note {
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  text-align: left;
}

.cta-band p {
  max-width: 38rem;
  color: rgba(245, 243, 238, 0.86);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form {
  display: grid;
  gap: 0.95rem;
}

.form-grid {
  display: grid;
  gap: 0.95rem;
}

@media (min-width: 700px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.field .hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--navy-800);
  outline-offset: 1px;
  border-color: var(--navy-800);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--danger);
}

.field-error {
  color: var(--danger);
  font-size: 0.82rem;
  min-height: 1.1em;
}

.notice {
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--gold-600);
  background: var(--paper);
  font-size: var(--text-sm);
}

.form-status {
  display: none;
  padding: 0.9rem 1rem;
  font-size: var(--text-sm);
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  background: var(--danger-bg);
  color: var(--danger);
}

.form-status.is-info {
  background: var(--ok-bg);
  color: var(--ok);
}

.tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--border-strong);
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn[aria-selected="true"] {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

.form-panel[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  display: grid;
  gap: 0.55rem;
}

.faq-item {
  border: 1px solid var(--border);
  background: var(--white);
}

.faq-item h2 {
  font-size: 1rem;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0;
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0.95rem 1.05rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--navy-900);
}

.faq-item button::after {
  content: "+";
  float: right;
  color: var(--gold-700);
  font-weight: 500;
}

.faq-item button[aria-expanded="true"]::after {
  content: "–";
}

.faq-item .faq-panel {
  padding: 0 1.05rem 1rem;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

/* --------------------------------------------------------------------------
   Contact / about / legal
   -------------------------------------------------------------------------- */
.contact-card {
  background: var(--navy-900);
  color: var(--paper);
  padding: 1.5rem 1.3rem;
}

.contact-card h2 {
  color: var(--white);
}

.contact-card a {
  color: var(--gold-300);
}

.portrait {
  margin: 0;
  max-width: 23.875rem;
}

.portrait-frame {
  background: var(--navy-800);
  overflow: hidden;
  border: 1px solid rgba(196, 163, 90, 0.35);
}

.portrait-frame img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.meta-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.meta-list div {
  border-top: 1px solid var(--border);
  padding-top: 0.7rem;
}

.meta-list dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.meta-list dd {
  margin: 0.15rem 0 0;
}

.prose h2 {
  margin-top: 2rem;
}

.prose ul {
  padding-left: 1.15rem;
}

.area-block {
  border: 1px solid var(--border);
  padding: 1.25rem 1.2rem;
  background: var(--white);
}

.area-list {
  /* SERVICE AREA CITY LIST: add additional cities here when confirmed */
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
}

.booking-card {
  border: 1px solid var(--border);
  padding: 1.15rem 1.1rem;
  background: var(--white);
}

.booking-note {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: 0.55rem;
}

.newsletter-panel {
  max-width: 32rem;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(245, 243, 238, 0.82);
  padding: 2.75rem 0 6.5rem;
  font-size: var(--text-sm);
}

@media (min-width: 800px) {
  .site-footer {
    padding-bottom: 2.75rem;
  }
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer a {
  color: var(--gold-300);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer h2 {
  color: var(--white);
  font-size: 1.05rem;
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
  text-transform: none;
  margin-bottom: 0.65rem;
}

.footer-nav {
  display: grid;
  gap: 0.35rem;
}

.dba {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: rgba(245, 243, 238, 0.55);
}

/* --------------------------------------------------------------------------
   Mobile action bar
   -------------------------------------------------------------------------- */
.mobile-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--navy-900);
  border-top: 1px solid rgba(196, 163, 90, 0.3);
}

.mobile-actions a {
  color: var(--white);
  text-decoration: none;
  text-align: center;
  padding: 0.9rem 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-actions a:last-child {
  background: var(--gold);
  color: var(--navy-950);
}

@media (min-width: 800px) {
  .mobile-actions {
    display: none;
  }
}

body {
  padding-bottom: var(--mobile-bar-h);
}

@media (min-width: 800px) {
  body {
    padding-bottom: 0;
  }
}
