/* ==========================================================================
   Landing Page template (page-landing.php)
   Only the bits specific to the landing layout. Reuses theme variables,
   buttons, FAQ accordion, and gallery styles from the existing CSS.
   ========================================================================== */

/* --------------------------------------------------------------------------
   FULL-WIDTH LAYOUT FIX (the real issue).
   The theme constrains regular pages to a 900px column via an inline rule
   `.page .ts-main { max-width: 900px; margin: 0 auto }` (intended for legal /
   text pages). Every Page gets the `page` body class, so the landing template
   was caught by it and squeezed into a narrow centred column. The landing
   template needs full-bleed sections like the homepage, so release the cap.
   `body.page-template-page-landing .ts-main` (0,2,1) outranks `.page .ts-main`
   (0,2,0), so it wins regardless of stylesheet order. Scoped to the template,
   so other pages keep their 900px reading width.
   -------------------------------------------------------------------------- */
body.page-template-page-landing .ts-main {
    max-width: none;
    margin: 0;
    /* Other pages add ~96px top padding to clear the fixed header. The hero strip
       already clears the header with its own padding-top, so drop this and let the
       hero photo run full-bleed up behind the header — no dark gap, like the homepage. */
    padding-top: 0;
}

/* --------------------------------------------------------------------------
   a. Hero strip — a lighter, shorter variant of the homepage hero.
   No slider; a dark gradient backdrop with a subtle accent glow.
   -------------------------------------------------------------------------- */
.ts-hero-strip {
    min-height: clamp(360px, 54vh, 600px);
    padding: calc(var(--ts-header-height) + var(--ts-admin-bar-height) + var(--ts-space-2xl)) 0 var(--ts-space-3xl);
    background:
        radial-gradient(120% 120% at 50% 0%, rgba(232, 67, 147, 0.14) 0%, rgba(10, 10, 10, 0) 55%),
        linear-gradient(180deg, var(--ts-dark) 0%, var(--ts-black) 100%);
    border-bottom: 1px solid var(--ts-glass-border);
}

.ts-hero-strip .ts-hero-content {
    max-width: 880px;
}

.ts-hero-strip .ts-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: var(--ts-space-lg);
}

.ts-hero-strip .ts-hero-subtitle {
    margin-bottom: var(--ts-space-2xl);
}

/* Optional hero background image + dark overlay (matches the homepage hero).
   .ts-hero already sets overflow:hidden, and .ts-hero-content has z-index:5,
   so the photo (z-index 0) and overlay (z-index 1) sit behind the text.
   When no image is set, none of this markup is output and the dark gradient
   background on .ts-hero-strip shows as before. */
.ts-hero-strip-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.ts-hero-strip-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.ts-hero-strip-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.8) 0%, rgba(10, 10, 10, 0.62) 45%, rgba(10, 10, 10, 0.72) 100%);
}

/* --------------------------------------------------------------------------
   Rich-text blocks (Intro + Content section)
   -------------------------------------------------------------------------- */
.ts-lp-rte {
    max-width: 820px;
    margin: 0 auto;
    color: var(--ts-silver-light);
    font-size: 1.075rem;
    line-height: 1.8;
}

.ts-lp-rte > *:first-child { margin-top: 0; }
.ts-lp-rte > *:last-child  { margin-bottom: 0; }

.ts-lp-rte h2,
.ts-lp-rte h3,
.ts-lp-rte h4 {
    font-family: var(--ts-font-display);
    color: var(--ts-white);
    line-height: 1.25;
    margin: var(--ts-space-xl) 0 var(--ts-space-md);
}

.ts-lp-rte h2 { font-size: 1.9rem; }
.ts-lp-rte h3 { font-size: 1.45rem; }

.ts-lp-rte p { margin: 0 0 var(--ts-space-lg); }

.ts-lp-rte a {
    color: var(--ts-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ts-lp-rte ul,
.ts-lp-rte ol {
    margin: 0 0 var(--ts-space-lg);
    padding-left: 1.5rem;
}

.ts-lp-rte li { margin-bottom: var(--ts-space-sm); }

.ts-lp-rte strong { color: var(--ts-white); }

/* --------------------------------------------------------------------------
   d. Benefits — glass cards (mirrors the FAQ category glass card)
   -------------------------------------------------------------------------- */
.ts-lp-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--ts-space-xl);
}

.ts-lp-benefit {
    position: relative;
    text-align: center;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.6) 0%, rgba(10, 10, 10, 0.8) 100%);
    backdrop-filter: var(--ts-glass-blur);
    -webkit-backdrop-filter: var(--ts-glass-blur);
    border: 1px solid var(--ts-glass-border);
    border-radius: var(--ts-radius-lg);
    padding: var(--ts-space-2xl) var(--ts-space-xl);
    box-shadow: var(--ts-shadow-md);
    transition: transform var(--ts-transition-base), border-color var(--ts-transition-base), box-shadow var(--ts-transition-base);
}

.ts-lp-benefit:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 67, 147, 0.35);
    box-shadow: var(--ts-shadow-lg);
}

.ts-lp-benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--ts-space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ts-radius-md);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(232, 67, 147, 0.3);
    box-shadow: inset 0 0 10px rgba(232, 67, 147, 0.1);
}

.ts-lp-benefit-icon svg {
    color: var(--ts-accent);
    filter: drop-shadow(0 0 5px rgba(232, 67, 147, 0.4));
}

.ts-lp-benefit-title {
    font-size: 1.2rem;
    color: var(--ts-white);
    margin: 0 0 var(--ts-space-sm);
}

.ts-lp-benefit-text {
    color: var(--ts-silver);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* --------------------------------------------------------------------------
   g. FAQ — single-column list reusing the accordion item styles
   -------------------------------------------------------------------------- */
.ts-lp-faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--ts-space-md);
}

/* --------------------------------------------------------------------------
   h. Final CTA — reuses .ts-faq-cta card; style the H2 like its H3
   -------------------------------------------------------------------------- */
.ts-lp-final-cta .ts-faq-cta h2 {
    font-size: 2rem;
    margin-bottom: var(--ts-space-md);
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   Responsive (mirrors the breakpoints used across the theme)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .ts-hero-strip {
        min-height: auto;
        padding: calc(var(--ts-header-height) + var(--ts-admin-bar-height) + var(--ts-space-xl)) 0 var(--ts-space-2xl);
    }

    .ts-lp-benefits {
        grid-template-columns: 1fr;
        gap: var(--ts-space-lg);
    }

    .ts-lp-final-cta .ts-faq-cta {
        padding: var(--ts-space-2xl) var(--ts-space-lg);
    }

    .ts-lp-final-cta .ts-faq-cta h2 {
        font-size: 1.6rem;
    }
}
