/*
=====================================================
    Theme: Evolve
    Author: Schutt Mechanical
    Version: 3.0
=====================================================
    TABLE OF CONTENTS
    ---------------------------------
    1.  Variables & Root Styles
    2.  Base & Reset Styles
    3.  Keyframes & Animations
    4.  Utility Classes
    5.  Header & Navigation
    6.  Hero Section
    7.  Trusted By Scroller
    8.  Services Section
    9.  Process Section (Tabs)
    10. Industry Focus Section
    11. Results Section (Stats)
    12. Testimonial Section
    13. FAQ Section
    14. Final CTA Section
    15. Page Header & Legal Content
    16. Contact Page Specifics
    17. Footer
    18. Responsive Design
=====================================================
*/

/* 1. Variables & Root Styles
-------------------------------------------------- */
:root {
    --primary-color: #1E392A;
    /* Deep Forest Green */
    --secondary-color: #D97746;
    /* Warm Terracotta */
    --bg-light: #F9F7F3;
    /* Warm Off-White */
    --bg-medium: #FFFFFF;
    --border-color: #EAE5DD;
    --text-dark: #1C1C1C;
    --text-medium: #555555;
    --text-light: #858585;

    --font-heading: 'Lora', serif;
    --font-body: 'Manrope', sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    --transition-speed: 0.3s;
    --container-width: 1140px;
    --section-padding: 120px 0;
    --border-radius: 12px;
}

/* 2. Base & Reset Styles
-------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-medium);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 0.75em;
}

h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* 3. Keyframes & Animations
-------------------------------------------------- */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes underline-grow {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes scroller {
    to {
        transform: translate(calc(-50% - 2rem));
    }
}

.animate-on-load {
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
}

.animate-on-load:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-on-load:nth-child(3) {
    animation-delay: 0.4s;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 4. Utility Classes
-------------------------------------------------- */
.section-padding {
    padding: var(--section-padding);
}

.text-center {
    text-align: center;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    margin-bottom: 4rem;
}

.section-title .subtitle {
    display: block;
    font-family: var(--font-body);
    font-weight: var(--font-weight-bold);
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
}

.cta-button {
    display: inline-block;
    padding: 16px 36px;
    font-weight: var(--font-weight-bold);
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 50px;
    border: 2px solid var(--secondary-color);
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(217, 119, 70, 0.2);
}

.cta-button:hover {
    background-color: #e38255;
    border-color: #e38255;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(217, 119, 70, 0.3);
}

/* 5. Header & Navigation
-------------------------------------------------- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    background-color: transparent;
    transition: all var(--transition-speed) ease;
}

#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    height: 80px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-dark);
    font-weight: var(--font-weight-bold);
    transition: color var(--transition-speed);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

#hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

#hamburger-btn .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: all 0.4s ease-in-out;
}

.nav-open #hamburger-btn .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-open #hamburger-btn .bar:nth-child(2) {
    opacity: 0;
}

.nav-open #hamburger-btn .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 6. Hero Section
-------------------------------------------------- */
#hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

#hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.shape-bg {
    content: '';
    position: absolute;
    top: -150px;
    left: -200px;
    width: 800px;
    height: 800px;
    background-color: #ECE7DF;
    border-radius: 45% 55% 70% 30% / 30% 50% 50% 70%;
    z-index: -1;
    transition: all 0.5s ease;
    animation: shapeFloat 20s infinite ease-in-out;
}

@keyframes shapeFloat {

    0%,
    100% {
        border-radius: 45% 55% 70% 30% / 30% 50% 50% 70%;
        transform: translate(0, 0);
    }

    50% {
        border-radius: 30% 70% 40% 60% / 60% 40% 70% 30%;
        transform: translate(50px, -30px);
    }
}

#hero h1 .highlight {
    position: relative;
    display: inline-block;
}

#hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    height: 4px;
    background-color: var(--secondary-color);
    animation: underline-grow 0.8s 0.5s ease-out forwards;
}

#hero p {
    font-size: 1.1rem;
    max-width: 480px;
    margin: 2rem 0 2.5rem;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.1);
}

/* 7. Trusted By Scroller
-------------------------------------------------- */
#trusted-by {
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-medium);
}

.scroller {
    overflow: hidden;
}

.scroller-inner {
    display: flex;
    gap: 4rem;
    width: fit-content;
    animation: scroller 20s linear infinite;
}

.scroller-inner span {
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    font-family: var(--font-heading);
    color: var(--text-light);
    white-space: nowrap;
}

/* 8. Services Section
-------------------------------------------------- */
#services {
    background-color: #FDFBFA;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border-left: 5px solid var(--secondary-color);
}

