/* About (Rólam) page styles — Modern Frontend 2026 */

/* --- About Section (moved from styles.css) --- */
.about {
    padding: var(--space-2xl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    aspect-ratio: 3 / 4;
    background: var(--cream-dark);
}

.image-frame .about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid var(--teal-light);
    border-radius: var(--radius-lg);
    z-index: 1;
    pointer-events: none;
}

.image-placeholder {
    aspect-ratio: 1;
    background: var(--cream-dark);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--teal-dark);
    color: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-medium);
}

.badge-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.9;
}

.about-content .section-tag {
    margin-bottom: var(--space-sm);
}

.about-content .section-title {
    margin-bottom: var(--space-xs);
}

.about-role {
    color: var(--teal-dark);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.about-text {
    margin-bottom: var(--space-md);
}

.about-stats {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--cream-dark);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--teal-dark);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   HERO HEADER — Organic gradient + glass tag
   ============================================ */
.about-header {
    padding-top: var(--space-md);
    padding-bottom: var(--space-lg);
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(127, 204, 200, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(184, 169, 201, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, var(--teal-lightest) 0%, white 100%);
    text-align: center;
}

.about-header .section-tag {
    background: var(--teal-dark);
    color: white;
}

/* Fluid hero typography */
.about-header .hero-title {
    font-size: clamp(1.75rem, 4vw + 0.5rem, 3.25rem);
}

.about-header .hero-subtitle {
    font-size: clamp(1rem, 1.2vw + 0.7rem, 1.2rem);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   STORY BLOCKS — Team profiles
   ============================================ */
.about-story {
    padding: var(--space-xl) 0;
}

.story-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-2xl);
}

.story-block.reverse {
    direction: rtl;
}

.story-block.reverse .story-content {
    direction: ltr;
}

/* Image frame — organic shape with layered shadow */
.story-img-frame {
    position: relative;
}

.story-img-frame::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--teal-light), var(--lavender-light));
    opacity: 0.4;
    z-index: -1;
    transition: opacity var(--transition-medium);
}

.story-block:hover .story-img-frame::before {
    opacity: 0.6;
}

.story-img {
    border-radius: var(--radius-lg);
    box-shadow:
        0 4px 20px rgba(26, 95, 106, 0.1),
        0 20px 60px rgba(26, 95, 106, 0.08);
}

/* Story content — fluid headings */
.story-content h2 {
    color: var(--teal-dark);
    font-family: var(--font-display);
    margin-bottom: var(--space-md);
    font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2rem);
}

.story-content h3 {
    color: var(--teal);
    font-size: clamp(1.05rem, 1vw + 0.5rem, 1.25rem);
    margin-bottom: var(--space-md);
}

.story-content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   BAGOLYKALAND BADGE — Glassmorphism
   ============================================ */
