/* ═══════════════════════════════════════════════════════════
   home.css — Homepage-specific styles for Little Turtlery
   Requires: public-layout.css (tokens, reset, nav)
   ═══════════════════════════════════════════════════════════ */

/* ─── Hero (Split layout — text left, portrait images right) ─ */
.lt-hero {
    min-height: 100svh;
    min-height: 100vh;
    padding-top: var(--nav-h);
    background: var(--lt-cream);
    display: flex;
}

.lt-hero__split {
    display: grid;
    grid-template-columns: 42fr 58fr;
    width: 100%;
    min-height: calc(100svh - var(--nav-h));
    min-height: calc(100vh - var(--nav-h));
}

/* Left: text */
.lt-hero__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--sp-3xl) var(--sp-xl) var(--sp-3xl) clamp(24px, 6vw, 88px);
    gap: var(--sp-lg);
}

/* Thin decorative rule above tagline */
.lt-hero__text::before {
    content: '';
    display: block;
    width: 36px;
    height: 1.5px;
    background: var(--lt-sage);
    margin-bottom: 4px;
}

.lt-hero__tagline {
    font-size: 12px;
    font-weight: var(--fw-semibold);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--lt-sage-dark);
}

.lt-hero__title {
    font-size: clamp(34px, 4.5vw, 64px);
    font-weight: var(--fw-semibold);
    color: var(--lt-ink);
    line-height: 1.15;
    white-space: pre-line;
    text-wrap: balance;
}

.lt-hero__sub {
    font-size: clamp(15px, 1.4vw, 17px);
    color: var(--lt-text-soft);
    font-weight: var(--fw-light);
    line-height: 1.8;
    max-width: 340px;
}

.lt-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: var(--sp-sm);
}

/* Right: editorial portrait duo */
.lt-hero__imagery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: clamp(24px, 3vw, 48px) clamp(24px, 4vw, 56px) clamp(24px, 3vw, 48px) 8px;
    align-items: start;
}

.lt-hero__photo-wrap {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--lt-border-light);
}

/* Second image drops down ~12% for the editorial offset */
.lt-hero__photo-wrap--2 {
    margin-top: 12%;
}

.lt-hero__photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
    transition: transform .65s ease;
}

.lt-hero__photo-wrap:hover .lt-hero__photo {
    transform: scale(1.03);
}

/* ─── Featured Quiz ──────────────────────────────────────── */
.lt-quiz-feature {
    background: var(--lt-white);
}

.lt-quiz-feature__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.lt-quiz-feature__image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.lt-quiz-feature__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s ease;
}

.lt-quiz-feature__grid:hover .lt-quiz-feature__image {
    transform: scale(1.04);
}

.lt-quiz-feature__content {
    background: var(--lt-stone-xlight);
    padding: clamp(36px, 5.5vw, 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
}

.lt-quiz-feature__title {
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: var(--fw-semibold);
    color: var(--lt-ink);
    line-height: 1.25;
}

.lt-quiz-feature__desc {
    font-size: 15px;
    color: var(--lt-text-soft);
    line-height: 1.8;
    font-weight: var(--fw-light);
}

/* ─── Gallery Preview ────────────────────────────────────── */
.lt-gallery {
    background: var(--lt-cream);
}

/*
  6-image asymmetric grid — 4 columns, 2 rows:
    Row 1: [wide-1][  2  ][  3  ]
    Row 2: [  4  ][  5  ][wide-6]
  Items 1 & 6 each span 2 columns.
*/
.lt-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 260px 260px;
    gap: 12px;
}

.lt-gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-md);
    background: var(--lt-border-light);
}

/* Explicit placement for asymmetric layout */
.lt-gallery__item--1 { grid-column: 1 / 3; grid-row: 1; }
.lt-gallery__item--2 { grid-column: 3;     grid-row: 1; }
.lt-gallery__item--3 { grid-column: 4;     grid-row: 1; }
.lt-gallery__item--4 { grid-column: 1;     grid-row: 2; }
.lt-gallery__item--5 { grid-column: 2;     grid-row: 2; }
.lt-gallery__item--6 { grid-column: 3 / 5; grid-row: 2; }

.lt-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s ease;
}

.lt-gallery__item:hover .lt-gallery__img {
    transform: scale(1.06);
}

.lt-gallery__overlay {
    position: absolute;
    inset: 0;
    background: rgba(40, 40, 31, 0);
    transition: background var(--ease);
}

.lt-gallery__item:hover .lt-gallery__overlay {
    background: rgba(40, 40, 31, .10);
}

