/*
========================================
Table of Contents
========================================
1.  Setup: Variables & Global Styles
2.  Typography
3.  Layout & Core Structure
4.  Buttons & Interactive Elements
5.  Header & Navigation
6.  Footer
7.  Hero Section
8.  Services Section
9.  Strategy Builder Section
10. Process Section
11. Testimonials Section
12. CTA Section
13. Contact & Legal Pages
14. Animations & Effects
15. Media Queries (Responsiveness)
========================================
*/

/* 1. Setup: Variables & Global Styles */
:root {
    --black: #0C0C0C;
    --off-white: #FAFAFA;
    --blue: #FF6B00;
    --grey: #1A1A1A;
    --border-grey: #2C2C2C;
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition-fast: 0.3s cubic-bezier(0.77, 0, 0.175, 1);
    --transition-med: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    --header-height: 90px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Oswald:wght@500;700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--off-white);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWYmJitbW1xcXFtbW1oaGhYWFhXV1dpaWheXl5ra2tnZ2dERESAgIAsKyoAAAAIAklEQVR42p3QaQEAIAwDwMC/23cBAxShjDCQnZ3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d1dCg0s/wMAzaIqAAAAAElFTkSuQmCC');
    opacity: 0.04;
    z-index: -1;
    pointer-events: none;
}

/* 2. Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(3rem, 10vw, 8rem);
}

h2 {
    font-size: clamp(2.5rem, 8vw, 6rem);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    max-width: 60ch;
}

a {
    color: inherit;
    text-decoration: none;
}

/* 3. Layout & Core Structure */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-padding {
    padding: 120px 0;
}

.main-content {
    position: relative;
    z-index: 1;
}

.section-title-wrapper {
    border-bottom: 1px solid var(--border-grey);
    padding-bottom: 2rem;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #aaa;
    max-width: 50ch;
    margin-top: 1rem;
}

/* 4. Buttons & Interactive Elements */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    border: 1px solid var(--off-white);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--blue);
    border-color: var(--blue);
    color: var(--off-white);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--blue);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--off-white);
    color: var(--off-white);
}

.btn-secondary:hover {
    background-color: var(--off-white);
    color: var(--black);
}

.magnetic-link {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.1s linear;
}

.magnetic-link>span {
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 5. Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    background-color: #000000e0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo img {
    height: 45px;
    filter: invert(1);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hamburger {
    display: none;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    position: relative;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--off-white);
    position: absolute;
    left: 0;
    transition: transform var(--transition-fast);
}

.hamburger span:first-child {
    top: 0;
}

.hamburger span:last-child {
    bottom: 0;
}

/* 6. Footer */
.main-footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-grey);
    font-size: 0.9rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    height: 45px;
    filter: invert(1);
}

.footer-info p {
    color: #aaa;
}

.footer-contact p,
.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--blue);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-grey);
    padding-top: 30px;
    color: #aaa;
}

.legal-links {
    display: flex;
    gap: 20px;
}

/* 7. Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    letter-spacing: -0.02em;
}

.line-wrapper {
    display: block;
    overflow: hidden;
}

.line-inner {
    display: block;
    transform: translateY(110%);
    animation: revealUp 1s var(--transition-med) forwards;
}

.hero-title .line-wrapper:nth-child(2) .line-inner {
    animation-delay: 0.2s;
}

.hero-title .line-wrapper:nth-child(3) .line-inner {
    animation-delay: 0.4s;
}

.hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 4rem;
    border-top: 1px solid var(--border-grey);
    padding-top: 2rem;
}

.hero-subtitle {
    max-width: 45ch;
    opacity: 0;
    animation: fadeIn 1s 1s forwards;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    opacity: 0;
    animation: fadeIn 1s 1.2s forwards;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
}

.stat-label {
    color: #aaa;
    font-size: 0.9rem;
}

/* 8. Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background-color: var(--border-grey);
    border: 1px solid var(--border-grey);
}

.service-card {
    background-color: var(--black);
    padding: 3rem;
    transition: background-color var(--transition-fast);
}

.service-card:hover {
    background-color: var(--grey);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
}

.card-number {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.card-title {
    margin: 0;
    font-size: 2.5rem;
}

.card-description {
    color: #aaa;
    font-size: 1.1rem;
}

/* 9. Strategy Builder Section */
.strategy-section {
    background-color: var(--grey);
}

