/* =============================================
   Legal Consulting Website — Shared Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;

  --gold:       #b5933a;
  --gold-light: #d9bc80;
  --gold-pale:  #f5edd8;

  --ink:        #1a1814;
  --ink-mid:    #4a4640;
  --ink-muted:  #7a7570;
  --surface:    #faf8f4;
  --surface-2:  #f0ece4;
  --white:      #ffffff;
  --border:     rgba(90,80,60,0.15);
  --border-mid: rgba(90,80,60,0.25);
}

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

body {
  font-family: var(--sans);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Layout ---------- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,244,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--border);
}

.nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.nav__logo span {
  color: var(--gold);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--gold);
}

.nav__cta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  border: 0.5px solid var(--gold);
  border-radius: 2px;
  color: var(--gold) !important;
  transition: background 0.2s, color 0.2s !important;
}

.nav__cta:hover {
  background: var(--gold) !important;
  color: var(--white) !important;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 3rem 0;
  margin-top: 5rem;
}

.footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer__brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
}

.footer__brand span { color: var(--gold-light); }

.footer__tagline {
  font-size: 13px;
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--gold-light); }

.footer__bottom {
  max-width: 1080px;
  margin: 2rem auto 0;
  padding: 1.5rem 2rem 0;
  border-top: 0.5px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 12px 28px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
}

.btn--gold:hover { background: #9e7e2f; }

.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 0.5px solid var(--gold);
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--white);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 0.5px solid rgba(255,255,255,0.4);
}

.btn--outline-white:hover {
  background: rgba(255,255,255,0.1);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  padding: 4px 12px;
  border: 0.5px solid var(--gold-light);
  border-radius: 20px;
  color: var(--gold);
  background: transparent;
}

/* ---------- Section Divider ---------- */
.section {
  padding: 5rem 0;
  border-bottom: 0.5px solid var(--border);
}

.section:last-of-type { border-bottom: none; }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.7s ease both;
}

.fade-up--d1 { animation-delay: 0.1s; }
.fade-up--d2 { animation-delay: 0.2s; }
.fade-up--d3 { animation-delay: 0.3s; }
.fade-up--d4 { animation-delay: 0.4s; }
.fade-up--d5 { animation-delay: 0.5s; }

/* ---------- Divider line ---------- */
.rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 0.5px solid var(--border);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    align-items: flex-start;
  }
  .nav__toggle { display: flex; }
  .container, .container--narrow { padding: 0 1.25rem; }
  .section { padding: 3.5rem 0; }
}
