/* ================================================================
   style.css — "Svina garša" mājaslapa
   Šis CSS fails tiek IELĀDĒTS VISĀS 5 LAPĀS vienādā veidā.
   
   KĀ MAINĪT KRĀSAS: Maini vērtības :root sadaļā (rindas ~20-40)
   KĀ MAINĪT FONTUS: Maini --font-* vērtības
   ================================================================ */

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

/* ----------------------------------------------------------------
   KRĀSU MAINĪGIE — maini šeit, mainās visur
   ---------------------------------------------------------------- */
:root {
  /* Fona krāsas */
  --bg:          #faf7f2;      /* Galvenais lappuses fons — silti balta */
  --bg-dark:     #18181b;      /* Tumšais fons (header, hero) */
  --bg-card:     #ffffff;      /* Kartīšu fons */
  --bg-section:  #f0ebe3;      /* Mainīgo sadaļu fons */

  /* Akcenti — tumši sarkanbrūna + zelta */
  --accent:      #8b2e2e;      /* Galvenā akcenta krāsa (dziļi sarkana) */
  --accent-lt:   #b04040;      /* Gaišāka akcenta krāsa */
  --gold:        #c4973a;      /* Zelta detaļas */
  --gold-lt:     #d4aa55;      /* Gaišāks zelts */

  /* Tekstu krāsas */
  --text:        #1c1917;      /* Pamateksts */
  --text-mid:    #44403c;      /* Mazāk svarīgs teksts */
  --text-muted:  #78716c;      /* Blāvs teksts */
  --text-inv:    #faf7f2;      /* Teksts tumšā fonā */

  /* Robežlīnijas */
  --border:      #e0d9cf;

  /* Fonti */
  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'Crimson Pro', Georgia, serif;
  --font-ui:     'Inter', system-ui, sans-serif;

  /* Izmēri */
  --max-w:    1100px;
  --r:        6px;
  --r-lg:     14px;
  --t:        0.25s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
  font-size: 1.05rem;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent-lt); }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----------------------------------------------------------------
   NAVIGĀCIJA
   ---------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: rgba(24, 24, 27, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196, 151, 58, 0.25);
  transition: box-shadow var(--t);
}
.site-header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.5); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Logo */
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold) !important;
  letter-spacing: 1px;
}

/* Saites */
.nav-links { display: flex; gap: 0; }
.nav-links li a {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.65);
  padding: 0.45rem 0.65rem;
  border-radius: var(--r);
  transition: color var(--t), background var(--t);
  display: block;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--gold);
  background: rgba(196, 151, 58, 0.12);
}

/* Hamburger (mobilajiem) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px; height: 16px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; height: 2px;
  background: var(--text-inv);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

/* ----------------------------------------------------------------
   SADAĻU KOPĪGIE STILI
   ---------------------------------------------------------------- */
.content-section { padding: 5.5rem 0; }

/* Mazā etiķete */
.section-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--accent);
}

/* Galvenais virsraksts */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.75rem;
  color: var(--text);
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 660px;
  margin-bottom: 3rem;
  line-height: 1.85;
}

