/* ===========================================
   The Advocates - Website 8
   Design: emerald-finance
   Palette: forest green + cream + brass
   =========================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:root {
  --bg: #fbf8f1;
  --text: #0f2a1f;
  --accent: #1e5e3c;
  --accent-deep: #103b25;
  --muted: #6b7568;
  --surface: #eef2e8;
  --brass: #b8956a;
  --brass-soft: #d9c39d;
  --heading-font: 'Lora', Georgia, serif;
  --body-font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  color: var(--text);
  background-color: var(--bg);
  /* Subtle paper-texture using layered radial gradients */
  background-image:
    radial-gradient(circle at 15% 20%, rgba(184, 149, 106, 0.04) 0, transparent 35%),
    radial-gradient(circle at 80% 60%, rgba(30, 94, 60, 0.035) 0, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(15, 42, 31, 0.025) 0, transparent 45%);
  background-attachment: fixed;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* very faint noise overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.16 0 0 0 0 0.12 0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Header ---------- */
.site-header {
  background-color: var(--accent);
  color: #fbf8f1;
  border-bottom: 1px solid var(--brass);
  position: relative;
}
.site-header::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent 0, var(--brass) 30%, var(--brass) 70%, transparent 100%);
  opacity: 0.35;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fbf8f1;
}
.brand-logo img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
}
.brand-logo .brand-text {
  font-family: var(--heading-font);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.main-nav ul {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: #fbf8f1;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { border-bottom-color: var(--brass); }
.main-nav a.active {
  border-bottom-color: var(--brass);
  color: var(--brass-soft);
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  background-color: var(--surface);
  padding: 64px 28px 56px;
  border-bottom: 1px solid var(--brass);
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: 36px;
  text-align: center;
}
.hero h1 {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: clamp(2rem, 4vw + 0.5rem, 3.1rem);
  line-height: 1.18;
  color: var(--text);
  max-width: 880px;
  margin: 0 auto;
}
.hero .subtitle {
  font-family: var(--body-font);
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}
.hero-image {
  max-width: 960px;
  margin: 14px auto 0;
  border: 4px solid var(--accent);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 42, 31, 0.12);
}
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ---------- Main / sections ---------- */
main {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 28px 48px;
}
main h2 {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--accent);
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.25;
  position: relative;
  padding-bottom: 12px;
}
main h2::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background-color: var(--brass);
}
main h3 {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 10px;
}
main p {
  margin-bottom: 18px;
  color: var(--text);
}
main p a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 3px;
  font-weight: 500;
}
main p a:hover { color: var(--accent-deep); }

main ul.bullets {
  list-style: none;
  margin: 8px 0 22px;
  padding: 0;
}
main ul.bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}
main ul.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background-color: var(--brass);
  border-radius: 50%;
}

/* Section divider */
.section-rule {
  border: 0;
  height: 1px;
  background-color: var(--brass);
  opacity: 0.45;
  margin: 48px auto;
  max-width: 200px;
}

/* Inline images */
.inline-image {
  margin: 28px auto;
  max-width: 720px;
  border: 4px solid var(--brass);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 42, 31, 0.08);
}
.inline-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.inline-image figcaption {
  background-color: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  padding: 8px 14px;
  text-align: center;
  font-style: italic;
}

/* Pull quote / callout */
.callout {
  background-color: var(--surface);
  border-left: 4px solid var(--brass);
  padding: 22px 26px;
  margin: 32px 0;
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent-deep);
  border-radius: 0 6px 6px 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--accent-deep);
  color: #d9e0d4;
  padding: 56px 28px 32px;
  margin-top: 56px;
  border-top: 4px solid var(--brass);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}
.footer-brand h3 {
  font-family: var(--heading-font);
  color: #fbf8f1;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.footer-brand p {
  color: #c2cbbb;
  font-size: 0.95rem;
  margin-bottom: 16px;
  max-width: 360px;
  line-height: 1.6;
}
.footer-brand .copyright {
  font-size: 0.85rem;
  color: #a5b09c;
  margin-top: 16px;
}
.footer-pages h4 {
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-pages ul li {
  margin-bottom: 10px;
}
.footer-pages a {
  color: #d9e0d4;
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-pages a:hover {
  color: #fbf8f1;
  border-bottom-color: var(--brass);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
  }
  .main-nav ul {
    gap: 18px;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
  }
  .main-nav a { white-space: nowrap; font-size: 0.9rem; }
  .hero { padding: 44px 20px 36px; }
  .hero h1 { font-size: 1.85rem; }
  .hero .subtitle { font-size: 1rem; }
  main { padding: 44px 20px 32px; }
  main h2 { font-size: 1.45rem; margin-top: 36px; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: left;
  }
  .site-footer { padding: 44px 20px 28px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  main h2 { font-size: 1.3rem; }
  .brand-logo .brand-text { font-size: 1.15rem; }
  .brand-logo img { height: 44px; }
  .callout { padding: 18px; font-size: 1rem; }
}

/* ---------- Visit Us ---------- */
.visit-us {
  background-color: var(--bg);
  border-top: 1px solid var(--brass);
  padding: 56px 28px 64px;
}
.visit-us-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.visit-us h2 {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--accent);
  margin: 0 auto 14px;
  padding-bottom: 12px;
  line-height: 1.25;
  display: inline-block;
  position: relative;
}
.visit-us h2::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 1px;
  background-color: var(--brass);
}
.visit-us-address {
  font-style: normal;
  font-family: var(--body-font);
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.65;
  margin: 12px 0 8px;
}
.visit-us-phone {
  font-family: var(--body-font);
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 24px;
  letter-spacing: 0.01em;
}
.visit-us-map {
  max-width: 720px;
  margin: 0 auto;
  border: 4px solid var(--brass);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 42, 31, 0.08);
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: var(--surface);
}
.visit-us-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .visit-us { padding: 40px 20px 48px; }
  .visit-us h2 { font-size: 1.45rem; }
  .visit-us-address,
  .visit-us-phone { font-size: 1rem; }
}
