@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #FBF8F3;
  --bg-panel: #F2EDE3;
  --teal: #1F4B43;
  --teal-deep: #163530;
  --teal-tint: #E4EDEA;
  --amber: #C17F3D;
  --ink: #22201C;
  --ink-soft: #55534C;
  --line: #DED6C4;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--teal-deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { max-width: 68ch; color: var(--ink-soft); }
a { color: var(--teal); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: 20;
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 48px;
  padding: 18px 0;
  max-width: var(--max); margin: 0 auto; padding-left: 28px; padding-right: 28px;
}
.brand-block { line-height: 1.1; display: flex; align-items: center; }
.brand-logo-link { display: inline-block; line-height: 0; }
.brand-logo { height: 70px; width: auto; display: block; }
@media (max-width: 780px) { .brand-logo { height: 50px; } }
.hero .tagline-lead {
  font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 500;
  color: var(--amber); margin: 10px 0 22px;
}
nav.links { display: flex; gap: 26px; align-items: center; }
nav.links a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
}
nav.links a:hover, nav.links a.active { border-bottom-color: var(--amber); }
nav.links a.nav-compact { font-size: 0.85rem; margin-right: -12px; }
.nav-cta {
  background: var(--teal); color: #fff !important; padding: 7px 14px; border-radius: 3px;
  border-bottom: none !important; font-size: 0.85rem !important;
}
.nav-cta:hover { background: var(--teal-deep); border-bottom: none !important; }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--teal-deep); }

@media (max-width: 780px) {
  nav.links {
    display: none; flex-direction: column; align-items: flex-start; gap: 14px;
    position: absolute; top: 100%; left: 0; right: 0; background: var(--bg);
    padding: 20px 28px; border-bottom: 1px solid var(--line);
  }
  nav.links.open { display: flex; }
  .mobile-toggle { display: block; }
  .nav-cta { margin-top: 6px; }
}

/* Hero */
.hero {
  padding: 96px 0 76px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(31,75,67,0.08), transparent 60%),
    linear-gradient(180deg, #FDFBF7 0%, var(--bg) 100%);
}
.hero .kicker {
  color: var(--amber); font-weight: 600; font-size: 0.95rem; margin-bottom: 14px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.hero p.lead { font-size: 1.15rem; max-width: 54ch; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 4px; font-weight: 600;
  text-decoration: none; font-size: 0.98rem; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 2px 10px rgba(31,75,67,0.22); }
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(31,75,67,0.28); }
.btn-ghost { border: 1.5px solid var(--teal); color: var(--teal); background: transparent; }
.btn-ghost:hover { background: var(--teal-tint); transform: translateY(-1px); }

.phone-line {
  margin-top: 22px; font-size: 0.95rem; color: var(--ink-soft);
}
.phone-line a { color: var(--teal-deep); font-weight: 600; text-decoration: none; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-panel); }
.section-head { max-width: 62ch; margin-bottom: 40px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 780px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg); border: 1px solid var(--line); padding: 30px; border-radius: 6px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(22,53,48,0.09); border-color: #CBBF9E; }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.97rem; }

.stat-row { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 10px; }
.stat b { display: block; font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--teal-deep); }
.stat span { color: var(--ink-soft); font-size: 0.92rem; }

.quote {
  border-left: 3px solid var(--amber); padding-left: 22px; margin: 0;
  font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--teal-deep); font-weight: 500;
}
.quote cite { display: block; margin-top: 12px; font-family: 'Inter', sans-serif; font-style: normal; font-size: 0.88rem; color: var(--ink-soft); font-weight: 500; }

table.compare { width: 100%; border-collapse: collapse; margin-top: 10px; }
table.compare th, table.compare td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
table.compare th { color: var(--teal-deep); font-family: 'Playfair Display', serif; font-weight: 600; }

