/* Sound Defenders, PLLC — static site */
:root {
  --ivory: #FAF8F2;
  --pale-sage: #E6EBDF;
  --sand: #EFE9DD;
  --sage: #9CAF88;
  --olive: #5D6126;
  --charcoal: #3E3E3E;
  --white: #ffffff;
  --link: #2F4A6E;
  --max: 1100px;
  --header-h: 72px;
}

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

html { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--ivory);
}

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

a { color: var(--link); }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: var(--olive);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(1.75rem, 3.5vw, 2.35rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #e5e1d6;
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.logo-link { flex-shrink: 0; }
.logo-link img {
  height: 48px;
  width: auto;
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav a:hover { color: var(--olive); }
.nav a.active {
  color: var(--olive);
  border-bottom-color: var(--olive);
}

.header-phone {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.header-phone:hover { color: var(--olive); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--olive);
  color: var(--olive);
  border-radius: 4px;
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Sections */
.section { padding: 3.25rem 0; }
.section-sm { padding: 2.5rem 0; }

.bg-pale { background: var(--pale-sage); }
.bg-sand { background: var(--sand); }
.bg-ivory { background: var(--ivory); }
.bg-sage { background: var(--sage); }

.lead { max-width: 46rem; }

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--olive);
  line-height: 1.2;
}

.btn-primary {
  background: var(--olive);
  color: var(--white);
}
.btn-primary:hover {
  background: #4a4e1e;
  border-color: #4a4e1e;
  color: var(--white);
  text-decoration: none;
}

.btn-secondary {
  background: var(--white);
  color: var(--olive);
}
.btn-secondary:hover {
  background: var(--ivory);
  color: var(--olive);
  text-decoration: none;
}

/* Communities */
.communities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.communities-grid h3 { margin-bottom: 0.6rem; }

.list-cols {
  columns: 2;
  column-gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-cols li {
  break-inside: avoid;
  padding: 0.2rem 0;
}

.list-cols.one-col { columns: 1; }

/* Office cards */
.offices-intro {
  margin-bottom: 1.5rem;
  max-width: 40rem;
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.office-card {
  background: var(--white);
  border-radius: 6px;
  padding: 1.15rem 1.1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.office-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.45rem;
}

.office-card h3 { margin-bottom: 0.4rem; }
.office-card p { margin: 0; font-size: 0.95rem; }

.section.bg-sage h2,
.section.bg-sage .offices-intro { color: var(--olive); }
.section.bg-sage .offices-intro { color: var(--charcoal); }

/* Practice area / charge cards */
.pa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 0.5rem;
}

.pa-card {
  background: var(--white);
  border-radius: 6px;
  padding: 1.35rem 1.25rem;
  border-top: 4px solid var(--olive);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.pa-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}
.pa-card li { margin: 0.3rem 0; }

.charge-stack {
  display: grid;
  gap: 1.35rem;
}

.charge-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid #e4e0d4;
  border-left: 5px solid var(--olive);
  box-shadow: 0 1px 3px rgba(61, 61, 40, 0.06);
}

.charge-card-top {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin-bottom: 0.85rem;
}

.charge-icon {
  flex-shrink: 0;
  display: flex;
  line-height: 0;
}

.charge-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
}

.charge-card h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

.charge-desc {
  margin: 0 0 1rem;
  max-width: 52rem;
}

.charge-examples-label {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--olive);
}

.charge-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1.5rem;
}

.charge-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.98rem;
}

.charge-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--sage);
}

.charge-cta {
  margin-top: 1.75rem;
  background: var(--pale-sage);
  border-radius: 8px;
  padding: 1.35rem 1.5rem;
  border: 1px solid #d7dfcf;
}

.charge-cta p {
  margin: 0;
  max-width: 46rem;
  font-size: 1.02rem;
}

/* Court links */
.court-note {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  color: var(--charcoal);
}

.court-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 2rem;
}

.court-list a {
  color: var(--link);
  font-weight: 500;
}

.contact-panel {
  background: var(--white);
  border-radius: 6px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  max-width: 48rem;
}

/* Footer */
.site-footer {
  background: var(--olive);
  color: var(--white);
  padding: 1.35rem 0;
  text-align: center;
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }

.footer-sep { margin: 0 0.45rem; opacity: 0.7; }

/* Mobile */
@media (max-width: 900px) {
  .office-grid { grid-template-columns: 1fr 1fr; }
  .pa-grid { grid-template-columns: 1fr; }
  .charge-list { grid-template-columns: 1fr; }
  .court-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-block; }
  .nav, .header-phone { display: none; }
  .header-inner.nav-open .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid #e5e1d6;
    gap: 0.85rem;
  }
  .header-inner.nav-open .header-phone {
    display: block;
    position: absolute;
    top: calc(100% + 9.5rem);
    left: 1.25rem;
    padding-bottom: 1rem;
  }
  .site-header { position: relative; }
  .communities-grid { grid-template-columns: 1fr; }
  .list-cols { columns: 1; }
  .office-grid { grid-template-columns: 1fr; }
  .section { padding: 2.4rem 0; }
  .charge-card { padding: 1.25rem 1.1rem; }
  .charge-card-top { align-items: flex-start; }
  .container { width: min(100% - 1.75rem, var(--max)); }
}

@media (min-width: 721px) {
  .header-inner.nav-open .nav { display: flex; }
}

/* Boxed communities */
.communities-grid > div {
  background: var(--white);
  border: 1px solid #E3E0D6;
  border-left: 4px solid var(--olive);
  border-radius: 6px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* Google Maps links on office cards */
.office-card a.map-link { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--olive); }
.office-card a.map-link:hover { color: var(--olive); }
.office-card .map-cta { margin-top: .6rem; }
.office-card .map-cta a { color: var(--olive); font-weight: 600; text-decoration: none; font-size: .95rem; }
.office-card .map-cta a:hover { text-decoration: underline; }
