/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════════ */
:root {
  --bg:          #FFFBEF;
  --bg-alt:      #F5E9CC;
  --white:       #FFFFFF;
  --accent:      #9B6B2F;
  --dark:        #221C12;
  --text:        #3B3B3B;
  --text-muted:  #6B6B6B;
  --border:      #C6B89D;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 8px 28px rgba(0,0,0,0.09), 0 2px 6px rgba(0,0,0,0.05);
  --radius:      12px;
  --radius-lg:   16px;
  --font-heading:'Lora', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
  --space-xl:    clamp(1.5rem, 3.5vw, 2.75rem);
  --max-w:       1140px;
  --max-text:    660px;
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
/* DUK — single viewport, no scroll (mirrors homepage layout) */
body.page-duk .site-header { flex-shrink: 0; }
body.page-duk > main { flex: 1; display: flex; flex-direction: column; }
body.page-duk .page-hero { flex-shrink: 0; }
body.page-duk .section--compact { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding-top: clamp(0.85rem, 2vw, 1.35rem); padding-bottom: clamp(3rem, 9vh, 7rem); }
body.page-duk .section--compact > .container { width: 100%; }
body.page-duk .site-footer { flex-shrink: 0; }
body.page-komanda { background: #FFFDF7; }
body.page-komanda > main { display: flex; flex-direction: column; }
body.page-komanda .section--team { flex: 1 0 auto; display: flex; flex-direction: column; }
body.page-komanda .section--team > .container { flex: 1; display: flex; flex-direction: column; }
body.page-komanda .team-cta { margin-block: auto; }
body > .site-footer, body > footer { flex-shrink: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Homepage — single viewport, no scroll */
body.page-home {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.page-home .site-header { flex-shrink: 0; }
body.page-home main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
}
body.page-home .slogan-section { flex: 1 1 auto; min-height: 0; padding: clamp(0.75rem, 1.5vw, 1.5rem) 0; display: flex; flex-direction: column; justify-content: center; }
body.page-home .slogan-section > .container { width: 100%; }
body.page-home .site-hero { display: flex; align-items: center; }
body.page-home .site-footer { flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   CONTAINER
═══════════════════════════════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3.25rem);
}
/* On very wide screens the homepage hero gets a touch more room. */
body.page-home .site-hero .container {
  max-width: 1240px;
}

/* ═══════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════ */
.site-header {
  background: rgba(255,251,239,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem clamp(1rem, 4vw, 2.5rem);
  max-width: var(--max-w);
  margin-inline: auto;
  gap: 1.5rem;
  position: relative;
}
.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.25rem;
  padding-left: 0.15rem;
  position: relative;
  z-index: 1;
}
.logo:hover { text-decoration: none; }
.logo-name {
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.4rem;
  letter-spacing: 0;
  color: var(--dark);
  line-height: 1;
}
.logo-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.54rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
  line-height: 1;
}
.logo-wave {
  width: 96px;
  height: auto;
  display: block;
  flex-shrink: 0;
  margin-right: -8px;
  /* Wave dissolves toward the text on its right — right edge fades to transparent so words emerge from where the wave ends */
  -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,0.18) 8%, rgba(0,0,0,0.55) 22%, #000 42%, #000 100%);
          mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,0.18) 8%, rgba(0,0,0,0.55) 22%, #000 42%, #000 100%);
}
nav { display: flex; align-items: center; }
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links li a {
  display: block;
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.7rem;
  right: 0.7rem;
  height: 1.5px;
  background: var(--dark);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-links li a:hover,
.nav-links li a.active { color: var(--dark); text-decoration: none; }
.nav-links li a:hover::after,
.nav-links li a.active::after { transform: scaleX(1); }
.nav-cta {
  display: inline-block;
  padding: 0.5rem 1.15rem;
  background: var(--dark);
  color: var(--white) !important;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
  margin-left: 0.75rem;
  white-space: nowrap;
}
.nav-cta:hover { background: #0F0A05; transform: translateY(-1px); text-decoration: none !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--dark);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
/* Hamburger → X when open */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn, a.btn,
.btn-primary, a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--dark);
  color: var(--white) !important;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  line-height: 1;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover, a.btn:hover,
.btn-primary:hover, a.btn-primary:hover {
  background: #0F0A05;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34,28,18,0.32);
  text-decoration: none !important;
}
.btn-outline, a.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  background: transparent;
  color: var(--dark) !important;
  border: 1.5px solid var(--dark);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none !important;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-outline:hover, a.btn-outline:hover {
  background: var(--dark);
  color: var(--white) !important;
  text-decoration: none !important;
}
.center-link { text-align: center; }

/* ═══════════════════════════════════════════════════════════
   FADE-IN ANIMATION
═══════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; }
.fade-in.is-visible { animation: fadeInUp 0.55s ease-out forwards; }
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE HERO
═══════════════════════════════════════════════════════════ */
.site-hero {
  padding: clamp(1.5rem, 4vw, 3rem) 0;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
/* Atmospheric radial glow — top-right */
.site-hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--accent) 0%, transparent 70%);
  opacity: 0.08;
  top: -220px;
  right: -180px;
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
/* Eyebrow pill badge */
.hero-eyebrow { margin-bottom: 1rem; padding-left: 0.5rem; }
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  background: rgba(155,107,47,0.12);
  border: 1px solid rgba(155,107,47,0.32);
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark);
}
.hero-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.08;
  color: var(--dark);
  letter-spacing: -0.02em;
  display: block;
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 0;
}
/* CTA + secondary link row */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-left: 0.5rem;
}
.hero-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.65;
  text-decoration: none;
  transition: opacity 0.2s, gap 0.22s;
}
.hero-link:hover { opacity: 1; gap: 0.65rem; text-decoration: none; }
.hero-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 46ch;
  margin-top: 1rem;
  margin-bottom: 0;
}
/* Image: organic blob with multi-ring halo */
.hero-img-outer {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-img-outer::before {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.08;
  z-index: 0;
}
.hero-img-wrap {
  position: relative;
  border-radius: 55% 45% 62% 38% / 52% 58% 42% 48%;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  max-width: clamp(260px, 22vw, 320px);
  margin-inline: auto;
  box-shadow:
    0 28px 80px rgba(34,28,18,0.18),
    0 0 0 10px rgba(155,107,47,0.1),
    0 0 0 22px rgba(155,107,47,0.055),
    0 0 0 38px rgba(155,107,47,0.025);
  z-index: 1;
}
/* ── Easter egg: hero flip card ── */
.hero-flip {
  position: relative;
  width: 100%;
  max-width: clamp(260px, 22vw, 320px);
  aspect-ratio: 4 / 5;
  margin-inline: auto;
  cursor: pointer;
  perspective: 1400px;
  background: none;
  border: none;
  padding: 0;
  z-index: 1;
}
.hero-flip:focus { outline: none; }
.hero-flip:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 12px; }
.hero-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.85s cubic-bezier(.4, .2, .2, 1);
  transform-style: preserve-3d;
}
.hero-flip.is-flipped .hero-flip-inner { transform: rotateY(180deg); }
.hero-flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hero-flip-front .hero-img-wrap {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
}
.hero-flip-back {
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 55% 45% 62% 38% / 52% 58% 42% 48%;
  background: #FFFDF7;
  box-shadow:
    0 28px 80px rgba(34,28,18,0.18),
    0 0 0 10px rgba(155,107,47,0.1),
    0 0 0 22px rgba(155,107,47,0.055),
    0 0 0 38px rgba(155,107,47,0.025);
  padding: 2rem 1.5rem;
}
.hero-flip-back-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}
.hero-flip-text {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 500;
  color: var(--dark);
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0;
}
.hero-flip-cta { padding: 0.7rem 1.4rem; font-size: 0.92rem; }
@media (prefers-reduced-motion: reduce) {
  .hero-flip-inner { transition: none; }
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ═══════════════════════════════════════════════════════════
   SLOGAN SECTION — first section, the brand statement
═══════════════════════════════════════════════════════════ */
.slogan-section {
  background: var(--bg-alt);
  padding: clamp(0.5rem, 1vw, 0.85rem) 0;
  position: relative;
  overflow: hidden;
  border-bottom: none;
}
.slogan-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--accent) 0%, transparent 70%);
  opacity: 0.07;
  top: -180px;
  right: -80px;
  pointer-events: none;
}
.slogan-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
/* The 3 big words — horizontal row by default */
.slogan-words {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
}
.slogan-words .sw,
.slogan-words span:not(.slogan-sep) {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.slogan-words .sw::after {
  content: 'tarp eilučių';
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: none;
}
.slogan-sep { display: none !important; }
/* Footer row: tagline only */
.slogan-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: 0;
  border-top: none;
}
.slogan-name {
  display: none;
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 1.3vw, 0.88rem);
  font-style: normal;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}