.timeline { border-left: 2px solid var(--line); margin-left: 6px; padding-left: 28px; }
.timeline .step { position: relative; padding-bottom: 34px; }
.timeline .step:last-child { padding-bottom: 0; }
.timeline .step::before {
  content: ""; position: absolute; left: -33px; top: 4px; width: 12px; height: 12px;
  background: var(--amber); border-radius: 50%;
}

/* CTA band */
.cta-band {
  background: var(--teal); color: #fff; text-align: left; padding: 56px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #D9E6E2; }
.cta-band .btn-primary { background: var(--amber); }
.cta-band .btn-primary:hover { background: #A76A2E; }

/* Footer */
footer.site {
  background: var(--teal-deep); color: #C9D6D2; padding: 48px 0 28px; font-size: 0.9rem;
}
footer.site .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer.site h4 { color: #fff; font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 14px; }
footer.site a { color: #C9D6D2; text-decoration: none; display: block; margin-bottom: 8px; }
footer.site a:hover { color: #fff; }
footer.site .fine { margin-top: 32px; padding-top: 20px; border-top: 1px solid #2C544C; color: #8FA69F; font-size: 0.82rem; }
@media (max-width: 780px) { footer.site .wrap { grid-template-columns: 1fr; } }

/* Forms */
form.contact-form { display: grid; gap: 16px; max-width: 520px; }
form.contact-form label { font-size: 0.9rem; font-weight: 600; color: var(--teal-deep); display: block; margin-bottom: 6px; }
form.contact-form input, form.contact-form select, form.contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px;
  font-family: 'Inter', sans-serif; font-size: 0.97rem; background: #fff;
}
form.contact-form textarea { resize: vertical; min-height: 120px; }

.badge-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.badge { border: 1px solid var(--line); padding: 8px 14px; border-radius: 3px; font-size: 0.85rem; color: var(--ink-soft); }

/* Photo band — placeholder gradient until real photos are supplied */
.photo-band {
  height: 440px; position: relative; overflow: hidden;
  background:
    linear-gradient(0deg, rgba(22,53,48,0.55), rgba(22,53,48,0.15)),
    linear-gradient(135deg, #2A5F55 0%, #1F4B43 45%, #163530 100%);
  display: flex; align-items: flex-end;
}
@media (max-width: 780px) { .photo-band { height: 260px; } }
.photo-band .wrap { padding-bottom: 28px; }
.photo-band .photo-cap {
  color: #EAF1EF; font-size: 0.85rem; letter-spacing: 0.03em; opacity: 0.85;
}
.photo-band[data-pending="true"]::after {
  content: "Photo placeholder — swap in a licensed image of this location";
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 0.8rem; letter-spacing: 0.03em; text-align: center; padding: 0 20px;
}
.photo-band.has-photo {
  background-size: cover; background-position: center;
}
.photo-band.pb-lighthouse { background-image: linear-gradient(0deg, rgba(22,53,48,0.55), rgba(22,53,48,0.2)), url('img/lighthouse-band.jpg'); }
.photo-band.pb-justice-hires { background-image: linear-gradient(0deg, rgba(22,53,48,0.5), rgba(22,53,48,0.15)), url('img/justice-band.jpg'); }
.photo-band.pb-desk-hires { background-image: linear-gradient(0deg, rgba(22,53,48,0.6), rgba(22,53,48,0.25)), url('img/desk-band.jpg'); }
.photo-band.pb-courthouse { background-image: linear-gradient(0deg, rgba(22,53,48,0.55), rgba(22,53,48,0.2)), url('img/courthouse-band.jpg'); }
.photo-band.pb-skyline { background-image: linear-gradient(0deg, rgba(22,53,48,0.5), rgba(22,53,48,0.15)), url('img/skyline-band.jpg'); }
.photo-band.pb-marina { background-image: linear-gradient(0deg, rgba(22,53,48,0.55), rgba(22,53,48,0.2)), url('img/marina-band.jpg'); }
.photo-band.pb-justice-blue { background-image: linear-gradient(0deg, rgba(22,53,48,0.35), rgba(22,53,48,0.1)), url('img/justice-blue-band.jpg'); }
.photo-band.pb-gavel { background-image: linear-gradient(0deg, rgba(22,53,48,0.55), rgba(22,53,48,0.25)), url('img/gavel-band.jpg'); }
.photo-band.pb-library { background-image: linear-gradient(0deg, rgba(22,53,48,0.6), rgba(22,53,48,0.3)), url('img/library-band.jpg'); }
.photo-band.pb-signing { background-image: linear-gradient(0deg, rgba(22,53,48,0.65), rgba(22,53,48,0.3)), url('img/signing-document.jpg'); }

/* Subtle tagline under main tagline / in footer */
.subtle-tagline {
  font-size: 0.8rem; color: var(--ink-soft); font-style: italic; margin-top: 2px;
}

/* Q&A accordion */
.qa-list { border-top: 1px solid var(--line); }
.qa-item { border-bottom: 1px solid var(--line); }
.qa-item summary {
  cursor: pointer; list-style: none; padding: 18px 4px; font-family: 'Playfair Display', serif;
  font-weight: 600; color: var(--teal-deep); font-size: 1.02rem; display: flex; justify-content: space-between; gap: 16px;
}
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary::after { content: "+"; color: var(--amber); font-size: 1.3rem; font-family: 'Inter', sans-serif; }
.qa-item[open] summary::after { content: "−"; }
.qa-item .qa-answer { padding: 0 4px 20px; color: var(--ink-soft); font-size: 0.97rem; max-width: 70ch; }

/* Expandable resource article cards */
.article-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 26px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.article-card:hover { box-shadow: 0 10px 24px rgba(22,53,48,0.07); border-color: #CBBF9E; }
.article-card summary { cursor: pointer; list-style: none; }
.article-card summary::-webkit-details-marker { display: none; }
.article-card summary h3 { margin-bottom: 8px; }
.article-card summary .teaser { color: var(--ink-soft); font-size: 0.95rem; display: block; }
.article-card summary .read-more { color: var(--amber); font-weight: 600; font-size: 0.85rem; display: inline-block; margin-top: 10px; }
.article-card[open] summary .read-more { display: none; }
.article-card .article-body { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.95rem; }
.article-body p { margin-bottom: 12px; }
.article-body p:last-child { margin-bottom: 0; }

/* Info bubble — small inline disclosure */
.info-bubble { display: inline-block; margin-left: 4px; }
.info-bubble summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.78rem; font-weight: 600; color: var(--teal); border: 1px solid var(--teal);
  border-radius: 20px; padding: 3px 10px; white-space: nowrap;
}
.info-bubble summary::-webkit-details-marker { display: none; }
.info-bubble summary::before { content: "i"; font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700; }
.info-bubble summary:hover { background: var(--teal-tint); }
.info-bubble .info-bubble-body {
  margin-top: 8px; padding: 12px 16px; background: var(--teal-tint); border-left: 3px solid var(--teal);
  border-radius: 4px; font-size: 0.88rem; color: var(--ink-soft); max-width: 60ch;
}

/* Relevant links */
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 2px; text-decoration: none; color: var(--teal-deep); font-weight: 600; font-size: 0.95rem;
}
.link-list a:hover { color: var(--amber); }
.link-list a::after { content: "→"; color: var(--amber); font-weight: 400; }
.link-list .link-sub { display: block; color: var(--ink-soft); font-weight: 400; font-size: 0.85rem; margin-top: 3px; }

/* Practice area jump nav */
.area-jump { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.area-jump a {
  border: 1px solid var(--line); border-radius: 30px; padding: 8px 18px; font-size: 0.88rem;
  text-decoration: none; color: var(--teal-deep); font-weight: 500; transition: all 0.15s ease;
}
.area-jump a:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
