/* Base Variables */
:root {
    --primary: #5ebfbe;
    --primary-dark: #4ea8a7;
    --primary-light: #7ed4d3;
    --accent: #ff6b6b;
    --accent-orange: #ff9f40;
    --text: #0a0a0a;
    --text-light: #4a5568;
    --background: #ffffff;
    --background-alt: #f7fafc;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #5ebfbe 0%, #4ea8a7 100%);
    --gradient-3: linear-gradient(135deg, #ff6b6b 0%, #ff9f40 100%);
    --radius: 12px;
    --radius-small: 6px;
    --shadow: 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-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
}

/* Header Styles */
.site-header {
    background: var(--background);
    padding: 1.25rem 2rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

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

.main-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a.active {
    color: var(--primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-2);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Main Content */
.site-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin: 6rem 0;
    position: relative;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subheading {
    font-size: 1.375rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 500;
    line-height: 1.8;
}

.highlight {
    color: var(--primary);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--primary-light);
    opacity: 0.3;
    transform: skew(-12deg);
    z-index: -1;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: var(--gradient-2);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: white;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

/* Services Section */
.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin: 4rem 0;
}

.service {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 2.5rem;
    background: var(--background);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.service:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
    transform: translateY(-4px);
}

.service:hover::before {
    transform: translateX(0);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.icon {
    width: 56px;
    height: 56px;
    fill: var(--primary);
    transition: transform 0.3s ease;
}

.service:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.service h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.service p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    color: var(--primary-dark);
    gap: 1rem;
}

/* Why Section */
.why-section {
    text-align: center;
    margin: 6rem 0;
    padding: 4rem;
    background: var(--gradient-1);
    border-radius: var(--radius);
    color: white;
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.why-section h2 {
    font-size: 2.75rem;
    margin-bottom: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.why-text {
    font-size: 1.375rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Quote */
.quote {
    font-style: italic;
    color: white;
    font-size: 1.5rem;
    margin: 2rem auto;
    max-width: 600px;
    font-weight: 300;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

/* Footer CTA */
.footer-cta {
    text-align: center;
    margin: 6rem 0;
    padding: 3rem;
    background: var(--background-alt);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.footer-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 800;
    line-height: 1.2;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer */
.site-footer {
    background: var(--text);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.site-footer .copyright {
    font-weight: 500;
    opacity: 0.8;
}

/* FAQ Styles */
.faq-item {
    margin-bottom: 1.5rem;
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 700;
    padding: 1.5rem 2rem;
    margin: 0;
    cursor: pointer;
    position: relative;
    background: var(--background-alt);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--primary-light);
    background: linear-gradient(to right, var(--background-alt) 0%, rgba(94, 191, 190, 0.1) 100%);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    padding: 0 2rem 1.5rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-light);
}

.faq-answer ul {
    list-style: none;
    padding: 0;
}

.faq-answer li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
}

.faq-answer li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.faq-answer strong {
    color: var(--text);
}

/* Contact Form Styles */
.contact-container {
    max-width: 700px;
    margin: 4rem auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-intro h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-intro p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.7;
}

.contact-form {
    background: var(--background);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--background-alt);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid var(--background-alt);
    border-radius: var(--radius-small);
    background: var(--background);
    color: var(--text);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(94, 191, 190, 0.1);
}

.form-control::placeholder {
    color: #a0aec0;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

/* Form validation styles */
.form-group.has-error .form-control {
    border-color: var(--accent);
}

.form-group.has-success .form-control {
    border-color: var(--primary);
}

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

/* About Page Styles */
.about-story {
    text-align: center;
}

.about-story h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-story p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.team-section {
    margin: 5rem 0;
}

.team-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 800;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    background: var(--background);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--background-alt);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.member-header {
    background: var(--gradient-2);
    padding: 2rem;
    color: white;
}

.member-header h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.member-header .role {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

.member-content {
    padding: 2rem;
}

.member-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-light);
}

.member-highlights {
    background: var(--background-alt);
    padding: 1.5rem;
    border-radius: var(--radius-small);
    margin: 2rem 0;
}

.member-highlights h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-highlights ul {
    list-style: none;
    padding: 0;
}

.member-highlights li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.member-highlights li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.member-quote {
    font-style: italic;
    font-size: 1.25rem;
    color: var(--primary);
    text-align: center;
    margin: 2rem 0 0;
    padding-top: 2rem;
    border-top: 2px solid var(--background-alt);
}

.values-section {
    background: var(--background-alt);
    padding: 4rem 2rem;
    margin: 5rem 0;
    border-radius: var(--radius);
}

.values-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 800;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.value-item {
    text-align: center;
    padding: 2rem;
}

.value-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.value-item p {
    color: var(--text-light);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .about-story h2,
    .team-title,
    .values-section h2 {
        font-size: 2rem;
    }
}

/* Page Section Styles - Reusable */
.content-container {
    max-width: 800px;
    margin: 4rem auto;
}

.card {
    background: var(--background);
    border: 2px solid var(--background-alt);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.faq-item.card:hover {
    transform: none;
}

.section-intro {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 800;
    text-align: center;
}

.section-title.gradient {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lead {
    font-size: 1.375rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Fractional CTO Page Specific */
.cto-services {
    margin: 5rem 0;
}

.leadership-approach {
    background: var(--gradient-1);
    color: white;
    padding: 5rem 2rem;
    margin: 5rem 0;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.leadership-approach::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.leadership-approach h2 {
    color: white;
    position: relative;
    z-index: 1;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.philosophy-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.philosophy-item p {
    line-height: 1.7;
    opacity: 0.9;
}

.experience-section {
    max-width: 900px;
    margin: 5rem auto;
    text-align: center;
}


.experience-content {
    text-align: left;
    background: var(--background-alt);
    padding: 3rem;
    border-radius: var(--radius);
}

.experience-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.experience-list {
    margin: 2rem 0;
    padding-left: 0;
    list-style: none;
}

.experience-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.125rem;
    color: var(--text-light);
}

.experience-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.engagement-models {
    margin: 5rem 0;
}


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

.model-card {
    background: var(--background);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 2px solid var(--background-alt);
    transition: all 0.3s ease;
    position: relative;
}

.model-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.model-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-2);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.model-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.model-time {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.model-card p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
}

.model-card ul {
    list-style: none;
    padding: 0;
}

.model-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.model-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.cta-section {
    text-align: center;
    margin: 6rem 0;
    padding: 4rem;
    background: var(--background-alt);
    border-radius: var(--radius);
}

.cta-section h2 {
    margin-bottom: 1rem;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .philosophy-grid {
        gap: 2rem;
    }
    
    .model-card {
        padding: 2rem;
    }
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    position: relative;
    cursor: pointer;
    padding: 0;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    position: absolute;
    left: 4px;
    top: 15px;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        gap: 1rem;
        backdrop-filter: blur(10px);
    }

    .main-nav .nav-list.active {
        display: flex;
    }
    
    .main-nav a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.1rem;
    }
    
    .main-nav a::after {
        display: none;
    }

    .services {
        flex-direction: column;
    }

    .service {
        min-width: 100%;
    }

    h1 {
        font-size: 2.5rem;
    }

    .footer-cta h2 {
        font-size: 2rem;
    }

    .why-section {
        padding: 2rem 1rem;
    }
}