.slogan-desc {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin: 0;
  max-width: 52ch;
}
/* Slogan heading + grid */
.slogan-heading {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 600;
  color: var(--dark);
  text-align: center;
  margin-bottom: 1.15rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}
/* ── JS-driven pillar carousel ── */
.pillars-slider {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}
.pillars-track {
  display: flex;
  width: 300%;
  transition: transform 0.6s cubic-bezier(.3, .6, .25, 1);
  will-change: transform;
}
.pillar {
  flex: 0 0 calc(100% / 3);
  padding: 0 clamp(1rem, 4vw, 3rem);
  text-align: center;
  position: relative;
}
.pillar h3 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.2rem;
  letter-spacing: -0.012em;
  line-height: 1.15;
}
.pillar p {
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 1vw, 0.92rem);
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 58ch;
}
/* Nav: ‹ 1/3 › */
.pillar-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.pillar-nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--dark);
  padding: 0.25rem 0.5rem;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  user-select: none;
}
.pillar-nav-btn:hover { color: var(--accent); background: rgba(155,107,47,0.08); transform: translateY(-1px); }
.pillar-nav-btn:active { transform: translateY(0); }
.pillar-nav-btn:focus { outline: none; }
.pillar-nav-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pillar-nav-pos {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  min-width: 3em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 700px) {
  .pillar { padding: 0.25rem 1.25rem; }
  .pillar h3 { font-size: 1.2rem; }
  .pillar p  { font-size: 0.92rem; line-height: 1.6; }
}
/* Legacy */
.slogan-left { display: contents; }
.slogan-cta { display: none; }