/* Pogas */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.8rem 1.75rem;
  border-radius: var(--r);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t);
}
.btn-solid {
  background: var(--accent);
  color: var(--text-inv);
  border-color: var(--accent);
}
.btn-solid:hover {
  background: var(--accent-lt);
  border-color: var(--accent-lt);
  color: var(--text-inv);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139,46,46,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

/* ----------------------------------------------------------------
   HERO (index.html)
   ---------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  padding: 7rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Dekoratīvs tekstūras raksts */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(139,46,46,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(196,151,58,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Lielais dekoratīvais fona cipars */
.hero-bg-num {
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-size: clamp(18rem, 30vw, 28rem);
  font-weight: 700;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-tag::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  font-weight: 700;
  color: var(--text-inv);
  line-height: 0.95;
  margin-bottom: 0.25rem;
}
.hero-title em {
  display: block;
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.35);
  margin-bottom: 2rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(250,247,242,0.65);
  max-width: 500px;
  line-height: 1.85;
  margin-bottom: 0.75rem;
}

.hero-meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(250,247,242,0.3);
  margin-bottom: 2.5rem;
}

/* Grāmatas vizualizācija labajā pusē */
.hero-book {
  display: flex;
  align-items: center;
  gap: 3px;
  transform: perspective(900px) rotateY(-12deg) rotateX(2deg);
  filter: drop-shadow(-20px 20px 40px rgba(0,0,0,0.6));
}
.book-spine {
  width: 22px; height: 220px;
  background: linear-gradient(to right, #3a1a1a, #6a3030, #3a1a1a);
  border-radius: 3px 0 0 3px;
}
.book-cover {
  width: 155px; height: 220px;
  background: linear-gradient(145deg, #2a1515 0%, #1a0d0d 100%);
  border: 1px solid rgba(196,151,58,0.3);
  border-radius: 0 3px 3px 0;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.book-cover::before {
  content: '';
  position: absolute; inset: 10px;
  border: 1px solid rgba(196,151,58,0.2);
}
.book-cover-text {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gold);
  text-align: center;
  line-height: 1.3;
  position: relative; z-index: 1;
}
.book-cover-author {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(196,151,58,0.5);
  text-align: center;
  margin-top: 1rem;
  position: relative; z-index: 1;
}

/* ----------------------------------------------------------------
   PAR AUTORU (index.html)
   ---------------------------------------------------------------- */
.author-section { background: var(--bg); }

.author-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0 3.5rem;
  align-items: start;
}

/* Foto */
.author-img {
  position: relative;
}
.author-img img {
  width: 100%;
  border-radius: var(--r-lg);
  filter: grayscale(15%);
  box-shadow:
    6px 6px 0 var(--accent),
    12px 12px 0 rgba(139,46,46,0.15);
}

/* Teksts — ar augšējo atstarpi, lai neatrastos blakus bildei */
.author-text {
  padding-top: 2rem; /* <-- Teksts sākas zemāk par bildei */
}

.author-text p {
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.sources-heading {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 2rem 0 0.75rem;
}
.sources-list { display: flex; flex-direction: column; gap: 0.5rem; }
.sources-list a {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.sources-list a::before { content: '↗'; font-size: 0.72rem; }
.sources-list a:hover { text-decoration: underline; }

/* ----------------------------------------------------------------
   LAPAS VIRSRAKSTS (iekšējās lapas: sizets, teli, atiznas, aktivitate)
   ---------------------------------------------------------------- */
.page-header {
  background: var(--bg-dark);
  padding: 7rem 1.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(139,46,46,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-header-inner {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
}
.page-header .section-label { color: var(--gold-lt); }
.page-header .section-label::before { background: var(--gold-lt); }
.page-header h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--text-inv);
  line-height: 1.1;
  margin-top: 0.5rem;
}

/* ----------------------------------------------------------------
   LAIKA LĪNIJA (sizets.html)
   ---------------------------------------------------------------- */
.timeline-section { background: var(--bg); }

.timeline { position: relative; padding: 0.5rem 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 19px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent) 15%, var(--accent) 85%, transparent);
}

.timeline-item {
  display: flex; gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}
.timeline-item:last-child { margin-bottom: 0; }

/* Numura aplis */
.tl-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  transition: transform var(--t), box-shadow var(--t);
}
.timeline-item:hover .tl-num {
  transform: scale(1.12);
  box-shadow: 0 0 0 7px rgba(139,46,46,0.12);
}

/* Satura kaste */
.tl-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 1.4rem 1.6rem; flex: 1;
  transition: box-shadow var(--t), transform var(--t);
}
.timeline-item:hover .tl-body {
  box-shadow: 0 6px 22px rgba(0,0,0,0.07);
  transform: translateX(5px);
}

