/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #5046e5;
    --primary-dark: #4338ca;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border: #e5e7eb;
    --success: #10b981;
    --max-width: 1200px;
    --narrow-width: 720px;
}

/* Dark mode variables */
[data-theme="dark"] {
    --primary: #6366f1;
    --primary-dark: #5046e5;
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --bg-light: #1f2937;
    --bg-white: #111827;
    --border: #374151;
    --success: #34d399;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container.narrow {
    max-width: var(--narrow-width);
}

/* Navigation */
.nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    text-decoration: none;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-light), var(--bg-white));
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.results {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 500px;
    text-align: left;
}

.results h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.results ul {
    list-style: none;
}

.results li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.results li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background: var(--primary-dark);
    text-decoration: none;
    transform: translateY(-1px);
}

.cta-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Services Teaser */
.services-teaser {
    padding: 4rem 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.service-item {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
}

.service-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.link-arrow {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
}

/* Page Header */
.page-header {
    padding: 3rem 0;
    background: var(--bg-light);
    text-align: center;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Content Sections */
.content {
    padding: 4rem 0;
}

.content h2 {
    margin-top: 2rem;
}

.content h3 {
    margin-top: 1.5rem;
}

/* Services Page */
.services {
    padding: 4rem 0;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.service-details {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.service-timeline,
.service-price {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.service-card ul {
    margin: 1rem 0 1rem 1.5rem;
}

.ideal-for {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Newsletter Page */
.newsletter-hero {
    padding: 4rem 0;
}

.newsletter-tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.newsletter-promise {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.newsletter-topics {
    margin: 2rem 0;
}

.newsletter-topics ul {
    list-style: none;
}

.newsletter-topics li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.newsletter-topics li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.newsletter-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

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

.email-input,
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 1rem;
    font-family: inherit;
}

textarea {
    resize: vertical;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.success-message {
    color: var(--success);
    font-weight: 500;
    text-align: center;
    padding: 1rem;
}

.social-proof {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 2rem;
}

/* Contact Page */
.contact-content {
    padding: 4rem 0;
}

.contact-options {
    display: grid;
    gap: 3rem;
}

.contact-form-section,
.calendly-section {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 0.75rem;
}

.calendly-inline-widget {
    margin-top: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 3rem 0;
    margin-top: 2rem;
}

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

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
}

/* Dark mode toggle button */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Dark mode specific styles */
[data-theme="dark"] .hero {
    background: linear-gradient(to bottom, var(--bg-light), var(--bg-white));
}

[data-theme="dark"] .hero h1 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .results {
    background: var(--bg-light);
    border-color: var(--border);
}

[data-theme="dark"] .service-item {
    background: var(--bg-light);
}

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

[data-theme="dark"] .newsletter-form,
[data-theme="dark"] .contact-form-section,
[data-theme="dark"] .calendly-section {
    background: var(--bg-light);
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] textarea {
    background: var(--bg-white);
    color: var(--text-primary);
    border-color: var(--border);
}

[data-theme="dark"] .footer {
    background: var(--bg-light);
    border-top-color: var(--border);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .footer .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .service-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Newsletter Sticky Bar */
.newsletter-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: white;
    padding: 1rem;
    z-index: 99;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.newsletter-bar-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 0 1.5rem;
    position: relative;
}

.newsletter-bar-text {
    font-size: 1rem;
    font-weight: 500;
}

.newsletter-bar-text em {
    font-style: italic;
    font-weight: 600;
}

.newsletter-bar-cta {
    background: white;
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.newsletter-bar-cta:hover {
    background: var(--bg-light);
    text-decoration: none;
    transform: translateY(-1px);
}

.newsletter-bar-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    line-height: 1;
    padding: 0.25rem;
}

.newsletter-bar-close:hover {
    opacity: 1;
}

/* Adjust main content to account for sticky bar */
main {
    padding-bottom: 4rem;
}

/* Mobile responsiveness for newsletter bar */
@media (max-width: 768px) {
    .newsletter-bar-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 0.5rem 3rem 0.5rem 1.5rem;
    }
    
    .newsletter-bar-text {
        font-size: 0.9rem;
    }
    
    .newsletter-bar-close {
        right: 0.5rem;
    }
}