/* ═══════════════════════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════════════════════ */
.section { padding-block: var(--space-xl); }
.section--team { padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section--compact { padding-block: clamp(1.25rem, 2.5vw, 2rem); }
.section--alt { background: var(--bg-alt); }
.section--white { background: var(--white); }

.section-eyebrow {
  font-size: 0.77rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
  text-align: center;
}
.section-heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.section-heading--center { text-align: center; }
.section-lead {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 60ch;
  margin-bottom: 3rem;
}
.section-lead--center { text-align: center; margin-inline: auto; }

/* ═══════════════════════════════════════════════════════════
   THREE PILLARS (IŠGIRSTI / PAMATYTI / PAJAUSTI)
═══════════════════════════════════════════════════════════ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}
/* NOTE: the homepage carousel .pillar is intentionally transparent — see lines 542+.
   This block targets the (currently unused) grid layout on legacy pages. */
.pillars-grid .pillar {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pillars-grid .pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
}
.pillar-body { padding: 1.75rem; }
.pillar-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 0.3rem;
  letter-spacing: 0.04em;
}
.pillar-sub {
  font-size: 0.78rem;
  color: var(--accent);
  font-style: italic;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.pillar-body p {
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about-text p {
  margin-bottom: 1.4rem;
  line-height: 1.85;
  color: var(--text-muted);
  font-size: 1rem;
}
.about-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-alt);
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ═══════════════════════════════════════════════════════════
   HOW IT WORKS — 3 steps
═══════════════════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.step {
  padding: 2rem 1.75rem 2.25rem;
  background: #FFFBF0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.75;
}
.step h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}
.step p { font-size: 0.92rem; line-height: 1.75; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   BLOG CARDS
═══════════════════════════════════════════════════════════ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3rem;
}
.post-card {
  background: #FFFBF0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card-img-link {
  display: block;
  background: var(--bg-alt);
}
.post-card-img-link img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-img-link img { transform: scale(1.04); }
.post-card-no-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--border) 100%);
}
.post-card-body {
  padding: 1.4rem 1.5rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-meta {
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.post-meta a { color: var(--text-muted); }
.post-card h2, .post-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.65rem;
  color: var(--dark);
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.post-card h2 a:hover, .post-card h3 a:hover { text-decoration: underline; }
.post-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.1rem;
}
.read-more {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
  align-self: flex-start;
  position: relative;
}
.read-more::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--dark);
  transition: width 0.25s ease;
}
.read-more:hover::after { width: 100%; }
.read-more:hover { text-decoration: none; }
.posts-count {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2rem;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   PAGE HERO (inner pages) — matches homepage .site-hero feel
═══════════════════════════════════════════════════════════ */
.page-hero {
  background: var(--bg);
  padding: clamp(2rem, 4.5vw, 3.25rem) 0 clamp(0.75rem, 1.75vw, 1.25rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: none;
}
/* Subtle radial accent glow, mirroring .site-hero::before */
.page-hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--accent) 0%, transparent 70%);
  opacity: 0.06;
  top: -220px;
  right: -160px;
  pointer-events: none;
  z-index: 0;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.page-lead {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  max-width: 58ch;
  margin-inline: auto;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   TEAM
═══════════════════════════════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.25rem 3rem;
  max-width: 580px;
  margin-inline: auto;
  align-items: start;
}
.team-card {
  background: none;
  border: none;
  box-shadow: none;
  text-align: center;
}
.team-card:hover { transform: none; box-shadow: none; }
.team-card-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: center;
}
.team-photo-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 0.75rem;
  background: var(--bg-alt);
  box-shadow: 0 6px 20px rgba(34,28,18,0.12),
              0 0 0 4px rgba(155,107,47,0.1),
              0 0 0 8px rgba(155,107,47,0.04);
  flex-shrink: 0;
}
.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}
.team-card-btn:hover .team-photo { transform: scale(1.06); }
.team-photo-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(34,28,18,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.team-card-btn:hover .team-photo-overlay { opacity: 1; }
.team-photo-overlay span {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.07em;
}
.team-info { padding: 0 0 0.5rem; text-align: center; width: 100%; }
.team-card h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.team-title-small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-style: normal;
}
.team-phone { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.team-phone a { color: var(--text-muted); }
.team-phone a:hover { color: var(--dark); }
.team-apie {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: 0.5rem;
  letter-spacing: 0.03em;
  display: block;
}
.name-note { display: block; font-weight: 400; margin-top: 0.15rem; }
.modal-name .name-note { display: inline; margin-top: 0; }
.team-info .name-note { font-size: 0.85rem; }
.team-card--inactive { opacity: 0.45; }
.inactive-note { font-size: 0.78rem; color: var(--text-muted); font-style: italic; }

/* ═══════════════════════════════════════════════════════════
   ACCORDION (FAQ — DUK)
═══════════════════════════════════════════════════════════ */
.myths {
  max-width: 960px;
  margin-inline: auto;
  columns: 2;
  column-gap: 3rem;
  border-top: 1px solid var(--border);
}
.myth-item { break-inside: avoid; border-bottom: 1px solid var(--border); }
.myth-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.5rem 2.6rem 1.5rem 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--dark);
  cursor: pointer;
  position: relative;
  line-height: 1.4;
  transition: color 0.2s;
}
.myth-q:hover { color: var(--accent); }
.myth-icon {
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.45rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}
.myth-a {
  display: none;
  padding: 0 0 1.15rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-muted);
}
@media (max-width: 760px) {
  .myths { columns: 1; column-gap: 0; }
}

