/* ----------------------------------------------
   TABLE OF CONTENTS
   1. CSS Variables & Reset
   2. Base Styles
   3. Layout & Container
   4. Header & Navigation
   5. Footer
   6. Buttons
   7. Hero Section
   8. Product Cards
   9. Services Section
   10. Pricing Section
   11. Contact Page
   12. Policy Pages
   13. About Page
   14. Dark Mode
   15. Responsive Design
---------------------------------------------- */

/* 1. CSS Variables & Reset */
:root {
    /* Light Mode Colors - using RGB values for backdrop-filter */
    --bg-primary-rgb: 253, 251, 247;
    --bg-primary: #FDFBF7;
    --bg-secondary: #F5F3EF;
    --bg-card: #FFFFFF;
    --text-primary: #1A1C1E;
    --text-secondary: #4A4C50;
    --text-muted: #7A7C80;
    --border-color: #E5E4E2;
    --accent-primary: #0D9488;
    --accent-hover: #0F766E;
    --accent-light: rgba(13, 148, 136, 0.1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

[data-theme="dark"] {
    --bg-primary-rgb: 26, 28, 30;
    --bg-primary: #1A1C1E;
    --bg-secondary: #232528;
    --bg-card: #2D2F33;
    --text-primary: #E5E5E5;
    --text-secondary: #B0B2B6;
    --text-muted: #7A7C80;
    --border-color: #3A3C40;
    --accent-primary: #2DD4BF;
    --accent-hover: #14B8A6;
    --accent-light: rgba(45, 212, 191, 0.1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 2. Base Styles */
body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 600; margin-bottom: 1rem; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
h4 { font-size: 1.125rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-primary);
}

img {
    max-width: 100%;
    height: auto;
}

/* 3. Layout & Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

section {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--accent-primary);
    margin: 1.5rem auto 0 auto;
    border-radius: 2px;
}

/* 4. Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(var(--bg-primary-rgb), 0.95);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.logo-mark {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-text {
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--accent-primary);
}

/* Desktop Navigation */
.nav-primary .nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-primary .nav-menu > li {
    position: relative;
}

.nav-primary .nav-menu > li > a {
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.nav-primary .nav-menu > li > a.active {
    color: var(--accent-primary);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
    list-style: none;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.dropdown-menu li a:hover {
    background: var(--accent-light);
}

.dropdown-toggle i {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dark-mode-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    width: 38px;
    height: 38px;
}

.dark-mode-toggle:hover {
    background: var(--accent-light);
    border-color: var(--accent-primary);
}

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

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: 0.2s;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    z-index: 99;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-menu {
    list-style: none;
}

.mobile-nav-menu li a {
    display: block;
    padding: 0.75rem 0;
    font-weight: 500;
}

.mobile-nav-divider {
    padding: 1rem 0 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* 5. Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-description {
    color: var(--text-secondary);
    margin: 1rem 0;
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.footer-nav h4, .footer-contact h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-nav ul, .footer-contact ul {
    list-style: none;
}

.footer-nav li, .footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-nav a, .footer-contact a {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-nav a:hover, .footer-contact a:hover {
    color: var(--accent-primary);
}

.footer-contact li i {
    width: 24px;
    color: var(--accent-primary);
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* 6. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: var(--font-sans);
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--accent-light);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* 7. Hero Section */
.hero {
    padding: 5rem 0 4rem 0;
}

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

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content .hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.hero-image {
    background: var(--accent-light);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.hero-image i {
    font-size: 4rem;
    color: var(--accent-primary);
    opacity: 0.7;
}

@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .stat-item {
        text-align: center;
    }
}

/* 8. Product Cards */
.products-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.product-icon i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.product-title {
    margin-bottom: 0.75rem;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
    font-size: 0.75rem;
}

.product-delivery i, .product-price i {
    color: var(--accent-primary);
    margin-right: 0.25rem;
}

.price-range {
    font-weight: 600;
    color: var(--accent-primary);
}

.product-custom {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 9. Services Section */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

/* 10. Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--accent-primary);
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin: 1rem 0;
}

.pricing-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li i {
    color: var(--accent-primary);
    font-size: 0.75rem;
    width: 20px;
}

/* 11. Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.25rem;
    color: var(--accent-primary);
}

.contact-detail h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-detail p, .contact-detail a {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    transition: border-color 0.2s;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* 12. Policy Pages */
.policy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 0;
}

.policy-content h1 {
    margin-bottom: 1rem;
}

.policy-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.policy-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
}

.policy-content h3 {
    font-size: 1.125rem;
    margin: 1.5rem 0 0.75rem 0;
}

.policy-content p, .policy-content li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.policy-content ul, .policy-content ol {
    margin: 1rem 0 1rem 2rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
}

.policy-content strong {
    color: var(--text-primary);
}

/* 13. About Page */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-content h1 {
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-values {
    list-style: none;
    margin-top: 2rem;
}

.about-values li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.about-values li i {
    color: var(--accent-primary);
}

.about-image {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.about-image i {
    font-size: 4rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* 14. Dark Mode - Fixes */
[data-theme="dark"] .product-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .about-image {
    background: var(--bg-card);
}

[data-theme="dark"] .hero-image {
    background: var(--accent-light);
}

/* 15. Responsive Design */
@media (max-width: 992px) {
    .nav-primary {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .products-grid, .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .products-grid, .services-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn {
        justify-content: center;
    }
}

/* 16. Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }