/* ============================================================
   ONAS.CSS — Kavárna Karolína — O nás subpage styles
   ============================================================ */

/* ── Page Hero ──────────────────────────────────────────────── */

.onas-hero {
  position: relative;
  min-height: calc(75svh - var(--nav-height));
  min-height: calc(75vh - var(--nav-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: var(--nav-height);
}

.onas-hero__bg {
  position: absolute;
  inset: 0;
}

.onas-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.onas-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(43, 29, 23, 0.20) 0%,
      rgba(43, 29, 23, 0.55) 60%,
      rgba(43, 29, 23, 0.82) 100%
    ),
    linear-gradient(
      110deg,
      rgba(43, 29, 23, 0.95) 0%,
      rgba(43, 29, 23, 0.65) 50%,
      rgba(43, 29, 23, 0.18) 100%
    );
}

.onas-hero__content {
  position: relative;
  z-index: 1;
  color: var(--color-warm-white);
  padding-block: clamp(3rem, 6vh, 5rem);
  max-width: 720px;
}

.onas-hero__content .hero__tagline {
  color: var(--color-caramel);
  margin-bottom: var(--space-4);
}

.onas-hero__content h1 {
  color: var(--color-warm-white);
  margin-bottom: var(--space-6);
  line-height: 1.12;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

.onas-hero__content h1 em {
  color: var(--color-caramel);
  font-style: italic;
}

.onas-hero__lead {
  font-size: var(--text-lg);
  color: var(--color-cream);
  max-width: 600px;
  opacity: 0.95;
  line-height: 1.85;
}

/* ── Story section ──────────────────────────────────────────── */

.onas-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
  margin-bottom: var(--space-12);
}

@media (min-width: 900px) {
  .onas-story-grid {
    grid-template-columns: 1fr 360px;
    gap: var(--space-10);
  }
}

.story-full__text p {
  color: var(--color-bark);
  line-height: 1.8;
  margin-bottom: var(--space-3);
}

.story-full__text p:last-of-type {
  margin-bottom: 0;
}

.story-full__quote {
  margin: var(--space-6) 0 var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-left: 4px solid var(--color-caramel);
  background: rgba(197, 138, 60, 0.06);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.story-full__quote p {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-espresso) !important;
  line-height: 1.5;
  margin-bottom: var(--space-2) !important;
}

.story-full__quote cite {
  font-size: var(--text-sm);
  color: var(--color-caramel);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.story-full__image {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-4));
}

.story-full__image-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.story-full__image-frame img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

@media (max-width: 899px) {
  .story-full__image-frame img {
    height: 380px;
  }
}

/* ── Stats strip ────────────────────────────────────────────── */

.onas-stats {
  background: var(--gradient-dark);
  padding-block: var(--space-10);
}

.onas-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6) var(--space-4);
  text-align: center;
}

@media (min-width: 640px) {
  .onas-stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.onas-stat__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-caramel);
  line-height: 1;
  display: block;
}

.onas-stat__label {
  font-size: var(--text-sm);
  color: rgba(234, 224, 213, 0.75);
  margin-top: var(--space-1);
  display: block;
  letter-spacing: 0.02em;
}

/* ── Values section ─────────────────────────────────────────── */

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  background: var(--color-card);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.value-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.value-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: rgba(197, 138, 60, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  color: var(--color-caramel);
}

.value-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-espresso);
  margin-bottom: var(--space-2);
}

.value-card__desc {
  font-size: var(--text-sm);
  color: var(--color-bark);
  line-height: 1.7;
}

/* ── Team section ───────────────────────────────────────────── */

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.team-card {
  background: var(--color-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.team-card__photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.team-card__body {
  padding: var(--space-4) var(--space-5);
}

.team-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-espresso);
  margin-bottom: 4px;
}

.team-card__role {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-caramel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  display: block;
}

.team-card__bio {
  font-size: var(--text-sm);
  color: var(--color-bark);
  line-height: 1.7;
}

/* ── Horizontal timeline ────────────────────────────────────── */

.onas-timeline {
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-border);
}

.onas-timeline__heading {
  color: var(--color-espresso);
  margin-bottom: var(--space-6);
  margin-top: var(--space-1);
}

.timeline-h {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .timeline-h {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .timeline-h {
    grid-template-columns: repeat(5, 1fr);
  }
}

.timeline-h__item {
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  border-left: 3px solid var(--color-caramel);
  background: rgba(197, 138, 60, 0.05);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.timeline-h__year {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-caramel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.timeline-h__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-espresso);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}

.timeline-h__desc {
  font-size: var(--text-xs);
  color: var(--color-bark);
  line-height: 1.65;
}

/* ── Bottom CTA ─────────────────────────────────────────────── */

.onas-cta-section {
  text-align: center;
}

.onas-cta-btns {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-5);
}

/* ── Reduced motion ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .value-card,
  .team-card {
    transition: none !important;
  }
}