/* ═══════════════════════════════════════════════════════════
   MYTH CARDS (Abejojate, ar kreiptis?) — reuse .post-card
═══════════════════════════════════════════════════════════ */
.post-card--myth { background: #FFFDF7; }
.post-card--myth .post-card-body { text-align: center; background: #FFFDF7; }
body.page-straipsniai .post-card,
body.page-straipsniai .post-card-body { background: #FFFDF7; }
.myth-headline {
  background: #F8F1E7;
  padding: 1.5rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}
.myth-headline h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--dark);
  text-align: center;
  margin: 0;
}
.myth-toggle {
  margin: 1rem auto 0;
  background: none;
  border: none;
  color: var(--dark);
  padding: 0.4rem 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}
.myth-toggle:hover { color: var(--accent); }
.myth-toggle-icon {
  display: inline-block;
  font-size: 1.4rem;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform 0.25s ease;
}
.myth-toggle[aria-expanded="true"] .myth-toggle-icon { transform: rotate(-90deg); }

/* ═══════════════════════════════════════════════════════════
   REGISTRATION
═══════════════════════════════════════════════════════════ */
/* ── Registration form ── */
.reg-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.reg-thankyou-box { max-width: 440px; padding: 2.75rem 2rem 2.5rem; text-align: center; }
.reg-thankyou-msg { font-size: 1.12rem; line-height: 1.6; color: var(--dark); margin: 0; }
.reg-form-wrap {
  background: #F8F1E7;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: clamp(1.5rem,4vw,2.5rem);
  box-shadow: var(--shadow-sm);
}
.rf-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.4rem; }
.rf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rf-label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.rf-label::after { content: ' *'; color: var(--accent); font-weight: 700; }
.rf-required-note { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 1.25rem; }
.rf-required-note .rf-req { color: var(--accent); font-weight: 700; }
.rf-hint { font-size: 0.78rem; color: var(--text-muted); }
.rf-input, .rf-select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: #FFFDF7;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.rf-input:focus, .rf-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(155,107,47,0.15);
}
.rf-input::placeholder { color: #adb5bd; }
.rf-select { color: #adb5bd; cursor: pointer; padding-right: 2.5rem; }
.rf-select.rf-selected { color: var(--text); }
.rf-select-wrap { position: relative; }
.rf-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--accent);
  pointer-events: none;
  line-height: 1;
}
.rf-privacy { display: flex; align-items: flex-start; gap: 0.6rem; margin: 1.4rem 0 1.2rem; }
.rf-privacy input[type="checkbox"] { flex-shrink: 0; accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; margin-top: 0.18rem; }
.rf-privacy label { font-size: 0.82rem; color: var(--text-muted); line-height: 1.45; }
.rf-privacy a { color: var(--accent); }
.rf-submit { width: 100%; justify-content: center; padding: 0.9rem 1rem; font-size: 1rem; }
/* time picker — toggle + flat day grid */
.tl-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #FFFDF7;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.78rem 1rem;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  transition: border-color 0.15s, border-radius 0.15s;
}
.tl-toggle:hover { border-color: var(--accent); }
.tl-toggle--open { border-color: var(--border); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.tl-toggle-label {
  flex: 1;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
}
.tl-toggle-meta {
  font-size: 0.8rem;
  color: #adb5bd;
  white-space: nowrap;
}
.tl-toggle-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.tl-toggle--open .tl-toggle-arrow { transform: rotate(180deg); }
.tl-grid[hidden] { display: none; }
.tl-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1.5px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 0.6rem 0.75rem 0.75rem;
  background: #FFFDF7;
}
.tl-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s;
}
.tl-row:has(.tl-chip--on) { border-color: var(--accent); background: rgba(155,107,47,0.04); }
.tl-day-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--dark);
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 6.5rem;
  padding-top: 0.4rem;
}
.tl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.tl-chip {
  padding: 0.38rem 0.75rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}
