/* shared-layout.css — Consistent header/footer styles for static HTML pages.
   Mirrors the React app's Navbar + FooterSection components. */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ── Design Tokens (match React app) ─────────────────────── */
:root {
  --bg: #FAFAF2;
  --text: #1C1C1A;
  --primary: #876526;
  --gold: #C8963E;
  --border: #D9D9C8;
  --muted: #EDEDDE;
  --nav-border: #E4E4D0;
  --card-radius: 12px;
  --button-radius: 10px;
  --nav-radius: 12px;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 600;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
}

a { text-decoration: none; }

/* ── NAVBAR ───────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: max(16px, env(safe-area-inset-top, 16px)) 16px 0;
}

.nav-inner {
  max-width: 1056px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 20px;
  background: var(--bg);
  border: 2px solid var(--nav-border);
  border-radius: var(--nav-radius);
}

.nav-logo {
  display: flex;
  align-items: center;
  margin-left: -8px;
}
.nav-logo img {
  height: 48px;
  width: auto;
  transition: opacity 0.2s;
}
.nav-logo:hover img { opacity: 0.8; }

.nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  display: block;
  padding: 8px 16px;
  border-radius: var(--button-radius);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: rgba(28, 28, 26, 0.7);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a.active {
  color: var(--primary);
}

.nav-cta {
  display: none;
  padding: 8px 20px;
  border-radius: var(--button-radius);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: #D4B896;
  border: 2px solid var(--text);
  transition: all 0.2s;
}
.nav-cta:hover {
  transform: scale(1.05);
}

/* Hamburger button */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: none;
  color: hsl(0, 0%, 17%);
  cursor: pointer;
  transition: background 0.15s;
}
.nav-toggle:hover { background: hsl(30, 15%, 93%); }
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: all 0.2s;
}
.nav-toggle span + span { margin-top: 4px; }

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  max-width: 1056px;
  margin: 8px auto 0;
  padding: 12px 16px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 16px;
}
.nav-mobile.open { display: flex; }

.nav-mobile a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--button-radius);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: rgba(28, 28, 26, 0.7);
  transition: all 0.15s;
}
.nav-mobile a:hover {
  background: rgba(28, 28, 26, 0.05);
  color: var(--text);
}
.nav-mobile a.active {
  color: var(--primary);
}

.nav-mobile .nav-mobile-section {
  display: block;
  margin-top: 8px;
  margin-bottom: 4px;
  padding: 0 16px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(28, 28, 26, 0.5);
}

.nav-mobile .nav-mobile-cta {
  display: block;
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: var(--button-radius);
  text-align: center;
  font-weight: 600;
  color: var(--text);
  background: #D4B896;
  border: 2px solid var(--text);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta { display: block; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  position: relative;
  background: var(--bg);
  padding: 120px 24px 48px;
}

.footer-pattern { display: none; }

.footer-inner {
  position: relative;
  max-width: 1056px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Brand column */
.footer-logo {
  height: 64px;
  width: auto;
}

.footer-tagline {
  margin-top: 4px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(28, 28, 26, 0.6);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  color: rgba(28, 28, 26, 0.4);
  transition: all 0.2s;
}
.footer-social a:hover {
  border-color: rgba(135, 101, 38, 0.3);
  color: var(--primary);
}
.footer-social svg { width: 20px; height: 20px; }

.footer-copyright {
  margin-top: 16px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px;
  color: rgba(28, 28, 26, 0.6);
}

/* Link columns */
.footer-heading {
  display: block;
  margin-bottom: 16px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1;
  color: rgba(28, 28, 26, 0.7);
}

.footer-heading .diamond { display: none; }

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }

/* Bottom bar */
.footer-bottom {
  display: none;
}

.footer-disclaimers {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-disclaimers p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(28, 28, 26, 0.6);
  margin: 0;
}

/* ── CONTENT AREA ─────────────────────────────────────────── */
.content-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 112px 20px 64px; /* 112px top = 72px floating navbar + 40px spacing */
}

.breadcrumb {
  font-size: 13px;
  color: hsl(0, 0%, 53%);
  margin-bottom: 20px;
}
.breadcrumb a {
  color: var(--primary);
  transition: opacity 0.15s;
}
.breadcrumb a:hover { opacity: 0.7; }

.content-container h1 {
  color: var(--primary);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.content-container h2 {
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
}

.content-container h3 {
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
}

.content-container p {
  font-size: 16px;
  color: #444;
  margin-bottom: 16px;
}

.content-container ul,
.content-container ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.content-container li {
  margin-bottom: 6px;
  font-size: 15px;
  color: #444;
}

.answer-summary {
  font-size: 18px;
  color: var(--primary);
  font-weight: 500;
  background: rgba(135, 101, 38, 0.04);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  margin-bottom: 28px;
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
}

/* Tables */
.content-container table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 14px;
}
.content-container th {
  background: var(--primary);
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
}
.content-container td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e5e5;
}
.content-container tr:nth-child(even) {
  background: var(--bg);
}

/* CTA button */
.cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--button-radius);
  font-weight: 600;
  font-size: 15px;
  margin: 24px 0;
  transition: background 0.15s;
}
.cta:hover { background: #6F5422; }

/* Sources box */
.sources {
  background: hsl(40, 30%, 95%);
  padding: 20px;
  border-radius: var(--card-radius);
  margin: 32px 0;
}
.sources h3 { margin-top: 0; }
.sources ul { padding-left: 20px; }
.sources li { font-size: 14px; color: #666; margin-bottom: 6px; }

/* Attribution */
.attribution {
  font-size: 13px;
  color: hsl(0, 0%, 53%);
  border-top: 1px solid #e5e5e5;
  padding-top: 16px;
  margin-top: 40px;
}
.attribution a { color: var(--primary); }

/* Disclaimer */
.disclaimer {
  font-size: 12px;
  color: hsl(0, 0%, 60%);
  margin-top: 24px;
  line-height: 1.6;
}

/* Responsive table scroll */
@media (max-width: 640px) {
  .content-container table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
