@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary: #1e293b;
    --primary-rgb: 30, 41, 59;
    --primary-light: #334155;
    --secondary: #0d9488;
    --secondary-rgb: 13, 148, 136;
    --secondary-hover: #0f766e;
    --accent: #f97316;
    --success: #16a34a;
    --success-rgb: 22, 163, 74;
    --success-hover: #15803d;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #334155;
    --text-heading: #0f172a;
    --border-color: #e2e8f0;
    
    /* System Tokens */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --card-shadow: 0 10px 30px -10px rgba(30, 41, 59, 0.05);
    --card-shadow-hover: 0 20px 40px -15px rgba(13, 148, 136, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
}

/* Base Styles */
body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.7;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--secondary-hover);
}

/* Premium Navbar Header */
.navbar-premium {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    padding: 1rem 0;
}

.navbar-brand-custom {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary) !important;
}

.navbar-brand-custom span {
    color: var(--secondary);
}

.navbar-logo {
    max-height: 40px;
    width: auto;
    transition: var(--transition-smooth);
    vertical-align: middle;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.footer-logo {
    max-height: 40px;
    width: auto;
    display: inline-block;
    transition: var(--transition-smooth);
}

.nav-link-custom {
    font-weight: 500;
    color: var(--text-main) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
}

.nav-link-custom:hover, 
.nav-link-custom.active {
    color: var(--secondary) !important;
    background-color: rgba(13, 148, 136, 0.05);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.02) 0%, rgba(13, 148, 136, 0.05) 100%);
    padding: 6rem 0 5rem;
    border-bottom: 1px solid var(--border-color);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
}

/* Premium Cards */
.feature-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(13, 148, 136, 0.2);
}

.feature-card-body {
    padding: 2rem;
}

/* Custom Table Override (Responsive Wrapper) */
.table-responsive-custom {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    background-color: var(--card-bg);
    margin: 2rem 0;
}

.table-responsive-custom table {
    margin: 0;
}

.table-responsive-custom th {
    background-color: rgba(30, 41, 59, 0.03);
    color: var(--text-heading);
    font-family: var(--font-heading);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 1.2rem;
}

.table-responsive-custom td {
    padding: 1.2rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

/* Editorial Block for BitKids */
.editorial-container-premium {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(30, 41, 59, 0.02) 100%);
    border: 2px solid rgba(13, 148, 136, 0.15);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.editorial-container-premium::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.editorial-tag {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
}

.editorial-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.editorial-image-wrapper:hover {
    transform: scale(1.02);
}

.editorial-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Custom CTA Button */
.btn-cta-premium {
    background-color: var(--success);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.25);
    transition: var(--transition-smooth);
    display: inline-block;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.btn-cta-premium:hover {
    background-color: var(--success-hover);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(22, 163, 74, 0.35);
}

.btn-cta-premium:active {
    transform: translateY(-1px);
}

/* Semi-Custom Blockquote */
.quote-premium {
    background-color: rgba(255, 255, 255, 0.6);
    border-left: 5px solid var(--secondary) !important;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    box-shadow: var(--card-shadow);
    font-style: italic;
}

.quote-author {
    display: block;
    margin-top: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-heading);
    font-style: normal;
}

/* Last Chance Banner */
.last-chance-banner {
    background: linear-gradient(135deg, #fffcf4 0%, #fff7ed 100%);
    border: 1px dashed var(--accent);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.05);
    position: relative;
    animation: borderPulse 4s infinite alternate ease-in-out;
}

.last-chance-banner h4 {
    color: #c2410c;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.last-chance-banner p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    font-weight: 500;
}

.last-chance-btn {
    background-color: var(--accent);
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
    transition: var(--transition-smooth);
    display: inline-block;
}

.last-chance-btn:hover {
    background-color: #ea580c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(249, 115, 22, 0.3);
}

/* Exit Intent Modal Premium Styles */
.modal-premium .modal-content {
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.modal-premium .modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 2rem;
    position: relative;
}

.modal-premium .modal-header h5 {
    font-weight: 800;
    font-size: 1.5rem;
}

.modal-premium .modal-header .btn-close {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 0.6rem;
    font-size: 0.75rem;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    transition: var(--transition-smooth);
}

.modal-premium .modal-header .btn-close:hover {
    background-color: white;
}

.modal-premium .modal-body {
    padding: 2.5rem 2rem;
    background-color: white;
}

.modal-premium .modal-footer {
    border: none;
    padding: 0 2rem 2rem;
    justify-content: center;
    background-color: white;
}

/* Blog Styles */
.blog-post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-post-card .post-img-wrapper {
    height: 200px;
    background-color: rgba(30, 41, 59, 0.05);
    position: relative;
    overflow: hidden;
}

.blog-post-card .post-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-post-card:hover .post-img-wrapper img {
    transform: scale(1.05);
}

.blog-post-card .tag-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--secondary);
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blog-post-card .post-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-card .post-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    transition: var(--transition-smooth);
}

.blog-post-card:hover .post-title {
    color: var(--secondary);
}

/* Form Styles */
.form-control-custom {
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
    background-color: #f8fafc;
}

.form-control-custom:focus {
    border-color: var(--secondary);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
    color: var(--text-heading);
}

.form-label-custom {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-heading);
}

/* Footer style */
.footer-premium {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-premium h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--secondary);
    padding-left: 4px;
}

/* Animations */
@keyframes borderPulse {
    0% {
        border-color: var(--accent);
        box-shadow: 0 4px 15px rgba(249, 115, 22, 0.05);
    }
    100% {
        border-color: var(--secondary);
        box-shadow: 0 4px 20px rgba(13, 148, 136, 0.1);
    }
}