.strategy-builder {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.goals-panel h4 {
    margin-bottom: 2rem;
}

.goals-panel ul {
    list-style: none;
}

.goal-btn {
    width: 100%;
    background: none;
    border: none;
    color: #aaa;
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: left;
    padding: 1rem 0;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.goal-btn:hover {
    color: var(--off-white);
}

.goal-btn.active {
    color: var(--blue);
}

.services-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.strategy-service-card {
    background-color: var(--black);
    border: 1px solid var(--border-grey);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 200px;
    opacity: 0.3;
    transition: var(--transition-med);
}

.strategy-service-card.highlight {
    opacity: 1;
    border-color: var(--blue);
}

.strategy-service-card i {
    font-size: 2.5rem;
    color: var(--blue);
}

.strategy-service-card span {
    font-weight: 500;
}

/* 10. Process Section */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background-color: var(--border-grey);
    border-top: 1px solid var(--border-grey);
    border-bottom: 1px solid var(--border-grey);
}

.process-step {
    background-color: var(--black);
    display: flex;
    align-items: center;
    padding: 3rem;
    gap: 4rem;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--blue);
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #aaa;
    margin: 0;
}

/* 11. Testimonials Section */
.testimonials-section {
    background-color: var(--grey);
}

.testimonials-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.testimonial-item {
    border-bottom: 1px solid var(--border-grey);
    padding-bottom: 2rem;
}

.testimonial-item p {
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    font-weight: 500;
    margin-bottom: 1rem;
}

.testimonial-item span {
    color: #aaa;
    font-style: italic;
}

/* 12. CTA Section */
.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6rem 0;
}

.cta-title {
    font-size: clamp(2rem, 7vw, 5rem);
}

.cta-link {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 3rem);
    border-bottom: 2px solid var(--blue);
    color: var(--blue);
}

/* 13. Contact & Legal Pages */
.contact-page-section,
.legal-page-section {
    min-height: 80vh;
}

.page-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
}

.page-subtitle {
    margin: 2rem auto;
    color: #aaa;
    max-width: 60ch;
}

.contact-header,
.legal-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-form-wrapper,
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 1rem;
    color: #aaa;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-grey);
    color: var(--off-white);
    padding: 0.5rem 0;
    font-size: 1.5rem;
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--blue);
}

.legal-content h2 {
    margin: 3rem 0 1rem;
    border-bottom: 1px solid var(--border-grey);
    padding-bottom: 0.5rem;
}

.legal-content ul {
    padding-left: 20px;
    margin: 1rem 0;
}

/* 14. Animations & Effects */
@keyframes revealUp {
    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity var(--transition-med), transform var(--transition-med);
    transition-delay: var(--data-scroll-delay, 0ms);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 15. Media Queries */
@media (max-width: 1024px) {

    .services-grid,
    .services-panel {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .strategy-builder {
        grid-template-columns: 1fr;
    }

    .goals-panel ul {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .goal-btn {
        font-size: 1.5rem;
        width: auto;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    .nav-links,
    .header-cta {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .main-nav.mobile-active {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--black);
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .main-nav.mobile-active .nav-links {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .main-nav.mobile-active .nav-link {
        font-size: 2rem;
    }

    .hamburger.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:last-child {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .cta-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Custom Icons */
[class^="icon-"] {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
}

.icon-seo {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007CF0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
}

.icon-ppc {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007CF0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0L12 2.69z'%3E%3C/path%3E%3C/svg%3E");
}

.icon-content {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007CF0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3C/svg%3E");
}

.icon-brand {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007CF0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 2 7 12 12 22 7 12 2'%3E%3C/polygon%3E%3Cpolyline points='2 17 12 22 22 17'%3E%3C/polyline%3E%3Cpolyline points='2 12 12 17 22 12'%3E%3C/polyline%3E%3C/svg%3E");
}