/* ---
TABLE OF CONTENTS
1.  Global Styles & Variables
2.  Keyframe Animations
3.  Utility & Helper Classes
4.  Header & Navigation
5.  Footer
6.  Hero Section
7.  Services Ecosystem Section
8.  Marketing Health Check Section
9.  Process Section
10. Testimonials Section
11. CTA Section
12. Contact & Legal Page Styles
13. Responsive Design
--- */

/* 1. GLOBAL STYLES & VARIABLES
-------------------------------------------------- */
:root {
    --color-bg-dark: #1A2E28;
    /* Deep Forest Green */
    --color-bg-light: #F5F5F1;
    /* Warm Beige */
    --color-primary: #52B788;
    /* Leaf Green */
    --color-accent: #74C69D;
    /* Lighter Green */
    --color-text-on-dark: #E8EAE3;
    --color-text-on-light: #313D38;
    --color-border: rgba(82, 183, 136, 0.2);

    --font-heading: 'Lora', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition-speed: 0.4s;
    --container-width: 1160px;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-on-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-text-on-dark);
}

h1 {
    font-size: clamp(3rem, 6vw, 4.25rem);
}

h2 {
    font-size: clamp(2.2rem, 5vw, 2.75rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-accent);
}

ul {
    list-style: none;
}

section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* 2. KEYFRAME ANIMATIONS
-------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(82, 183, 136, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(82, 183, 136, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(82, 183, 136, 0);
    }
}

/* 3. UTILITY & HELPER CLASSES
-------------------------------------------------- */
.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.cta-button.primary {
    background-color: var(--color-primary);
    color: var(--color-bg-dark);
    border-color: var(--color-primary);
}

.cta-button.primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(82, 183, 136, 0.2);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--color-text-on-dark);
    border-color: var(--color-text-on-dark);
}

.cta-button.secondary:hover {
    background-color: var(--color-text-on-dark);
    color: var(--color-bg-dark);
}

.cta-button.large {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.section-tag {
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 1px;
}

.section-title {
    margin-bottom: 1rem;
}

.section-intro {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--color-accent), var(--color-text-on-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    transition-delay: var(--delay, 0s);
}

.fade-in-up {
    transform: translateY(25px);
}

.slide-in-left {
    transform: translateX(-30px);
}

.slide-in-right {
    transform: translateX(30px);
}

.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* 4. HEADER & NAVIGATION
-------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition-speed) ease;
}

.main-header.scrolled {
    background-color: rgba(26, 46, 40, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--color-text-on-dark);
}

.header-logo img {
    height: 50px;
    filter: invert(1);
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--color-text-on-dark);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-on-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-on-dark);
    margin: 5px 0;
    border-radius: 3px;
    transition: all var(--transition-speed) ease;
}

/* 5. FOOTER
-------------------------------------------------- */
.main-footer {
    background-color: #11201B;
    /* Darker Green */
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--color-text-on-dark);
    font-weight: 600;
}

.footer-logo img {
    height: 50px;
    filter: invert(1);
    margin-right: 10px;
}

.footer-about-text,
.footer-column p,
.footer-column a {
    font-size: 0.95rem;
    color: #a9b5af;
}

.footer-heading {
    color: var(--color-text-on-dark);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: #a9b5af;
    font-size: 0.9rem;
}

/* -----------------------------------
   RESPONSIVE STYLES
----------------------------------- */

/* Medium screens (tablets) */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 2rem;
    }

    .footer-logo {
        font-size: 1.3rem;
    }
}

/* Small screens (mobile) */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-logo {
        justify-content: center;
        text-align: center;
    }

    .footer-about-text {
        text-align: center;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column ul {
        padding: 0;
        list-style: none;
    }
}

/* Extra small screens (phones) */
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-logo {
        flex-direction: column;
        align-items: center;
    }

    .footer-logo img {
        margin: 0 0 10px 0;
    }

    .footer-column {
        text-align: center;
    }

    .footer-bottom {
        font-size: 0.85rem;
        padding-top: 1.5rem;
    }
}


