/*
--- MOMENTUM THEME ---
Version: 10.0

TABLE OF CONTENTS
1.  :root & Global Styles
2.  Utility & Animation Classes
3.  Header & Navigation
4.  Mobile Navigation
5.  Hero Section
6.  Services Section
7.  Process Section
8.  Results Section (Calculator)
9.  Testimonials Section
10. CTA Section
11. Footer
12. Page-Specific Styles
13. Forms
14. Media Queries
*/

/* 1. :root & Global Styles */
:root {
    --bg: #FFFFFF;
    /* Crisp white base */
    --text-dark: #1A1A1A;
    /* Rich charcoal for readability */
    --text-light: #666666;
    /* Medium neutral gray */
    --primary-orange: #F4A261;
    /* Soft amber-gold accent */
    --secondary-blue: #2A9D8F;
    /* Calm teal complement */
    --border-color: #E6E6E6;
    /* Light subtle border */
    --panel-bg: #FAFAFA;
    /* Slightly warm white for sections */
    --font-family: 'DM Sans', sans-serif;
    --header-height: 80px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 100px 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

h1 {
    font-size: 5rem;
}

h2 {
    font-size: 3rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.1rem;
}

p {
    max-width: 60ch;
}

a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-orange);
}

/* 2. Utility & Animation Classes */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background-color: var(--primary-orange);
    color: #fff;
}

.btn-primary:hover {
    background-color: #e03e00;
    transform: translateY(-3px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1rem;
}

.highlight {
    color: var(--primary-orange);
}

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    max-width: 500px;
    margin: 1rem auto 0;
    text-align: center;
}

[data-animation] {
    opacity: 0;
}

.animate-on-load.visible,
.animate-on-scroll.visible {
    opacity: 1;
}

[data-animation="reveal-line"] {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 1s var(--transition);
    transition-delay: var(--d, 0s);
}

.hero-title>span {
    display: block;
    overflow: hidden;
}

.animate-on-load.visible [data-animation="reveal-line"] {
    transform: translateY(0);
}

[data-animation="fade-in"] {
    transition: opacity 1s ease;
    transition-delay: var(--d, 0s);
}

[data-animation="reveal-card"] {
    transform: translateY(40px);
    transition: transform 0.8s var(--transition), opacity 0.8s ease;
}

[data-animation="draw-path"] .step-circle {
    transform: scale(0);
}

[data-animation="draw-path"] .step-content {
    transform: translateY(20px);
}

[data-animation="draw-path"]::before {
    transform-origin: top;
    transform: scaleY(0);
}

.animate-on-scroll.visible[data-animation="draw-path"] {
    &::before {
        transform: scaleY(1);
        transition: transform 0.8s ease;
    }

    .step-circle {
        transform: scale(1);
        transition: transform 0.4s ease 0.6s;
    }

    .step-content {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.5s, transform 0.5s;
        transition-delay: 0.8s;
    }
}

/* 3. Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 45px;
    filter: invert(1);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
}

.main-nav a.active {
    color: var(--primary-orange);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 4. Mobile Navigation */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.hamburger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    margin: 6px 0;
    transition: transform 0.3s;
}

.hamburger-menu.active span:first-child {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:last-child {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg);
    z-index: 999;
    padding: 40px;
    transform: translateX(100%);
    transition: transform var(--transition);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 700;
}

/* 5. Hero Section */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 550px;
    margin: 2rem 0 3rem;
}

/* 6. Services Section */
.services-section {
    background: var(--panel-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.service-card {
    background: var(--bg);
    padding: 40px;
}

.service-card-header {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
}

/* 7. Process Section */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    position: relative;
    padding: 20px 0 60px 40px;
}

.process-step:last-child {
    padding-bottom: 20px;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--border-color);
}

.process-step:last-child::before {
    display: none;
}

.step-circle {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--secondary-blue);
    border-radius: 50%;
}

.step-content {
    opacity: 0;
}

/* 8. Results Section (Calculator) */
.results-section {
    background: var(--secondary-blue);
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.results-text .section-title,
.results-text p {
    color: #fff;
}

.calculator {
    background: var(--bg);
    padding: 40px;
    border-radius: var(--border-radius);
}

.calc-group {
    margin-bottom: 1.5rem;
}

.calc-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.calc-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.2rem;
}

.calc-output {
    margin-top: 2rem;
    text-align: center;
}

.calc-output h4 {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.calc-output span {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-orange);
}

/* 9. Testimonials Section */
.testimonial-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.testimonial-card {
    background: var(--panel-bg);
    padding: 40px;
    border-radius: var(--border-radius);
}

.testimonial-card p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-card cite {
    font-style: normal;
    font-weight: 700;
}

/* 10. CTA Section */
.cta-content {
    text-align: center;
}

.cta-content p {
    max-width: 500px;
    margin: 1rem auto 2rem;
}

/* 11. Footer */
.site-footer {
    background: var(--panel-bg);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 1rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a,
.footer-col p {
    color: var(--text-light);
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
}

/* 12. Page-Specific Styles */
.page-header {
    padding: calc(var(--header-height) + 80px) 0;
    text-align: center;
}

.contact-page-section,
.legal-content-section {
    padding-bottom: 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin: 2rem 0 1rem;
}

/* 13. Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input,
textarea {
    width: 100%;
    padding: 14px;
    background: var(--bg);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
}

/* 14. Media Queries */
@media (max-width: 1024px) {
    h1 {
        font-size: 4rem;
    }

    .main-nav {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-wrapper,
    .results-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .results-text {
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    section {
        padding: 80px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}