.tl-chip:hover { border-color: var(--accent); color: var(--accent); background: rgba(155,107,47,0.08); }
.tl-chip.tl-chip--on { background: var(--dark); border-color: var(--dark); color: var(--white); font-weight: 600; }
.price-box {
  padding: 2.5rem 1.5rem;
  background: #F8F1E7;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}
.price-label {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.price-amount {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 3rem;
  color: var(--dark);
  line-height: 1;
}
.reg-alt { font-size: 0.9rem; line-height: 1.9; color: var(--text-muted); }
.reg-alt-heading {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.reg-alt ul { margin: 0.3rem 0 0 1.2rem; list-style: disc; }
.reg-alt li { margin-bottom: 0.4rem; }
.reg-alt a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   MAP
═══════════════════════════════════════════════════════════ */
/* ── Registracija spacing ── */
body.page-registracija .section {
  padding-top: clamp(0.5rem, 1.5vw, 1rem);
  padding-bottom: clamp(0.75rem, 2vw, 1.5rem);
}
/* Registration — fit in one viewport (desktop) */
body.page-registracija .page-hero { padding-top: clamp(0.6rem, 1.8vw, 1.1rem); padding-bottom: clamp(0.35rem, 1vw, 0.6rem); }
body.page-registracija .page-title { margin-bottom: 0.3rem; }
body.page-registracija .page-lead { margin-bottom: 0; }
body.page-registracija .reg-form-wrap { padding: clamp(1rem, 2.5vw, 1.5rem); }
body.page-registracija .rf-field { margin-bottom: 0.6rem; gap: 0.22rem; }
body.page-registracija .rf-input,
body.page-registracija .rf-select,
body.page-registracija .tl-toggle { padding: 0.5rem 0.85rem; }
body.page-registracija .rf-privacy { margin: 0.2rem 0; }
body.page-registracija .rf-required-note { margin: 0.5rem 0 0.7rem; }
body.page-registracija .rf-submit { margin-top: 0.2rem; }
body.page-registracija .price-box { padding: 1.5rem 1.25rem; margin-bottom: 1.25rem; }

/* ── Vieta no-scroll ── */
body.page-vieta { overflow: hidden; height: 100dvh; display: flex; flex-direction: column; }
body.page-vieta .site-header { flex-shrink: 0; }
body.page-vieta main { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
body.page-vieta .page-hero { flex-shrink: 0; }
body.page-vieta .page-lead { font-style: normal; font-family: var(--font-body); }
body.page-abejoji .page-lead { font-style: normal; font-family: var(--font-body); }
body.page-registracija .page-lead { font-style: normal; font-family: var(--font-body); }
body.page-privatumo .page-lead { font-style: normal; }
body.page-vieta .section { flex: 1; min-height: 0; padding: 1rem 0 2rem; display: flex; flex-direction: column; }
body.page-vieta .section .container { flex: 1; min-height: 0; display: flex; flex-direction: column; }
body.page-vieta .map-wrap { flex: 1; min-height: 0; margin-bottom: 0; }
body.page-vieta .map-wrap iframe { height: 100%; min-height: 200px; }
body.page-vieta .site-footer { flex-shrink: 0; }
.vieta-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.5rem; }
.vieta-photos img { width: 100%; height: 200px; object-fit: cover; display: block; border-radius: var(--radius); }
.vieta-photos img:nth-child(2) { object-position: center bottom; }
.map-wrap { margin-bottom: 1rem; border-radius: var(--radius); overflow: hidden; border: 2px solid rgba(216,200,168,0.15); box-shadow: var(--shadow-sm); }
.map-fallback { font-size: 0.84rem; color: var(--text-muted); margin-top: 0.6rem; }
.map-fallback a { color: var(--dark); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   BLOG POST
═══════════════════════════════════════════════════════════ */
.post-hero-img { margin-bottom: 2rem; }
.post-hero-img img { width: 100%; height: auto; display: block; }
.post-page-header {
  background: #FFFDF7;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(0.75rem, 1.75vw, 1.25rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.post-page-header + .section { background: #FFFDF7; }
.post-page-header::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--accent) 0%, transparent 70%);
  opacity: 0.06;
  top: -220px;
  right: -160px;
  pointer-events: none;
  z-index: 0;
}
.post-page-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3.25rem);
  position: relative;
  z-index: 1;
}
.post-page-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0.75rem auto 0;
  max-width: 32ch;
}
.post-back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}
.post-back-link:hover { color: var(--dark); text-decoration: underline; }
.post-body.prose { max-width: var(--max-text); margin-inline: auto; }
/* Long URLs / unbreakable strings in article bodies must wrap, or they force
   the text column wider than a phone viewport and clip the whole layout. */