/* 6. HERO SECTION
-------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.organic-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80vw;
    height: 80vw;
    max-width: 1200px;
    max-height: 1200px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(82, 183, 136, 0.08) 0%, rgba(82, 183, 136, 0) 60%);
    border-radius: 45% 55% 70% 30% / 30% 60% 40% 70%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* 7. SERVICES ECOSYSTEM SECTION
-------------------------------------------------- */
.services-section {
    background-color: #162924;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-bg-dark);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--color-primary);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 48px;
    height: 48px;
    fill: var(--color-primary);
}

.service-card h3 {
    margin-bottom: 0.5rem;
    color: var(--color-text-on-dark);
}

/* 8. MARKETING HEALTH CHECK SECTION
-------------------------------------------------- */
.health-check-section {
    background-color: var(--color-bg-light);
    color: var(--color-text-on-light);
}

.health-check-section h2,
.health-check-section h3,
.health-check-section h4 {
    color: var(--color-text-on-light);
}

.health-check-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.health-check-quiz {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: fadeInUp 0.5s;
}

.quiz-step h4 {
    margin-bottom: 1.5rem;
}

.quiz-step label {
    display: block;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-step label:hover {
    border-color: var(--color-accent);
    background: #fafafa;
}

.quiz-step input[type="radio"] {
    margin-right: 10px;
    accent-color: var(--color-primary);
}

.quiz-next,
.quiz-finish {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    border: none;
    background-color: var(--color-primary);
    color: #fff;
    cursor: pointer;
    font-weight: 500;
}

#quiz-results {
    text-align: center;
}

#result-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin-top: 2rem;
}

.progress-bar-inner {
    height: 10px;
    width: 0%;
    background-color: var(--color-primary);
    border-radius: 5px;
    transition: width var(--transition-speed) ease;
}

.hidden {
    display: none;
}

/* 9. PROCESS SECTION
-------------------------------------------------- */
.process-path {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-path::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    z-index: 0;
}

.process-step-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.process-step-item:last-child {
    margin-bottom: 0;
}

.process-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
    position: absolute;
    left: 0;
    top: 0;
    border: 4px solid var(--color-bg-dark);
}

.process-content h3 {
    color: var(--color-primary);
}

/* 10. TESTIMONIALS SECTION
-------------------------------------------------- */
.testimonials-section {
    background-color: #162924;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: auto;
}

.testimonial-card {
    background-color: var(--color-bg-dark);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    position: relative;
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.2;
    font-family: var(--font-heading);
}

.quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.author {
    font-weight: 600;
    color: var(--color-primary);
    text-align: right;
}

/* 11. CTA SECTION
-------------------------------------------------- */
.final-cta-section {
    text-align: center;
}

.final-cta-section h2 {
    margin-bottom: 1.5rem;
}

.final-cta-section p {
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* 12. CONTACT & LEGAL PAGE STYLES
-------------------------------------------------- */
.page-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.contact-section {
    background-color: var(--color-bg-light);
    color: var(--color-text-on-light);
}

.contact-section h3 {
    color: var(--color-text-on-light);
}

.contact-page-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form-wrapper {
    background-color: #fff;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.2);
}

.contact-info-panel ul {
    list-style: none;
    margin-top: 1.5rem;
}

.contact-info-panel li {
    margin-bottom: 1rem;
}

.legal-content {
    padding-bottom: 6rem;
    background-color: var(--color-bg-light);
    color: var(--color-text-on-light);
}

.legal-content .container {
    max-width: 800px;
    background-color: #fff;
    padding: 3rem;
    border-radius: var(--border-radius);
}

.legal-content h2 {
    color: var(--color-text-on-light);
    margin: 2rem 0 1rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
}

/* 13. RESPONSIVE DESIGN
-------------------------------------------------- */
@media (max-width: 992px) {

    .health-check-wrapper,
    .contact-page-container {
        grid-template-columns: 1fr;
    }

    .health-check-info {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header-cta {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 280px;
        height: 100vh;
        background-color: #162924;
        flex-direction: column;
        justify-content: center;
        transition: right var(--transition-speed) ease;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hamburger-menu {
        display: block;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .process-path::before {
        left: 14px;
    }

    .process-step-item {
        padding-left: 40px;
        gap: 1.5rem;
    }

    .process-icon {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}