/* Hoekel Law Firm — Professional family law site */
:root {
  --navy: #1a2744;
  --navy-deep: #0f1a2e;
  --slate: #4a5568;
  --slate-light: #718096;
  --cream: #f7f5f2;
  --warm: #c4a574;
  --warm-dark: #a8865a;
  --warm-soft: #e8dcc8;
  --white: #ffffff;
  --border: #e2e0dc;
  --focus: #2b6cb0;
  --radius: 6px;
  --shadow: 0 4px 24px rgba(26, 39, 68, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --max: 1100px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--warm-dark); }
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--navy);
  line-height: 1.2;
}
.logo:hover { color: var(--navy); }
.logo-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.logo-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-light);
  margin-top: 2px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--navy);
}
.nav-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--slate);
  border-radius: var(--radius);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
  background: var(--cream);
}
.site-nav .nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  margin-left: 0.5rem;
}
.site-nav .nav-cta:hover {
  background: var(--navy-deep);
}

/* —— Layout —— */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}
.section-alt {
  background: var(--cream);
}
.section-narrow {
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--warm-dark);
  margin-bottom: 0.75rem;
}

h1, h2, h3 {
  line-height: 1.25;
  font-weight: 600;
  color: var(--navy);
}
h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  margin: 0 0 1rem;
}
h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1rem;
}
h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}
p { margin: 0 0 1rem; color: var(--slate); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 38em;
}

/* —— Hero —— */
.hero {
  background: linear-gradient(145deg, var(--navy-deep) 0%, var(--navy) 55%, #243556 100%);
  color: var(--white);
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 50%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(196, 165, 116, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lead { color: rgba(255, 255, 255, 0.85); }
.hero .eyebrow { color: var(--warm); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--warm);
  color: var(--navy-deep);
  border-color: var(--warm);
}
.btn-primary:hover {
  background: var(--warm-soft);
  color: var(--navy-deep);
  border-color: var(--warm-soft);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-deep);
  color: var(--white);
}

/* —— Trust bar —— */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.trust-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  font-size: 0.9rem;
  color: var(--slate);
}
.trust-bar li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.trust-bar strong { color: var(--navy); font-weight: 600; }

/* —— Cards / practice grid —— */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--warm); }
.card h3 a {
  text-decoration: none;
  color: var(--navy);
}
.card h3 a:hover { color: var(--warm-dark); }
.card p { font-size: 0.95rem; margin-bottom: 0; }

.practice-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1.5rem;
}
.practice-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
}
.practice-list a:hover {
  border-color: var(--warm);
  background: var(--cream);
}
.practice-list .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warm);
  flex-shrink: 0;
}

/* —— About / content —— */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.aside-panel {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.aside-panel h3 { color: var(--white); margin-bottom: 1rem; }
.aside-panel p,
.aside-panel li { color: rgba(255, 255, 255, 0.85); }
.aside-panel ul {
  margin: 0;
  padding-left: 1.15rem;
}
.aside-panel li { margin-bottom: 0.5rem; }
.aside-panel .btn-primary { margin-top: 1.25rem; }

.credentials {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}
.credentials li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.95rem;
}
.credentials li:last-child { border-bottom: none; }
.credentials dt,
.credentials .label {
  font-weight: 600;
  color: var(--navy);
  min-width: 7rem;
}
.credentials .value { color: var(--slate); }

/* —— CTA band —— */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 3.25rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 36em;
  margin: 0 auto 1.5rem;
}
.cta-band .hero-actions { justify-content: center; }

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
}
.contact-card h3 { margin-bottom: 1rem; }
.contact-item {
  margin-bottom: 1.1rem;
}
.contact-item:last-child { margin-bottom: 0; }
.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-light);
  margin-bottom: 0.25rem;
}
.contact-item a,
.contact-item address {
  font-style: normal;
  font-size: 1.05rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}
.contact-item a:hover { color: var(--warm-dark); text-decoration: underline; }

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.hours-note {
  font-size: 0.9rem;
  color: var(--slate);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Practice area detail pages style on practice.html */
.practice-detail {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.practice-detail:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.practice-detail h2 { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* —— Footer —— */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.site-footer h3 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.site-footer a:hover { color: var(--warm); }
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li { margin-bottom: 0.45rem; }
.footer-brand .logo-name { color: var(--white); font-size: 1.1rem; }
.footer-brand .logo-tag { color: rgba(255, 255, 255, 0.5); }
.footer-brand p { color: rgba(255, 255, 255, 0.7); margin-top: 0.75rem; font-size: 0.9rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}
.footer-bottom p { color: inherit; margin-bottom: 0.5rem; }

/* —— Page hero (inner pages) —— */
.page-hero {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 2.75rem 0 2.25rem;
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero .lead { margin: 0; }

/* —— Responsive —— */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1.25rem;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }
  .header-inner { position: relative; }
  .grid-2,
  .grid-3,
  .practice-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero { padding: 3.25rem 0 3rem; }
  .section { padding: 3rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
  }
}
