/* ============================================================
   AIGentti — Oppaat (guides) shared styles
   Reuses the site's brand tokens, nav and footer so the
   section matches the existing visual identity.
   ============================================================ */

:root {
  --brand:         #1E5FA8;
  --brand-light:   #4A8FD4;
  --brand-lighter: #EBF3FB;
  --brand-dark:    #0F3A6E;
  --navy:          #0C1929;
  --text:          #1A2B3C;
  --muted:         #5A7392;
  --bg:            #F7FAFD;
  --white:         #FFFFFF;
  --border:        #D0E4F5;
}

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

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

h1, h2, h3, h4, .exo { font-family: 'Exo 2', sans-serif; }

a { color: var(--brand); }

/* ─── NAV (identical to homepage) ──────────────────── */
/* Scoped to the top-level header so it never hijacks the
   breadcrumb <nav> nested inside the article page. */
body > nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 250, 253, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(208, 228, 245, 0.7);
}

.nav-logo img { height: 42px; width: auto; display: block; }

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

.nav-links a {
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--brand); }
.nav-links a.current { color: var(--brand); }
.nav-links a:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 3px; border-radius: 3px; }

.nav-cta {
  background: var(--brand) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.3rem;
  border-radius: 7px;
  box-shadow: 0 2px 14px rgba(30, 95, 168, 0.28);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
}
.nav-cta:hover {
  background: var(--brand-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 20px rgba(30, 95, 168, 0.38) !important;
}
.nav-cta:active { transform: translateY(0) !important; }

/* ─── BUTTONS (from homepage) ──────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand);
  color: var(--white);
  padding: 0.9rem 2.1rem;
  border-radius: 9px;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 24px rgba(30, 95, 168, 0.32), 0 1px 3px rgba(30, 95, 168, 0.2);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(30, 95, 168, 0.42), 0 2px 8px rgba(30, 95, 168, 0.25);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 3px; }

/* ─── SHARED LABEL ─────────────────────────────────── */
.label {
  display: inline-block;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.9rem;
}

/* ─── PAGE SHELL ───────────────────────────────────── */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 9.5rem 1.5rem 5rem;
}
.page-wide { max-width: 1040px; }

/* ─── BREADCRUMB ───────────────────────────────────── */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  font-family: 'Exo 2', sans-serif;
  letter-spacing: 0.01em;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { color: var(--border); margin: 0 0.5rem; }

/* ─── GUIDES INDEX ─────────────────────────────────── */
.guides-head { max-width: 620px; margin-bottom: 3.25rem; }

.guides-title {
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 1rem;
}
.guides-intro {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--muted);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.85rem 1.9rem 1.6rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 16px rgba(30, 95, 168, 0.055), 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.28s ease;
}
.guide-card:hover {
  transform: translateY(-5px);
  border-color: rgba(30, 95, 168, 0.35);
  box-shadow: 0 16px 48px rgba(30, 95, 168, 0.13), 0 4px 12px rgba(0,0,0,0.06);
}
.guide-card:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 3px; }

.guide-eyebrow {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.7rem;
}

.guide-card h2 {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.guide-teaser {
  font-size: 0.96rem;
  line-height: 1.62;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.guide-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}
.guide-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  color: var(--brand);
  transition: gap 0.2s ease;
}
.guide-card:hover .guide-readmore { gap: 0.65rem; }

/* ─── ARTICLE ──────────────────────────────────────── */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2.25rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(30, 95, 168, 0.12), 0 2px 8px rgba(0,0,0,0.05);
  background: linear-gradient(150deg, var(--navy) 0%, var(--brand-dark) 100%);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* placeholder shown until a real YouTube embed is pasted in */
.video-embed .video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 1.5rem;
}
.video-embed .play {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
}
.video-embed .play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.video-embed .video-placeholder span {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.article-eyebrow {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.85rem;
}

.article h1 {
  font-size: clamp(2rem, 4.6vw, 2.85rem);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 1.1rem;
}

.tldr {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--text);
  padding: 0 0 0 1.1rem;
  border-left: 3px solid var(--brand-light);
  margin-bottom: 2.5rem;
}

.article-body { font-size: 1.07rem; line-height: 1.78; color: var(--text); }
.article-body h2 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 2.6rem 0 0.9rem;
}
.article-body h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.8rem 0 0.6rem;
}
.article-body p { margin-bottom: 1.2rem; color: var(--muted); }
.article-body a { color: var(--brand); font-weight: 600; }
.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--brand-lighter);
  color: var(--brand-dark);
  padding: 0.1em 0.4em;
  border-radius: 5px;
  border: 1px solid var(--border);
}
.article-body ul, .article-body ol { margin: 0 0 1.2rem 1.3rem; color: var(--muted); }
.article-body li { margin-bottom: 0.5rem; }

/* pull-quote */
.article-body blockquote {
  margin: 2.2rem 0;
  padding: 1.75rem 2rem;
  background: linear-gradient(150deg, var(--navy) 0%, var(--brand-dark) 100%);
  border-radius: 16px;
  color: var(--white);
  font-family: 'Exo 2', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(15, 58, 110, 0.22);
}
.article-body blockquote::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 50% at 88% 0%, rgba(74, 143, 212, 0.4) 0%, transparent 60%);
  pointer-events: none;
}
.article-body blockquote p { color: var(--white); margin: 0; position: relative; z-index: 1; }

/* ─── CTA BLOCK ────────────────────────────────────── */
.cta-block {
  margin: 3.25rem 0 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.4rem 2.4rem 2.6rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(30, 95, 168, 0.08), 0 1px 3px rgba(0,0,0,0.04);
}
.cta-block h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 1.4rem;
  line-height: 1.25;
}

/* ─── AUTHOR ───────────────────────────────────────── */
.author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.author-box img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.author-name {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.02rem;
}
.author-name a { color: var(--navy); text-decoration: none; }
.author-name a:hover { color: var(--brand); }
.author-bio { font-size: 0.9rem; color: var(--muted); margin-top: 0.15rem; }
.author-bio a { color: var(--brand); font-weight: 600; }

/* ─── FOOTER (from homepage) ───────────────────────── */
footer {
  background: #05101E;
  padding: 2.75rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
footer img { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: 0.55; }
footer p { font-size: 0.83rem; color: rgba(255,255,255,0.28); }
footer a { color: rgba(255,255,255,0.45); text-decoration: none; }
footer a:hover { color: rgba(255,255,255,0.75); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
}
.footer-nav a {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: rgba(255, 255, 255, 0.9); }
.footer-nav a:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 3px; border-radius: 3px; }

/* ─── RESPONSIVE (matches homepage breakpoints) ────── */
@media (max-width: 640px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 1.1rem; }
  .nav-links li:not(:last-child):not(.nav-keep) { display: none; }
  .page { padding-top: 7.5rem; }
  .article-body blockquote { font-size: 1.18rem; padding: 1.4rem 1.5rem; }
}
