/* Meist (About) page */
.about-page {
    padding: 48px 0 40px;
}

.about-hero {
    max-width: 760px;
    margin-bottom: 40px;
}

.about-hero h1 {
    font-size: 46px;
    line-height: 1.12;
    color: var(--ink);
    margin: 14px 0 20px;
}

/* Mugav lugemislaius (~68 tähemärki reas) */
.about-hero .about-lead {
    max-width: 68ch;
}

.about-hero .about-lead p {
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink-soft);
    margin-bottom: 18px;
}

/* Esimene lõik tõuseb esile, ülejäänud on rahulik jooksev tekst */
.about-hero .about-lead p.is-lead {
    font-size: 20.5px;
    line-height: 1.6;
    color: var(--ink);
    margin-bottom: 24px;
}

.about-hero .about-lead p:last-child { margin-bottom: 0; }

/* Wide feature image */
.about-feature {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 7;
    margin-bottom: 20px;
    background: var(--green-light);
}

.about-feature img { width: 100%; height: 100%; object-fit: cover; }

.about-feature.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    font-size: 15px;
    font-weight: 600;
    color: var(--green-dark);
    background: repeating-linear-gradient(135deg, var(--green-light), var(--green-light) 16px, var(--cream-deep) 16px, var(--cream-deep) 32px);
}

/* Story sections */
.about-story {
    padding-top: 40px;
    padding-bottom: 20px;
}

.story-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 44px 0;
}

.story-row:not(:last-child) {
    border-bottom: 1px solid rgba(46, 42, 35, 0.08);
}

.story-row:nth-child(even) .story-media { order: 2; }

.story-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    background: var(--green-light);
}

.story-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Enne/pärast paar loo osas.
   Tekstiga real: paar jääb media-veergu (tekst kõrval).
   Ilma tekstita (pair-full): terve rea laiuses, suur. */
.story-media.is-pair {
    display: flex;
    gap: 8px;
    aspect-ratio: 1.9 / 1;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.story-row.pair-full {
    grid-template-columns: 1fr;
    gap: 22px;
}

/* Ilma pildita loo-rida: tekst täislaiuses (kohatäidet ei näidata) */
.story-row.no-media {
    grid-template-columns: 1fr;
}

.story-row.no-media .story-text {
    max-width: 760px;
}

.story-row.pair-full .story-media.is-pair {
    aspect-ratio: 2.6 / 1;
}

@media (max-width: 640px) {
    .story-media.is-pair {
        flex-direction: column;
        aspect-ratio: auto;
        gap: 10px;
    }
    .story-media.is-pair .sm-half { aspect-ratio: 16 / 10; }
}

.story-media.is-pair .sm-half {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.story-media.is-pair .sm-half img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sm-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(20, 18, 14, 0.72);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 11px;
    border-radius: 999px;
}

.story-media.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--green-dark);
    background: repeating-linear-gradient(135deg, var(--green-light), var(--green-light) 14px, var(--cream-deep) 14px, var(--cream-deep) 28px);
}

.story-text .story-step {
    display: inline-block;
    color: var(--green-dark);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.story-text h2 {
    font-size: 30px;
    color: var(--ink);
    margin-bottom: 16px;
}

.story-text p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink-soft);
    margin-bottom: 14px;
}

/* Values */
.about-values {
    padding-top: 30px;
    padding-bottom: 30px;
}

.about-values-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 40px;
}

.about-values-head h2 { font-size: 34px; color: var(--ink); margin-bottom: 12px; }
.about-values-head p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 32px 28px;
    text-align: center;
}

.value-card .value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--green-light);
    margin-bottom: 16px;
}

.value-card .value-icon svg { width: 26px; height: 26px; stroke: var(--green-dark); }
.value-card h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.value-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }

/* Build gallery strip */
.build-gallery {
    padding-top: 40px;
    padding-bottom: 10px;
}

.build-gallery h2 {
    font-size: 30px;
    color: var(--ink);
    margin-bottom: 6px;
}

.build-gallery .bg-sub {
    color: var(--ink-soft);
    font-size: 16px;
    margin-bottom: 28px;
}

/* Justified-paigutus (meist.js): iga rida täidab täislaiuse, pilt säilitab
   oma külgsuhte (ei kärbita) ja read lõpevad ühtlaselt – auke ei teki. */
.build-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.build-row {
    display: flex;
    gap: 16px;
}

.build-tile {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--green-light);
    position: relative;
    cursor: zoom-in;
    min-width: 0;
}

.build-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Enne/pärast paar ehituse päevikus */
.build-tile.is-pair {
    display: flex;
    gap: 4px;
    background: transparent;
    box-shadow: none;
    cursor: default;
    overflow: visible;
}

.build-tile.is-pair .bt-half {
    position: relative;
    min-width: 0;
    height: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: zoom-in;
}

.build-tile.is-pair .bt-half img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.build-tile:hover img { transform: scale(1.04); }

.build-tile.is-placeholder {
    aspect-ratio: 1 / 1;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--green-dark);
    background: repeating-linear-gradient(135deg, var(--green-light), var(--green-light) 12px, var(--cream-deep) 12px, var(--cream-deep) 24px);
}

/* CTA */
.about-cta {
    background: var(--green);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    margin: 48px 0 80px;
}

.about-cta h2 { color: #fff; font-size: 30px; margin-bottom: 12px; }
.about-cta p { color: rgba(255, 255, 255, 0.9); font-size: 17px; margin-bottom: 26px; }
.about-cta .btn { background: #fff; color: var(--green-dark); }
.about-cta .btn:hover { background: var(--cream); }

/* Responsive */
@media (max-width: 900px) {
    .about-hero h1 { font-size: 34px; }
    .story-row {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 36px 0;
    }
    .story-row:nth-child(even) .story-media { order: 0; }
    .story-text h2 { font-size: 26px; }
    .values-grid { grid-template-columns: 1fr; }
    .build-grid { gap: 12px; }
    .build-col { gap: 12px; }
    .about-feature { aspect-ratio: 3 / 2; }
}

@media (max-width: 560px) {
    .about-cta { padding: 36px 24px; margin-bottom: 56px; }
}
