/* ─────────────────────────────────────────────────────────────
   ABOUT PAGE - BALTIJOS KONSERVAI
   Fontai: Lora (headings), Inter (body text), Space Mono (mono)
   Fully Responsive: Mobile, Tablet, Desktop
   ───────────────────────────────────────────────────────────── */


/* ── Base styles for about page ── */

.page-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #030d18 0%, #042f46 50%, #065273 100%);
    color: white;
    overflow: hidden;
}

.page-hero-inner {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #05aee4;
    margin-bottom: 1rem;
}

.page-hero h1 {
    font-family: 'Lora', serif;
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.page-hero h1 .italic,
.d2 .italic {
    font-style: italic;
    font-weight: 400;
    color: #05aee4;
}

.page-hero p {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 550px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #05aee4, #008bc2);
    color: white;
    box-shadow: 0 4px 20px rgba(5, 174, 228, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(5, 174, 228, 0.5);
    background: linear-gradient(135deg, #26c8f8, #05aee4);
}

.btn-ghost {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}


/* ── Sections ── */

.section {
    padding: 5rem 1.5rem;
}

.section-inner {
    max-width: 1152px;
    margin: 0 auto;
}

.section-white {
    background: white;
}

.section-paper {
    background: #f8fafc;
}

.section-off {
    background: #eef5f9;
}


/* ── Divider ── */

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #05aee4, #6ddcff);
    margin: 1rem 0 1.5rem;
}

.divider-center {
    margin-left: auto;
    margin-right: auto;
}


/* ── Headings (Lora) ── */

.d2,
.section h2,
.section h3,
blockquote {
    font-family: 'Lora', serif;
}

.d2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #071c2e;
    line-height: 1.2;
}

.d2 .italic {
    font-style: italic;
    font-weight: 400;
    color: #05aee4;
}


/* ── Body text (Inter) ── */

.section p,
.section li,
.timeline-text,
.cert-card p {
    font-family: 'Inter', sans-serif;
}


/* ── Timeline ── */

.timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2rem;
    border-left: 2px solid rgba(5, 174, 228, 0.3);
}

.timeline-item:last-child {
    border-left-color: transparent;
}

.timeline-year {
    font-family: 'Space Mono', monospace;
    font-size: 0.875rem;
    font-weight: 700;
    color: #05aee4;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #071c2e;
    margin-bottom: 0.5rem;
}

.timeline-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
}


/* ── Certification grid ── */

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.cert-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.cert-card:hover {
    border-color: #05aee4;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(5, 174, 228, 0.1);
}

.cert-card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cert-card h4 {
    font-family: 'Lora', serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #071c2e;
    margin-bottom: 0.5rem;
}

.cert-card p {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
}


/* ── Stats / Number displays ── */

.stat-number {
    font-family: 'Lora', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #05aee4;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #64748b;
    letter-spacing: 0.05em;
}


/* ── Quote block ── */

blockquote {
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    font-style: italic;
    color: #071c2e;
    line-height: 1.4;
    margin: 1.5rem 0;
}


/* ── Fade animations ── */

.fade-in,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible,
.fade-in-left.visible,
.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}


/* ── Scrollbar ── */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #030d18;
}

::-webkit-scrollbar-thumb {
    background: #05aee4;
    border-radius: 3px;
}


/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE STYLES
   ═══════════════════════════════════════════════════════════ */


/* ── Tablet (768px - 1024px) ── */

