/* ============================================================
   PRECEDENT ADVISORY — Main Stylesheet
   ============================================================ */

:root {
  --cream: #FAF7F2;
  --warm-white: #FDF9F4;
  --bg-section: #F5F0E8;
  --gold: #B8894A;
  --gold-light: #D4A96A;
  --dark: #1C1812;
  --charcoal: #2E2A24;
  --mid: #5C5549;
  --light: #9A9088;
  --rule: #D4C9B8;
  --nav-height: 80px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  background: var(--cream);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  height: var(--nav-height);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 48px;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 48px; height: 48px;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px; font-weight: 700;
  color: var(--gold); letter-spacing: 1px;
  flex-shrink: 0;
}
.nav-logo-text { line-height: 1.1; }
.nav-logo-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--dark);
}
.nav-logo-sub {
  font-size: 9px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-top: 2px;
}
.nav-links {
  display: flex; align-items: center; gap: 32px; list-style: none;
}
.nav-links a {
  font-size: 13px; letter-spacing: 0.06em; color: var(--mid);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--dark); }
.nav-cta {
  display: inline-flex; align-items: center;
  padding: 11px 24px;
  background: var(--dark); color: var(--cream) !important;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 100px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--dark) !important; }

.nav-mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-mobile-toggle span {
  display: block; width: 22px; height: 2px; background: var(--dark);
  transition: all 0.3s;
}
.nav-mobile-menu {
  display: none; position: fixed; top: var(--nav-height); left: 0; right: 0;
  background: var(--cream); border-bottom: 1px solid var(--rule);
  padding: 24px 32px; z-index: 99;
}
.nav-mobile-menu.open { display: block; }
.nav-mobile-menu ul { list-style: none; }
.nav-mobile-menu ul li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.nav-mobile-menu ul li:last-child { border-bottom: none; }
.nav-mobile-menu a { font-size: 15px; color: var(--dark); }

/* ============================================================
   PAGE HEADER (dark hero used across inner pages)
   ============================================================ */
.page-header {
  background: var(--charcoal);
  padding: calc(var(--nav-height) + 80px) 0 80px;
  position: relative; overflow: hidden;
}
.page-header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.page-header-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 48px;
}
.page-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.page-eyebrow::before {
  content: ''; display: block; width: 32px; height: 1px; background: var(--gold);
}
.page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600; line-height: 1.1;
  color: var(--cream); margin-bottom: 20px;
}
.page-title em { font-style: italic; color: var(--gold-light); }
.page-subtitle {
  font-family: Georgia, serif;
  font-size: 19px; font-weight: 300; line-height: 1.7;
  color: rgba(250,247,242,0.65); max-width: 600px;
}

/* ============================================================
   MAIN CONTENT WRAPPER
   ============================================================ */
.page-main {
  max-width: 1400px; margin: 0 auto; padding: 0 48px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--charcoal);
  padding: 64px 0 32px;
  margin-top: 0;
}
.footer-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 48px;
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px; font-weight: 700; color: var(--cream);
  letter-spacing: 1px; margin-bottom: 8px;
}
.footer-brand-tag {
  font-family: Georgia, serif; font-style: italic;
  font-size: 13px; color: rgba(250,247,242,0.4);
  margin-bottom: 20px; line-height: 1.6;
}
.footer-contact-item {
  font-size: 13px; color: rgba(250,247,242,0.55);
  margin-bottom: 6px; line-height: 1.5;
}
.footer-contact-item a { color: var(--gold); }
.footer-col-head {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px; font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 13px; color: rgba(250,247,242,0.55);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--cream); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-size: 11px; color: rgba(250,247,242,0.25);
  letter-spacing: 0.05em;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; cursor: pointer;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500; transition: all 0.2s; border: none;
}
.btn-dark { background: var(--dark); color: var(--cream); }
.btn-dark:hover { background: var(--gold); color: var(--dark); }
.btn-outline {
  background: transparent; color: var(--dark);
  border: 1px solid var(--dark);
}
.btn-outline:hover { background: var(--dark); color: var(--cream); }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-light); }

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.section-divider {
  display: flex; align-items: center; gap: 20px;
  margin: 64px 0 32px;
}
.section-divider-label {
  font-family: Georgia, serif;
  font-size: 22px; font-weight: 600; color: var(--dark); white-space: nowrap;
}
.section-divider-line { flex: 1; height: 1px; background: var(--rule); }
.section-divider-tag {
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); white-space: nowrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-height: 68px; }
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-inner { padding: 0 24px; }
  .page-header-inner, .page-main, .footer-inner { padding: 0 24px; }
  .page-header { padding: calc(var(--nav-height) + 48px) 0 48px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
