/*
 * Official Email Marketing - SaaS Theme
 * Bootstrap 5 + Green/Teal Color Scheme
 * Created: January 2026
 */

/* ============================================
   CSS Custom Properties (Theme Colors)
   ============================================ */
:root {
    /* Primary Colors - Green/Teal */
    --bs-primary: #059669;
    --bs-primary-rgb: 5, 150, 105;
    --bs-primary-dark: #047857;
    --bs-primary-light: #10b981;

    /* Secondary - Teal */
    --bs-secondary: #0d9488;
    --bs-secondary-rgb: 13, 148, 136;

    /* Accent - Emerald */
    --accent: #34d399;
    --accent-light: #6ee7b7;

    /* Neutrals */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #059669 0%, #0d9488 100%);
    --gradient-hero: linear-gradient(135deg, #064e3b 0%, #115e59 50%, #1e3a5f 100%);
    --gradient-light: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Typography */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', sans-serif;
}

/* ============================================
   Base Styles
   ============================================ */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-700);
    line-height: 1.6;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--bs-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Bootstrap Overrides
   ============================================ */

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--bs-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
}

.btn-outline-primary:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-light {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-body {
    padding: 2rem;
}

/* Forms */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid var(--gray-300);
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 45px;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.nav-link {
    font-weight: 500;
    color: var(--gray-600) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--bs-primary) !important;
    background: var(--gray-100);
}

.navbar-nav .btn-primary {
    margin-left: 1rem;
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    background: var(--gray-900);
    color: var(--gray-300);
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.top-bar a {
    color: var(--gray-300);
}

.top-bar a:hover {
    color: #fff;
}

.top-bar .phone-number {
    font-weight: 600;
    color: var(--accent-light);
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: var(--shadow);
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.site-logo:hover .site-title {
    color: var(--bs-primary);
}

.header-main {
    padding: 1rem 0;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
}

.header-phone i {
    color: var(--bs-primary);
}

.header-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-600);
    transition: all 0.2s ease;
}

.header-social a:hover {
    background: var(--bs-primary);
    color: #fff;
}

/* Main Navigation */
.main-nav {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.main-nav .navbar {
    padding: 0;
}

.main-nav .nav-link {
    padding: 1rem 1.25rem !important;
    font-weight: 500;
    color: var(--gray-700) !important;
    border-radius: 0;
    position: relative;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--bs-primary) !important;
    background: transparent;
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--bs-primary);
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    width: 100%;
}

.main-nav .btn-primary {
    margin: 0.5rem 0 0.5rem 1rem;
    padding: 0.5rem 1.25rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: var(--gradient-hero);
    color: #fff;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
    padding: 5rem 0;
    background: var(--gradient-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: rgba(5, 150, 105, 0.1);
    color: var(--bs-primary);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--bs-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i,
.feature-icon svg {
    font-size: 1.5rem;
    color: #fff;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-500);
    margin-bottom: 0;
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    background: var(--gray-900);
    color: #fff;
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-400);
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-section {
    padding: 5rem 0;
    background: #fff;
}

.testimonial-card {
    background: var(--gray-50);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
}

.testimonial-content {
    font-size: 1.125rem;
    color: var(--gray-700);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
}

.testimonial-name {
    font-weight: 600;
    color: var(--gray-900);
}

.testimonial-title {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: var(--gradient-primary);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 4rem 0 0;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: var(--gray-500);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-heading {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.footer-contact-item i {
    color: var(--bs-primary-light);
    margin-top: 0.25rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray-400);
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--bs-primary);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.footer-bottom a {
    color: #fff !important;
}

.footer-bottom a:hover {
    color: var(--accent-light) !important;
}

/* ============================================
   Content Sections
   ============================================ */
.content-section {
    padding: 4rem 0;
}

.content-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.content-section h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-section p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

.content-section ul,
.content-section ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--gray-50);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-card h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bs-primary);
}

/* ============================================
   Pricing Cards
   ============================================ */
.pricing-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--bs-primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-500);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li i {
    color: var(--bs-primary);
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .header-contact {
        display: none;
    }

    .site-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 575px) {
    .site-title {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero {
        padding: 3rem 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .top-bar {
        display: none;
    }

    .main-nav .navbar-collapse {
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: var(--shadow-lg);
        padding: 1rem;
    }

    .main-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }

    .main-nav .nav-link::after {
        display: none;
    }

    .main-nav .btn-primary {
        margin: 1rem 0 0 0;
        width: 100%;
    }

    .pricing-card.featured {
        transform: none;
    }

    .content-section {
        padding: 2rem 0;
    }

    .site-footer {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-hero {
    background: var(--gradient-hero);
}

.bg-gray-50 {
    background: var(--gray-50);
}

.bg-gray-100 {
    background: var(--gray-100);
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Legacy Content Compatibility
   ============================================ */
#content-wrapper,
#features-wrapper {
    padding: 3rem 0;
}

#content section,
#features-wrapper section {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* Style old tables */
table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

table th,
table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

table th {
    background: var(--gray-50);
    font-weight: 600;
    text-align: left;
}

/* Old style class compatibility */
.style99,
.style64 {
    color: var(--bs-primary-dark);
}

.style24 {
    color: var(--gray-900);
}
