/* ============================================================
   Law Office of Dan M Winder, P.C.
   Single stylesheet — no framework.
   ============================================================ */

:root {
  --navy:        #0F1E3D;
  --navy-700:    #1A2B52;
  --navy-300:    #4A5979;
  --gold:        #C9A961;
  --gold-dark:   #A8893E;
  --bg:          #FAFAF7;
  --bg-alt:      #F2EFE8;
  --paper:       #FFFFFF;
  --ink:         #1A1A1A;
  --ink-muted:   #4A5566;
  --border:      #E5E2D8;
  --urgent:      #A93226;
  --urgent-dark: #7E1F1A;

  --max:        1200px;
  --gutter:     clamp(1rem, 4vw, 2rem);
  --radius:     6px;
  --radius-lg:  12px;

  --shadow-sm:  0 1px 2px rgba(15, 30, 61, .06);
  --shadow-md:  0 8px 24px rgba(15, 30, 61, .10);
  --shadow-lg:  0 20px 50px rgba(15, 30, 61, .15);

  --serif: "Iowan Old Style", "Hoefler Text", Georgia, "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-family: var(--sans); font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-dark); }

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

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

/* ===== Skip link / accessibility ===== */
.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: var(--navy); color: #fff;
  padding: .5rem 1rem;
  z-index: 100;
}
.skip-link:focus { top: 0; }

/* ===== Topbar (always shows phone) ===== */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: .92rem;
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem var(--gutter);
  max-width: var(--max); margin: 0 auto; gap: 1rem;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar-hours { color: rgba(255,255,255,.75); }
.topbar-phone { font-weight: 700; }
.topbar-phone::before { content: "☎ "; color: var(--gold); }
@media (max-width: 640px) {
  .topbar-hours { display: none; }
  .topbar-inner { justify-content: center; }
}

/* ===== Site header ===== */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--gutter);
  max-width: var(--max); margin: 0 auto; gap: 1rem;
}
.brand {
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--navy);
  line-height: 1.1;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.brand-tag {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--gold-dark);
  margin-top: 2px;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: .98rem;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--gold);
}
.nav-cta {
  background: var(--urgent);
  color: #fff !important;
  padding: .65rem 1.1rem !important;
  border-radius: var(--radius);
  border: none !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--urgent-dark); }

.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--border);
  padding: .5rem .75rem; cursor: pointer;
  border-radius: var(--radius);
  font-size: 1.1rem;
}

@media (max-width: 880px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1rem var(--gutter);
    gap: .75rem; align-items: stretch;
  }
  .nav.open a { padding: .5rem 0; border-bottom: 1px solid var(--border); }
  .nav.open .nav-cta { text-align: center; border: none !important; }
  .menu-toggle { display: inline-block; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .1s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--urgent); color: #fff; }
.btn-primary:hover { background: var(--urgent-dark); color: #fff; }
.btn-secondary { background: var(--gold); color: var(--navy); }
.btn-secondary:hover { background: var(--gold-dark); color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-lg { padding: 1.1rem 1.75rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 8vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(201, 169, 97, .12), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(201, 169, 97, .08), transparent 40%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
}
.hero h1 .accent { color: var(--gold); }
.hero-lede {
  font-size: 1.15rem;
  color: rgba(255,255,255,.88);
  max-width: 36rem;
  margin-bottom: 2rem;
}
.hero-credentials {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  margin: 1.5rem 0 2rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,.15);
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.hero-credentials li {
  list-style: none;
  font-size: .92rem;
  color: rgba(255,255,255,.85);
}
.hero-credentials li strong {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero side panel — quick contact card */
.hero-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--gold);
}
.hero-card h2 {
  font-size: 1.4rem;
  margin-bottom: .25rem;
}
.hero-card p { color: var(--ink-muted); font-size: .95rem; }

/* ===== Section base ===== */
section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-eyebrow {
  display: inline-block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: .75rem;
}
.section-title { margin-bottom: 1rem; }
.section-intro { color: var(--ink-muted); max-width: 42rem; font-size: 1.1rem; }
.section-head { margin-bottom: 3rem; }
.section-head.center { text-align: center; }
.section-head.center .section-intro { margin-left: auto; margin-right: auto; }
.bg-alt { background: var(--bg-alt); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy .section-eyebrow { color: var(--gold); }

/* ===== Practice areas grid ===== */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.practice-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-decoration: none;
  color: var(--ink);
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.practice-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
  color: var(--ink);
}
.practice-card-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt);
  border-radius: 50%;
  color: var(--navy);
  margin-bottom: 1rem;
}
.practice-card-icon svg { width: 22px; height: 22px; }
.practice-card h3 {
  font-size: 1.2rem;
  margin-bottom: .5rem;
}
.practice-card p {
  color: var(--ink-muted);
  font-size: .95rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}
