/**
 * KTV Creations — Home Page Styles
 *
 * Path: assets/css/home.css
 *
 * Structural/layout styles for homepage sections.
 * Dynamic values (colorservis, font sizes, padding) come from:
 *   - CSS custom properties output by home-customizer.php (wp_head)
 *   - Inline styles on individual elements in template-parts
 *
 * @package KTVCreations
 */

/* =============================================================================
   HOME PAGE WRAPPER
============================================================================= */



/* =============================================================================
   SHARED SECTION UTILITIES
============================================================================= */

.ktv-section-header {
    text-align: center;
    margin-bottom: 16px;
}

.ktv-section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.2;
    font-family: var(--font-heading, 'Cinzel', serif);
}

.ktv-section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    margin: 0 0 8px;
    opacity: 0.9;
    font-family: var(--font-body, inherit);
}

.ktv-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 42px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    font-family: var(--font-heading, 'Cinzel', serif);
}

.ktv-cta-btn:focus-visible {
    outline: 3px solid var(--accent-color, #ffd700);
    outline-offset: 3px;
}


/* =============================================================================
   SERVICES SECTION
============================================================================= */

.ktv-services-section {
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 80px;
}

.ktv-services-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    z-index: 0;
}

/* Hide video on mobile — poster/bg-color shows instead */
@media (max-width: 768px) {
    .ktv-services-bg-video {
        display: none;
    }
}

.ktv-services-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.ktv-services-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.ktv-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin: 48px 0;
}

.ktv-service-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ktv-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.ktv-service-card__image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.ktv-service-card__icon {
    padding: 28px 28px 0;
    display: flex;
    align-items: center;
}

.ktv-service-card__icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.ktv-service-card__body {
    padding: 24px;
}

.ktv-service-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px;
    font-family: var(--font-heading, 'Cinzel', serif);
}

.ktv-service-card__desc {
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 0 18px;
}

.ktv-service-card__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color, #ffd700);
    text-decoration: none;
}

.ktv-service-card__link:hover {
    text-decoration: underline;
}

.ktv-services-cta {
    text-align: center;
    margin-top: 12px;
}


/* =============================================================================
   PRODUCTS SECTION
============================================================================= */

.ktv-products-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.ktv-products-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.ktv-products-embed {
    margin: 40px 0;
    min-height: 100px; /* Reserve space while plugin renders */
}

.ktv-products-cta {
    text-align: center;
    display: flex;
    justify-content: center;
    margin-top: 3rem;;
}

/* Admin notice when plugin is missing */
.ktv-products-notice.ktv-admin-only {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 16px 24px;
    color: #856404;
    font-size: 0.9rem;
    text-align: center;
}

/* ================================
   PRODUCTS SECTION HEADER
   ================================ */

.ktv-products-section .ktv-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.ktv-products-section .ktv-section-title {
    margin-bottom: 0.75rem;
}

.ktv-products-section .ktv-section-subtitle {
    margin: 0 auto;
}

/* FORCE center the Products section header */
.ktv-products-section .ktv-section-header {
  width: 100%;
  display: block !important;      /* overrides any flex */
  text-align: center !important;   /* overrides left-align rules */
}

/* FORCE center the actual H2 text */
.ktv-products-section .ktv-section-title {
  width: 100%;
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}
.ktv-products-section .ktv-products-cta {
  width: 100%;
  display: flex;
  justify-content: center;
}
.ktv-products-section .ktv-section-subtitle {
  text-align: center !important;
}




/* =============================================================================
   CTA SECTION
============================================================================= */

.ktv-cta-section {
    position: relative;
    overflow: hidden;
}

.ktv-cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.ktv-cta-title {
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.2;
    font-family: var(--font-heading, 'Cinzel', serif);
}

.ktv-cta-subtitle {
    margin: 0 0 40px;
    line-height: 1.6;
}

.ktv-cta-btn--outline {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.ktv-cta-btn--outline:hover {
    transition: background-color 0.2s ease, color 0.2s ease;
}


/* =============================================================================
   HERO FALLBACK (< 2 slides)
============================================================================= */

.ktv-hero-fallback {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    overflow: hidden;
}

.ktv-hero-fallback__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 40px 24px;
    max-width: 900px;
}

.ktv-hero-admin-notice {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 193, 7, 0.96);
    color: #333;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.9rem;
    z-index: 10;
    white-space: nowrap;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


/* =============================================================================
   RESPONSIVE
============================================================================= */

@media (max-width: 1024px) {
    .ktv-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ktv-services-section,
    .ktv-products-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .ktv-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

/* GLOBAL: inner wrappers should NEVER control alignment */
.ktv-products-inner,
.ktv-services-inner,
.ktv-cta-inner {
    display: block;            /* kills inherited flex */
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}


    .ktv-cta-btn {
        padding: 14px 32px;
        font-size: 0.95rem;
    }

    .ktv-hero-admin-notice {
        white-space: normal;
        text-align: center;
        width: 90%;
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    .ktv-service-card__image img {
        height: 180px;
    }

    .ktv-services-grid {
        margin: 32px 0;
    }
}