/* ================================================
   VORGESTERN AGENCY - Design System & Styles
   Following 60/30/10 color rule & 8-point grid
   ================================================ */

/* ===== CSS Variables & Design Tokens ===== */
:root {
    /* Color System (60/30/10) */
    --color-primary: #F9F9F9;      /* 60% - Off-white background */
    --color-secondary: #1D2636;     /* 30% - Charcoal blue */
    --color-accent: #00AEEF;        /* 10% - Electric sky (CTAs) */

    --color-white: #FFFFFF;
    --color-gray-light: #E5E5E5;
    --color-gray: #8A8A8A;
    --color-black: #000000;

    /* Typography - Source Superfamily */
    --font-serif: 'Source Serif Pro', serif;
    --font-sans: 'Source Sans Pro', sans-serif;
    --font-mono: 'Source Code Pro', monospace;

    /* Font Sizes (following 8-point grid) */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 20px;
    --text-xl: 24px;
    --text-2xl: 32px;
    --text-3xl: 40px;
    --text-4xl: 48px;
    --text-5xl: 56px;
    --text-6xl: 64px;

    /* Line Heights */
    --leading-display: 1.1;
    --leading-body: 1.4;
    --leading-relaxed: 1.5;

    /* Letter Spacing */
    --tracking-display: -1px;
    --tracking-body: 0;
    --tracking-wide: 1px;

    /* Spacing (8-point grid) */
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-24: 24px;
    --space-32: 32px;
    --space-40: 40px;
    --space-48: 48px;
    --space-56: 56px;
    --space-64: 64px;
    --space-72: 72px;
    --space-80: 80px;
    --space-88: 88px;
    --space-96: 96px;

    /* Navigation height */
    --nav-height: 70px;

    /* Transitions */
    --transition-fast: 200ms ease;
    --transition-base: 300ms ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.1);

    /* Container */
    --container-max: 1200px;
    --container-padding: var(--space-24);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* ===== Global Reset & Base Styles ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-body);
    letter-spacing: var(--tracking-body);
    color: var(--color-secondary);
    background-color: var(--color-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: var(--leading-display);
    letter-spacing: var(--tracking-display);
    color: var(--color-secondary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
    margin-bottom: var(--space-16);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

/* ===== Container ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: var(--space-16) var(--space-32);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-align: center;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn--primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn--secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: 9999;
    transition: all var(--transition-base);
}

.nav__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-16) var(--container-padding);
}

.nav__logo {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-secondary);
    letter-spacing: var(--tracking-display);
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: var(--space-40);
    align-items: center;
}

.nav__menu a {
    color: var(--color-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav__menu a:hover {
    color: var(--color-accent);
}

.nav__cta {
    padding: var(--space-8) var(--space-24);
    background-color: var(--color-accent);
    color: var(--color-white) !important;
    border-radius: var(--radius-sm);
}

.nav__cta:hover {
    background-color: var(--color-secondary);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav__toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-secondary);
    transition: all var(--transition-fast);
}

/* Dropdown Menu Styles */
.nav__item--has-dropdown {
    position: relative;
}

.nav__item--has-dropdown > a::after {
    content: "▼";
    font-size: 10px;
    margin-left: 6px;
    display: inline-block;
    transition: transform var(--transition-fast);
}

.nav__item--has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    list-style: none;
    padding: var(--space-16) 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 1001;
}

.nav__item--has-dropdown:hover .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__dropdown li {
    margin: 0;
}

.nav__dropdown a {
    display: block;
    padding: var(--space-12) var(--space-24);
    color: var(--color-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
    font-weight: 500;
}

.nav__dropdown a:hover {
    background-color: var(--color-primary);
    color: var(--color-accent);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + var(--space-32)) 0 var(--space-96);
    overflow: hidden;
}

.hero__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(249,249,249,0.7) 0%,
        rgba(249,249,249,0.9) 100%);
}

.hero__vector-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.35;
    z-index: 0;
}

.hero__content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero__title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-24);
    color: var(--color-secondary);
}

.hero__subtitle {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    margin: 0 auto var(--space-40);
    max-width: 65ch;
    color: #1a1a1a;
}