@media (min-width: 768px) and (max-width: 1024px) {
    .page-hero h1 {
        font-size: 3rem;
    }
    .d2 {
        font-size: 2rem;
    }
    .section {
        padding: 4rem 1.5rem;
    }
    [style*="grid-template-columns: 1fr 1fr"] {
        gap: 2rem !important;
    }
    [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    .timeline-item {
        padding-left: 1.5rem;
    }
}


/* ── Mobile (max 768px) ── */

@media (max-width: 768px) {
    /* Hero section */
    .page-hero {
        min-height: 60vh;
    }
    .page-hero-inner {
        padding: 100px 20px 60px;
    }
    .eyebrow {
        font-size: 0.55rem;
        letter-spacing: 0.15em;
        word-wrap: break-word;
    }
    .page-hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    .page-hero p {
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 0 8px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    /* Sections */
    .section {
        padding: 3rem 1rem;
    }
    .d2 {
        font-size: 1.6rem;
    }
    /* Grid layouts - convert to single column */
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    [style*="grid-template-columns: 1fr 2fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    /* Mission section stats grid */
    [style*="display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
    }
    [style*="background: white; border: 1px solid #e2e8f0; border-radius: 16px; padding: 1.5rem; text-align: center;"] {
        padding: 1rem !important;
    }
    [style*="font-family: 'Space Mono', monospace; font-size: 2rem;"] {
        font-size: 1.5rem !important;
    }
    /* Timeline */
    .timeline {
        margin-top: 1rem;
    }
    .timeline-item {
        padding-left: 1.25rem;
        padding-bottom: 1.5rem;
    }
    .timeline-year {
        font-size: 0.7rem;
    }
    .timeline-title {
        font-size: 1rem;
    }
    .timeline-text {
        font-size: 0.75rem;
    }
    /* Quote block */
    blockquote {
        font-size: 1.2rem;
        margin: 1rem 0;
        padding: 0 16px;
    }
    /* Certification cards */
    .cert-card {
        padding: 1.25rem;
    }
    .cert-card svg {
        width: 24px;
        height: 24px;
    }
    .cert-card h4 {
        font-size: 1rem;
    }
    .cert-card p {
        font-size: 0.7rem;
    }
    /* Values section */
    .cert-card {
        text-align: left;
    }
    .cert-card>div {
        flex-direction: row !important;
        align-items: center !important;
    }
    /* Divider */
    .divider {
        width: 40px;
        height: 2px;
        margin: 0.75rem 0 1rem;
    }
    .divider-center {
        margin-left: auto;
        margin-right: auto;
    }
    /* Text alignment */
    .text-center.mb-12 {
        margin-bottom: 2rem;
    }
    /* Fade animations on mobile */
    .fade-in-left,
    .fade-in-right {
        transform: translateX(0);
    }
    .fade-in-left.visible,
    .fade-in-right.visible {
        transform: translateX(0);
    }
}


/* ── Small mobile (max 480px) ── */

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 1.8rem;
    }
    .page-hero p {
        font-size: 0.85rem;
    }
    .eyebrow {
        font-size: 0.5rem;
        letter-spacing: 0.1em;
    }
    .d2 {
        font-size: 1.4rem;
    }
    .section {
        padding: 2rem 0.75rem;
    }
    [style*="display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;"] {
        gap: 0.5rem !important;
    }
    [style*="padding: 1.5rem"] {
        padding: 0.75rem !important;
    }
    [style*="font-size: 2rem"] {
        font-size: 1.25rem !important;
    }
    .timeline-item {
        padding-left: 1rem;
        padding-bottom: 1.25rem;
    }
    .timeline-year {
        font-size: 0.6rem;
    }
    .timeline-title {
        font-size: 0.9rem;
    }
    blockquote {
        font-size: 1rem;
    }
    .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.75rem;
    }
}


/* ── Landscape orientation fix ── */

@media (max-width: 768px) and (orientation: landscape) {
    .page-hero {
        min-height: auto;
        padding: 1rem 0;
    }
    .page-hero-inner {
        padding: 80px 20px 40px;
    }
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
    .btn {
        width: auto;
        min-width: 180px;
    }
}


/* ── Touch device optimizations ── */

@media (hover: none) and (pointer: coarse) {
    .btn-primary:hover,
    .btn-ghost:hover,
    .cert-card:hover {
        transform: none;
    }
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}