.practice-card-more {
  color: var(--navy);
  font-weight: 600;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.practice-card-more::after {
  content: " →";
  transition: margin-left .15s ease;
  display: inline-block;
}
.practice-card:hover .practice-card-more::after { margin-left: 6px; }

/* ===== Why us / feature list ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.feature {
  display: flex; flex-direction: column;
  gap: .75rem;
}
.feature-num {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
}
.feature h3 { color: #fff; font-size: 1.2rem; }
.feature p { color: rgba(255,255,255,.75); margin: 0; }

/* ===== About preview / split ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
}
.split-media {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  color: var(--ink-muted);
  text-align: center; padding: 2rem;
  border: 1px dashed var(--border);
  position: relative;
  overflow: hidden;
}
.split-media-placeholder {
  font-size: .9rem;
  font-family: var(--sans);
  background: var(--paper);
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.split-body .section-eyebrow { margin-top: 0; }
.credential-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.credential-list li {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}
.credential-list li::before {
  content: "✓";
  color: var(--gold-dark);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== Testimonials ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
  display: flex; flex-direction: column;
}
.testimonial-stars {
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.testimonial-body {
  font-style: italic;
  color: var(--ink);
  flex-grow: 1;
}
.testimonial-attribution {
  margin-top: 1rem;
  font-size: .9rem;
  color: var(--ink-muted);
  font-weight: 600;
}
.placeholder-banner {
  background: rgba(201, 169, 97, .12);
  border: 1px dashed var(--gold);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

/* ===== CTA banner ===== */
.cta-banner {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 4rem var(--gutter);
}
.cta-banner h2 { color: #fff; }
.cta-banner p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  max-width: 40rem;
  margin: 0 auto 2rem;
}
.cta-banner .btn-primary { background: var(--gold); color: var(--navy); }
.cta-banner .btn-primary:hover { background: var(--gold-dark); color: var(--navy); }

/* ===== Contact / form ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-block { margin-bottom: 1.5rem; }
.contact-block h4 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gold-dark);
  margin-bottom: .35rem;
}
.contact-block a, .contact-block p { font-size: 1.05rem; color: var(--ink); margin: 0; }
.contact-block a { font-weight: 600; }

.form-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--gold);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: .4rem;
  color: var(--navy);
}
.form-field label .req { color: var(--urgent); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, .25);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-disclaimer {
  font-size: .82rem;
  color: var(--ink-muted);
  margin-top: 1rem;
  line-height: 1.5;
}

/* ===== Footer ===== */
.site-footer {
  background: #0A1428;
  color: rgba(255,255,255,.75);
  padding: 4rem 0 1.5rem;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 1rem;
  font-family: var(--sans);
}
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-brand { font-family: var(--serif); font-size: 1.25rem; color: #fff; margin-bottom: .5rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}
.disclaimer {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  max-width: 60rem;
  line-height: 1.6;
  margin-top: 1rem;
}

/* ===== Floating call button (mobile) ===== */
.float-call {
  display: none;
  position: fixed;
  bottom: 1rem; right: 1rem;
  z-index: 60;
  background: var(--urgent);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 880px) {
  .float-call { display: inline-flex; align-items: center; gap: .5rem; }
}

/* ===== Practice area page ===== */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}
.page-header h1 { color: #fff; }
.page-header-lede { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 40rem; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,.85); }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin: 1em 0; }
.prose ul li, .prose ol li { margin-bottom: .5em; }

.sidebar-cta {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--gold);
  position: sticky;
  top: 110px;
}
.sidebar-cta h3 { color: var(--navy); margin-bottom: 1rem; }
.sidebar-cta .btn { width: 100%; margin-bottom: .75rem; }

.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
}
@media (max-width: 1024px) {
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar-cta { position: static; }
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.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;
}
