/*
  Digital Marketing Agency Redesign V11
  Theme: Monochrome & Minimalist
  Author: Steven Brown Construction
  Version: 11.0
*/

/* ---------------------------------- */
/* 1. Global Styles & Variables       */
/* ---------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-color: #FDFDFD;
    --text-color: #111111;
    --border-color: #EAEAEA;
    --footer-bg: #111111;
    --footer-text: #FDFDFD;

    --font-heading: 'DM Serif Display', serif;
    --font-body: 'Inter', sans-serif;
    --header-height: 85px;
}

/* 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-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: 5rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: #555;
}

cite {
    font-style: normal;
    font-weight: 600;
}

/* Links & Buttons */
a {
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
}

.btn-primary:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    max-width: 650px;
    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);
    background-color: transparent;
    transition: background-color 0.4s ease, border-bottom 0.4s ease;
}

.main-header.scrolled {
    background-color: rgba(253, 253, 253, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.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-color);
}

.header-logo img {
    height: 60px;
    filter: brightness(0);
    margin-right: 15px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 45px;
}

.nav-links a {
    position: relative;
    font-weight: 500;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-menu .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: transform 0.3s ease;
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ---------------------------------- */
/* 3. Hero Section                    */
/* ---------------------------------- */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-headline span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: text-reveal 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-headline span:nth-child(2) {
    animation-delay: 0.1s;
}

.hero-headline span:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes text-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subheadline {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 20px auto 30px;
}

/* ---------------------------------- */
/* 4. Services Section                */
/* ---------------------------------- */
.services-section {
    padding-top: 0;
}

.services-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.service-list {
    position: sticky;
    top: calc(var(--header-height) + 60px);
}

.service-item {
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.service-item h2 {
    font-size: 2.5rem;
    transition: color 0.3s ease;
}

.service-item p {
    transition: opacity 0.3s ease;
}

.service-item.active h2 {
    color: var(--text-color);
}

.service-item:not(.active) p {
    opacity: 0.5;
}

.preview-pane {
    display: none;
}

.preview-pane.active {
    display: block;
    animation: fade-in 0.5s ease;
}

.preview-pane img {
    max-width: 100%;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ---------------------------------- */
/* 5. Numbers Section (Parallax)      */
/* ---------------------------------- */
.numbers-section {
    background: var(--text-color);
    color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.numbers-section h2,
.numbers-section p {
    color: var(--bg-color);
}

.numbers-section .section-title p {
    opacity: 0.8;
}

.parallax-bg-num {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.05);
    z-index: 0;
    will-change: transform;
}

.p-num-1 {
    top: -100px;
    left: -50px;
}

.p-num-2 {
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
}

.p-num-3 {
    bottom: -150px;
    left: 20%;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.number-item h3 {
    color: var(--bg-color);
    font-size: 3.5rem;
}

.number-item p {
    opacity: 0.8;
}

/* ---------------------------------- */
/* 6. Process Section                 */
/* ---------------------------------- */
.process-timeline {
    border-left: 2px solid var(--border-color);
}

.timeline-item {
    position: relative;
    padding: 40px 0 40px 60px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -11px;
    top: 50px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-color);
    border-radius: 50%;
    background: var(--bg-color);
}

.timeline-number {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* ---------------------------------- */
/* 7. Testimonials & CTA Sections     */
/* ---------------------------------- */
.testimonials-section {
    background-color: #F8F8F8;
}

.testimonial-slider-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-slider {
    position: relative;
    min-height: 200px;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-slide p {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 20px;
}

.slider-controls {
    margin-top: 30px;
}

.slider-controls button {
    background: transparent;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    margin: 0 10px;
}

.cta-section {
    text-align: center;
    background-color: var(--text-color);
}

.cta-section h2,
.cta-section p {
    color: var(--bg-color);
}

.cta-section .btn-primary {
    border-color: var(--bg-color);
    color: var(--bg-color);
}

.cta-section .btn-primary:hover {
    background: var(--bg-color);
    color: var(--text-color);
}

/* ---------------------------------- */
/* 8. Footer & Live Chat              */
/* ---------------------------------- */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-logo {
    color: var(--footer-text) !important;
    font-family: var(--font-heading);
}

.footer-logo img {
    height: 70px;
    filter: brightness(0) invert(1);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a,
#footer-contact p {
    color: var(--footer-text);
    opacity: 0.7;
}

.footer-col a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
}

.live-chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.live-chat-widget button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--text-color);
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-chat-widget svg {
    stroke: var(--bg-color);
    stroke-width: 2;
    fill: none;
    width: 28px;
    height: 28px;
}

.icon-close {
    display: none;
}

.live-chat-widget.active .icon-open {
    display: none;
}

.live-chat-widget.active .icon-close {
    display: block;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--bg-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.live-chat-widget.active .chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* (Internal chat window styles) */
.chat-header {
    padding: 15px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.chat-body {
    height: 250px;
}

.chat-footer input {
    width: 100%;
    border: none;
    padding: 15px;
    border-top: 1px solid var(--border-color);
    outline: none;
}

/* ---------------------------------- */
/* 9. Contact & Legal Pages           */
/* ---------------------------------- */
.contact-page-section,
.legal-page-section {
    padding-top: calc(var(--header-height) + 80px);
}

.contact-title {
    text-align: center;
    margin-bottom: 60px;
}

.contact-page-form {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    background: transparent;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-color);
}

.legal-page-section .container {
    max-width: 800px;
}

.legal-page-section h2 {
    margin: 40px 0 15px;
}

.legal-page-section ul {
    padding-left: 20px;
}

/* ---------------------------------- */
/* 10. Responsiveness                 */
/* ---------------------------------- */
@media (max-width: 1024px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .main-nav.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
    }

    .main-nav.active .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    .main-nav.active .nav-links li {
        margin: 25px 0;
    }

    .main-nav.active .nav-links a {
        font-size: 2rem;
    }

    .services-container {
        grid-template-columns: 1fr;
    }

    .service-list {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .numbers-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-page-form {
        grid-template-columns: 1fr;
    }
}

/* Scroll animation */
.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);
}