/*
--- DIGITAL MARKETING WEBSITE STYLESHEET ---
Theme: Sustainable Growth & Organic
Primary Colors: Off-White, Olive Green, Warm Tan
Font: Lora (Headings), Nunito Sans (Body)
*/

/* --- 1. CSS VARIABLES & RESET --- */
:root {
    --bg-color: #F9F7F3;
    --text-color: #5C5C5C;
    --heading-color: #2F3526;
    --accent-primary: #6B8E23;
    /* Olive Drab */
    --accent-secondary: #D4A373;
    /* Tan */
    --border-color: #E5E0D8;
    --font-heading: 'Lora', serif;
    --font-body: 'Nunito Sans', sans-serif;
    --header-height: 90px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    font-weight: 400;
    overflow-x: hidden;
}

/* --- 2. GLOBAL & UTILITY STYLES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
    font-family: var(--font-body);
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

a:hover {
    color: var(--heading-color);
}

ul {
    list-style: none;
}

section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.section-title h2 {
    margin-top: 10px;
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--accent-primary);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 5px 15px rgba(107, 142, 35, 0.3);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--accent-primary);
    box-shadow: none;
    transform: translateY(-2px);
}

/* --- 3. HEADER & NAVIGATION --- */
.site-header {
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: all 0.3s ease-in-out;
}

.site-header.scrolled {
    background-color: rgba(249, 247, 243, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav-logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--heading-color);
    font-weight: 700;
    position: relative;
}

.nav-link.active {
    color: var(--accent-primary);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--heading-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- 4. HERO SECTION --- */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-text h1 {
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 50ch;
}

.hero-visual {
    position: relative;
    height: 500px;
}

.hero-shape {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    clip-path: ellipse(45% 50% at 50% 50%);
    opacity: 0.1;
    animation: morph 15s ease-in-out infinite alternate;
}

@keyframes morph {
    0% {
        clip-path: ellipse(45% 50% at 50% 50%);
    }

    50% {
        clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    }

    100% {
        clip-path: ellipse(45% 50% at 50% 50%);
    }
}

.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.animate-on-load:nth-child(1) {
    animation-delay: 0.2s;
}

.animate-on-load:nth-child(2) {
    animation-delay: 0.4s;
}

.animate-on-load:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-visual.animate-on-load {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 5. SERVICES SECTION --- */
.services-section {
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    text-align: center;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background-color: #F0F8FF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--accent-primary);
}

.service-card:hover .service-icon {
    background-color: var(--accent-primary);
}

.service-card:hover .service-icon svg {
    color: #fff;
}

.service-card h3 {
    margin-bottom: 10px;
}

/* --- 6. PROCESS SECTION --- */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    position: relative;
    padding: 20px 0;
}

.timeline-marker {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 3px solid var(--accent-primary);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    background-color: var(--accent-primary);
}

.timeline-content h4 {
    margin-bottom: 5px;
}

/* --- 7. GROWTH CALCULATOR --- */
.growth-calculator-section {
    background-color: #fff;
}

.calculator-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.calculator-inputs,
.calculator-outputs {
    padding: 40px;
}

.calculator-outputs {
    border-left: 1px solid var(--border-color);
}

.calculator-inputs h4,
.calculator-outputs h4 {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
}

.form-group span {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-weight: 700;
    color: var(--accent-primary);
}

.output-metric {
    margin-bottom: 30px;
}

.output-metric label {
    display: block;
    font-weight: 600;
}

.output-metric p {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--accent-primary);
    margin-top: 5px;
}

.report-link {
    margin-top: 20px;
}

/* --- 8. SECTORS SECTION (INDUSTRIES) --- */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sector-card {
    height: 400px;
    padding: 30px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    color: #fff;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.sector-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.sector-content {
    position: relative;
    z-index: 1;
}

.sector-card:nth-child(1) {
    background-image: url('https://dummyimage.com/600x800/ccc/aaa&text=Wellness');
}

.sector-card:nth-child(2) {
    background-image: url('https://dummyimage.com/600x800/ccc/aaa&text=Tech');
}

.sector-card:nth-child(3) {
    background-image: url('https://dummyimage.com/600x800/ccc/aaa&text=Services');
}

/* --- 9. TESTIMONIALS SECTION --- */
.testimonials-section {
    text-align: center;
}

.testimonial-quote p {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    max-width: 800px;
    margin: 0 auto 30px;
}

.testimonial-author strong {
    display: block;
    font-size: 1.1rem;
}

.testimonial-navigation {
    margin-top: 40px;
}

.nav-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* --- 10. CTA SECTION --- */
.cta-section {
    background: #fff;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 40px;
}

/* --- 11. FOOTER --- */
.site-footer {
    background-color: var(--heading-color);
    color: #ccc;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.footer-about p {
    font-size: 0.9rem;
    color: #aaa;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    color: #fff;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact p {
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 400;
}

.footer-contact p {
    margin-bottom: 5px;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

/* --- 12. OTHER PAGES --- */
.page-header {
    padding: 180px 0 100px;
    text-align: center;
}

.page-header p {
    max-width: 700px;
    margin: 20px auto 0;
}

.contact-page-section {
    padding-bottom: 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.contact-form {
    background-color: #fff;
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    font-size: 1rem;
    font-family: var(--font-body);
    border-radius: 4px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 1px solid var(--accent-primary);
}

.info-item {
    margin-bottom: 20px;
}

.info-item strong {
    display: block;
    color: var(--heading-color);
}

.legal-content .container {
    max-width: 900px;
}

.legal-content h2 {
    margin: 40px 0 20px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content ul {
    list-style-type: disc;
    margin: 0 0 1.5rem 25px;
}

.legal-content li {
    margin-bottom: 1rem;
}

/* --- 13. RESPONSIVENESS --- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 40px;
    }

    .hero-visual {
        display: none;
    }

    .services-grid,
    .sectors-grid {
        grid-template-columns: 1fr;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .calculator-outputs {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 80px 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: var(--bg-color);
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: center;
        transition: left 0.4s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
        position: relative;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* --- 14. SCROLL ANIMATIONS --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.services-grid .reveal-on-scroll:nth-child(2),
.timeline-item:nth-child(2) {
    transition-delay: 0.1s;
}

.services-grid .reveal-on-scroll:nth-child(3),
.timeline-item:nth-child(3) {
    transition-delay: 0.2s;
}

.timeline-item:nth-child(4) {
    transition-delay: 0.3s;
}