/* ============================================
   COURSIER EXPRESS — Design System & Styles
   Colors: Blue (#0a1628, #1a3a6b, #2563eb)
           Red (#dc2626, #ef4444, #f87171)
           White (#ffffff, #f8fafc)
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Blues */
    --blue-900: #0e102e;
    --blue-800: #161947;
    --blue-700: #1f235e;
    --blue-600: #292d75;
    --blue-500: #32378b;
    --blue-400: #4f539e;
    --blue-100: #dcddef;
    --blue-50: #efeff6;

    /* Reds */
    --red-700: #a8170c;
    --red-600: #d02012;
    --red-500: #ea2a18;
    --red-400: #f05244;
    --red-100: #fcdbd8;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.25);
    --shadow-glow-red: 0 0 30px rgba(220, 38, 38, .3);
    --shadow-glow-blue: 0 0 30px rgba(37, 99, 235, .3);

    /* Typography */
    --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Transitions */
    --ease: cubic-bezier(.4, 0, .2, 1);

    /* Spacing */
    --section-py: 6rem;
    --container-px: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ---------- Utilities ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-px);
}

.section {
    padding: var(--section-py) 0;
}

.text-red {
    color: var(--red-600);
}

.text-gradient {
    background: linear-gradient(135deg, var(--red-500), var(--blue-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 2rem;
    border-radius: 60px;
    font-family: var(--font);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border: none;
    transition: all .35s var(--ease);
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--red-600), var(--red-500));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(220, 38, 38, .35);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, .45);
    background: linear-gradient(135deg, var(--red-700), var(--red-600));
}

.btn--outline {
    background: rgba(255,255,255,.15);
    color: var(--white);
    border: 2px solid rgba(255,255,255,.5);
    backdrop-filter: blur(4px);
}
.btn--outline:hover {
    background: var(--white);
    color: var(--blue-700);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ---------- Section Headers ---------- */
.section__header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3.5rem;
}

.section__tag {
    display: inline-block;
    padding: .35rem 1.2rem;
    background: var(--blue-50);
    color: var(--blue-500);
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.section__tag--light {
    background: rgba(255,255,255,.15);
    color: var(--white);
}

.section__title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--blue-900);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.section__header--light .section__title {
    color: var(--white);
}

.section__subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all .35s var(--ease);
}
.header.scrolled {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 20px rgba(0,0,0,.08);
    padding: .6rem 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    z-index: 1001;
}
.logo__icon {
    width: 36px;
    height: 36px;
    color: var(--red-600);
}
.logo__text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--white);
    transition: color .35s var(--ease);
}
.header.scrolled .logo__text {
    color: var(--blue-900);
}
.logo__accent {
    color: var(--red-600);
}

/* Nav */
.nav__list {
    display: flex;
    align-items: center;
    gap: .2rem;
}
.nav__link {
    padding: .55rem 1rem;
    font-size: .9rem;
    font-weight: 500;
    color: rgba(255,255,255,.85);
    border-radius: 10px;
    transition: all .3s var(--ease);
}
.nav__link:hover {
    color: var(--white);
    background: rgba(255,255,255,.12);
}
.header.scrolled .nav__link {
    color: var(--gray-600);
}
.header.scrolled .nav__link:hover {
    color: var(--blue-600);
    background: var(--blue-50);
}

.nav__link--cta {
    background: linear-gradient(135deg, var(--red-600), var(--red-500));
    color: var(--white) !important;
    padding: .55rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(220, 38, 38, .3);
}
.nav__link--cta:hover {
    background: linear-gradient(135deg, var(--red-700), var(--red-600)) !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(220, 38, 38, .4);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
    z-index: 1001;
}
.hamburger span {
    width: 26px;
    height: 2.5px;
    background: var(--white);
    border-radius: 4px;
    transition: all .35s var(--ease);
}
.header.scrolled .hamburger span {
    background: var(--blue-900);
}
.hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================
   HERO / CAROUSEL
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    max-height: 1000px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s var(--ease);
}
.carousel__slide.active {
    opacity: 1;
}

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