.hero__actions {
    display: flex;
    gap: var(--space-16);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Section Defaults ===== */
section {
    padding: var(--space-96) 0;
}

@media (max-width: 768px) {
    section {
        padding: var(--space-64) 0;
    }
}

.section-title {
    margin-bottom: var(--space-48);
}

.section-title--center {
    text-align: center;
}

.section-subtitle--center {
    text-align: center;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-gray);
    text-align: center;
    margin-bottom: var(--space-48);
}

/* ===== About Section ===== */
.about {
    background-color: var(--color-white);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-64);
    align-items: center;
}

.about__text {
    font-size: var(--text-lg);
    margin-bottom: var(--space-24);
}

.about__image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    height: 500px;
}

.about__image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    object-fit: cover;
    object-position: top;
}

/* ===== Services Section ===== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-32);
    margin-bottom: var(--space-64);
}

.service-card {
    display: block;
    padding: var(--space-32);
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card__icon {
    width: var(--space-48);
    height: var(--space-48);
    margin-bottom: var(--space-24);
    color: var(--color-accent);
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
}

.service-card:hover .service-card__icon {
    color: var(--color-secondary);
}

.service-card__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-16);
}

.service-card__text {
    color: var(--color-gray);
    line-height: var(--leading-relaxed);
}

.services__cta {
    text-align: center;
}

/* ===== Portfolio Section ===== */
.portfolio {
    background-color: var(--color-white);
}

.portfolio__header {
    margin-bottom: var(--space-48);
    text-align: center !important;
}

.portfolio__header .section-title,
.portfolio__header .section-subtitle {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-24);
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.portfolio-card__image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.portfolio-card__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top;
    transition: transform 3s ease-in-out;
    transform: translateY(0);
}

.portfolio-card:hover img {
    transform: translateY(calc(-100% + 400px));
}

.portfolio-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0) 40%,
        rgba(29,38,54,0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-32);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.portfolio-card:hover .portfolio-card__overlay {
    opacity: 1;
}

.portfolio-card__overlay h4 {
    color: var(--color-white);
    font-size: var(--text-xl);
    margin-bottom: var(--space-8);
}

.portfolio-card__metric {
    color: var(--color-accent);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

/* ===== Testimonials Section ===== */
.testimonials {
    background-color: var(--color-white);
    padding: var(--space-64) 0;
}

.testimonials-slider {
    position: relative;
}

.testimonials-slider__track {
    display: flex;
    gap: var(--space-32);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: var(--space-8) 0 var(--space-24);
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.testimonials-slider__track::-webkit-scrollbar {
    display: none;
}

/* keep homepage testimonial styles below */

.testimonial-card {
    flex: 0 0 100%;
    max-width: 1000px;
    margin: 0 auto;
    scroll-snap-align: center;
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: var(--space-48);
    align-items: center;
    padding: var(--space-48);
    background: linear-gradient(135deg, var(--color-accent) 0%, #0088CC 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 174, 239, 0.25);
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.testimonial-card.active {
    /* Active class no longer needed for display, but kept for compatibility */
}

.testimonial-card__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-32);
}

.testimonial-card__quote-wrapper {
    position: relative;
}

.testimonial-card__quote-wrapper::before {
    display: none;
}

.testimonial-card__quote {
    margin: 0;
    font-size: var(--text-lg);
    line-height: 1.6;
    color: var(--color-white);
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.testimonial-card__author {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    color: var(--color-white);
    position: relative;
    z-index: 1;
}

.testimonial-card__name {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-white);
}

.testimonial-card__title {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.testimonial-card__company {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: var(--space-8);
}

.testimonial-card__image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-card__image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--color-white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.testimonials-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    background-color: var(--color-accent);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 174, 239, 0.3);
    color: var(--color-white);
}

.testimonials-slider__arrow:hover {
    background-color: var(--color-secondary);
    box-shadow: 0 6px 24px rgba(29, 38, 54, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.testimonials-slider__arrow--prev {
    left: -32px;
}

.testimonials-slider__arrow--next {
    right: -32px;
}

.testimonials-slider__arrow svg {
    color: inherit;
    width: 32px;
    height: 32px;
}

.testimonials-slider__dots {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    margin-top: var(--space-48);
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-gray-light);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.testimonial-dot.active {
    background-color: var(--color-accent);
    width: 40px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 174, 239, 0.4);
}

.testimonial-dot:hover {
    background-color: var(--color-accent);
    opacity: 0.6;
}

/* ===== Process Section ===== */
.process {
    background-color: var(--color-white);
}

.process__timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-32);
    margin-bottom: var(--space-64);
    position: relative;
}

