/*
Theme Name: LifeTown Curriculum
Theme URI: https://github.com/amzfire/LT-Curriculum
Description: Custom child theme for LifeTown Shoppes Curriculum platform.
Author: LifeTown
Author URI: https://lifetown.net
Template: twentytwentyfive
Version: 1.0.0
Text Domain: lifetown-theme
*/

/* ============================================
   HEADER: Burger menu for mobile
   ============================================ */

/* ============================================
   UTILITY BAR (matches lifetown.com)
   ============================================ */

.ltc-utility-bar {
    background: #EBEBEB;
    padding: 0;
    font-size: 0;
    line-height: 0;
    border-bottom: 1px solid #ddd;
}

.ltc-utility-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.ltc-utility-links {
    display: flex;
    align-items: stretch;
}

.ltc-utility-links a {
    display: flex;
    align-items: center;
    padding: 6px 14px;
    text-decoration: none;
    border-right: 1px solid #ddd;
    transition: background 0.15s ease;
}

.ltc-utility-links a:first-child {
    border-left: 1px solid #ddd;
}

.ltc-utility-links a img {
    height: 16px;
    width: auto;
    filter: grayscale(100%) opacity(0.5);
    transition: filter 0.2s ease;
}

.ltc-utility-links a:hover img {
    filter: grayscale(0%) opacity(1);
}

.ltc-utility-links a:hover {
    background: #f5f5f5;
}

/* Active tab — white background like lifetown.com */
.ltc-utility-links a.ltc-utility-active {
    background: #fff;
    border-bottom: 2px solid #fff;
    margin-bottom: -1px;
}

.ltc-utility-links a.ltc-utility-active img {
    filter: grayscale(0%) opacity(1);
}

.ltc-utility-right {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 8px;
}

