/* ── AuditGA4 Shared Styles ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --bg:           #faf9f7;
  --text:         #1c1a16;
  --accent:       #c8502a;
  --accent-light: #fdf0ec;
  --green:        #2a7a56;
  --green-light:  #edf7f2;
  --yellow:       #92700a;
  --yellow-light: #fdf8ec;
  --muted:        #8a8272;
  --border:       #e5e0d8;
  --surface:      #f3f0ea;
  --card:         #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 64px; height: 64px;
  background: rgba(250,249,247,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.logo { font-family: 'DM Serif Display', serif; font-size: 1.25rem; color: var(--text); letter-spacing: -0.02em; text-decoration: none; }
.logo em { font-style: italic; color: var(--accent); }
nav ul { list-style: none; display: flex; gap: 40px; }
nav ul a { color: var(--muted); text-decoration: none; font-size: 0.82rem; font-weight: 400; transition: color 0.2s; }
nav ul a:hover { color: var(--text); }
nav ul a.active { color: var(--text); font-weight: 500; }
.nav-cta { font-size: 0.82rem; font-weight: 500; color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: opacity 0.2s; }
.nav-cta:hover { opacity: 0.65; }

/* ── BUTTONS ── */
.btn-primary { background: var(--text); color: var(--bg); padding: 13px 28px; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 500; text-decoration: none; display: inline-block; transition: background 0.2s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--accent); }
.btn-outline { background: transparent; color: var(--text); padding: 12px 28px; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 400; text-decoration: none; display: inline-block; border: 1px solid var(--border); transition: all 0.2s; cursor: pointer; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── TYPOGRAPHY ── */
.serif { font-family: 'DM Serif Display', serif; font-weight: 400; }
.section-eyebrow { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 400; }
.section-title { font-family: 'DM Serif Display', serif; font-size: clamp(2rem, 3.5vw, 3.2rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 48px; }
.section-title em { font-style: italic; color: var(--accent); }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 48px 64px 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { display: block; margin-bottom: 16px; }
.footer-brand p { font-size: 0.85rem; color: var(--muted); line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); font-weight: 500; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--border); }
.footer-copy { font-size: 0.75rem; color: var(--muted); }

/* ── UTILITIES ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 64px; }
.divider { border: none; border-top: 1px solid var(--border); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.fade-up:nth-child(1) { animation-delay: 0.05s; }
.fade-up:nth-child(2) { animation-delay: 0.15s; }
.fade-up:nth-child(3) { animation-delay: 0.25s; }
.fade-up:nth-child(4) { animation-delay: 0.35s; }
.fade-up:nth-child(5) { animation-delay: 0.45s; }

/* ── RESPONSIVE ── */
/* ── Hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  margin-right: 16px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all 0.2s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  nav { padding: 0 24px; flex-wrap: wrap; position: relative; }
  nav ul { display: none; }
  nav ul.mobile-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 8px 0 16px;
    margin: 0;
    order: 10;
  }
  nav ul.mobile-open li { padding: 0; }
  nav ul.mobile-open a {
    display: block;
    padding: 12px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }
  nav ul.mobile-open a:last-child { border-bottom: none; }
  .nav-hamburger { display: flex; }
  .container { padding: 0 24px; }
  footer { padding: 40px 24px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ── NAV ACCOUNT PILL ── */
.nav-account { position: relative; }
.nav-account-btn {
  display: flex; align-items: center; gap: 2px;
  background: none; border: 1px solid var(--border);
  padding: 6px 12px; font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem; font-weight: 500; color: var(--text);
  cursor: pointer; transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-account-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav-account-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--bg); border: 1px solid var(--border);
  min-width: 180px; z-index: 200;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.nav-account-menu.open { display: block; }
.nav-account-item {
  display: block; width: 100%; padding: 10px 16px;
  font-size: 0.82rem; color: var(--text); text-decoration: none;
  background: none; border: none; text-align: left;
  font-family: 'DM Sans', sans-serif; cursor: pointer;
  transition: background 0.15s;
}
.nav-account-item:hover { background: var(--surface); }
.nav-account-divider { border-top: 1px solid var(--border); margin: 4px 0; }
.nav-account-signout { color: var(--muted); font-size: 0.78rem; }

.nav-signin {
  font-size: 0.82rem; font-weight: 400; color: var(--muted);
  text-decoration: none; margin-right: 4px;
  transition: color 0.2s;
}
.nav-signin:hover { color: var(--text); }