.process__timeline::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg,
        var(--color-accent) 0%,
        var(--color-gray-light) 100%);
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-step__number {
    width: var(--space-56);
    height: var(--space-56);
    margin: 0 auto var(--space-24);
    background-color: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    font-weight: 700;
    transition: all var(--transition-base);
}

.process-step:hover .process-step__number {
    background-color: var(--color-secondary);
    transform: scale(1.1);
}

.process-step__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
}

.process-step__text {
    color: var(--color-gray);
    font-size: var(--text-sm);
}

.process__cta {
    text-align: center;
}

/* ===== Lead Magnet Section ===== */
/* ===== Resources Section ===== */
.resources-section {
    padding: var(--space-96) 0;
    background: linear-gradient(135deg, #2a3544 0%, #1f2937 100%);
    position: relative;
}

.resources-section__header {
    text-align: center;
    margin-bottom: var(--space-64);
}

.resources-section .section-title {
    color: #ffffff;
}

.resources-section__subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-24);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.resources-section__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
    color: #00AEEF;
    font-weight: 600;
    font-size: var(--text-base);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.resources-section__link:hover {
    gap: var(--space-12);
    color: #ffffff;
}

.resources-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.resources-slider__track {
    display: flex;
    gap: var(--space-24);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: var(--space-8) var(--space-48) var(--space-24);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 174, 239, 0.5) rgba(255, 255, 255, 0.1);
}

.resources-slider__track::-webkit-scrollbar {
    height: 8px;
}

.resources-slider__track::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.resources-slider__track::-webkit-scrollbar-thumb {
    background: rgba(0, 174, 239, 0.5);
    border-radius: 4px;
}

.resources-slider__track::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 174, 239, 0.8);
}

.resource-card {
    flex: 0 0 350px;
    scroll-snap-align: center;
    background: #ffffff;
    border-radius: 12px;
    padding: var(--space-32);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    max-height: 380px;
}

@media (max-width: 768px) {
    .resource-card {
        flex: 0 0 85vw;
        scroll-snap-align: center;
    }
}

/* Resources pagination dots */
.resources-slider__dots {
    display: none;
}

@media (max-width: 768px) {
    .resources-slider__dots {
        display: flex;
        justify-content: center;
        gap: var(--space-8);
        margin-top: var(--space-24);
    }

    .resources-slider__dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        border: none;
        padding: 0;
        cursor: pointer;
        transition: all var(--transition-fast);
    }

    .resources-slider__dot.active {
        background: rgba(0, 174, 239, 1);
        transform: scale(1.2);
    }
}

.resource-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #d1d5db;
}

.resource-card__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #00AEEF 0%, #0088CC 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-24);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.25);
}

.resource-card:hover .resource-card__icon {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 174, 239, 0.35);
}

.resource-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.resource-card__category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #00AEEF;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: var(--space-12);
}

.resource-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: var(--space-16);
    line-height: 1.5;
}

.resource-card__excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: var(--space-16);
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.resource-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-16);
    border-top: 1px solid var(--color-border);
}

.resource-card__time {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.resource-card__link {
    font-size: 14px;
    font-weight: 700;
    color: #00AEEF;
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.resource-card__link:hover {
    color: #0088CC;
    gap: 8px;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: var(--space-64) 0 0;
}

.footer__container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-48);
    padding-bottom: var(--space-48);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__logo {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: var(--tracking-display);
}

.footer__tagline {
    margin-top: var(--space-8);
    opacity: 0.8;
    font-size: var(--text-sm);
}

.footer__links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-48);
}

.footer__links-col {
    display: flex;
    flex-direction: column;
}

.footer__heading {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-16);
    color: var(--color-white);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    list-style: none;
}

