/*
  Digital Marketing Agency Redesign V5
  Theme: Sophisticated & Human-centric
  Author: Sarah Gray Counseling
  Version: 5.0
*/

/* ---------------------------------- */
/* 1. Global Styles & Variables       */
/* ---------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Merriweather:wght@400;700&display=swap');

:root {
    --primary-color: #3E2F5B;
    --secondary-color: #E0AFA0;
    --bg-light: #F5F3F7;
    --bg-dark: #2C213F;

    --text-dark: #333333;
    --text-light: #FFFFFF;
    --text-medium: #555555;
    --border-color: #E3E3E3;

    --font-body: 'Roboto', sans-serif;
    --font-heading: 'Merriweather', serif;
    --header-height: 85px;
    --border-radius: 6px;
}

/* 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-light);
    color: var(--text-medium);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 25px;
}

h1,
h2,
h3,
h4 {
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 3.8rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-dark);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--primary-color);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border-color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--text-dark);
    color: var(--text-light);
}

section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    max-width: 750px;
    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);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.main-header.scrolled {
    background-color: rgba(249, 246, 241, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.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: 55px;
    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: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: 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: 30px;
    height: 20px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hamburger-menu .bar1 {
    transform-origin: top left;
}

.hamburger-menu .bar2 {
    transform-origin: bottom left;
    margin-top: auto;
}

.hamburger-menu.active .bar1 {
    transform: rotate(45deg) scaleX(1.25);
}

.hamburger-menu.active .bar2 {
    transform: rotate(-45deg) scaleX(1.25);
}

/* ---------------------------------- */
/* 3. Hero Section                    */
/* ---------------------------------- */
.hero-section {
    min-height: 100vh;
    padding: var(--header-height) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(249, 246, 241, 0.7);
    /* Light overlay */
    z-index: -1;
}

.hero-headline {
    font-size: 4.2rem;
    margin-bottom: 20px;
}

.hero-subheadline {
    font-size: 1.2rem;
    max-width: 650px;
    margin: auto auto 40px;
}

/* ---------------------------------- */
/* 4. Services Section (3D Cards)     */
/* ---------------------------------- */
.services-section {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: transparent;
    height: 380px;
    perspective: 1500px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.service-card-front {
    background-color: var(--bg-light);
}

.service-card-back {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: rotateY(180deg);
}

.service-card-back h3,
.service-card-back p {
    color: var(--text-light);
}

.service-icon {
    margin-bottom: 20px;
}

.service-card-back ul {
    list-style: none;
    text-align: left;
}

.service-card-back li {
    margin-bottom: 10px;
}

.service-card-back li::before {
    content: '•';
    margin-right: 10px;
    color: var(--secondary-color);
}

/* ---------------------------------- */
/* 5. Our Approach Section            */
/* ---------------------------------- */
.approach-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.step-item {
    padding: 20px;
    margin-bottom: 15px;
    border-left: 3px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-item:hover {
    border-left-color: var(--primary-color);
}

.step-item.active {
    border-left-color: var(--primary-color);
    background-color: white;
}

.step-number {
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 15px;
}

.step-title {
    font-weight: 500;
    color: var(--text-dark);
}

.content-pane {
    display: none;
    grid-template-columns: 1fr;
    gap: 30px;
    animation: contentFadeIn 0.6s ease;
}

.content-pane.active {
    display: grid;
}

.content-pane img {
    max-width: 100%;
    border-radius: var(--border-radius);
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------------------------- */
/* 6. Testimonials Section            */
/* ---------------------------------- */
.testimonials-section {
    background-color: var(--primary-color);
}

.testimonials-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.testimonial-content {
    color: var(--text-light);
}

.testimonial-quote-icon {
    font-size: 6rem;
    font-family: var(--font-heading);
    color: var(--secondary-color);
    line-height: 1;
}

.testimonial-slider {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.testimonial-slider .slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial-slider .slide.active {
    opacity: 1;
}

.testimonial-slider p {
    font-size: 1.5rem;
    font-style: italic;
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

.testimonial-slider cite {
    font-family: var(--font-body);
    font-style: normal;
    font-weight: 700;
}

.slider-controls {
    margin-top: 30px;
}

.slider-controls button {
    background: none;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-right: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.testimonial-image img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* ---------------------------------- */
/* 7. Report CTA Section              */
/* ---------------------------------- */
.report-cta-section {
    text-align: center;
}

.report-cta-icon {
    margin-bottom: 20px;
}

.report-cta-section h2 {
    margin-bottom: 15px;
}

.report-cta-section p {
    max-width: 500px;
    margin: auto auto 30px;
}

/* ---------------------------------- */
/* 8. Modal                           */
/* ---------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    /* Changed by JS */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.visible {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-medium);
}

.modal-content h3 {
    margin-bottom: 10px;
}

.modal-content p {
    margin-bottom: 20px;
}

.modal-content img {
    max-width: 100%;
    margin-bottom: 20px;
    filter: blur(3px);
}

.modal-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.modal-form .btn {
    width: 100%;
}

/* ---------------------------------- */
/* 9. Footer Section                  */
/* ---------------------------------- */
.main-footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: white;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-logo {
    color: white !important;
    font-family: var(--font-heading);
}

.footer-logo img {
    height: 65px;
    filter: brightness(0) invert(1);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
    color: white;
}

#footer-contact strong {
    color: white;
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
}

/* ---------------------------------- */
/* 10. Contact & Legal Pages          */
/* ---------------------------------- */
.page-header {
    padding: 150px 0 60px;
    text-align: center;
}

.legal-content .container {
    max-width: 800px;
}

.legal-content h2 {
    margin: 40px 0 15px;
}

.legal-content ul {
    padding-left: 20px;
}

.contact-page-section {
    padding-bottom: 120px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.contact-text-content h1 {
    margin-bottom: 20px;
}

.contact-info-block {
    margin-top: 40px;
}

.contact-info-block p {
    margin-bottom: 10px;
}

.contact-form-content {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ---------------------------------- */
/* 11. Responsiveness                 */
/* ---------------------------------- */
@media (max-width: 1024px) {
    .approach-wrapper {
        grid-template-columns: 1fr;
    }

    .approach-steps {
        display: flex;
        justify-content: space-around;
        margin-bottom: 40px;
    }

    .step-item {
        margin-bottom: 0;
    }

    .testimonials-section .container {
        grid-template-columns: 1fr;
    }

    .testimonial-image {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    #footer-about {
        grid-column: 1 / -1;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    section {
        padding: 80px 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.4s ease;
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 25px 0;
    }

    .nav-links a {
        font-size: 1.8rem;
    }

    .hamburger-menu {
        display: block;
    }

    .hero-headline {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-slider p {
        font-size: 1.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}