/**
 * TELP Theme - Homepage Styles
 * Matches the React application design
 */

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */
:root {
    --telp-primary: #2E9E9E;
    --telp-primary-dark: #247A7A;
    --telp-primary-light: #3FB5B5;
    --telp-accent: #F07B5A;
    --telp-accent-light: #F59273;
    --telp-success: #22C55E;
    --telp-warning: #F5A623;
    --telp-error: #EF4444;
    
    --telp-background: #FAFAFA;
    --telp-foreground: #1A1A2E;
    --telp-card: #FFFFFF;
    --telp-border: #E5E7EB;
    --telp-muted: #6B7280;
    
    --telp-gray-50: #F9FAFB;
    --telp-gray-100: #F3F4F6;
    --telp-gray-200: #E5E7EB;
    --telp-gray-300: #D1D5DB;
    --telp-gray-400: #9CA3AF;
    --telp-gray-500: #6B7280;
    --telp-gray-600: #4B5563;
    --telp-gray-700: #374151;
    --telp-gray-800: #1F2937;
    --telp-gray-900: #111827;
    
    --telp-font-heading: 'Poppins', sans-serif;
    --telp-font-body: 'Inter', sans-serif;
    
    --telp-radius-sm: 0.375rem;
    --telp-radius-md: 0.5rem;
    --telp-radius-lg: 0.75rem;
    --telp-radius-xl: 1rem;
    --telp-radius-2xl: 1.5rem;
    --telp-radius-3xl: 2rem;
    
    --telp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --telp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --telp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --telp-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --telp-spacing-xs: 0.5rem;
    --telp-spacing-sm: 0.75rem;
    --telp-spacing-md: 1rem;
    --telp-spacing-lg: 1.5rem;
    --telp-spacing-xl: 2rem;
    --telp-spacing-2xl: 3rem;
    --telp-spacing-3xl: 4rem;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--telp-font-body);
    background-color: var(--telp-background);
    color: var(--telp-foreground);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--telp-font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.telp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.telp-text-gradient {
    background: linear-gradient(135deg, var(--telp-primary) 0%, var(--telp-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.telp-text-primary {
    color: var(--telp-primary);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.telp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--telp-radius-xl);
    font-family: var(--telp-font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.telp-btn svg {
    transition: transform 0.2s ease;
}

.telp-btn:hover svg {
    transform: translateX(4px);
}

.telp-btn-primary {
    background: linear-gradient(135deg, var(--telp-primary) 0%, var(--telp-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(46, 158, 158, 0.4);
}

.telp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 158, 158, 0.5);
}

.telp-btn-outline {
    background: transparent;
    color: var(--telp-foreground);
    border-color: var(--telp-border);
}

.telp-btn-outline:hover {
    border-color: var(--telp-primary);
    color: var(--telp-primary);
}

.telp-btn-white {
    background: white;
    color: var(--telp-foreground);
    box-shadow: var(--telp-shadow-lg);
}

.telp-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--telp-shadow-xl);
}

.telp-btn-outline-white {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.telp-btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.telp-btn-xl {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.telp-hero {
    display: flex;
    flex-direction: column;
}

.telp-hero-video-wrapper {
    width: 100%;
    position: relative;
}

.telp-hero-video {
    width: 100%;
    display: block;
}

.telp-hero-image-fallback {
    width: 100%;
    min-height: 400px;
}

.telp-video-mute-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.75rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 20;
}

.telp-video-mute-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.telp-hero-content {
    background: linear-gradient(to bottom, var(--telp-background), rgba(46, 158, 158, 0.05));
    padding: 4rem 0;
}

.telp-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .telp-hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.telp-hero-text {
    text-align: center;
    space-y: 1.5rem;
}

@media (min-width: 1024px) {
    .telp-hero-text {
        text-align: left;
    }
}

.telp-hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .telp-hero-logo {
        justify-content: flex-start;
    }
}

.telp-hero-logo img,
.telp-logo-image {
    height: 5rem;
    width: auto;
    object-fit: contain;
}

.telp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(46, 158, 158, 0.1);
    border: 1px solid rgba(46, 158, 158, 0.2);
    color: var(--telp-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.telp-hero-badge svg {
    width: 1rem;
    height: 1rem;
}

.telp-hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .telp-hero-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .telp-hero-title {
        font-size: 3rem;
    }
}

.telp-hero-subtitle {
    font-size: 1.125rem;
    color: var(--telp-muted);
    max-width: 40rem;
    margin: 0 auto 2rem;
}

@media (min-width: 1024px) {
    .telp-hero-subtitle {
        margin: 0 0 2rem;
    }
}

.telp-hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    padding-top: 1rem;
}

@media (min-width: 640px) {
    .telp-hero-cta {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .telp-hero-cta {
        justify-content: flex-start;
    }
}

/* Stats */
.telp-hero-stats {
    display: none;
}

@media (min-width: 1024px) {
    .telp-hero-stats {
        display: block;
    }
}

.telp-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.telp-stat-card {
    padding: 1.5rem;
    border-radius: var(--telp-radius-2xl);
    background: var(--telp-card);
    box-shadow: var(--telp-shadow-lg);
    border: 1px solid var(--telp-border);
}

.telp-stat-number {
    font-family: var(--telp-font-heading);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--telp-primary);
}

.telp-stat-label {
    font-size: 0.875rem;
    color: var(--telp-muted);
    margin-top: 0.25rem;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.telp-features-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--telp-background), rgba(46, 158, 158, 0.05), var(--telp-background));
}