/* ─── Brand Story ────────────────────────────────────────── */
.lt-story {
    background: var(--lt-stone-xlight);
}

.lt-story__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}

.lt-story__image-wrap {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

/* Decorative offset frame behind the image */
.lt-story__image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--r-xl);
    box-shadow: -14px 14px 0 -1px transparent,
                -14px 14px 0   0  var(--lt-stone);
    opacity: .3;
    z-index: -1;
    pointer-events: none;
}

.lt-story__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lt-story__content {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.lt-story__title {
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: var(--fw-semibold);
    color: var(--lt-ink);
    line-height: 1.25;
}

.lt-story__body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lt-story__body p {
    font-size: 15px;
    color: var(--lt-text-soft);
    line-height: 1.9;
    font-weight: var(--fw-light);
}

/* Last paragraph styled as a reflective close */
.lt-story__body p:last-child {
    font-style: italic;
    color: var(--lt-stone-dark);
    border-left: 2px solid var(--lt-stone);
    padding-left: 22px;
    margin-top: var(--sp-sm);
    line-height: 2.0;
}

/* ─── Gallery Preview: view-all CTA ─────────────────────── */
.lt-gallery__cta {
    text-align: center;
    margin-top: var(--sp-xl);
}

/* ─── LittleTurtleryBook Teaser (homepage) ───────────────── */
.lt-book-teaser {
    background: var(--lt-sage-xlight);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Large decorative ornament — blends into background */
.lt-book-teaser::before {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 300px;
    color: var(--lt-sage-light);
    opacity: .65;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.lt-book-teaser__inner {
    position: relative;
    z-index: 1;
    max-width: 540px;
    margin-inline: auto;
}

.lt-book-teaser__ornament {
    display: block;
    font-size: 20px;
    color: var(--lt-sage);
    opacity: .5;
    margin-bottom: var(--sp-md);
    line-height: 1;
}

.lt-book-teaser__title {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: var(--fw-semibold);
    color: var(--lt-ink);
    line-height: 1.25;
    white-space: pre-line;
    text-wrap: balance;
    margin-top: var(--sp-sm);
    margin-bottom: var(--sp-md);
}

.lt-book-teaser__body {
    font-size: 15px;
    color: var(--lt-text-soft);
    font-weight: var(--fw-light);
    line-height: 1.85;
    max-width: 420px;
    margin-inline: auto;
    margin-bottom: var(--sp-xl);
}

/* ─── Responsive — tablet ────────────────────────────────── */
@media (max-width: 900px) {
    /* Hero: narrow split stays usable down to 700px */
    .lt-hero__split {
        grid-template-columns: 45fr 55fr;
    }

    .lt-quiz-feature__grid {
        grid-template-columns: 1fr;
    }

    .lt-quiz-feature__image-wrap {
        aspect-ratio: 16 / 7;
    }

    .lt-story__grid {
        grid-template-columns: 1fr;
        gap: var(--sp-2xl);
    }

    .lt-story__image-wrap {
        aspect-ratio: 16 / 9;
    }

    .lt-story__image-wrap::after {
        display: none;
    }
}

/* ─── Responsive — mobile ────────────────────────────────── */
@media (max-width: 700px) {
    /* Hero: stack vertically — text top, portrait pair below */
    .lt-hero {
        min-height: unset;
        padding-top: var(--nav-h);
    }

    .lt-hero__split {
        grid-template-columns: 1fr;
        min-height: unset;
    }

    .lt-hero__text {
        padding: var(--sp-2xl) var(--gutter) var(--sp-xl);
        text-align: center;
        gap: var(--sp-md);
    }

    .lt-hero__text::before {
        margin-inline: auto;
    }

    .lt-hero__sub {
        max-width: 100%;
    }

    .lt-hero__actions {
        justify-content: center;
        padding-top: 0;
    }

    .lt-hero__imagery {
        padding: 0 var(--gutter) var(--sp-2xl);
        gap: 8px;
    }

    /* Reset editorial offset on mobile — both images at same level */
    .lt-hero__photo-wrap--2 {
        margin-top: 0;
    }

    .lt-hero__photo {
        aspect-ratio: 4 / 5;
    }

    /* Collapse gallery to 2-column simple grid */
    .lt-gallery__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 180px);
    }

    .lt-gallery__item--1,
    .lt-gallery__item--2,
    .lt-gallery__item--3,
    .lt-gallery__item--4,
    .lt-gallery__item--5,
    .lt-gallery__item--6 {
        grid-column: unset;
        grid-row: unset;
    }

}
