/*
   Baker Media - Design System
*/

:root {
    /* Color Palette */
    --accent: #C680FF;
    --accent-light: #D9A8FF;
    --accent-dark: #A855F7;
    --accent-deep: #9333EA;
    --cream: #F8F5F1;
    --cream-dark: #EDE5DC;
    --black: #1A1A1A;
    --dark-gray: #3A3A3A;
    --protocol-bg: #6b6660;
    --mid-gray: #6B7280;
    --light-gray: #E5E7EB;
    --white: #FFFFFF;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;

    /* Spacing: Luxurious & Wide */
    --section-pad: 120px clamp(24px, 1.875vw, 48px);
    --container-max: 1200px;

    /* Shadows - Tuned for a sophisticated 3D feel */
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.08);

    /* Smooth Apple-like transitions */
    --trans-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--black);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--trans-smooth);
}

li {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
}

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

/* Typography Utilities */
.eyebrow {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 3.5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 64px;
    color: var(--black);
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--trans-smooth);
    border: none;
}

/* Solid Purple Button with Expanding Arrow + Pulse Ring */
.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    padding: 14px 28px;
    box-shadow: 0 4px 14px rgba(198, 128, 255, 0.4);
    position: relative;
    overflow: visible;
    padding-right: 28px;
    transition: var(--trans-smooth);
}

.btn-primary::before {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: var(--trans-smooth);
    font-size: 18px;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    border: 2px solid var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: none;
    pointer-events: none;
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    padding-right: 48px;
    box-shadow: 0 8px 20px rgba(198, 128, 255, 0.5);
}

.btn-primary:hover::before {
    right: 24px;
    opacity: 1;
}

.btn-primary:hover::after {
    opacity: 1;
    animation: pulseRing 1.5s ease-out infinite;
}

.btn-nav {
    font-size: 14px;
    padding: 10px 24px;
}

.btn-primary.btn-nav {
    padding-right: 24px;
}

.btn-primary.btn-nav:hover {
    padding-right: 44px;
}

/* Adding depth to dark buttons */
.btn-dark {
    background-color: var(--black);
    color: var(--white);
    padding: 16px 36px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.btn-sm {
    font-size: 13px;
    padding: 14px 28px;
    letter-spacing: 1.5px;
}

.btn-full {
    width: 100%;
    padding: 16px;
}

.btn-text {
    background: transparent;
    color: var(--dark-gray);
    padding: 16px 20px;
    font-weight: 500;
}

.btn-text:hover {
    color: var(--black);
    transform: translateX(4px);
}

/* Navbar - Pill Style */
.navbar {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 100;
    padding: 8px 36px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.navbar.scrolled {
    top: 18px;
    padding: 7px 34px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 70px;
    width: auto;
    transition: height 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform: translate(4px, 2px);
}

.navbar.scrolled .logo-img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: var(--dark-gray);
    transition: color 0.3s;
}

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

/* Mobile Navigation Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1000;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    position: relative;
    transition: background 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--black);
    left: 0;
    transition: transform 0.3s;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(140px, 7.8vw, 200px) clamp(24px, 1.875vw, 48px) clamp(60px, 3.9vw, 100px);
    position: relative;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: -5% -5% -5% -5%;
    /* For parallax */
    background-size: cover;
    background-position: right center;
    z-index: 0;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--cream) 0%, var(--cream) 42%, rgba(248, 245, 241, 0.73) 55%, rgba(248, 245, 241, 0.2) 75%, transparent 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.hero-content {
    max-width: 1100px;
    width: 100%;
    margin-right: auto;
    margin-left: 10.5vw;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(48px, 5.5vw, 80px);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: var(--black);
}

.highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 19px;
    color: var(--mid-gray);
    max-width: 620px;
    line-height: 1.6;
    margin-bottom: 36px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--mid-gray);
    border: 1px solid var(--light-gray);
    border-radius: 50px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    transition: var(--trans-smooth);
}

.tag:hover {
    background: var(--white);
    color: var(--accent-dark);
    border-color: var(--accent-light);
    transform: translateY(-2px);
}

/* Client Logos / Social Proof */
.client-logos {
    padding: 60px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--light-gray);
    overflow: hidden;
}