.telp-section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

.telp-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.telp-section-badge svg {
    width: 1rem;
    height: 1rem;
}

.telp-badge-accent {
    background: rgba(240, 123, 90, 0.1);
    border: 1px solid rgba(240, 123, 90, 0.2);
    color: var(--telp-accent);
}

.telp-badge-primary {
    background: rgba(46, 158, 158, 0.1);
    border: 1px solid rgba(46, 158, 158, 0.2);
    color: var(--telp-primary);
}

.telp-section-title {
    font-size: 1.875rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .telp-section-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .telp-section-title {
        font-size: 3rem;
    }
}

.telp-section-subtitle {
    font-size: 1.125rem;
    color: var(--telp-muted);
}

/* Features Grid */
.telp-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 5rem;
}

@media (min-width: 640px) {
    .telp-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .telp-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.telp-feature-card {
    padding: 1.5rem;
    border-radius: var(--telp-radius-2xl);
    background: var(--telp-card);
    box-shadow: var(--telp-shadow-md);
    border: 1px solid var(--telp-border);
    transition: all 0.3s ease;
}

.telp-feature-card:hover {
    transform: scale(1.02);
    box-shadow: var(--telp-shadow-xl);
}

.telp-feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--telp-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.telp-feature-card:hover .telp-feature-icon {
    transform: scale(1.1);
}

.telp-feature-primary .telp-feature-icon {
    background: rgba(46, 158, 158, 0.1);
    color: var(--telp-primary);
}

.telp-feature-accent .telp-feature-icon {
    background: rgba(240, 123, 90, 0.1);
    color: var(--telp-accent);
}

.telp-feature-success .telp-feature-icon {
    background: rgba(34, 197, 94, 0.1);
    color: var(--telp-success);
}

.telp-feature-warning .telp-feature-icon {
    background: rgba(245, 166, 35, 0.1);
    color: var(--telp-warning);
}

.telp-feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.telp-feature-description {
    color: var(--telp-muted);
    font-size: 0.9375rem;
    margin: 0;
}

/* Guardian Features */
.telp-guardian-features {
    position: relative;
}

.telp-guardian-features-inner {
    position: relative;
    padding: 2rem;
    border-radius: var(--telp-radius-3xl);
    background: linear-gradient(to right, rgba(46, 158, 158, 0.05), rgba(240, 123, 90, 0.05), rgba(46, 158, 158, 0.05));
    border: 1px solid rgba(229, 231, 235, 0.5);
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 640px) {
    .telp-guardian-features-inner {
        padding: 3rem;
    }
}

@media (min-width: 1024px) {
    .telp-guardian-features-inner {
        flex-direction: row;
    }
}

.telp-guardian-left {
    flex: 1;
}

@media (min-width: 1024px) {
    .telp-guardian-left {
        max-width: 33%;
    }
}

.telp-guardian-left h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
}

@media (min-width: 640px) {
    .telp-guardian-left h3 {
        font-size: 1.875rem;
    }
}

.telp-guardian-left p {
    color: var(--telp-muted);
}

.telp-guardian-right {
    flex: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .telp-guardian-right {
        grid-template-columns: repeat(2, 1fr);
    }
}