.tl-title {
  font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.4rem;
}
.tl-desc {
  font-size: 1rem;
  color: var(--text-mid); line-height: 1.8;
}
.tl-page {
  font-family: var(--font-ui);
  font-size: 0.72rem; font-weight: 600;
  color: var(--accent);
  margin-top: 0.6rem; display: inline-block;
  background: rgba(139,46,46,0.08);
  padding: 0.2rem 0.6rem; border-radius: 999px;
}

/* ----------------------------------------------------------------
   VAROŅI (teli.html)
   ---------------------------------------------------------------- */
.chars-section { background: var(--bg-section); }

.chars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.char-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t);
}
.char-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.1);
}

/* Krāsota josla augšā */
.char-top {
  background: var(--accent);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.char-initial {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.char-name {
  font-family: var(--font-head);
  font-size: 1.05rem; color: #fff;
  font-weight: 700;
}

.char-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.char-desc {
  font-size: 0.97rem;
  color: var(--text-mid); line-height: 1.8;
  flex: 1; margin-bottom: 1.1rem;
}
.char-quote {
  border-left: 3px solid var(--gold);
  padding-left: 0.9rem;
  font-style: italic; font-size: 0.9rem;
  color: var(--text-muted); margin-top: auto;
}
.char-quote cite {
  display: block; font-style: normal;
  font-size: 0.78rem; color: var(--gold);
  margin-top: 0.3rem;
  font-family: var(--font-ui);
}

/* ----------------------------------------------------------------
   ATZIŅAS (atiznas.html)
   ---------------------------------------------------------------- */
.quotes-section { background: var(--bg); }

.quote-list { display: flex; flex-direction: column; gap: 0; }

.quote-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.quote-block:first-child { padding-top: 0; }
.quote-block:last-child { border-bottom: none; }

/* Lielais citāts */
.q-big {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
  position: relative;
  padding: 0 0 0 1.5rem;
  border-left: 3px solid var(--accent);
}
.q-open-quote {
  font-family: var(--font-head);
  font-size: 5rem; line-height: 0.7;
  color: var(--accent); opacity: 0.2;
  display: block; margin-bottom: 0.5rem;
  font-style: normal;
}

/* Lpp. žetons */
.q-page {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(139,46,46,0.08);
  padding: 0.22rem 0.7rem; border-radius: 999px;
  margin-bottom: 0.75rem;
}
.q-explain {
  font-size: 1rem;
  color: var(--text-mid); line-height: 1.85;
}

/* ----------------------------------------------------------------
   GALERIJA (atiznas.html)
   ---------------------------------------------------------------- */
.gallery-section { background: var(--bg-dark); }
.gallery-section .section-label { color: var(--gold-lt); }
.gallery-section .section-label::before { background: var(--gold-lt); }
.gallery-section .section-title { color: var(--text-inv); }

/* 3 bildes blakus */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(196,151,58,0.15);
  transition: transform var(--t), box-shadow var(--t);
}
.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.45);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover; display: block;
}

.gallery-info { padding: 1.1rem 1.25rem; }

.gallery-info blockquote {
  font-style: italic;
  font-size: 0.92rem;
  color: rgba(250,247,242,0.72);
  line-height: 1.7;
  margin-bottom: 0.6rem;
  border-left: 2px solid var(--gold);
  padding-left: 0.7rem;
}

/* Citāta avots un foto autors */
.gallery-meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: rgba(250,247,242,0.4);
  display: flex; flex-direction: column; gap: 0.15rem;
}
.gallery-meta .cite-book { color: var(--gold-lt); }
.gallery-meta .cite-photo { color: rgba(250,247,242,0.35); }

/* ----------------------------------------------------------------
   VIKTORĪNA (aktivitate.html)
   ---------------------------------------------------------------- */
.quiz-section { background: var(--bg-section); }
.quiz-section .section-title { color: var(--text); }

/* Viktorīnas kaste */
.quiz-box {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: 2.5rem;
  box-shadow: 0 4px 28px rgba(0,0,0,0.07);
}