.prose p, .prose li, .prose a { overflow-wrap: anywhere; word-break: break-word; }
.prose p { margin-bottom: 1.5rem; line-height: 1.85; color: var(--text); font-size: 1.0625rem; }
.prose h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 2.5rem 0 1rem;
  color: var(--dark);
  line-height: 1.3;
}
.prose ol, .prose ul { margin: 0 0 1.5rem 1.5rem; list-style: revert; }
.prose li { margin-bottom: 0.5rem; font-size: 1rem; color: var(--text); line-height: 1.8; }

.post-author-box {
  max-width: var(--max-text);
  margin: 3.5rem auto 0;
  padding: 2rem 2.25rem;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.post-author-photo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}
.post-author-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--dark);
  margin-bottom: 0.15rem;
}
.post-author-cred {
  font-size: 0.79rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.post-author-bio { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

.post-cta-callout {
  max-width: var(--max-text);
  margin: 2.5rem auto;
  padding: 1.75rem 2rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.post-cta-callout p { font-size: 0.96rem; color: var(--text); margin-bottom: 1rem; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-alt);
  color: var(--text-muted);
  padding: 0.6rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  text-align: center;
}
main > *:last-child { padding-bottom: 0; margin-bottom: 0; }
.site-footer { margin-top: 0; padding: 0.55rem 0; }
.footer-inner p { margin-bottom: 0.1rem; font-size: 0.78rem; line-height: 1.35; }
.footer-inner a { color: var(--text-muted); }
.footer-inner a:hover { color: var(--dark); text-decoration: none; }
.footer-socials { margin: 0.8rem 0; font-size: 0.8rem; letter-spacing: 0.05em; }
.footer-icons {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 0.2rem;
}
.footer-icons svg { width: 17px; height: 17px; }
.footer-icons a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-icons a:hover { color: var(--dark); }
.footer-copy { font-size: 0.7rem; color: rgba(34,28,18,0.32); margin-top: 1.2rem; }

/* ═══════════════════════════════════════════════════════════
   TEAM MODALS
═══════════════════════════════════════════════════════════ */
/* overlay */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,10,5,0.65);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  backdrop-filter: blur(4px);
}
.modal-overlay.is-open { display: flex; }