.telp-guardian-feature-item {
    display: flex;
    gap: 1rem;
}

.telp-guardian-feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--telp-radius-lg);
    background: rgba(46, 158, 158, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.telp-guardian-feature-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.telp-guardian-feature-text p {
    font-size: 0.875rem;
    color: var(--telp-muted);
    margin: 0;
}

/* ==========================================================================
   TRUST SECTION
   ========================================================================== */
.telp-trust-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    background: var(--telp-foreground);
    color: var(--telp-background);
}

.telp-trust-section::before,
.telp-trust-section::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(46, 158, 158, 0.5), transparent);
}

.telp-trust-section::before {
    top: 0;
}

.telp-trust-section::after {
    bottom: 0;
    background: linear-gradient(to right, transparent, rgba(240, 123, 90, 0.5), transparent);
}

.telp-trust-section .telp-section-badge {
    background: rgba(46, 158, 158, 0.2);
    border-color: rgba(46, 158, 158, 0.3);
    color: var(--telp-primary);
}

.telp-trust-section .telp-section-subtitle {
    color: var(--telp-gray-400);
}

.telp-trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .telp-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .telp-trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.telp-trust-card {
    padding: 1.5rem;
    border-radius: var(--telp-radius-2xl);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
}

.telp-trust-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.telp-trust-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--telp-radius-lg);
    background: rgba(46, 158, 158, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.telp-trust-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.telp-trust-card p {
    font-size: 0.875rem;
    color: var(--telp-gray-400);
    margin: 0;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.telp-cta-section {
    padding: 5rem 0;
}

.telp-cta-box {
    position: relative;
    border-radius: var(--telp-radius-3xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--telp-primary) 0%, rgba(46, 158, 158, 0.9) 50%, var(--telp-accent) 100%);
    padding: 4rem 2rem;
    text-align: center;
}

@media (min-width: 640px) {
    .telp-cta-box {
        padding: 5rem 3rem;
    }
}

@media (min-width: 1024px) {
    .telp-cta-box {
        padding: 6rem 4rem;
    }
}

.telp-cta-decoration {
    position: absolute;
    font-size: 3rem;
    opacity: 0.2;
    animation: float 3s ease-in-out infinite;
}

.telp-cta-star {
    top: 2rem;
    left: 2rem;
}

.telp-cta-sparkle {
    bottom: 2rem;
    right: 2rem;
    animation-delay: 1s;
}

.telp-cta-heart {
    top: 50%;
    left: 25%;
    animation-delay: 0.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.telp-cta-content {
    position: relative;
    z-index: 10;
    max-width: 48rem;
    margin: 0 auto;
}

.telp-cta-content h2 {
    font-size: 1.875rem;
    color: white;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .telp-cta-content h2 {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .telp-cta-content h2 {
        font-size: 3rem;
    }
}

.telp-cta-content > p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 32rem;
    margin: 0 auto 2rem;
}

.telp-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .telp-cta-buttons {
        flex-direction: row;
    }
}

.telp-cta-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1.5rem;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.telp-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--telp-border);
}

.telp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.telp-nav {
    display: none;
}

@media (min-width: 768px) {
    .telp-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.telp-nav a {
    color: var(--telp-foreground);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.telp-nav a:hover {
    color: var(--telp-primary);
}

.telp-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.telp-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .telp-menu-toggle {
        display: none;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.telp-footer {
    background: var(--telp-gray-900);
    color: var(--telp-gray-300);
    padding-top: 4rem;
}

.telp-footer h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.telp-footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--telp-gray-800);
}

@media (min-width: 640px) {
    .telp-footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .telp-footer-inner {
        grid-template-columns: repeat(4, 1fr);
    }
}

.telp-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.telp-footer-menu li {
    margin-bottom: 0.75rem;
}

.telp-footer-menu a {
    color: var(--telp-gray-400);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.telp-footer-menu a:hover {
    color: var(--telp-primary);
}

.telp-footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}

.telp-footer-bottom p {
    font-size: 0.875rem;
    color: var(--telp-gray-500);
    margin: 0;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.telp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hide main content wrapper padding for front page */
.home .telp-main {
    padding: 0;
}

/* Remove default WordPress styles that might interfere */
.entry-content,
.post-content {
    max-width: none;
}
