/*
  Digital Marketing Agency Redesign V13
  Theme: Digital Botany
  Author: Chad Moore Construction & Tower Service
  Version: 13.0
*/

/* ---------------------------------- */
/* 1. Global Styles & Variables       */
/* ---------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600&family=Sora:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #0A3622;
    /* Deep Forest Green */
    --secondary-color: #E97777;
    /* Terracotta/Coral */
    --bg-color: #F8F5F2;
    /* Warm Cream/Beige */
    --text-dark: #222222;
    --text-medium: #555555;
    --border-color: #E0DACE;

    --font-heading: 'Lora', serif;
    --font-body: 'Sora', sans-serif;
    --header-height: 85px;
    --border-radius: 8px;
}

/* Basic Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-medium);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 1.5rem;
}

/* Links & Buttons */
a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--secondary-color);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

.btn-header {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.btn-header.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------------------------------- */
/* 2. Header and Navigation           */
/* ---------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    background: transparent;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.main-header.scrolled {
    background-color: rgba(248, 245, 242, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: var(--text-dark);
}

.header-logo img {
    height: 60px;
    filter: brightness(0);
    margin-right: 15px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 45px;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-menu .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ---------------------------------- */
/* 3. Hero Section                    */
/* ---------------------------------- */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-headline {
    font-size: 4.5rem;
    line-height: 1.1;
}

.highlight-text {
    color: var(--primary-color);
}

.hero-subheadline {
    font-size: 1.2rem;
    max-width: 500px;
    margin: 20px 0 30px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero-visual-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.animated-plant {
    position: relative;
    width: 200px;
    height: 300px;
}

.stem {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 8px;
    height: 100%;
    background: var(--primary-color);
    transform-origin: bottom;
    animation: grow-stem 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.leaf {
    position: absolute;
    left: 50%;
    width: 80px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 0 50% 0 50%;
    transform-origin: bottom left;
    opacity: 0;
}

.leaf1 {
    bottom: 50px;
    animation: grow-leaf 1.5s 1s forwards;
}

.leaf2 {
    bottom: 50px;
    transform: scaleX(-1);
    animation: grow-leaf 1.5s 1s forwards;
}

.leaf3 {
    bottom: 150px;
    animation: grow-leaf 1.5s 1.5s forwards;
}

.leaf4 {
    bottom: 150px;
    transform: scaleX(-1);
    animation: grow-leaf 1.5s 1.5s forwards;
}

@keyframes grow-stem {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

@keyframes grow-leaf {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ---------------------------------- */
/* 4. Services Section                */
/* ---------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 30px;
    border-bottom: 3px solid var(--border-color);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--primary-color);
}

.service-icon {
    margin-bottom: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    color: var(--bg-color);
}

.service-card h3 {
    font-family: var(--font-body);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* ---------------------------------- */
/* 5. Our Ecosystem (Process)         */
/* ---------------------------------- */
.ecosystem-section {
    background-color: white;
}

.ecosystem-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ecosystem-visual {
    position: sticky;
    top: var(--header-height);
    align-self: start;
    height: calc(100vh - var(--header-height));
}

.growth-svg {
    width: 100px;
    height: 100%;
}

.growth-svg path {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 2;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: stroke 0.5s;
}

.growth-svg path.active {
    stroke: var(--secondary-color);
}

#timeline-path {
    animation: draw-path 5s linear forwards;
}

@keyframes draw-path {
    to {
        stroke-dashoffset: 0;
    }
}

.ecosystem-steps .step-content {
    min-height: 50vh;
    padding: 40px 0;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.ecosystem-steps .step-content.is-visible {
    opacity: 1;
}

.step-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
}

/* ---------------------------------- */
/* 6. Calculator Section              */
/* ---------------------------------- */
.calculator-section {
    background-color: var(--primary-color);
}

.calculator-section h2,
.calculator-section p {
    color: white;
}

.calculator-section .container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-group input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--bg-color);
    border-radius: 50%;
    cursor: pointer;
}

.form-group output {
    font-weight: 700;
    font-size: 1.2rem;
}

.calculator-results {
    text-align: center;
}

.result-box {
    margin-bottom: 30px;
}

.result-box h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    opacity: 0.8;
}

.result-box span {
    font-size: 3rem;
    font-weight: 700;
}

/* ---------------------------------- */
/* 7. Testimonials, CTA, Legal, Contact */
/* ---------------------------------- */
.testimonials-section {
    background-color: white;
}

.testimonial-carousel {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.testimonial-slide {
    opacity: 0;
    transition: opacity 0.5s;
    position: absolute;
    width: 100%;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
}

.testimonial-slide p {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

cite {
    font-style: normal;
    font-weight: 600;
}

.slider-controls {
    margin-top: 30px;
}

.slider-controls button {
    background: transparent;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    margin: 0 10px;
}

.cta-section {
    text-align: center;
    background: var(--primary-color);
}

.cta-section h2,
.cta-section p {
    color: white;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.cta-section .btn-primary:hover {
    background: transparent;
    color: white;
}

.contact-page-section,
.legal-page-section {
    padding-top: calc(var(--header-height) + 60px);
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form-wrapper .form-group {
    margin-bottom: 25px;
}

.contact-form-wrapper .form-group label {
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-form-wrapper input,
.contact-form-wrapper select,
.contact-form-wrapper textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: var(--border-radius);
}

.contact-form-wrapper input:focus,
.contact-form-wrapper select:focus,
.contact-form-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.full-width {
    grid-column: 1 / -1;
    text-align: center;
}

.legal-page-section .container {
    max-width: 800px;
}

.legal-page-section h2 {
    margin: 40px 0 15px;
}

.legal-page-section ul {
    padding-left: 20px;
}

/* ---------------------------------- */
/* 8. Footer                          */
/* ---------------------------------- */
.main-footer {
    background: var(--primary-color);
    color: var(--bg-color);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--bg-color);
    margin-bottom: 20px;
}

.footer-logo {
    color: var(--bg-color) !important;
    font-family: var(--font-heading);
}

.footer-logo img {
    height: 70px;
    filter: brightness(0) invert(1);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a,
#footer-contact p {
    color: var(--bg-color);
    opacity: 0.8;
}

.footer-col a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px 0;
    text-align: center;
}

/* ---------------------------------- */
/* 9. Responsiveness & Animations     */
/* ---------------------------------- */
@media (max-width: 1024px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .main-nav.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        z-index: 1000;
    }

    .main-nav.active .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    .main-nav.active .nav-links li {
        margin: 25px 0;
    }

    .main-nav.active .nav-links a {
        font-size: 2rem;
    }

    .ecosystem-wrapper {
        grid-template-columns: 1fr;
    }

    .ecosystem-visual {
        display: none;
    }

    .ecosystem-steps .step-content {
        min-height: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual-content {
        display: none;
    }

    .hero-subheadline {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .calculator-section .container {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--delay, 0s);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}