/* box */
.modal-box {
  background: #FFFDF7;
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  position: relative;
  margin: auto;
  box-shadow: 0 24px 80px rgba(15,10,5,0.28);
  overflow: hidden;
}

/* close */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--border); color: var(--dark); }

/* head — photo + name/role/contacts */
.modal-head {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  padding: 1.75rem 1.75rem 1.25rem;
}
.modal-photo {
  width: 88px;
  height: 88px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--border);
}
.modal-info { flex: 1; min-width: 0; }
.modal-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--dark);
  margin: 0 0 0.15rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.modal-role {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 0.55rem;
  line-height: 1.45;
}
.modal-contacts { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; }
.modal-contact-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.modal-contact-link:hover { text-decoration: underline; }
.modal-inactive { font-size: 0.8rem; font-style: italic; color: var(--text-muted); margin: 0.3rem 0 0; }

/* interests strip */
.modal-interests {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  padding: 0.85rem 1.75rem;
  background: #F8F1E7;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* tab nav */
.modal-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 1.1rem 1.75rem 0.6rem;
}
.modal-tab {
  padding: 0.44rem 1.05rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.modal-tab:hover { border-color: var(--accent); color: var(--accent); }
.modal-tab.is-on { background: var(--dark); border-color: var(--dark); color: #fff; }

/* tab panels */
.modal-panels { padding: 0.75rem 1.75rem 0; min-height: 10rem; }
.modal-panel.is-hidden { display: none; }
.bio-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.bio-item {
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
}
.bio-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 5rem;
  letter-spacing: 0.01em;
}
.bio-text {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text);
}
.bio-item--plain .bio-text { font-size: 0.93rem; }

