/* ======================================
   Fuhrmann Global — Base Styles
   Shared across all pages.
   Extend with a page-specific CSS file.
   ====================================== */

/* ===== Variables ===== */
:root {
  --bg: #FAF7F2;
  --bg-card: #FFFFFF;
  --bg-alt: #F2EEE5;
  --text: #1A1A1A;
  --text-soft: #4A4A4A;
  --headline: #0F1F3D;
  --accent: #7D6439;          /* brass, darkened from #8B6F3F for WCAG AA on cream and alt surfaces */
  --accent-hover: #745A30;
  --brass-on-navy: #B89968;   /* lifted brass for accents on the navy header (WCAG AA on navy) */
  --secondary: #5B6977;       /* slate, darkened from #6B7B8C for WCAG AA on cream and alt surfaces */
  --border: #E8E2D7;
  --border-strong: #D4CCB9;
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ===== Accessibility helpers ===== */

/* Visually hidden but available to screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link: hidden until focused, then visible top-left */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  background: var(--headline);
  color: var(--bg);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  border-radius: 2px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Visible keyboard focus indicator across all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 1px;
}

/* The <main> landmark receives focus from the skip link; suppress its outline
   (reading position is moved without a distracting ring on a full-width region) */
main:focus { outline: none; }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

section { padding: 5rem 0; }

@media (min-width: 768px) {
  section { padding: 7rem 0; }
}

/* ===== Typography ===== */
/* Base scale used on country pages and inner pages.
   Homepage overrides to larger sizes in home.css. */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: var(--headline);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: 2.5rem;  margin-bottom: 1.25rem; }
h2 { font-size: 2rem;    margin-bottom: 1.25rem; }
h3 { font-size: 1.625rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem;  margin-bottom: 0.5rem; }

h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; }

@media (min-width: 768px) {
  h1 { font-size: 3.25rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.875rem; }
}

p { margin-bottom: 1.25rem; max-width: 65ch; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: block;
}

.lead {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--text-soft);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--headline);
  color: var(--bg);
  padding: 0.95rem 1.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  min-height: 44px;
  line-height: 1.2;
}

.btn:hover { background: #1a2f53; }

.btn-accent { background: var(--accent); color: var(--bg); }
.btn-accent:hover { background: var(--accent-hover); }

.btn-outline {
  background: transparent;
  color: var(--headline);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover { background: var(--bg-alt); }

.link-arrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  display: inline-block;
  transition: color 0.2s ease;
}

.link-arrow:hover { color: var(--accent); }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(15, 31, 61, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 153, 104, 0.30);
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--headline);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand span {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

/* Inlined combo-horizontal logo in the header */
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo svg {
  height: 34px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .brand-logo svg { height: 46px; }
}

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

/* Mobile: when the toggle opens the menu, drop it down as a stacked panel */
.nav-links.is-open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--headline);
  border-bottom: 1px solid rgba(250, 247, 242, 0.12);
  box-shadow: 0 12px 24px rgba(15, 31, 61, 0.35);
  padding: 0.5rem 1.5rem 1rem;
}

.nav-links.is-open li {
  width: 100%;
  border-top: 1px solid rgba(250, 247, 242, 0.12);
}

.nav-links.is-open li:first-child { border-top: none; }

.nav-links.is-open a {
  display: flex;
  align-items: center;
  min-height: 48px;
  width: 100%;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  /* On desktop the menu is always visible; neutralise the open-state panel */
  .nav-links.is-open {
    position: static;
    flex-direction: row;
    gap: 2rem;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .nav-links.is-open li { border-top: none; width: auto; }
  .nav-links.is-open a { min-height: auto; width: auto; display: inline-flex; }
}

.nav-links a {
  font-size: 0.9375rem;
  color: rgba(250, 247, 242, 0.88);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--bg); }

/* Back link (book / credits headers) on the navy header */
.back-link {
  font-size: 0.9375rem;
  color: rgba(250, 247, 242, 0.88);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link:hover { color: var(--bg); }

/* Nav CTA button — used on country pages */
.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--brass-on-navy);
  color: var(--headline) !important;
  padding: 0.75rem 1.375rem;
  border-radius: 2px;
  font-size: 0.875rem !important;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s ease;
  min-height: 44px;
}

.nav-cta:hover {
  background: #C9AA78;
  color: var(--headline) !important;
}

/* Homepage header uses .btn.btn-accent; lift it to navy-ground brass in the header only */
.site-header .btn-accent {
  background: var(--brass-on-navy);
  color: var(--headline);
  padding: 0.75rem 1.375rem;
  border-radius: 2px;
}

.site-header .btn-accent:hover { background: #C9AA78; }

.nav-mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

.nav-mobile-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--bg);
  transition: all 0.3s ease;
}

@media (min-width: 900px) {
  .nav-mobile-toggle { display: none; }
}

/* ===== CTA section (shared base) ===== */
/* Background, text colors, and eyebrow are shared.
   Alignment and p max-width differ per page (see page CSS). */
.cta-section { background: var(--headline); }

.cta-section .eyebrow { color: #C49B5C; }

.cta-section h2 {
  color: var(--bg);
  margin-bottom: 1.25rem;
}

.cta-section h2 em { color: #E8C794; }

.cta-section p {
  color: rgba(250, 247, 242, 0.82);
  margin-bottom: 2.5rem;
}

/* ===== Footer ===== */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--headline);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.footer-brand span {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 0.75rem;
  max-width: 30ch;
}

.contact-line {
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin-bottom: 0;
}

.contact-line a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-line a:hover { color: var(--accent-hover); }

.footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--headline);
  margin-bottom: 1rem;
}

.footer-list { list-style: none; padding: 0; margin: 0; }

.footer-list li { margin-bottom: 0.6rem; }

.footer-list a {
  font-size: 0.9375rem;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-list a:hover { color: var(--accent); }

.footer-disclaimer {
  font-size: 0.8125rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.footer-disclaimer strong { color: var(--headline); font-weight: 600; }

.footer-meta {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}

.footer-meta a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.footer-meta a:hover { color: var(--accent); }