.carousel__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, .85) 0%,
        rgba(26, 58, 107, .7) 50%,
        rgba(10, 22, 40, .6) 100%
    );
}

.carousel__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--container-px);
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s var(--ease) .3s, transform .6s var(--ease) .3s;
}
.carousel__slide.active .carousel__content {
    opacity: 1;
    transform: translateY(0);
}

.carousel__badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem 1.2rem;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50px;
    color: var(--white);
    font-size: .85rem;
    font-weight: 500;
    width: fit-content;
    margin-bottom: 1.5rem;
}

.carousel__content h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.carousel__content p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(255,255,255,.8);
    max-width: 550px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.carousel__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Carousel Controls */
.carousel__controls {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 10;
}

.carousel__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    cursor: pointer;
    transition: all .3s var(--ease);
}
.carousel__btn:hover {
    background: var(--white);
    color: var(--blue-900);
    border-color: var(--white);
}

.carousel__dots {
    display: flex;
    gap: .6rem;
}
.carousel__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.4);
    background: transparent;
    cursor: pointer;
    transition: all .3s var(--ease);
}
.carousel__dot.active {
    background: var(--red-500);
    border-color: var(--red-500);
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(239, 68, 68, .5);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    background: var(--gray-50);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--gray-100);
    transition: all .4s var(--ease);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--red-500), var(--blue-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.3rem;
}
.service-card__icon--red {
    background: var(--red-100);
    color: var(--red-600);
}
.service-card__icon--blue {
    background: var(--blue-100);
    color: var(--blue-500);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue-900);
    margin-bottom: .6rem;
}

.service-card p {
    font-size: .9rem;
    color: var(--gray-500);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.service-card__tag {
    display: inline-block;
    padding: .3rem .9rem;
    background: var(--blue-50);
    color: var(--blue-600);
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 600;
}

/* ============================================
   ABOUT
   ============================================ */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__content .section__title {
    text-align: left;
}

.about__content p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

.about__features {
    margin: 1.8rem 0 2rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}
.about__features li {
    display: flex;
    align-items: center;
    gap: .8rem;
    font-weight: 500;
    color: var(--gray-700);
    font-size: .95rem;
}
.about__features li svg {
    color: var(--red-500);
    flex-shrink: 0;
}

.about__visual {
    position: relative;
}

.about__image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}
.about__image-wrapper img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.about__float-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--red-600), var(--red-500));
    color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-glow-red);
    text-align: center;
    animation: float 3s ease-in-out infinite;
}
.about__float-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
}
.about__float-label {
    font-size: .8rem;
    font-weight: 500;
    opacity: .9;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ============================================
   STATS
   ============================================ */
.stats {
    position: relative;
    background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
    overflow: hidden;
}
.stats__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(220, 38, 38, .15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, .2) 0%, transparent 50%);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all .4s var(--ease);
}
.stat-card:hover {
    background: rgba(255,255,255,.12);
    transform: translateY(-4px);
}

.stat-card__number {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: .5rem;
    line-height: 1;
}

.stat-card__label {
    color: rgba(255,255,255,.7);
    font-size: .9rem;
    font-weight: 500;
}

.stat-card__bar {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--red-500), var(--blue-400));
    border-radius: 3px;
    margin: 1rem auto 0;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    background: var(--white);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 20px;
    padding: 2rem;
    transition: all .4s var(--ease);
    position: relative;
}
.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--red-100);
    font-family: Georgia, serif;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.testimonial-card__stars {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.testimonial-card__text {
    font-size: .92rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: .8rem;
}
.testimonial-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-500), var(--red-500));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    flex-shrink: 0;
}
.testimonial-card__author strong {
    display: block;
    font-size: .9rem;
    color: var(--blue-900);
}
.testimonial-card__author span {
    font-size: .78rem;
    color: var(--gray-400);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background: var(--gray-50);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: start;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact__info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gray-100);
    transition: all .3s var(--ease);
}
.contact__info-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.contact__info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact__info-card h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--blue-900);
    margin-bottom: .25rem;
}
.contact__info-card p {
    font-size: .88rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* Form */
.contact__form {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-lg);
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form__group {
    margin-bottom: 1.2rem;
}
.form__group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--blue-900);
    margin-bottom: .4rem;
}
.form__group input,
.form__group select,
.form__group textarea {
    width: 100%;
    padding: .85rem 1.2rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-family: var(--font);
    font-size: .9rem;
    color: var(--gray-800);
    background: var(--gray-50);
    transition: all .3s var(--ease);
    outline: none;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    border-color: var(--blue-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}
.form__group textarea {
    resize: vertical;
    min-height: 120px;
}
.form__group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--blue-900);
    color: rgba(255,255,255,.7);
    padding: 4rem 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__brand .logo__text {
    color: var(--white);
}

.footer__brand p {
    margin-top: 1rem;
    font-size: .9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer__socials {
    display: flex;
    gap: .6rem;
    margin-top: 1.5rem;
}
.footer__social {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.6);
    transition: all .3s var(--ease);
}
.footer__social:hover {
    background: var(--red-600);
    color: var(--white);
    transform: translateY(-3px);
}

.footer__links h4 {
    color: var(--white);
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}
.footer__links li {
    margin-bottom: .6rem;
}
.footer__links a {
    font-size: .88rem;
    color: rgba(255,255,255,.6);
    transition: all .3s var(--ease);
}
.footer__links a:hover {
    color: var(--white);
    padding-left: .3rem;
}

.footer__bottom {
    padding: 1.5rem 0;
    text-align: center;
    font-size: .83rem;
    color: rgba(255,255,255,.4);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red-600), var(--red-500));
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow-red);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .4s var(--ease);
    z-index: 100;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, .5);
}

/* ============================================
   ANIMATIONS
   ============================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid items */
.services__grid [data-animate]:nth-child(2),
.testimonials__grid [data-animate]:nth-child(2),
.stats__grid [data-animate]:nth-child(2) {
    transition-delay: .1s;
}
.services__grid [data-animate]:nth-child(3),
.testimonials__grid [data-animate]:nth-child(3),
.stats__grid [data-animate]:nth-child(3) {
    transition-delay: .2s;
}
.services__grid [data-animate]:nth-child(4),
.stats__grid [data-animate]:nth-child(4) {
    transition-delay: .3s;
}
.services__grid [data-animate]:nth-child(5) {
    transition-delay: .4s;
}
.services__grid [data-animate]:nth-child(6) {
    transition-delay: .5s;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-py: 4rem;
    }

    /* Mobile Nav */
    .hamburger {
        display: flex;
    }
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--blue-900);
        padding: 6rem 2rem 2rem;
        transition: right .4s var(--ease);
        box-shadow: -10px 0 30px rgba(0,0,0,.2);
        z-index: 1000;
    }
    .nav.open {
        right: 0;
    }
    .nav__list {
        flex-direction: column;
        gap: .3rem;
    }
    .nav__link {
        display: block;
        padding: .9rem 1rem;
        font-size: 1rem;
        color: rgba(255,255,255,.8);
        border-radius: 12px;
    }
    .nav__link:hover {
        background: rgba(255,255,255,.08);
        color: var(--white);
    }
    .nav__link--cta {
        text-align: center;
        margin-top: .5rem;
    }

    /* Mobile Overlay */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all .3s var(--ease);
    }
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .about__visual {
        order: -1;
    }
    .about__content .section__title {
        text-align: center;
    }
    .about__content {
        text-align: center;
    }
    .about__features {
        align-items: center;
    }

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

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

    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__brand p {
        max-width: 100%;
    }
    .footer__socials {
        justify-content: center;
    }

    .carousel__content h1 {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }
    .carousel__actions {
        flex-direction: column;
    }
    .carousel__actions .btn {
        text-align: center;
        justify-content: center;
    }

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

@media (max-width: 480px) {
    .services__grid {
        grid-template-columns: 1fr;
    }
    .stats__grid {
        grid-template-columns: 1fr;
    }
    .contact__form {
        padding: 1.5rem;
    }
}