.logos-subtitle {
    font-size: 13px;
    color: var(--mid-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
}

.logos-scroll-wrapper {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.logos-scroll-track {
    display: flex;
    align-items: center;
    gap: 64px;
    width: max-content;
}

.scroll-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity 0.4s ease;
    flex-shrink: 0;
}

.scroll-logo:hover {
    opacity: 1;
}

/* Services Section */
.services {
    padding: clamp(80px, 4.7vw, 120px) clamp(24px, 1.875vw, 48px) clamp(100px, 6.25vw, 160px);
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--cream);
    border-radius: 16px;
    padding: 36px 32px 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--trans-smooth);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

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

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.service-body {
    flex: 0;
    margin-bottom: 20px;
}

.service-body p {
    font-size: 14px;
    color: var(--mid-gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-body p:last-child {
    margin-bottom: 0;
}

/* Service Card SVG Animation — top-left icon */
.service-anim-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    opacity: 1;
    pointer-events: none;
    margin-bottom: 12px;
}

.service-anim {
    width: 44px;
    height: 44px;
}

/* Service Card — Animated CTA (text slides in, arrow nudges on hover) */
.service-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.service-cta-text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card.group:hover .service-cta-text {
    opacity: 1;
    transform: translateX(0);
}

.service-cta-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.5s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.service-card.group:hover .service-cta-arrow {
    box-shadow: var(--shadow-md);
}

.service-cta-arrow svg {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card.group:hover .service-cta-arrow svg {
    transform: translateX(2px);
}

/* Shared Carousel Architecture */
.carousel-wrapper {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    padding-bottom: 20px;
    /* Space for shadow/hover bleed */
    /* Right fade only to hint at more cards */
    -webkit-mask-image: linear-gradient(to right, black 0%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 0%, black 85%, transparent 100%);
}

.carousel-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 24px;
    /* Slightly tighter gap to ensure the 4th card peeks */
    padding: 12px 12px 40px 12px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-scroll::-webkit-scrollbar {
    display: none;
}

/* Case Studies Carousel Specifics */
.case-studies {
    padding: clamp(80px, 4.7vw, 120px) clamp(24px, 1.875vw, 48px) clamp(80px, 4.7vw, 120px);
    background-color: var(--cream);
    overflow: hidden;
}

.case-card {
    display: block;
    min-width: clamp(340px, 18vw, 460px);
    width: clamp(340px, 18vw, 460px);
    scroll-snap-align: start;
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    transition: var(--trans-smooth);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-image {
    height: clamp(290px, 15vw, 380px);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-industry {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    z-index: 2;
}

.case-content {
    padding: 24px 28px 28px;
}

.case-project-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 6px;
    line-height: 1.3;
}

.case-client {
    font-size: 13px;
    font-weight: 500;
    color: var(--mid-gray);
    margin-bottom: 10px;
}

.case-description {
    font-size: 14px;
    color: var(--mid-gray);
    line-height: 1.5;
}

/* Testimonials Carousel Specifics */
.testimonials {
    padding: clamp(80px, 4.7vw, 120px) clamp(24px, 1.875vw, 48px) clamp(80px, 4.7vw, 120px);
    background-color: var(--cream);
    overflow: hidden;
}

.testimonial-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px 32px;
    height: auto;
    /* Allow natural flex height inside carousel */
    min-height: 200px;
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--accent-light);

    /* Carousel sizing logic mirroring Case Studies */
    min-width: clamp(340px, 18vw, 460px);
    /* Slightly wider text heavy */
    width: clamp(340px, 18vw, 460px);
    scroll-snap-align: start;

    transition: var(--trans-smooth);
    box-shadow: var(--shadow-sm);
    /* Baseline un-flattening shadow */
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.star-rating {
    color: #F5A623;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.quote {
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--dark-gray);
    flex: 1;
    margin-bottom: 28px;
    line-height: 1.7;
    font-weight: 400;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--light-gray);
    /* Fallback for placeholders */
    background-size: cover;
    background-position: center top;
}

.client-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--black);
}

.client-company {
    font-size: 13px;
    color: var(--mid-gray);
    margin-top: 2px;
}

/* FAQ Section */
.faqs {
    padding: var(--section-pad);
    background-color: var(--white);
}

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

.faq-subtitle {
    color: var(--mid-gray);
    font-size: 16px;
    margin-top: -40px;
    margin-bottom: 40px;
}

.accordion {
    border-top: 1px solid var(--light-gray);
}

.accordion-item {
    border-bottom: 1px solid var(--light-gray);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    color: var(--black);
    cursor: pointer;
    text-align: left;
    transition: color 0.3s;
}

.accordion-header:hover {
    color: var(--accent-dark);
}

.accordion-icon {
    font-size: 24px;
    font-weight: 400;
    color: var(--mid-gray);
    transition: transform 0.4s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
    color: var(--accent);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.accordion-item.active .accordion-content {
    padding-bottom: 40px;
}

.accordion-content p {
    color: var(--mid-gray);
    font-size: 15px;
    line-height: 1.7;
}

/* Bottom CTA Section */
.bottom-cta {
    padding: clamp(80px, 5.47vw, 140px) clamp(24px, 1.875vw, 48px) clamp(100px, 6.25vw, 160px);
    background-color: var(--cream);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.bottom-cta-inner {
    max-width: 800px;
    margin: 0 auto;
}

.bottom-cta-headline {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 700;
    color: var(--black);
    line-height: 1.15;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.bottom-cta-accent {
    font-style: italic;
    color: var(--accent);
}

.bottom-cta-body {
    font-size: clamp(14px, 1.5vw, 17px);
    color: var(--mid-gray);
    font-weight: 400;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 48px;
}

/* ===== CTA Button: Glassmorphism + Pulse Ring + Arrow ===== */
.bottom-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(147, 51, 234, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--accent-deep);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(16px, 1.2vw, 20px);
    padding: 20px 52px;
    border-radius: 999px;
    border: 1px solid rgba(147, 51, 234, 0.35);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.bottom-cta-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    border: 2px solid var(--accent-deep);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: none;
}

.bottom-cta-btn:hover {
    background: var(--accent-deep);
    color: var(--white);
    border-color: var(--accent-deep);
    box-shadow: 0 0 40px rgba(147, 51, 234, 0.5);
    transform: translateY(-2px);
}

.bottom-cta-btn:hover::after {
    opacity: 1;
    animation: pulseRing 1.5s ease-out infinite;
}

.bottom-cta-btn:active {
    transform: scale(0.97) translateY(0);
}

.bottom-cta-btn-text {
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.bottom-cta-btn:hover .bottom-cta-btn-text {
    transform: translateX(-12px);
}

.bottom-cta-btn-arrow {
    position: absolute;
    right: 32px;
    width: 24px;
    height: 24px;
    color: var(--white);
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.bottom-cta-btn:hover .bottom-cta-btn-arrow {
    opacity: 1;
    transform: translateX(0);
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 0; }
}

/* Footer Section — Pill / Floating Card */
.footer-outer {
    background: var(--cream);
    padding: 0 clamp(16px, 3vw, 48px) clamp(24px, 4vw, 48px);
}

.footer {
    background-color: var(--accent);
    color: var(--white);
    padding: 80px clamp(60px, 5vw, 100px) 40px;
    border-radius: 32px;
    max-width: 1750px;
    margin: 0 auto;
}

.footer .container {
    max-width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: clamp(36px, 4vw, 72px);
    margin-bottom: 40px;
}

.footer-logo {
    display: block;
    margin-bottom: 12px;
}

.footer-logo .logo-img {
    height: 80px;
}

.brand-desc {
    font-size: 15px;
    margin-top: 0;
    margin-bottom: 0;
    max-width: 320px;
    color: var(--dark-gray);
    line-height: 1.7;
    font-weight: 500;
}

.footer-bottom-contact {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-col h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--white);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    font-size: 14px;
    color: var(--dark-gray);
    font-weight: 500;
}

.footer-col ul a:hover {
    color: var(--white);
}

.cert-list li {
    font-size: 13px;
    color: var(--dark-gray);
    margin-bottom: 12px;
    font-weight: 500;
}

.footer-socials {
    margin-top: 24px;
    display: flex;
    gap: 16px;
}

.footer-socials a {
    color: var(--dark-gray);
}

.footer-socials a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--white);
}

/* Responsive Design — Laptop (13"–16" screens) */
@media (max-width: 1440px) {
    .hero-content {
        margin-left: 7vw;
    }

    .nav-links {
        gap: clamp(16px, 2vw, 36px);
    }

    .case-card {
        min-width: 360px;
        width: 360px;
    }

    .case-image {
        height: 300px;
    }

    .testimonial-card {
        min-width: 360px;
        width: 360px;
    }
}

/* Responsive Design — Tablet */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }

    .footer-grid .brand-col {
        grid-column: 1 / -1;
        display: block;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 8px;
    }

    .footer-grid .brand-col .footer-logo {
        margin-bottom: 12px;
    }

    .footer {
        padding: 60px clamp(40px, 4vw, 80px) 36px;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        gap: 24px;
    }

    .footer-bottom-contact {
        flex-direction: row;
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-bottom-links {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }

    .dot-sep {
        display: none;
    }

    .hero {
        padding: 180px 40px 80px;
    }

    .hero-content {
        margin-left: max(7vw, 84px);
        max-width: 1100px;
    }

    .hero-title {
        font-size: clamp(38px, 5vw, 56px);
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 17px;
        margin-bottom: 32px;
    }

    .hero-cta {
        margin-bottom: 40px;
    }

    .hero-bg-gradient {
        background: linear-gradient(to right, var(--cream) 0%, var(--cream) 45%, rgba(248, 245, 241, 0.8) 65%, transparent 100%);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: auto;
        left: 20%;
        background: rgba(248, 245, 241, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 32px 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.4s;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        gap: 24px;
        border-radius: 0 0 0 24px;
        visibility: hidden;
    }

    .nav-links[data-visible="true"] {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0s;
    }

    .nav-links a {
        font-size: 18px;
    }

    .nav-actions {
        display: none;
    }

    .menu-toggle[aria-expanded="true"] .hamburger {
        background: transparent;
    }

    .menu-toggle[aria-expanded="true"] .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .menu-toggle[aria-expanded="true"] .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
        bottom: auto;
    }

    .hero-bg-gradient {
        background: linear-gradient(to bottom, var(--cream) 0%, rgba(248, 245, 241, 0.92) 40%, rgba(248, 245, 241, 0.75) 70%, rgba(248, 245, 241, 0.85) 100%);
    }

    .hero {
        padding: 120px 24px 60px;
    }

    .hero-content {
        margin-left: 0;
        max-width: 100%;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 16px;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 28px;
        max-width: 100%;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 36px;
    }

    .eyebrow {
        font-size: 12px;
        letter-spacing: 2px;
        margin-bottom: 16px;
    }

    .services {
        padding: 80px 24px 120px;
    }

    .case-studies {
        padding: 80px 24px 80px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 48px 32px 32px;
        border-radius: 24px;
    }

    .footer-outer {
        padding: 0 16px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 28px;
    }

    .footer-col h4 {
        margin-bottom: 14px;
    }

    .footer-col ul li {
        margin-bottom: 8px;
    }

    .footer-grid .brand-col {
        margin-bottom: 0;
        display: block;
        border-bottom: none;
        padding-bottom: 0;
        grid-template-columns: unset;
        column-gap: unset;
        row-gap: unset;
    }

    .footer-grid .brand-col .footer-logo {
        grid-row: unset;
        grid-column: unset;
        margin-bottom: 12px;
    }

    .footer-grid .brand-col .brand-desc {
        grid-row: unset;
        grid-column: unset;
        align-self: unset;
    }

    .footer-logo {
        margin-bottom: 0;
    }

    .footer-logo .logo-img {
        height: 72px;
    }

    .footer-socials {
        margin-top: 16px;
    }

    .scroll-logo {
        height: 28px;
    }

    .logos-scroll-track {
        gap: 40px;
    }

    /* Mobile Carousel Sizing — narrower so next card peeks more on right */
    .case-card,
    .testimonial-card {
        min-width: 72vw;
        width: 72vw;
    }

    .testimonials {
        padding: 80px 24px 80px;
    }

    .case-image {
        height: 240px;
    }

    .footer-bottom-contact {
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding-top: 20px;
    }

    :root {
        --section-pad: 80px 24px;
    }
}