.q-counter {
  font-family: var(--font-ui);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1rem;
}

.quiz-question { display: none; flex-direction: column; gap: 1.4rem; }
.quiz-question.active { display: flex; }

.q-text {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--text); line-height: 1.45;
}

.q-opts { display: flex; flex-direction: column; gap: 0.55rem; }

/* Atbilžu pogas */
.q-btn {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  text-align: left;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 0.9rem 1.2rem;
  cursor: pointer; color: var(--text);
  transition: border-color var(--t), background var(--t), transform var(--t);
  display: flex; align-items: center; gap: 0.75rem;
}
/* Atbilžu burtinis */
.q-btn::before {
  content: attr(data-letter);
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  font-size: 0.75rem; font-weight: 700;
  flex-shrink: 0;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.q-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(139,46,46,0.04);
  transform: translateX(4px);
}
.q-btn:hover:not(:disabled)::before { background: var(--accent); border-color: var(--accent); color: #fff; }

.q-btn.correct { border-color: #2d7a50; background: rgba(45,122,80,0.08); color: #1a5235; }
.q-btn.correct::before { background: #2d7a50; border-color: #2d7a50; color: #fff; }
.q-btn.wrong   { border-color: #b83030; background: rgba(184,48,48,0.07); color: #7a1515; }
.q-btn.wrong::before { background: #b83030; border-color: #b83030; color: #fff; }
.q-btn:disabled { cursor: not-allowed; }

.q-fb {
  font-family: var(--font-ui);
  font-size: 0.88rem; font-weight: 600;
  min-height: 1.2em; padding: 0.4rem 0;
}
.q-fb.ok  { color: #2d7a50; }
.q-fb.err { color: #b83030; }

/* Rezultāts */
.quiz-result {
  display: none; flex-direction: column;
  align-items: center; text-align: center;
  gap: 1rem; padding: 2rem 0;
}
.quiz-result.visible { display: flex; }
.res-icon { font-size: 3.5rem; }
.res-title { font-family: var(--font-head); font-size: 1.8rem; color: var(--text); }
.res-text { color: var(--text-mid); max-width: 420px; line-height: 1.75; font-size: 1rem; }

/* Progresu josla */
.q-progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  margin-bottom: 2rem;
  overflow: hidden;
}
.q-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.4s ease;
  width: 0%;
}

/* ----------------------------------------------------------------
   KĀJENE — vienāda visās lapās
   ---------------------------------------------------------------- */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(196,151,58,0.15);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.footer-line1 {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: rgba(250,247,242,0.4);
  margin-bottom: 0.4rem;
}
.footer-line1 strong { color: rgba(250,247,242,0.65); }
.footer-line2 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--gold);
}

/* Atpakaļ uz augšu */
.back-top {
  position: fixed; bottom: 1.75rem; right: 1.75rem;
  width: 44px; height: 44px;
  background: var(--accent);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--t), transform var(--t), background var(--t);
  z-index: 998;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.back-top.show { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-top:hover { background: var(--accent-lt); color: #fff; }

/* ----------------------------------------------------------------
   RESPONSIVITĀTE
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .author-layout { grid-template-columns: 1fr; }
  .author-img { max-width: 240px; }
  .author-text { padding-top: 0.5rem; }
  .quote-block { grid-template-columns: 1fr; gap: 1.5rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-book { display: none; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(24,24,27,0.98); backdrop-filter: blur(12px);
    flex-direction: column; gap: 0;
    padding: 0.75rem 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .nav-links.open { max-height: 500px; }
  .nav-links li a { padding: 0.8rem 1.5rem; font-size: 0.9rem; border-radius: 0; }
  .hero { padding: 5.5rem 1.5rem 3.5rem; }
  .content-section { padding: 3.5rem 0; }
  .timeline::before { left: 16px; }
  .tl-num { width: 34px; height: 34px; font-size: 0.85rem; }
  .chars-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .quiz-box { padding: 1.5rem; }
}