.footer__links a {
    color: var(--color-white);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer__links a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer__contact {
    text-align: right;
}

.footer__email {
    display: block;
    color: var(--color-accent);
    font-size: var(--text-lg);
    margin-bottom: var(--space-16);
}

.footer__email:hover {
    color: var(--color-white);
}

.footer__bottom {
    padding: var(--space-24) 0;
    font-size: var(--text-sm);
}

.footer__bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.6;
}

.footer__legal {
    display: flex;
    gap: var(--space-24);
}

.footer__legal a {
    color: var(--color-white);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.footer__legal a:hover {
    opacity: 1;
    color: var(--color-accent);
}

/* ===== Legal Pages ===== */
.hero--simple {
    padding: calc(var(--space-96) + 60px) 0 var(--space-64);
    background: linear-gradient(135deg,
        var(--color-white) 0%,
        var(--color-primary) 100%);
    text-align: center;
}


.container--narrow {
    max-width: 800px;
}

.legal-content {
    padding: var(--space-96) 0;
    background-color: var(--color-white);
}

.legal-section {
    margin-bottom: var(--space-48);
}

.legal-section h2 {
    font-size: var(--text-2xl);
    color: var(--color-secondary);
    margin-bottom: var(--space-24);
}

.legal-section h3 {
    font-size: var(--text-xl);
    color: var(--color-secondary);
    margin-top: var(--space-32);
    margin-bottom: var(--space-16);
}

.legal-section p {
    color: var(--color-gray);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-16);
}

.legal-section a {
    color: var(--color-accent);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--color-secondary);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(var(--space-32));
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: 1fr;
    }

    .process__timeline {
        grid-template-columns: 1fr;
        gap: var(--space-48);
    }

    .process__timeline::before {
        top: 0;
        bottom: 0;
        left: 28px;
        right: auto;
        width: 2px;
        height: auto;
    }

    .process-step {
        display: grid;
        grid-template-columns: var(--space-56) 1fr;
        gap: var(--space-24);
        text-align: left;
    }
}