.ltc-utility-contact {
    background: #d63638;
    color: #fff !important;
    text-decoration: none;
    padding: 4px 14px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.ltc-utility-contact:hover {
    background: #b52d2f;
}

.ltc-utility-search {
    color: #666;
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .ltc-utility-bar {
        display: none;
    }
}

/* ============================================
   MAIN HEADER
   ============================================ */

header.ltc-header,
.ltc-header {
    position: relative;
    background: #fff;
    border-bottom: 1px solid #E8E4E0;
    padding: 12px 20px;
}

.ltc-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ltc-header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.ltc-header-logo img {
    height: 32px;
    width: auto;
}

.ltc-nav-desktop {
    display: flex;
    gap: 24px;
}

.ltc-nav-desktop a {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5C5550;
    text-decoration: none;
}

.ltc-nav-desktop a:hover {
    color: #093266;
}

.ltc-burger-wrap {
    display: none;
    position: relative;
}

@media (max-width: 768px) {
    .ltc-nav-desktop {
        display: none;
    }
    .ltc-burger-wrap {
        display: block;
    }
}

/* Burger checkbox (hidden) */
.ltc-burger-checkbox {
    display: none;
}

/* Burger icon */
.ltc-burger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.ltc-burger-icon span {
    display: block;
    width: 22px;
    height: 2px;
    background: #093266;
    border-radius: 1px;
    transition: all 0.2s ease;
}

/* Mobile nav dropdown — fixed to viewport width */
.ltc-mobile-nav {
    display: none;
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 2px solid #F7B332;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    z-index: 1000;
    padding: 8px 0;
}

.ltc-mobile-nav a {
    display: block;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #093266;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ltc-mobile-nav a:hover {
    background: #FDF3DD;
}

/* When burger is checked, show nav */
.ltc-burger-checkbox:checked ~ .ltc-mobile-nav {
    display: block;
}

/* Animate burger to X */
.ltc-burger-checkbox:checked ~ .ltc-burger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.ltc-burger-checkbox:checked ~ .ltc-burger-icon span:nth-child(2) {
    opacity: 0;
}
.ltc-burger-checkbox:checked ~ .ltc-burger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Make header position relative for dropdown */
.ltc-header {
    position: relative !important;
}

@media (max-width: 768px) {
    .ltc-nav-desktop {
        display: none;
    }
    .ltc-burger-wrap {
        display: block;
    }
}

/* PHP footer (inside pages) */
.ltc-footer {
    background: #093266;
    padding: 24px 20px;
}

.ltc-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ltc-footer span {
    font-size: 0.85rem;
    color: #9C9590;
}

.ltc-footer a {
    font-size: 0.85rem;
    color: #F5D78E;
    text-decoration: none;
}

@media (max-width: 768px) {
    .ltc-footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ============================================
   HOMEPAGE: Hide title, make content full-width
   ============================================ */

.home .wp-block-post-title,
.home .entry-title {
    display: none !important;
}

/* Make homepage blocks full-width (override theme content constraint) */
.home .wp-block-cover,
.home .wp-block-group {
    max-width: none !important;
    width: 100% !important;
}

.home .entry-content > *,
.home .wp-block-post-content > * {
    max-width: none !important;
}

/* ============================================
   GLOBAL: Prevent horizontal overflow on mobile
   ============================================ */

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ============================================
   GLOBAL: Remove WP block gaps between full-width sections
   ============================================ */

/* Homepage: eliminate gaps between full-width sections */
.home .wp-site-blocks > * + *,
.home .wp-block-post-content > * + *,
.home .entry-content > * + * {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}

/* Tight top padding on homepage sections */
.home .wp-block-cover + .wp-block-group {
    padding-top: 20px !important;
}

/* ============================================
   STORE NAVIGATION GRID (Homepage)
   ============================================ */

.ltc-store-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* Prevent WP block first-child styles from enlarging first items */
.ltc-store-nav > *:first-child {
    font-size: inherit;
    margin: 0;
}

.ltc-store-nav .ltc-store-nav-item {
    font-size: inherit !important;
    margin: 0 !important;
}

.ltc-store-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    background: #F7F5F3;
    border: 2px solid #E8E4E0;
    border-radius: 12px;
    text-decoration: none;
    color: var(--wp--preset--color--contrast);
    transition: all 0.2s ease;
    text-align: center;
    cursor: pointer;
}

.ltc-store-nav-item:hover {
    border-color: #F7B332;
    background: #FDF3DD;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(247, 179, 50, 0.2);
}

.ltc-store-nav-item:active {
    transform: translateY(0);
    background: #F7B332;
    color: #fff;
    border-color: #F7B332;
}

.ltc-store-nav-icon {
    font-size: 2.25rem;
    line-height: 1;
}

.ltc-store-nav-label {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: var(--wp--preset--font-family--heading);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 1023px) {
    .ltc-store-nav {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 639px) {
    .ltc-store-nav {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .ltc-store-nav-item {
        padding: 10px 6px;
        gap: 4px;
    }
    .ltc-store-nav-icon {
        font-size: 1.25rem;
    }
    .ltc-store-nav-label {
        font-size: 0.6rem;
        line-height: 1.15;
    }

}

/* ============================================
   SKILL PILLS (Homepage navy section)
   ============================================ */

.ltc-skills-pills,
.ltc-skills-pills.is-layout-flow,
.ltc-skills-pills.wp-block-group-is-layout-flow {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
}

/* Reset WP block layout margins on every child so first pill matches the rest */
.ltc-skills-pills > *,
.ltc-skills-pills > *:first-child,
.ltc-skills-pills > *:last-child,
.ltc-skills-pills > * + * {
    margin: 0 !important;
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

.ltc-skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    color: #fff !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Prevent WP block first-child styles from enlarging the first skill pill */
.ltc-skills-pills > *:first-child,
.ltc-skills-pills > .ltc-skill-pill:first-child {
    font-size: 0.9rem !important;
    margin: 0 !important;
    padding: 10px 20px !important;
}

@media (max-width: 639px) {
    .ltc-skills-pills,
    .ltc-skills-pills.is-layout-flow,
    .ltc-skills-pills.wp-block-group-is-layout-flow,
    div.ltc-skills-pills {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        flex-wrap: unset !important;
    }
    .ltc-skill-pill,
    .ltc-skills-pills > .ltc-skill-pill:first-child,
    .ltc-skills-pills > *:first-child {
        padding: 8px 10px !important;
        font-size: 0.75rem !important;
        white-space: normal !important;
        text-align: center !important;
        line-height: 1.2 !important;
        justify-content: center !important;
        width: auto !important;
        margin: 0 !important;
    }
}

.ltc-skill-pill:hover {
    background: var(--wp--preset--color--primary);
    border-color: var(--wp--preset--color--primary);
    color: #fff !important;
    transform: translateY(-2px);
}

/* ============================================
   STEP NUMBERS
   ============================================ */

.ltc-step-number {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--wp--preset--color--primary) !important;
    color: var(--wp--preset--color--base) !important;
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--2xl) !important;
    font-weight: 800;
    margin: 0 auto 16px !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* ============================================
   IMPACT STATS & TESTIMONIAL
   ============================================ */

.ltc-stat-number {
    font-size: var(--wp--preset--font-size--5xl) !important;
    color: var(--wp--preset--color--primary) !important;
    font-weight: 800;
    font-family: var(--wp--preset--font-family--heading);
    line-height: 1 !important;
    margin-bottom: 8px !important;
}

.ltc-stat-label {
    font-size: var(--wp--preset--font-size--md) !important;
    color: var(--wp--preset--color--base) !important;
    font-weight: 500;
    margin-top: 0 !important;
}

.ltc-testimonial {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 40px;
    max-width: 720px;
    margin: 0 auto;
}

/* ============================================
   PHOTO FEATURE (coral strip)
   ============================================ */

.ltc-photo-feature .wp-block-cover__image-background {
    object-fit: contain !important;
    object-position: center !important;
}

/* ============================================
   HERO RESPONSIVE
   ============================================ */

@media (max-width: 639px) {
    .ltc-hero h1 {
        font-size: 2rem !important;
    }
    .ltc-hero .wp-block-buttons {
        flex-direction: column;
    }
    .ltc-hero .wp-block-button {
        width: 100%;
    }
    .ltc-hero .wp-block-button__link {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   LARGE CTA BUTTON
   ============================================ */

.ltc-cta-large .wp-block-button__link {
    font-size: var(--wp--preset--font-size--xl) !important;
    padding: 16px 40px !important;
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .ltc-store-nav-item,
    .ltc-skill-pill {
        transition: none;
    }
    .ltc-store-nav-item:hover,
    .ltc-skill-pill:hover {
        transform: none;
    }
}
