/*
========================================
    TABLE OF CONTENTS
========================================
1.  VARIABLES & RESET
2.  GENERAL STYLES & UTILITIES
3.  HEADER & NAVIGATION
4.  HERO SECTION
5.  TRUSTED BY SECTION
6.  SERVICES EXPLORER SECTION
7.  METHOD SECTION
8.  TESTIMONIALS SECTION
9.  ROI FORECASTER SECTION
10. CTA SECTION
11. FOOTER
12. PAGE-SPECIFIC STYLES (Contact, Legal)
13. ANIMATIONS & KEYFRAMES
14. RESPONSIVE DESIGN (Media Queries)
========================================
*/

/* ======================================== 1. VARIABLES & RESET ======================================== */
:root {
    /* ===== Colors ===== */
    --color-primary: #d47e37;
    /* Gold accent */
    --color-primary-dark: #b89a2f;
    --color-dark: #050A13;
    /* Deep navy-black */
    --color-background: #0D1117;
    /* Dark slate */
    --color-surface: #161B22;
    /* Surface for cards/sections */
    --color-text-primary: #F5F5F5;
    /* Off-white text */
    --color-text-secondary: #A0A0A0;
    /* Muted grey text */
    --color-border: #2C2F33;
    /* Subtle divider */
    --color-white: #FFFFFF;

    /* ===== Typography ===== */
    --font-family-heading: 'Playfair Display', serif;
    --font-family-body: 'Manrope', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.7;

    /* ===== Transitions ===== */
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.4s ease-in-out;
    --transition-slow: 0.6s ease;

    /* ===== Layout ===== */
    --container-width: 1200px;
    --border-radius: 4px;
    --box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family-body);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ======================================== 2. GENERAL STYLES & UTILITIES ======================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-family-heading);
    color: var(--color-text-primary);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
    font-family: var(--font-family-body);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-padding {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 750px;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-dark);
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-text-primary);
    border-color: var(--color-border);
}

.btn--secondary:hover {
    background-color: var(--color-text-primary);
    color: var(--color-surface);
    border-color: var(--color-text-primary);
}

.btn--large {
    padding: 1.1rem 2.8rem;
    font-size: 1.1rem;
}

.btn--full-width {
    width: 100%;
}

/* ======================================== 3. HEADER & NAVIGATION ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background-color: var(--color-dark);
    transition: padding var(--transition-medium);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo img {
    height: 45px;
    filter: brightness(0) invert(1);
}

.nav__list {
    display: flex;
    gap: 2.5rem;
}

.nav__link {
    color: var(--color-white);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-medium);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* ======================================== 4. HERO SECTION ======================================== */
.hero {
    padding: 12rem 0 8rem;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 5rem;
}

.hero__title {
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__image-wrapper {
    perspective: 1000px;
}

.hero__image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-slow);
}

.hero__image img {
    width: 100%;
    height: auto;
}