@media (max-width: 768px) {
    :root {
        --text-5xl: 40px;
        --text-6xl: 48px;
        --text-4xl: 32px;
        --text-3xl: 28px;
        --text-2xl: 24px;
        --container-padding: var(--space-16);
    }

    /* Smooth scrolling on mobile - no snapping */
    html {
        scroll-behavior: smooth;
    }

    /* Navigation stays fixed */
    .nav {
        position: fixed;
        z-index: 9999;
    }

    .nav__menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        gap: 0;
        padding: var(--space-16) 0;
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav__menu--active {
        display: flex;
        max-height: 500px;
    }

    .nav__menu li {
        width: 100%;
    }

    .nav__menu > li > a {
        display: block;
        padding: var(--space-16) var(--space-24);
        border-bottom: 1px solid var(--color-gray-light);
    }

    .nav__toggle {
        display: flex;
    }

    /* Mobile dropdown styles - collapsed by default */
    .nav__item--has-dropdown {
        position: relative;
    }

    .nav__item--has-dropdown > a::after {
        transform: rotate(0deg) !important;
        transition: transform var(--transition-fast);
    }

    .nav__item--has-dropdown.active > a::after {
        transform: rotate(180deg) !important;
    }

    .nav__dropdown {
        position: static;
        display: none;
        padding-left: var(--space-24);
        margin-top: var(--space-8);
        background-color: transparent;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: auto;
    }

    .nav__item--has-dropdown.active .nav__dropdown {
        display: block;
    }

    .nav__dropdown a {
        padding: var(--space-8) var(--space-16);
        font-size: var(--text-sm);
        color: var(--color-secondary);
    }

    .nav__dropdown a:hover {
        color: var(--color-accent);
        background-color: rgba(0, 174, 239, 0.05);
    }

    /* Hero optimizations */
    .hero {
        min-height: 50vh;
        padding: var(--space-96) 0;
    }

    .hero__title {
        font-size: var(--text-4xl);
        margin-bottom: var(--space-24);
    }

    .hero__subtitle {
        font-size: var(--text-lg);
        margin-bottom: var(--space-32);
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
        gap: var(--space-16);
    }

    .hero__actions .btn {
        padding: var(--space-16) var(--space-32);
    }

    /* About section mobile */
    .about__text {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Make services a horizontal slider on mobile */
    .services {
        position: relative;
        padding-bottom: var(--space-32);
    }

    .services__cta {
        margin-top: var(--space-32);
    }

    .services__grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        gap: var(--space-16);
        padding: 0 var(--space-16) var(--space-16);
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        touch-action: pan-x;
    }

    .service-card {
        min-width: 85vw;
        max-width: 85vw;
        scroll-snap-align: center;
        flex-shrink: 0;
    }

    /* Hide scrollbar but keep functionality */
    .services__grid::-webkit-scrollbar {
        display: none;
    }

    .services__grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* Add scroll indicators (dots) - show on mobile */
    .services__indicators {
        display: flex !important;
        justify-content: center;
        gap: var(--space-8);
        margin-top: var(--space-24);
    }

    .services__indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: var(--color-gray-light);
        border: none;
        padding: 0;
        cursor: pointer;
        transition: all var(--transition-fast);
    }

    .services__indicator.active {
        width: 24px;
        border-radius: 4px;
        background-color: var(--color-accent);
    }

    /* Fix about section image on mobile */
    .about__grid {
        grid-template-columns: 1fr;
    }

    .about__image {
        height: 300px !important;
        max-height: 300px !important;
        overflow: hidden;
    }

    .about__image img {
        height: 300px !important;
        width: 100%;
        object-fit: cover;
        object-position: top;
        transform: none !important;
    }

    /* Make portfolio a slider on mobile */
    .portfolio {
        position: relative;
        padding-bottom: var(--space-32);
    }

    .portfolio__grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        gap: var(--space-16);
        padding: 0 var(--space-16) var(--space-16);
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        touch-action: pan-x;
    }

    .portfolio-card {
        min-width: 85vw;
        max-width: 85vw;
        scroll-snap-align: center;
        flex-shrink: 0;
    }

    .portfolio__grid::-webkit-scrollbar {
        display: none;
    }

    .portfolio__grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* Add scroll indicators (dots) - show on mobile */
    .portfolio__indicators {
        display: flex !important;
        justify-content: center;
        gap: var(--space-8);
        margin-top: var(--space-24);
    }

    .portfolio__indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: var(--color-gray-light);
        border: none;
        padding: 0;
        cursor: pointer;
        transition: all var(--transition-fast);
    }

    .portfolio__indicator.active {
        width: 24px;
        border-radius: 4px;
        background-color: var(--color-accent);
    }

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__links-grid {
        grid-template-columns: 1fr;
        gap: var(--space-24);
    }

    .footer__links-col {
        text-align: left;
    }

    .footer__heading {
        cursor: pointer;
        position: relative;
        padding-right: var(--space-24);
        user-select: none;
    }

    .footer__heading::after {
        content: "▼";
        position: absolute;
        right: 0;
        font-size: 10px;
        transition: transform var(--transition-fast);
    }

    .footer__links-col.active .footer__heading::after {
        transform: rotate(180deg);
    }

    .footer__links {
        display: none;
        padding-top: var(--space-12);
    }

    .footer__links-col.active .footer__links {
        display: flex;
    }

    .footer__contact {
        text-align: center;
    }

    .footer__bottom-content {
        flex-direction: column;
        gap: var(--space-16);
        text-align: center;
    }

    /* Testimonial mobile styles - horizontal scroll */

    .testimonials-slider {
        padding: 0 var(--space-16) var(--space-24);
        max-width: 100%;
        position: relative;
    }

    .testimonials-slider__track {
        padding: var(--space-8) 0 var(--space-16);
        touch-action: pan-x;
        overflow-y: hidden;
    }

    .testimonial-card {
        flex: 0 0 85vw !important;
        padding: var(--space-24) !important;
        display: flex !important;
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: var(--space-16) !important;
        min-height: auto !important;
    }

    .testimonial-card__content {
        gap: var(--space-24);
        width: 100%;
    }

    .testimonial-card__quote {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 0;
        width: 100%;
    }

    .testimonial-card__author {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: var(--space-12);
        width: 100%;
    }

    .testimonial-card__image-wrapper {
        width: 48px;
        height: 48px;
        margin: 0;
        flex-shrink: 0;
        order: -1;
    }

    .testimonial-card__image {
        width: 48px;
        height: 48px;
        border: 2px solid var(--color-white);
    }

    .testimonial-card__name {
        font-size: 14px;
    }

    .testimonial-card__title {
        font-size: 13px;
    }

    .testimonial-card__company {
        font-size: 12px;
        margin-top: 2px;
    }

    .testimonials-slider__arrow {
        display: none;
    }

    .testimonials-slider__dots {
        display: flex;
        gap: var(--space-8);
        margin-top: var(--space-24);
    }

    .testimonial-dot {
        width: 8px;
        height: 8px;
    }

    .testimonial-dot.active {
        width: 24px;
    }

    /* Process timeline mobile fix */
    .process__timeline {
        grid-template-columns: 1fr;
        gap: var(--space-32);
    }

    .process__timeline::before {
        display: none;
    }

    .process-step {
        display: block;
        text-align: center;
    }

    .process-step__number {
        margin: 0 auto var(--space-16);
    }

    .process-step__title {
        font-size: var(--text-lg);
    }

    .process-step__text {
        font-size: var(--text-sm);
    }

    /* Lead magnet mobile - use default section padding */

    .lead-magnet .section-title {
        font-size: 28px;
        margin-bottom: var(--space-16);
    }

    .lead-magnet__text {
        font-size: 18px;
    }

    .lead-magnet__subtext {
        font-size: 14px;
        margin-bottom: var(--space-24);
    }

    .lead-magnet__form .btn {
        width: 100%;
        padding: var(--space-16);
    }

    /* Resources section mobile */
    .resources-section {
        padding: var(--space-64) 0 var(--space-32);
    }

    .resources-section__header {
        padding: 0 var(--space-16);
        margin-bottom: var(--space-24);
    }

    .resources-section .section-title {
        font-size: 28px;
        margin-bottom: var(--space-16);
    }

    .resources-section__subtitle {
        font-size: 16px;
        margin-bottom: var(--space-16);
    }

    .resources-slider__track {
        padding: var(--space-8) var(--space-16) var(--space-16);
        gap: var(--space-16);
        touch-action: pan-x;
        overflow-y: hidden;
    }

    .resource-card {
        flex: 0 0 85vw;
        max-width: 85vw;
        min-height: 320px;
        max-height: 320px;
        padding: var(--space-24);
        scroll-snap-align: center;
    }

    .resource-card__icon {
        width: 48px;
        height: 48px;
        margin-bottom: var(--space-16);
    }

    .resource-card__icon svg {
        width: 24px;
        height: 24px;
    }

    .resource-card__title {
        font-size: 16px;
        margin-bottom: var(--space-12);
    }

    .resource-card__excerpt {
        font-size: 13px;
        margin-bottom: var(--space-12);
        -webkit-line-clamp: 2;
    }

    .resource-card__category {
        font-size: 10px;
    }

    .resource-card__time {
        font-size: 11px;
    }

    .resource-card__link {
        font-size: 13px;
    }

    /* Tighter section titles on mobile */
    .section-title {
        font-size: 28px;
        margin-bottom: var(--space-32);
    }

    .section-subtitle {
        font-size: 16px;
        margin-bottom: var(--space-32);
    }

    /* Buttons full width on mobile */
    .btn {
        width: 100%;
        text-align: center;
    }

    .services__cta .btn,
    .process__cta .btn,
    .footer__contact .btn {
        width: 100%;
    }
}

@media (max-width: 375px) {
    :root {
        --container-padding: var(--space-16);
    }

    .hero__title {
        font-size: var(--text-3xl);
    }

    .testimonial-card {
        padding: var(--space-32) var(--space-24);
    }

    .testimonial-card::before {
        font-size: 60px;
        top: var(--space-24);
        left: var(--space-24);
    }

    .testimonial-card__quote {
        font-size: var(--text-base);
        margin-bottom: var(--space-24);
    }

    .testimonial-card__author {
        font-size: var(--text-sm);
    }

    .testimonials-slider {
        padding: var(--space-16) var(--space-48);
    }

    .testimonials-slider__track {
        min-height: 280px;
    }

    .testimonials-slider__arrow {
        width: var(--space-40);
        height: var(--space-40);
    }

    .testimonials-slider__arrow svg {
        width: 20px;
        height: 20px;
    }
}