/* cta */
.modal-cta {
  padding: 1.25rem 1.75rem 1.75rem;
  display: flex;
  justify-content: center;
}

@media (max-width: 600px) {
  .modal-head { flex-direction: column; align-items: center; text-align: center; padding: 1.5rem 1.25rem 1rem; }
  .modal-contacts { justify-content: center; }
  .modal-interests { padding: 0.75rem 1.25rem; }
  .modal-tabs { padding: 0.9rem 1.25rem 0.5rem; flex-wrap: wrap; }
  .modal-panels { padding: 0.6rem 1.25rem 0; }
  .modal-cta { padding: 1rem 1.25rem 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   PROSE (covid/privacy static pages)
═══════════════════════════════════════════════════════════ */
.section .prose {
  max-width: var(--max-text);
  margin-inline: auto;
}
.section .prose p { margin-bottom: 1.5rem; line-height: 1.85; color: var(--text-muted); }
.section .prose h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 2.5rem 0 1rem;
  color: var(--dark);
}
.section .prose ol, .section .prose ul { margin: 0 0 1.5rem 1.5rem; list-style: revert; }
.section .prose li { margin-bottom: 0.5rem; font-size: 1rem; color: var(--text-muted); line-height: 1.8; }
.section .prose a { color: var(--dark); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img-wrap { aspect-ratio: 16 / 9; max-width: 520px; margin-inline: auto; }
  .hero-desc { max-width: 100%; }
  .pillars-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { display: none; }
  .steps-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .vieta-mosaic { grid-template-columns: 1fr; }
  .vieta-side { grid-template-rows: auto auto; }
  .reg-layout { grid-template-columns: 1fr; }
  .modal-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .modal-photo { aspect-ratio: 1; max-width: 160px; margin-inline: auto; border-radius: 50%; }
  .modal-name { text-align: center; }
  .modal-title { text-align: center; }
}
/* Collapse nav into hamburger early — too many items to fit cleanly on tablets */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  /* Nav becomes a dropdown panel that overlays content when open */
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255,251,239,0.98);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(14,36,68,0.08);
    padding: 0.5rem clamp(1rem, 4vw, 2.5rem) 1.25rem;
  }
  nav.open { display: flex; }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .nav-links li a {
    padding: 0.85rem 0.25rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(14,36,68,0.06);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links li a::after { display: none; }
  .nav-cta {
    margin-left: 0;
    margin-top: 0.85rem;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }
}
@media (max-width: 640px) {
  .posts-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 380px; }
  .modal-box { padding: 2rem 1.25rem; }
  .post-author-box { flex-direction: column; align-items: center; text-align: center; }
  /* Stack side-by-side form fields on phones */
  .rf-row { grid-template-columns: 1fr; gap: 1.2rem; }
  /* Time picker: give the day its own line so chips get full width, and
     enlarge the chips into comfortable tap targets */
  .tl-row { flex-direction: column; gap: 0.5rem; }
  .tl-day-label { min-width: 0; padding-top: 0; }
  .tl-chips { gap: 0.5rem; }
  .tl-chip { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
  /* Team modal: tighten padding and let the (sometimes long) tab labels wrap */
  .modal-head { padding: 1.5rem 1.25rem 1rem; gap: 1rem; }
  .modal-photo { width: 72px; height: 72px; }
  .modal-interests { padding: 0.85rem 1.25rem; }
  .modal-tabs { flex-wrap: wrap; padding: 1rem 1.25rem 0.5rem; }
  .modal-panels { padding: 0.75rem 1.25rem 0; }
  .modal-cta { padding: 1.25rem 1.25rem 1.5rem; }
}
/* Prevent input intrinsic min-width from overflowing the grid track */
.rf-input, .rf-select { min-width: 0; }