.bagolykaland-badge {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0.75rem 0 1rem;
    padding: 0.85rem 1.1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    box-shadow:
        0 4px 20px rgba(26, 95, 106, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.bagolykaland-badge:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 30px rgba(26, 95, 106, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.bagolykaland-badge img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: contain;
}

.bagolykaland-badge span {
    font-size: 0.9rem;
    color: var(--teal-dark);
    line-height: 1.5;
}

.bagolykaland-badge a {
    color: var(--teal-dark);
    font-weight: 600;
    text-decoration: none;
}

.bagolykaland-badge a:hover {
    text-decoration: underline;
}

/* ============================================
   MISSION SECTION — Organic bg + glass cards
   ============================================ */
.mission-section {
    background:
        radial-gradient(ellipse 70% 50% at 10% 90%, rgba(143, 212, 200, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 90% 10%, rgba(245, 184, 138, 0.08) 0%, transparent 50%),
        var(--cream);
    padding: var(--space-2xl) 0;
    text-align: center;
}

.mission-section .features-grid {
    gap: var(--space-lg);
}

.mission-section .feature-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 4px 24px rgba(26, 95, 106, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: transform var(--transition-fast), box-shadow var(--transition-medium);
}

.mission-section .feature-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(26, 95, 106, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Hero image in mission — soft treatment */
.mission-section .content-img-wrap {
    max-width: 700px;
    margin: var(--space-lg) auto var(--space-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 8px 30px rgba(26, 95, 106, 0.1),
        0 30px 80px rgba(26, 95, 106, 0.06);
}

/* ============================================
   CREDENTIALS — Micro-interaction list
   ============================================ */
.credentials-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.credentials-list li {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 12px rgba(26, 95, 106, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--teal-dark);
    font-weight: 600;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.credentials-list li:hover {
    transform: translateX(6px);
    box-shadow: 0 4px 20px rgba(26, 95, 106, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.credentials-list li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ============================================
   VISION SECTION — Enhanced steps
   ============================================ */
.vision-section {
    background:
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(184, 169, 201, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #fdf8f0 0%, #f5efe6 100%);
    padding: var(--space-2xl) 0;
    text-align: center;
}

.vision-image-wrap {
    max-width: 900px;
    margin: var(--space-xl) auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 8px 30px rgba(26, 95, 106, 0.1),
        0 30px 80px rgba(26, 95, 106, 0.06);
}

.vision-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.vision-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    max-width: 900px;
    margin: var(--space-xl) auto;
    text-align: left;
}

.vision-step {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: 0 4px 20px rgba(26, 95, 106, 0.06);
    border-left: 4px solid var(--teal);
    position: relative;
    transition: transform var(--transition-fast), box-shadow var(--transition-medium);
}

.vision-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(26, 95, 106, 0.1);
}

.vision-step--1 { border-left-color: #4a90a4; }
.vision-step--2 { border-left-color: #e8956b; }
.vision-step--3 { border-left-color: #8b6bae; }
.vision-step--4 { border-left-color: #d4636e; }

.vision-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--teal);
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    font-family: var(--font-display);
    margin-bottom: var(--space-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-fast);
}

.vision-step:hover .vision-step-number {
    transform: scale(1.1);
}

.vision-step--1 .vision-step-number { background: #4a90a4; }
.vision-step--2 .vision-step-number { background: #e8956b; }
.vision-step--3 .vision-step-number { background: #8b6bae; }
.vision-step--4 .vision-step-number { background: #d4636e; }

.vision-step-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--teal-dark);
    margin-bottom: var(--space-sm);
}

.vision-step-title span {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.vision-step p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Vision callout — glass accent */
.vision-callout {
    max-width: 750px;
    margin: var(--space-xl) auto;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-xl);
    box-shadow: 0 4px 24px rgba(26, 95, 106, 0.06);
    text-align: left;
    border-left: 4px solid var(--teal);
}

.vision-callout h3 {
    font-family: var(--font-display);
    color: var(--teal-dark);
    margin-bottom: var(--space-sm);
    font-size: 1.15rem;
}

.vision-callout p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Vision goal — enhanced gradient */
.vision-goal {
    max-width: 750px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--teal) 0%, #3a7a8e 50%, #2d6a7e 100%);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-xl);
    text-align: center;
    color: white;
    box-shadow:
        0 8px 30px rgba(35, 122, 135, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.vision-goal h3 {
    font-family: var(--font-display);
    color: white;
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.vision-goal p {
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 767px) {
    .vision-steps {
        grid-template-columns: 1fr;
    }

    .vision-callout,
    .vision-goal {
        padding: var(--space-md);
    }
}

/* ============================================
   BAGOLYKALAND GALLERY — Bento Grid
   ============================================ */
.bagolykaland-section {
    padding: var(--space-2xl) 0;
}

.bagolykaland-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(26, 95, 106, 0.08),
        0 1px 3px rgba(26, 95, 106, 0.04);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(26, 95, 106, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.gallery-item:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow:
        0 12px 40px rgba(26, 95, 106, 0.14),
        0 4px 12px rgba(26, 95, 106, 0.06);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Bento sizing — asymmetric layout */
.gallery-item--wide {
    grid-column: span 2;
}

.gallery-item--wide img {
    aspect-ratio: 16 / 9;
}

.gallery-item--portrait {
    grid-row: span 2;
}

.gallery-item--portrait img {
    aspect-ratio: 3 / 4;
}

.bagolykaland-brand-element {
    max-width: 600px;
    margin: var(--space-xl) auto 0;
    text-align: center;
}

.bagolykaland-brand-element img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    transition: transform var(--transition-medium);
}

.bagolykaland-brand-element:hover img {
    transform: scale(1.02);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .story-block {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        direction: ltr !important;
    }

    .bagolykaland-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item--wide {
        grid-column: span 2;
    }

    .gallery-item--portrait {
        grid-row: span 1;
    }

    .gallery-item--portrait img {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 767px) {
    /* Story blocks: breathing room + tighter image border effect */
    .story-block {
        margin-bottom: var(--space-xl);
    }

    .story-img-frame::before {
        inset: -4px;
    }

    .story-img {
        border-radius: var(--radius-md);
    }

    /* Instructor stats: 2×2 grid with subtle card treatment */
    .instructor-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    .instructor-stats .stat {
        background: rgba(255, 255, 255, 0.6);
        border-radius: var(--radius-sm);
        padding: var(--space-sm);
    }

    /* Mission feature cards: reduce inner padding on mobile */
    .mission-section .features-grid {
        gap: var(--space-md);
    }

    .mission-section .feature-card {
        padding: var(--space-md);
        border-radius: var(--radius-md);
    }

    /* Vision steps: tighter radius + padding on mobile */
    .vision-step {
        padding: var(--space-md);
        border-radius: var(--radius-sm);
    }

    .vision-callout,
    .vision-goal {
        padding: var(--space-md);
        border-radius: var(--radius-sm);
    }

    /* Credentials: compact items */
    .credentials-list li {
        padding: 0.85rem 1rem;
        border-radius: var(--radius-sm);
    }

    /* Gallery: single column with tighter radius */
    .bagolykaland-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: var(--space-sm);
    }

    .gallery-item {
        border-radius: var(--radius-md);
    }

    .gallery-item--wide {
        grid-column: 1;
    }

    .gallery-item--portrait {
        grid-row: span 1;
    }

    .gallery-item--portrait img {
        aspect-ratio: 3 / 4;
    }

    /* Reduce motion on mobile for performance */
    .gallery-item:hover img {
        transform: none;
    }

    .gallery-item:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .story-content h2 {
        font-size: 1.35rem;
    }

    .bagolykaland-badge {
        padding: 0.7rem 0.85rem;
        gap: 0.65rem;
    }

    .bagolykaland-badge img {
        width: 44px;
        height: 44px;
    }

    .gallery-item {
        border-radius: var(--radius-md);
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .gallery-item,
    .gallery-item img,
    .vision-step,
    .vision-step-number,
    .credentials-list li,
    .bagolykaland-badge,
    .mission-section .feature-card,
    .story-img-frame::before,
    .bagolykaland-brand-element img {
        transition: none !important;
    }

    .gallery-item:hover,
    .gallery-item:hover img {
        transform: none;
    }
}