/* ======================================== 5. TRUSTED BY SECTION ======================================== */
.trusted-by {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.trusted-by p {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.client-logos span {
    font-family: var(--font-family-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: #adb5bd;
}

/* ======================================== 6. SERVICES EXPLORER SECTION ======================================== */
.services-section {
    background-color: var(--color-surface);
}

.service-explorer {
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
}

.service-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.service-card__header h3 {
    font-size: 2rem;
    transition: color var(--transition-fast);
}

.service-card__toggle {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    transition: transform var(--transition-medium);
}

.service-card__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.service-card__body p {
    padding-bottom: 2rem;
    max-width: 80%;
}

.service-card.active .service-card__header h3 {
    color: var(--color-primary);
}

.service-card.active .service-card__toggle {
    transform: rotate(45deg);
}

.service-card.active .service-card__body {
    max-height: 200px;
}

/* ======================================== 7. METHOD SECTION ======================================== */
.method-section {
    background-color: var(--color-background);
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.method-step {
    position: relative;
    padding-left: 3.5rem;
}

.method-step__number {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.method-step h4 {
    margin-bottom: 0.5rem;
}

/* ======================================== 8. TESTIMONIALS SECTION ======================================== */
.testimonials-section {
    background-color: var(--color-surface);
}

.testimonial-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.testimonial-column {
    display: grid;
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--color-background);
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.testimonial-card blockquote {
    font-family: var(--font-family-heading);
    font-size: 1.3rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-card cite {
    font-style: normal;
    font-weight: 600;
    color: var(--color-text-secondary);
}

/* ======================================== 9. ROI FORECASTER SECTION ======================================== */
.roi-section {
    background-color: var(--color-background);
}

.roi-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.roi-form .form-group {
    margin-bottom: 1.5rem;
}

.roi-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.roi-form input {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
}

.roi-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.roi-results-wrapper {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 3rem;
    text-align: center;
    border-radius: var(--border-radius);
}

.roi-results h4 {
    color: var(--color-primary);
    font-family: var(--font-family-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.roi-value {
    font-family: var(--font-family-heading);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.roi-results span {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ======================================== 10. CTA SECTION ======================================== */
.cta-section {
    background-color: var(--color-surface);
    padding: 6rem 0;
}

.cta-container {
    text-align: center;
}

.cta-title {
    margin-bottom: 1rem;
}

.cta-subtitle {
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* ======================================== 11. FOOTER ======================================== */
.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding-top: 5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-logo img {
    height: 45px;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-about-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    max-width: 300px;
}

.footer-col h4 {
    font-family: var(--font-family-body);
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a,
.footer-col p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--color-primary);
}

.footer-col p {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #1c2b41;
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ======================================== 12. PAGE-SPECIFIC STYLES ======================================== */
/* --- Contact Page --- */
.contact-page {
    background: var(--color-surface);
}

.contact-page .section-header {
    padding-top: 8rem;
}

.contact-page__layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.contact-form .form-row {
    display: flex;
    gap: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem;
    font-family: var(--font-family-body);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background-color: var(--color-background);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.contact-page__info-wrapper {
    background-color: var(--color-background);
    padding: 2.5rem;
    border-radius: var(--border-radius);
}

.contact-page__info-wrapper h3 {
    margin-bottom: 0.5rem;
}

.contact-page__info-wrapper p {
    margin-bottom: 2rem;
}

.contact-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-list .icon {
    font-size: 1.5rem;
}

.contact-info-list .details {
    display: flex;
    flex-direction: column;
}

.contact-info-list .details strong {
    font-weight: 600;
}

.contact-info-list .details span {
    color: var(--color-text-secondary);
}

/* --- Legal Pages --- */
.legal-section {
    padding-top: 10rem;
    background: var(--color-surface);
}

.legal-container {
    max-width: 800px;
}

.legal-container h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 1rem;
}

.legal-container h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-container ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.legal-container ul li {
    margin-bottom: 0.5rem;
}

/* ======================================== 13. ANIMATIONS & KEYFRAMES ======================================== */
@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll[data-animation="fade-in"] {
    opacity: 0;
}

.animate-on-scroll[data-animation="fade-in-up"] {
    opacity: 0;
    transform: translateY(30px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================== 14. RESPONSIVE DESIGN ======================================== */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__content {
        order: 2;
    }

    .hero__image-wrapper {
        order: 1;
        max-width: 600px;
        margin: 0 auto 3rem auto;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__buttons {
        justify-content: center;
    }

    .testimonial-columns {
        grid-template-columns: 1fr;
    }

    .roi-container {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .header__cta {
        display: none;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-dark);
        border-left: 1px solid #1c2b41;
        padding-top: 6rem;
        transition: right 0.4s ease-in-out;
    }

    .nav.open {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav__link {
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav.open+.nav-toggle .hamburger {
        background-color: transparent;
    }

    .nav.open+.nav-toggle .hamburger::before {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .nav.open+.nav-toggle .hamburger::after {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .contact-page__layout {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}