/*
  Digital Marketing Agency Redesign V8
  Theme: Digital Blueprint
  Author: Steven Douglas Properties
  Version: 8.0
*/

/* ---------------------------------- */
/* 1. Global Styles & Variables       */
/* ---------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Mono:wght@400;700&display=swap');

:root {
    --primary-color: #2E4057;
    /* Blueprint Blue */
    --secondary-color: #D94A4A;
    /* Red Marker */
    --bg-light: #F4F4F4;
    /* Textured Paper */
    --text-dark: #1A1A1A;
    /* Graphite */
    --text-medium: #555555;
    --border-color: #D1D1D1;

    --font-heading: 'Bebas Neue', cursive;
    --font-body: 'Space Mono', monospace;
    --header-height: 80px;
}

/* 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.7;
    overflow-x: hidden;
}

body.show-grid {
    background-image:
        linear-gradient(rgba(46, 64, 87, 0.05) 1px, transparent 1px),
        linear-gradient(to right, rgba(46, 64, 87, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 400;
    /* Bebas Neue is already bold */
    letter-spacing: 1.5px;
    line-height: 1.2;
}

h1 {
    font-size: 5rem;
}

h2 {
    font-size: 3.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.2rem;
}

/* Links & Buttons */
a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-light);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-header {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-header.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-lg {
    padding: 16px 35px;
}

section {
    padding: 100px 0;
    border-bottom: 2px dashed var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

/* ---------------------------------- */
/* 2. Header and Navigation           */
/* ---------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    background-color: rgba(244, 244, 244, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--text-dark);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--text-dark);
}

.header-logo img {
    height: 60px;
    filter: brightness(0);
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    font-size: 1.1rem;
    color: var(--text-dark);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 22px;
    cursor: pointer;
    position: relative;
}

.hamburger-menu .bar,
.hamburger-menu::before,
.hamburger-menu::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

.hamburger-menu::before {
    top: 0;
}

.hamburger-menu .bar {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-menu::after {
    bottom: 0;
}

.hamburger-menu.active .bar {
    opacity: 0;
}

.hamburger-menu.active::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger-menu.active::after {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* ---------------------------------- */
/* 3. Hero Section                    */
/* ---------------------------------- */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-headline {
    font-size: 6rem;
    line-height: 1;
}

.line-break {
    display: block;
    height: 1rem;
}

.highlight-text {
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    left: -10px;
    right: -10px;
    bottom: 10px;
    height: 20px;
    background-color: var(--secondary-color);
    opacity: 0.5;
    z-index: -1;
}

.hero-subheadline {
    font-size: 1.1rem;
    max-width: 450px;
    margin: 20px 0 30px;
}

.wireframe-cube-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wireframe-cube {
    width: 250px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 20s infinite linear;
}

.wireframe-cube .face {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 2px solid var(--primary-color);
    background: rgba(46, 64, 87, 0.05);
}

.face.front {
    transform: translateZ(125px);
}

.face.back {
    transform: rotateY(180deg) translateZ(125px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(125px);
}

.face.right {
    transform: rotateY(90deg) translateZ(125px);
}

.face.top {
    transform: rotateX(90deg) translateZ(125px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(125px);
}

@keyframes rotate-cube {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* ---------------------------------- */
/* 4. Services Section                */
/* ---------------------------------- */
.services-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.service-menu ul {
    list-style: none;
}

.service-option {
    padding: 20px;
    border-bottom: 2px solid var(--border-color);
    cursor: pointer;
    position: relative;
}

.service-option h3 {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.service-option p {
    font-size: 0.9rem;
}

.service-option::after {
    content: '→';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--secondary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-option.active,
.service-option:hover {
    border-bottom-color: var(--primary-color);
}

.service-option.active h3,
.service-option:hover h3 {
    color: var(--primary-color);
}

.service-option.active::after {
    opacity: 1;
}

.service-pane {
    display: none;
}

.service-pane.active {
    display: block;
    animation: pane-fade-in 0.5s ease;
}

.service-pane img {
    max-width: 100%;
    border: 2px solid var(--text-dark);
    margin-bottom: 20px;
}

.service-pane h4 {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

@keyframes pane-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ---------------------------------- */
/* 5. Methodology Section             */
/* ---------------------------------- */
.methodology-section {
    background-color: var(--primary-color);
}

.methodology-section .section-title h2,
.methodology-section .section-title p {
    color: var(--bg-light);
}

.methodology-timeline-wrapper {
    position: relative;
    overflow: hidden;
}

.methodology-timeline {
    display: flex;
    gap: 20px;
}

.timeline-line {
    position: absolute;
    top: 40px;
    left: 0;
    height: 2px;
    background: var(--bg-light);
    width: 0;
    transition: width 1s ease-out;
}

.is-visible .timeline-line {
    width: 100%;
}

.methodology-step {
    flex: 1;
    text-align: center;
    color: var(--bg-light);
    padding: 20px;
    position: relative;
}

.step-icon {
    width: 80px;
    height: 80px;
    border: 2px solid var(--bg-light);
    border-radius: 50%;
    margin: 0 auto 20px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.methodology-step h3 {
    color: var(--bg-light);
}

/* ---------------------------------- */
/* 6. Anatomy of a Campaign           */
/* ---------------------------------- */
.anatomy-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.funnel-svg {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto;
}

.funnel-part polygon {
    fill: rgba(46, 64, 87, 0.1);
    stroke: var(--primary-color);
    stroke-width: 1;
    transition: fill 0.3s ease;
}

.funnel-part text {
    font-family: var(--font-body);
    font-weight: 700;
    fill: var(--text-dark);
    pointer-events: none;
}

.funnel-part:hover polygon {
    fill: rgba(217, 74, 74, 0.2);
}

.info-box {
    position: absolute;
    background: var(--bg-light);
    border: 2px solid var(--text-dark);
    padding: 20px;
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.info-box ul {
    list-style: none;
}

.info-box li {
    margin-bottom: 5px;
}

#awareness-info {
    top: 0;
    left: -270px;
}

#consideration-info {
    top: 50%;
    right: -270px;
    transform: translateY(-50%);
}

#conversion-info {
    bottom: 0;
    left: -270px;
}

.funnel-part:hover+.info-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* ---------------------------------- */
/* 7. Testimonials Section            */
/* ---------------------------------- */
.testimonials-section {
    background-color: var(--bg-light);
    border-top: 2px dashed var(--border-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.testimonial-card {
    border-left: 4px solid var(--primary-color);
    padding-left: 30px;
}

.quote-mark {
    font-size: 4rem;
    font-family: var(--font-heading);
    color: var(--secondary-color);
    line-height: 1;
}

blockquote {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

cite {
    font-family: var(--font-body);
    font-style: normal;
    font-weight: 700;
}

/* ---------------------------------- */
/* 8. CTA & Legal & Contact Pages     */
/* ---------------------------------- */
.cta-section {
    background-color: var(--secondary-color);
    text-align: center;
}

.cta-section h2,
.cta-section p {
    color: var(--bg-light);
}

.cta-section .btn-primary {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-color: var(--bg-light);
}

.cta-section .btn-primary:hover {
    background: transparent;
    color: var(--bg-light);
}

.legal-page-section,
.contact-page-section {
    padding-top: calc(var(--header-height) + 60px);
}

.legal-page-section .container,
.contact-page-section .container {
    max-width: 800px;
}

.legal-page-section h2 {
    margin: 40px 0 15px;
}

.legal-page-section ul {
    padding-left: 20px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

#contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-span {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 2px solid var(--text-dark);
    background: transparent;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary-color);
}

.contact-details-wrapper {
    border-left: 2px solid var(--border-color);
    padding-left: 30px;
}

.contact-detail-item {
    margin-bottom: 20px;
}

.contact-detail-item h4 {
    font-size: 1rem;
    letter-spacing: 1px;
}

/* ---------------------------------- */
/* 9. Footer                          */
/* ---------------------------------- */
.main-footer {
    background-color: var(--text-dark);
    color: var(--bg-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding: 60px 0;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--bg-light);
}

.footer-logo {
    color: var(--bg-light) !important;
}

.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 {
    color: var(--bg-light);
    opacity: 0.8;
    font-weight: 400;
}

.footer-col a:hover {
    opacity: 1;
    text-decoration: underline;
}

#footer-contact a {
    font-weight: 700;
}

.footer-bottom {
    border-top: 2px solid var(--primary-color);
    padding: 20px 0;
    text-align: center;
}

/* ---------------------------------- */
/* 10. Responsiveness                 */
/* ---------------------------------- */
@media (max-width: 992px) {

    .nav-links,
    .btn-header {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .main-nav.active {
        display: block;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-light);
    }

    .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;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 40px;
    }

    .hero-subheadline {
        margin-left: auto;
        margin-right: auto;
    }

    .services-layout,
    .testimonial-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .service-details {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .methodology-timeline {
        flex-direction: column;
    }

    .timeline-line {
        width: 2px;
        height: 0;
        left: 40px;
        top: 0;
    }

    .is-visible .timeline-line {
        height: 100%;
    }

    .methodology-step {
        text-align: left;
        padding-left: 60px;
    }

    .step-icon {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 60px;
        height: 60px;
    }

    .anatomy-wrapper {
        display: flex;
        flex-direction: column;
    }

    .info-box {
        position: static;
        transform: none;
        width: 100%;
        opacity: 1;
        visibility: visible;
        display: none;
        margin-top: 10px;
    }

    .funnel-part:hover+.info-box {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}   