.service-card .card-icon {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.service-card h3 {
    margin-bottom: 0.5rem;
}

/* 9. Process Section (Tabs)
-------------------------------------------------- */
.process-tabs {
    max-width: 900px;
    margin: auto;
}

.tab-buttons {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 3rem;
}

.tab-button {
    background: none;
    border: none;
    padding: 1.5rem 0.5rem;
    cursor: pointer;
    color: var(--text-light);
    font-weight: var(--font-weight-bold);
    position: relative;
    width: 100%;
    text-align: left;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed) ease;
}

.tab-button.active {
    color: var(--text-dark);
}

.tab-button.active::after {
    width: 100%;
}

.tab-button span {
    font-weight: var(--font-weight-bold);
    font-family: var(--font-heading);
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.tab-pane {
    display: none;
    animation: slideInUp 0.5s ease-out;
}

.tab-pane.active {
    display: block;
}

/* 10. Industry Focus Section
-------------------------------------------------- */
#industry-focus {
    background-color: var(--primary-color);
    color: var(--bg-light);
}

#industry-focus .section-title .subtitle {
    color: rgba(255, 255, 255, 0.7);
}

#industry-focus h2,
#industry-focus p {
    color: #fff;
}

.industry-focus-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.industry-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.industry-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    transition: all var(--transition-speed);
}

.industry-btn.active,
.industry-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.industry-checklist h3 {
    color: #fff;
}

.industry-checklist ul {
    list-style: none;
}

.industry-checklist li {
    padding: 0.75rem 0;
    opacity: 0.4;
    transition: opacity var(--transition-speed) ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.industry-checklist li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 0.75rem;
    color: var(--secondary-color);
}

.industry-checklist li.active {
    opacity: 1;
}

/* 11. Results Section (Stats)
-------------------------------------------------- */
#results {
    background: linear-gradient(180deg, #FDFBFA, var(--bg-light));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.stat-item h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-medium);
    margin: 0;
}

.stat-number {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    font-family: var(--font-heading);
    line-height: 1;
}

/* 12. Testimonial Section
-------------------------------------------------- */
.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-medium);
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid var(--border-color);
}

.quote {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.author {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.author img {
    border-radius: 50%;
}

.author h4 {
    margin: 0;
}

.author span {
    color: var(--text-medium);
}

/* 13. FAQ Section
-------------------------------------------------- */
.faq-container {
    max-width: 800px;
    margin: auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem 0;
    text-align: left;
}

.faq-question span {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.faq-question i {
    color: var(--secondary-color);
    font-size: 1.25rem;
    transition: transform var(--transition-speed) ease;
}

.faq-item.open .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.faq-answer p {
    padding-top: 1rem;
    margin-bottom: 0;
}

/* 14. Final CTA Section
-------------------------------------------------- */
#final-cta {
    background-color: var(--primary-color);
    color: #fff;
}

#final-cta h2,
#final-cta p {
    color: #fff;
}

#final-cta p {
    max-width: 600px;
    margin: 1.5rem auto 2.5rem;
    opacity: 0.9;
}

#final-cta .cta-button {
    background-color: #fff;
    color: var(--primary-color);
}

#final-cta .cta-button:hover {
    background-color: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

/* 15. Page Header & Legal Content
-------------------------------------------------- */
.page-header {
    background-color: #FDFBFA;
    padding-top: 180px;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--border-color);
}

.legal-content .container {
    max-width: 800px;
}

.legal-content h2 {
    margin-top: 2.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.legal-content ul {
    list-style-type: disc;
    margin: 1rem 0 1rem 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* 16. Contact Page Specifics
-------------------------------------------------- */
#contact-page .contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.contact-form-wrapper {
    background-color: var(--bg-medium);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(217, 119, 70, 0.2);
}

.contact-info-wrapper {
    padding-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-item h4 {
    margin: 0 0 0.25rem 0;
}

.contact-item p {
    margin: 0;
}

/* 17. Footer
-------------------------------------------------- */
#main-footer {
    padding: 80px 0 0;
    background-color: var(--bg-medium);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a,
.footer-col li {
    color: var(--text-medium);
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    margin: 0;
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* 18. Responsive Design
-------------------------------------------------- */
@media (max-width: 1024px) {
    #hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        display: none;
    }

    /* Simpler layout on tablet */
}

@media (max-width: 991px) {
    .header-cta {
        display: none;
    }

    #hamburger-btn {
        display: block;
    }

    #main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--bg-light);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out;
    }

    .nav-open #main-nav {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        flex-direction: column;
        border-bottom: 0;
    }

    .tab-button {
        border-bottom: 1px solid var(--border-color);
    }

    .tab-button::after {
        content: none;
    }

    .tab-button.active {
        background-color: #FDFBFA;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    .stats-grid,
    #contact-page .contact-grid {
        grid-template-columns: 1fr;
    }

    .industry-focus-container {
        grid-template-columns: 1fr;
    }

    .industry-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}