/* ============================================
   BASE — Design tokens, reset, typography,
   layout, animations, and buttons.
   Shared across all page templates.
   ============================================ */

/* ── DESIGN TOKENS ──────────────────────────── */
:root {
  --navy:          #0D1B2A;
  --navy2:         #162335;
  --saffron:       #E8873A;
  --saffron-light: #F5A05A;
  --gold:          #C9933A;
  --cream:         #F7F2EA;
  --cream2:        #EDE5D8;
  --text:          #1A1A2E;
  --muted:         #6B7280;
  --white:         #FFFFFF;
  --border:        rgba(13,27,42,0.10);
  --border2:       rgba(13,27,42,0.06);
  --shadow:        0 4px 32px rgba(13,27,42,0.12);
  --shadow-lg:     0 12px 60px rgba(13,27,42,0.18);
  --ff-head:       'Playfair Display', Georgia, serif;
  --ff-body:       'Golos Text', sans-serif;
  --radius:        12px;
  --radius-lg:     20px;
  /* -- SPACING TOKENS -- */
  --space-xs:   8px;   --space-sm:  16px;
  --space-md:  24px;   --space-lg:  48px;
  --space-xl:  80px;   --space-xxl: 120px;
  /* -- LAYOUT TOKENS -- */
  --max-width-site:     1180px;
  --max-width-content:   840px;
  --max-width-narrow:    640px;
}

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

/* ── BASE ───────────────────────────────────── */
html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* propagates to viewport — fixes sticky header in Edge */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.5;
  overflow-x: clip; /* clip doesn't create a scroll container — preserves position:sticky */
}
a   { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── TYPOGRAPHY ─────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--ff-head); line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 900; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 700; }

.section-label {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 1rem;
}

/* ── LAYOUT ─────────────────────────────────── */
.container { max-width: var(--max-width-site); margin: 0 auto; padding: 0 24px; }
section    { padding: 80px 0; }

/* ── ANIMATIONS ─────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse-dot {
  0%,100% { transform: scale(1);   opacity: 1; }
  50%     { transform: scale(1.4); opacity: 0.6; }
}
@keyframes float {
  0%,100% { transform: translateY(0);    }
  50%     { transform: translateY(-10px); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes drawerOut  { from { transform: translateX(0);   } to { transform: translateX(100%); } }
@keyframes overlayOut { from { opacity: 1; }                  to { opacity: 0; }                 }

.fade-up  { animation: fadeUp 0.7s ease both; }
.delay-1  { animation-delay: 0.10s; }
.delay-2  { animation-delay: 0.25s; }
.delay-3  { animation-delay: 0.40s; }
.delay-4  { animation-delay: 0.55s; }
.delay-5  { animation-delay: 0.70s; }
.d1 { animation-delay: 0.10s; }
.d2 { animation-delay: 0.25s; }
.d3 { animation-delay: 0.40s; }
.d4 { animation-delay: 0.55s; }

/* ── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 8px;
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--saffron);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(232,135,58,0.35);
}
.btn-primary:hover {
  background: var(--saffron-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,135,58,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--navy2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13,27,42,0.25);
}
.btn-white {
  background: var(--white);
  color: var(--saffron);
}
.btn-white:hover {
  background: var(--cream);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── SKIP NAVIGATION ────────────────────────── */
.skip-nav {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 9999;
  background: var(--navy);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: top .15s ease;
  white-space: nowrap;
}
.skip-nav:focus {
  top: 0;
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
}

/* ── ACCESSIBILITY ──────────────────────────── */
:focus-visible         { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
button:focus-visible,
a:focus-visible        { outline: 2px solid var(--saffron); outline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   SEO CONTENT SECTION (Rank Math post_content)
   Matches site design system exactly.
   ============================================ */

/* Section wrapper */
.seo-page-content {
  padding: var(--space-xl) 0;
  background: var(--cream);
  border-top: 2px solid var(--cream2);
}

.seo-content-inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
  font-family: var(--ff-body);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}

/* Headings inside SEO content */
.seo-content-inner h2,
.seo-content-inner .rm-kw-h2 {
  font-family: var(--ff-head);
  color: var(--navy);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--cream2);
}
.seo-content-inner h2:first-child,
.seo-content-inner .rm-kw-h2:first-child {
  margin-top: 0;
}

.seo-content-inner h3 {
  font-family: var(--ff-head);
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
}

/* Intro paragraph with keyword */
.seo-content-inner .rm-intro-added,
.seo-content-inner p.rm-intro-added {
  font-size: 1.05rem;
  color: var(--navy);
  background: var(--white);
  border-left: 4px solid var(--saffron);
  padding: 1.25rem 1.5rem !important;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2rem;
  line-height: 1.75;
}

/* Body paragraphs */
.seo-content-inner p {
  margin-bottom: 1.1rem;
  color: var(--text);
}

/* Lists */
.seo-content-inner ul,
.seo-content-inner ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.seo-content-inner li {
  margin-bottom: 0.45rem;
  color: var(--text);
}

/* Strong / bold */
.seo-content-inner strong {
  color: var(--navy);
  font-weight: 700;
}

/* Links */
.seo-content-inner a {
  color: var(--saffron);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.seo-content-inner a:hover {
  color: var(--gold);
}

/* Related links block — matches site card style */
.seo-content-inner .rm-related-links,
.rm-related-links {
  margin-top: 2.5rem !important;
  padding: 1.5rem 1.75rem !important;
  background: var(--cream) !important;
  border-left: 4px solid var(--saffron) !important;
  border-radius: 0 var(--radius) var(--radius) 0 !important;
  color: var(--text) !important;
}

.rm-related-links > p {
  font-family: var(--ff-body);
  font-weight: 700 !important;
  color: var(--navy) !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin-bottom: 0.875rem !important;
}

.rm-related-links ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
}

.rm-related-links ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0 !important;
}

.rm-related-links ul li::before {
  content: '→';
  color: var(--saffron);
  font-weight: 700;
  flex-shrink: 0;
}

.rm-related-links ul li a {
  color: var(--navy) !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  transition: color 0.2s;
}

.rm-related-links ul li a:hover {
  color: var(--saffron) !important;
}

/* SEO image figure — hide logo-as-content-image visually */
/* Image still exists in DOM for Rank Math analysis */
.rm-seo-img {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .seo-page-content { padding: 56px 16px 64px; }
  .seo-content-inner h2,
  .seo-content-inner .rm-kw-h2 { font-size: 1.4rem; }
}
