:root {
    --primary-color: #2b5c3e;
    --primary-light: #42825b;
    --primary-dark: #1a3c27;
    --accent-color: #f39c12;
    --text-main: #2d3748;
    --text-muted: #718096;
    --bg-main: #f7fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --border-color: #e2e8f0;
    --shadow-sm: 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);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-fast: 0.2s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --primary-color: #42825b;
    --primary-light: #5ba376;
    --primary-dark: #2b5c3e;
    --accent-color: #f1c40f;
    --text-main: #e2e8f0;
    --text-muted: #a0aec0;
    --bg-main: #1a202c;
    --bg-card: rgba(45, 55, 72, 0.85);
    --border-color: #4a5568;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    color: var(--text-main);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26, 60, 39, 0.7), rgba(26, 60, 39, 0.9));
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: -50px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 20;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

.about-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.features-list {
    list-style: none;
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.features-list .icon {
    font-size: 2rem;
    background: var(--primary-light);
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(66, 130, 91, 0.3);
}

.features-list strong {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

[data-theme="dark"] .features-list strong {
    color: var(--primary-light);
}

.notice {
    background: rgba(243, 156, 18, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-muted);
}

/* Cards Grid */
.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    text-decoration: none;
    color: var(--text-main);
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform var(--transition-fast);
}

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

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

[data-theme="dark"] .service-card h4 {
    color: var(--primary-light);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Lead Capture */
.lead-capture {
    background-color: #f1dd38;
    padding: 50px 20px;
    margin-top: 60px;
    color: #1a202c;
}

[data-theme="dark"] .lead-capture {
    background-color: #d4c12a;
    color: #1a202c;
}

.lead-capture-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.lead-icon {
    flex-shrink: 0;
    padding-top: 5px;
}

.lead-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #1a202c;
    font-weight: 800;
}

.lead-subtitle {
    margin-bottom: 20px;
    font-weight: 500;
}

.lead-form {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.lead-form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.lead-form button {
    background-color: #0d213b;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 1rem;
}

.lead-form button:hover {
    background-color: #16365d;
}

.lead-disclaimer {
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.8;
}

.lead-disclaimer a {
    color: #0d213b;
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 0;
}

.footer-content p {
    margin: 5px 0;
    opacity: 0.8;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.animate-fade-in-delayed {
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    opacity: 0;
}

.animate-slide-up {
    animation: slideUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scraped Content Polishing (WordPress Blocks) */
.glass-panel img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin: 20px 0;
}

.glass-panel a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition-fast);
}

[data-theme="dark"] .glass-panel a {
    color: var(--primary-light);
}

.glass-panel a:hover {
    border-bottom-color: currentColor;
}

.glass-panel p {
    margin-bottom: 1.5rem;
}

.glass-panel ul, .glass-panel ol {
    margin: 0 0 1.5rem 1.5rem;
}

.glass-panel li {
    margin-bottom: 0.5rem;
}

/* Fix WP Columns */
.wp-block-columns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.wp-block-column {
    flex: 1;
    min-width: 250px;
}

/* Fix Tables for Mobile */
.glass-panel table, .wp-block-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.glass-panel th, .glass-panel td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.glass-panel th {
    background-color: var(--primary-color);
    color: white;
}

[data-theme="dark"] .glass-panel th {
    background-color: var(--primary-dark);
}

.glass-panel tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .glass-panel tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero h2 { font-size: 1.5rem; }
    .container { margin-top: -30px; padding: 0 15px; }
    .glass-panel { padding: 20px; border-radius: 16px; }
    .features-list { grid-template-columns: 1fr; }
    
    .wp-block-columns { flex-direction: column; }
    
    .hero-content {
        padding-top: 40px;
    }
    
    .lead-capture-container {
        flex-direction: column;
        gap: 20px;
    }
    .lead-form {
        flex-direction: column;
    }
    .lead-form button {
        width: 100%;
    }
}
