/*
Theme Name: Kallyas Child
Template: kallyas
Description: Child theme for Kallyas - Forsage Logistics customizations
Version: 1.0.0
Author: Forsage Logistics
*/

/* ==========================================================================
   LEASE-TO-OWN PAGE — Modern flat design, mobile-first
   Larger typography, inline video proof, 2-column content tiles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HEADER OFFSET FIX — Prevent nav overlap
   -------------------------------------------------------------------------- */
.lto-page {
    --lto-header-offset: 120px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.65;
    background: #f7f7f8;
    font-size: 16px;
}

.admin-bar .lto-page {
    --lto-header-offset: 152px;
}

/* --------------------------------------------------------------------------
   2. HERO — With header offset padding
   -------------------------------------------------------------------------- */
.lto-hero {
    background: #1a1a2e;
    color: #fff;
    padding: calc(var(--lto-header-offset) + 48px) 20px 56px;
    text-align: center;
}

.lto-hero h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 14px;
    letter-spacing: -0.3px;
    text-transform: none;
}

.lto-hero p {
    font-size: 17px;
    opacity: 0.9;
    max-width: 540px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.55;
}

/* --------------------------------------------------------------------------
   3. TILES CONTAINER
   -------------------------------------------------------------------------- */
.lto-tiles {
    padding: 32px 16px 48px;
    max-width: 1040px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   4. FLAT TILES — No borders, subtle shadow, modern radius
   -------------------------------------------------------------------------- */
.lto-section {
    background: #fff;
    border: none;
    border-radius: 16px;
    padding: 32px 24px;
    margin: 0 0 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
}

.lto-section:last-of-type {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   5. TYPOGRAPHY — Larger, calmer, more readable
   -------------------------------------------------------------------------- */
.lto-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #1a1a2e;
    letter-spacing: -0.2px;
    text-transform: none;
}

.lto-section h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #333;
    text-transform: none;
}

.lto-section p {
    font-size: 17px;
    color: #444;
    margin: 0 0 16px;
    line-height: 1.7;
}

.lto-section p:last-child {
    margin-bottom: 0;
}

.lto-section ul {
    margin: 0 0 16px;
    padding: 0 0 0 20px;
}

.lto-section li {
    font-size: 17px;
    margin-bottom: 14px;
    color: #444;
    line-height: 1.7;
}

.lto-section li:last-child {
    margin-bottom: 0;
}

.lto-section li strong {
    color: #1a1a2e;
}

/* --------------------------------------------------------------------------
   6. APPLICATION FORM TILE — Primary focus
   -------------------------------------------------------------------------- */
.lto-apply-section {
    background: #fff;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
    padding: 36px 24px;
}

.lto-apply-section h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.lto-apply-intro {
    font-size: 16px;
    color: #555;
    margin-bottom: 28px;
}

/* --------------------------------------------------------------------------
   7. CONTENT TILES — 2-column layout (copy + videos)
   -------------------------------------------------------------------------- */
.lto-content-tile {
    padding: 0;
    overflow: hidden;
}

.lto-tile-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lto-tile-copy {
    flex: 1;
    padding: 32px 24px;
}

.lto-tile-copy h2 {
    margin-bottom: 18px;
}

.lto-tile-videos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0;
}

/* Single video: full width */
.lto-tile-videos:has(.lto-video-inline:only-child) {
    grid-template-columns: 1fr;
}

/* --------------------------------------------------------------------------
   8. INLINE VIDEO TILES — Edge-to-edge, no border radius on mobile
   -------------------------------------------------------------------------- */
.lto-video-inline {
    position: relative;
    background: #1a1a2e;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    min-height: 180px;
    max-height: 240px;
}

.lto-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(26,26,46,0.2) 0%, rgba(26,26,46,0.6) 100%);
    cursor: pointer;
}

.lto-video-play {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.15s ease;
    min-width: 44px;
    min-height: 44px;
}

.lto-video-play:hover {
    transform: scale(1.1);
}

.lto-video-play:active {
    transform: scale(0.95);
}

.lto-video-iframe-wrap {
    position: absolute;
    inset: 0;
    display: none;
}

.lto-video-tile.is-playing .lto-video-placeholder {
    display: none;
}

.lto-video-tile.is-playing .lto-video-iframe-wrap {
    display: block;
}

.lto-video-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.lto-video-stop {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.6);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    z-index: 10;
}

.lto-video-tile.is-playing .lto-video-stop {
    display: flex;
}

.lto-video-stop:hover {
    background: rgba(0,0,0,0.8);
}

.lto-video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
    font-size: 11px;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    text-align: center;
}

.lto-video-tile.is-playing .lto-video-caption {
    display: none;
}

/* --------------------------------------------------------------------------
   9. CHECKLIST — Clean checkmarks
   -------------------------------------------------------------------------- */
.lto-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.lto-checklist li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
}

.lto-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
    font-size: 16px;
}

/* --------------------------------------------------------------------------
   10. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.lto-faq-section {
    background: #fafafa;
}

.lto-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lto-accordion-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.lto-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    transition: background 0.15s ease;
}

.lto-accordion-trigger:hover {
    background: #f8f8f9;
}

.lto-accordion-trigger:focus {
    outline: none;
    background: #f0f0f2;
}

.lto-accordion-icon {
    flex-shrink: 0;
    color: #666;
    transition: transform 0.2s ease;
}

.lto-accordion-item.is-open .lto-accordion-icon {
    transform: rotate(180deg);
}

.lto-accordion-content {
    display: none;
    padding: 0 20px 18px;
}

.lto-accordion-item.is-open .lto-accordion-content {
    display: block;
}

.lto-accordion-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.65;
    margin: 0;
}

/* --------------------------------------------------------------------------
   11. NOTE TEXT
   -------------------------------------------------------------------------- */
.lto-note {
    font-size: 13px;
    color: #888;
    font-style: italic;
    margin-top: 16px;
}

/* --------------------------------------------------------------------------
   12. FINAL CTA — Subdued
   -------------------------------------------------------------------------- */
.lto-cta-section {
    background: #f5f5f7;
    text-align: center;
}

.lto-cta-section h2 {
    font-size: 19px;
    margin-bottom: 10px;
}

.lto-cta-section p {
    font-size: 14px;
    color: #666;
}

.lto-cta-section a {
    color: #1a1a2e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE — Desktop enhancements
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .lto-hero {
        padding: calc(var(--lto-header-offset) + 56px) 20px 64px;
    }
    .lto-hero h1 {
        font-size: 34px;
    }
    .lto-hero p {
        font-size: 18px;
    }
    .lto-tiles {
        padding: 40px 24px 56px;
    }
    .lto-section {
        padding: 40px 36px;
        margin-bottom: 24px;
    }
    .lto-section h2 {
        font-size: 26px;
    }
    .lto-section p,
    .lto-section li {
        font-size: 17px;
    }
    .lto-apply-section {
        padding: 44px 40px;
    }
    .lto-apply-section h2 {
        font-size: 28px;
    }
    .lto-apply-intro {
        font-size: 17px;
    }
    
    /* 2-column content tiles on desktop: videos LEFT, copy RIGHT */
    .lto-tile-inner {
        flex-direction: row;
        gap: 0;
        align-items: stretch;
    }
    .lto-tile-videos {
        flex: 0 0 auto;
        width: 200px;
        grid-template-columns: 1fr;
        gap: 0;
        order: -1;
    }
    .lto-tile-videos:has(.lto-video-inline:nth-child(2)) {
        width: 300px;
        grid-template-columns: 1fr 1fr;
    }
    .lto-tile-copy {
        flex: 1 1 auto;
        padding: 40px 36px;
    }
    .lto-video-inline {
        max-height: none;
        height: 100%;
        border-radius: 0;
    }
    
    /* Accordion larger text */
    .lto-accordion-trigger {
        font-size: 17px;
        padding: 20px 24px;
    }
    .lto-accordion-content {
        padding: 0 24px 20px;
    }
    .lto-accordion-content p {
        font-size: 16px;
    }
    
    /* Note text */
    .lto-note {
        font-size: 14px;
    }
    
    /* CTA */
    .lto-cta-section h2 {
        font-size: 22px;
    }
    .lto-cta-section p {
        font-size: 16px;
    }
}
