/* --- 1. CSS kintamieji ir baziniai stiliai --- */
:root {
  --color-accent: #C7887B;
  --color-accent-dark: #B27265;
  --color-text: #2c2c2e;
  --color-text-muted: #5f5f63;
  --color-bg: #FDFBF9;
  --color-bg-alt: #F6F1EE;
  --color-white: #ffffff;
  --font-heading: 'Lora', serif;
  --font-body: 'Manrope', sans-serif;
  --header-height: 80px;
  --border-radius: 16px;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (max-width: 480px) { .container { padding-left: 16px; padding-right: 16px; } }

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

/* --- 2. Komponentai --- */
.btn { display: inline-block; padding: 14px 32px; font-family: var(--font-body); font-weight: 600; font-size: 16px; border-radius: 50px; text-decoration: none; transition: var(--transition-smooth); cursor: pointer; border: 2px solid transparent; }
.btn-primary { background-color: var(--color-accent); color: var(--color-white); }
.btn-primary:hover { background-color: var(--color-accent-dark); transform: translateY(-2px); }
.btn-secondary { background-color: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.btn-secondary:hover { background-color: var(--color-accent); color: var(--color-white); transform: translateY(-2px); }
.btn.disabled, .btn:disabled { background-color: #e0e0e0; border-color: #e0e0e0; color: var(--color-text-muted); cursor: not-allowed; transform: none; }

.section-eyebrow { font-size: 16px; font-weight: 600; color: var(--color-accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.section-title { font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 500; line-height: 1.2; color: var(--color-text); margin-bottom: 24px; max-width: 800px; }
.section-subtitle { font-size: clamp(1.1rem, 2vw, 1.25rem); line-height: 1.6; color: var(--color-text-muted); max-width: 700px; }
.text-center { text-align: center; max-width: 800px; margin: 0 auto; }
.section-divider { margin-top: 80px; margin-bottom: 80px; }
.hidden { display: none !important; }

/* --- Animation --- */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* --- STYLES FOR STORY PAGE --- */
.story-hero {
  padding: 180px 0 100px;
  background-color: var(--color-bg-alt);
  text-align: center;
}
.story-hero .section-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
}
.story-hero .section-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.story-content-section {
  padding: 100px 0;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
  align-items: flex-start;
}
@media(min-width: 992px) {
  .story-grid {
      grid-template-columns: 2fr 1fr;
  }
}

.story-narrative h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 500;
  margin-top: 48px;
  margin-bottom: 24px;
  line-height: 1.3;
}
.story-narrative h2:first-of-type {
  margin-top: 0;
}
.story-narrative p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.8;
}

.story-sidebar {
  position: sticky;
  top: 120px; /* Aligns with header height + padding */
}
.story-sidebar-image {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}
.quote-box {
    background-color: var(--color-bg-alt);
    padding: 32px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-accent);
}
.quote-box p {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--color-text);
}
.quote-box .author {
    font-weight: 600;
    color: var(--color-accent);
    margin-top: 20px;
    display: block;
    font-style: normal;
}

.timeline-section {
    background-color: var(--color-white);
    padding: 100px 0;
}
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-accent);
    opacity: 0.2;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item.left {
    left: 0;
}
.timeline-item.right {
    left: 50%;
}
.timeline-item::after { /* The circle on the timeline */
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--color-white);
    border: 4px solid var(--color-accent);
    top: 28px;
    border-radius: 50%;
    z-index: 1;
}
.right::after {
    left: -10px;
}
.timeline-content {
    padding: 24px 30px;
    background-color: var(--color-bg-alt);
    border-radius: var(--border-radius);
    position: relative;
}
.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--color-accent);
}
.timeline-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
  .timeline::after {
      left: 20px;
  }
  .timeline-item {
      width: 100%;
      padding-left: 60px;
      padding-right: 15px;
  }
  .timeline-item.left, .timeline-item.right {
      left: 0;
  }
  .timeline-item::after {
      left: 10px;
  }
  .story-sidebar {
      position: static;
      margin-top: 40px;
  }
}

.cta-section {
    background-color: var(--color-bg-alt);
    text-align: center;
    padding: 100px 0;
}
.cta-section .section-title {
    color: var(--color-text);
}
.cta-section .section-subtitle {
    margin-bottom: 40px;
}
.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}