/* ============================================================
   MIA WEBSITE — PREMIUM DESIGN SYSTEM v2.0
   Fonts: Space Grotesk (headings) + DM Sans (body)
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
    /* Brand */
    --primary:          #1E62A7;
    --primary-dark:     #154E8A;
    --primary-light:    #4A8FD4;
    --accent-red:       #DC2626;

    /* Backgrounds */
    --bg-main:          #F0F3FA;
    --bg-white:         #FFFFFF;
    --bg-alt:           #E6EBF5;
    --bg-dark:          #0C1628;
    --bg-dark-2:        #142035;
    --bg-dark-card:     rgba(255,255,255,0.06);

    /* Text */
    --text-heading:     #0C1628;
    --text-body:        #4A5568;
    --text-muted:       #8A97B0;
    --text-white:       #F8FAFC;
    --text-white-muted: rgba(248,250,252,0.75);

    /* Gradients */
    --grad-primary:     linear-gradient(135deg, #1E62A7 0%, #2D8AE8 100%);
    --grad-dark:        linear-gradient(135deg, #0C1628 0%, #142035 100%);
    --grad-hero:        linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(12,22,40,0.72) 100%);
    --grad-card-top:    linear-gradient(180deg, rgba(30,98,167,0.08) 0%, transparent 100%);
    --grad-blue-fade:   linear-gradient(135deg, rgba(30,98,167,0.12) 0%, transparent 60%);

    /* Shadows */
    --shadow-xs:   0 1px 4px rgba(12,22,40,0.06);
    --shadow-sm:   0 2px 12px rgba(12,22,40,0.08);
    --shadow-md:   0 8px 28px rgba(12,22,40,0.10);
    --shadow-lg:   0 20px 50px rgba(12,22,40,0.14);
    --shadow-blue: 0 8px 28px rgba(30,98,167,0.22);
    --shadow-card: 0 4px 20px rgba(12,22,40,0.07);
    --shadow-card-hover: 0 16px 44px rgba(12,22,40,0.14);

    /* Borders */
    --border-light:   rgba(30,98,167,0.12);
    --border-primary: rgba(30,98,167,0.25);
    --border-dark:    rgba(255,255,255,0.10);

    /* Radii */
    --r-sm:   8px;
    --r-md:   14px;
    --r-lg:   22px;
    --r-xl:   32px;
    --r-pill: 100px;

    /* Transitions */
    --t:        0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --t-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-slow:   0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Legacy aliases */
    --bg-body:        var(--bg-main);
    --text-main:      var(--primary);
    --primary-blue:   var(--primary);
    --highlight-black: var(--text-heading);
    --transition:     var(--t);
}

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

/* ── Base ───────────────────────────────────────────────────── */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    /* scroll-behavior managed by Lenis — do not set smooth here */
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--t);
}

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

.hidden { display: none !important; }

/* ── Utilities ──────────────────────────────────────────────── */
.section-padding {
    padding: 100px 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: flex-start;
}

.dark-bg {
    background: var(--grad-dark);
}

/* ── Section Heading System ─────────────────────────────────── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(30,98,167,0.08);
    border: 1px solid var(--border-primary);
    padding: 6px 14px;
    border-radius: var(--r-pill);
    margin-bottom: 16px;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

h2 span,
h3 span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Override legacy span color */
span {
    color: inherit;
}

.divider {
    height: 4px;
    width: 52px;
    background: var(--grad-primary);
    border-radius: 2px;
    margin: 18px 0;
}

.center-div {
    margin: 18px auto;
}

.section-desc {
    max-width: 680px;
    margin: 0 auto 52px;
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* ── Cards ──────────────────────────────────────────────────── */
.glass-panel {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    padding: 32px;
    box-shadow: var(--shadow-card);
    transition: transform var(--t-bounce), box-shadow var(--t);
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-primary);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 28px;
    border-radius: var(--r-sm);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: transform var(--t-bounce), box-shadow var(--t), background var(--t);
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background var(--t);
}

.btn:hover::after {
    background: rgba(255,255,255,0.1);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.primary-btn {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: var(--shadow-blue);
}

.primary-btn:hover {
    box-shadow: 0 12px 36px rgba(30,98,167,0.38);
    color: #fff;
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.secondary-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-blue);
}

/* ── Navigation ─────────────────────────────────────────────── */
.glass-nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(240,243,250,0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--t);
}

.glass-nav.scrolled {
    background: rgba(240,243,250,0.97);
    border-bottom-color: var(--border-primary);
    box-shadow: 0 4px 24px rgba(12,22,40,0.08);
    padding: 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 5%;
    gap: 14px;
    position: relative;
    transition: padding var(--t);
}

.glass-nav.scrolled .nav-container {
    padding: 10px 5%;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    text-decoration: none;
}

.logo-container img {
    height: 78px;
    object-fit: contain;
    margin-bottom: 4px;
    transition: height var(--t);
}

.glass-nav.scrolled .logo-container img {
    height: 56px;
}

.logo-container h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.01em;
    margin: 0;
    line-height: 1.15;
}

.logo-container .tagline {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-body);
    margin: 0;
    letter-spacing: 0.01em;
}

.logo-container .tagline-red {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-red);
    margin: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.logo-container:hover h1 {
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

.nav-links a {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 7px 12px;
    border-radius: var(--r-sm);
    color: var(--text-heading);
    position: relative;
    transition: all var(--t);
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(30,98,167,0.07);
}

.nav-links a.active {
    color: var(--primary);
    background: rgba(30,98,167,0.1);
}

.btn-contact {
    background: var(--grad-primary) !important;
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: var(--r-sm) !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    box-shadow: var(--shadow-blue);
    margin-left: 4px;
}

.btn-contact:hover {
    box-shadow: 0 8px 24px rgba(30,98,167,0.40) !important;
    transform: translateY(-2px);
    background: var(--grad-primary) !important;
    color: #fff !important;
}

.btn-contact::after { display: none; }

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
    position: absolute;
    top: 22px;
    right: 5%;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    background: rgba(30,98,167,0.08);
    transition: var(--t);
}

.mobile-menu-btn:hover {
    background: rgba(30,98,167,0.15);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--grad-hero);
    z-index: 1;
}

.hero-content {
    max-width: 840px;
    z-index: 2;
    position: relative;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-white);
    letter-spacing: -0.03em;
}

.hero h1 span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-white-muted);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-buttons .secondary-btn {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.08);
}

.hero-buttons .secondary-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: #fff;
    box-shadow: none;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 10;
    pointer-events: none;
}

.slider-prev, .slider-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--t);
    pointer-events: auto;
    backdrop-filter: blur(8px);
}

.slider-prev:hover, .slider-next:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: var(--shadow-blue);
}

.slider-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all 0.4s ease;
    border: none;
}

.dot.active {
    background: #fff;
    width: 28px;
    border-radius: 4px;
}

/* ── About Section ──────────────────────────────────────────── */
.about {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30,98,167,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.about p {
    margin-bottom: 18px;
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.75;
}

.highlights {
    list-style: none;
    margin-top: 28px;
}

.highlights li {
    margin-bottom: 13px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-heading);
    font-weight: 500;
}

.highlights i {
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: rgba(30,98,167,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* Stat Cards */
.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.stat-card {
    text-align: center;
    padding: 28px 24px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: transform var(--t-bounce), box-shadow var(--t);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-primary);
    border-radius: var(--r-md) var(--r-md) 0 0;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-primary);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
    transition: transform var(--t-bounce);
}

.stat-card:hover .stat-icon {
    transform: scale(1.18) rotate(5deg);
}

.stat-card h3 {
    font-size: 2.6rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.stat-card p {
    margin-bottom: 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Industries Section ─────────────────────────────────────── */
.industries {
    background: var(--grad-dark);
    position: relative;
    overflow: hidden;
}

.industries::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30,98,167,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.industries h2 {
    color: var(--text-white);
}

.industries .section-desc {
    color: var(--text-white-muted);
}

.industries .divider {
    background: var(--grad-primary);
}

/* Industry Marquee */
.industry-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.marquee-content {
    display: inline-block;
    animation: marquee 120s linear infinite;
}

.industry-marquee:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-block;
    padding: 11px 26px;
    margin: 0 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--r-pill);
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    transition: all 0.25s ease;
    cursor: default;
    letter-spacing: 0.01em;
}

.marquee-item:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.06);
    box-shadow: var(--shadow-blue);
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Gallery Section ────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.gallery-item {
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--border-light);
    cursor: pointer;
    background: var(--bg-alt);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-bounce), box-shadow var(--t);
}

.img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 24px 20px;
    background: linear-gradient(to top, rgba(12,22,40,0.95) 0%, transparent 100%);
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-primary);
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.gallery-overlay h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: #fff;
}

.gallery-overlay p {
    color: var(--text-white-muted);
    font-size: 0.9rem;
}

/* ── Useful Links Section ───────────────────────────────────── */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

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

.link-card i {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 18px;
    display: block;
    transition: transform var(--t-bounce), color var(--t);
}

.link-card h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: var(--text-heading);
}

.link-card p {
    font-size: 0.9rem;
    color: var(--text-body);
}

.link-card:hover i {
    transform: scale(1.2) rotate(8deg);
    color: var(--primary-dark);
}

/* ── Contact Section ────────────────────────────────────────── */
.contact {
    background: var(--bg-main);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
}

.info-item i {
    font-size: 1.1rem;
    color: #fff;
    background: var(--grad-primary);
    padding: 14px;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-blue);
}

.info-item h4 {
    margin-bottom: 4px;
    font-size: 1rem;
    color: var(--text-heading);
    font-weight: 600;
}

.info-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.6;
}

/* Form */
.form-group {
    margin-bottom: 18px;
}

input,
textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-white);
    border: 1.5px solid var(--border-primary);
    border-radius: var(--r-sm);
    color: var(--text-heading);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    transition: var(--t);
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,98,167,0.12);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    margin-top: 8px;
    border-radius: var(--r-sm);
    letter-spacing: 0.02em;
}

.form-message {
    padding: 14px 18px;
    margin-top: 18px;
    background: rgba(30,98,167,0.06);
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: var(--r-sm);
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
}

.map-container {
    margin-top: 64px;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-md);
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
    background: var(--bg-dark);
    border-top: 3px solid var(--primary);
    padding: 72px 5% 28px;
    color: var(--text-white-muted);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(30,98,167,0.12) 0%, transparent 65%);
    pointer-events: none;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1.6fr 1fr 1.6fr 0.8fr 0.9fr;
    gap: 36px;
    margin-bottom: 48px;
}

footer h4,
.footer-useful-links h4,
.footer-address h4,
.footer-links h4,
.footer-social h4 {
    color: var(--text-white);
    margin-bottom: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-useful-links a,
.footer-links a {
    display: block;
    padding: 7px 0;
    border-bottom: 1px solid var(--border-dark);
    font-size: 0.88rem;
    color: var(--text-white-muted);
    text-decoration: none;
    transition: var(--t);
    font-weight: 400;
}

.footer-useful-links a:last-child { border-bottom: none; }

.footer-useful-links a:hover,
.footer-links a:hover {
    color: var(--text-white);
    padding-left: 6px;
    border-bottom-color: rgba(30,98,167,0.3);
}

.footer-address p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 14px;
    color: var(--text-white-muted);
}

.footer-contact-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.88rem;
    color: var(--text-white-muted);
}

.footer-contact-line i {
    color: var(--primary-light);
    width: 16px;
    flex-shrink: 0;
}

.footer-logo {
    height: 54px;
    margin-bottom: 16px;
    display: block;
    background: rgba(255,255,255,0.12);
    padding: 8px 14px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(255,255,255,0.15);
}

.footer-brand p {
    font-size: 0.92rem;
    color: var(--text-white-muted);
    line-height: 1.65;
}

.footer-links a {
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-dark);
    padding: 7px 0;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    color: var(--text-white-muted);
    transition: var(--t);
    font-size: 0.95rem;
}

.social-icons a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.88rem;
    color: var(--text-white-muted);
}

.footer-bottom a {
    color: var(--primary-light);
    font-weight: 600;
}

.footer-bottom a:hover {
    color: #fff;
}

/* ── Animations ─────────────────────────────────────────────── */
/* Gallery / Team / Vision cards */
.gallery-item, .team-card, .vision-mission-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}
.gallery-item:hover, .team-card:hover, .vision-mission-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* ── Preloader ──────────────────────────────────────────────── */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.loader-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 18px;
    animation: pulse 1s infinite alternate;
    margin-right: -18px;
}

.loader-bar {
    width: 0;
    height: 3px;
    background: var(--grad-primary);
    border-radius: 2px;
    animation: loadBar 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    box-shadow: 0 0 12px rgba(30,98,167,0.6);
}

@keyframes pulse {
    0%   { opacity: 0.5; transform: scale(0.97); }
    100% { opacity: 1;   transform: scale(1); }
}
@keyframes loadBar {
    0%   { width: 0; }
    100% { width: 200px; }
}

/* ── Page Header (inner pages) ──────────────────────────────── */
.page-header {
    padding: 120px 5% 60px;
    text-align: center;
    background: linear-gradient(160deg, #E6EBF5 0%, #F0F3FA 50%, #EBEff7 100%);
    border-bottom: 2px solid var(--border-primary);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(30,98,167,0.10) 0%, transparent 65%);
    pointer-events: none;
}

.page-header h1,
.page-header h2 {
    color: var(--text-heading);
    position: relative;
    font-size: clamp(2rem, 5vw, 3rem);
}

.page-header p {
    color: var(--text-body);
    position: relative;
    font-size: 1.1rem;
    max-width: 640px;
    margin: 12px auto 0;
    line-height: 1.7;
}

.page-header .divider {
    background: var(--grad-primary);
}

/* ── Responsive — Tablets (≤900px) ─────────────────────────── */
@media (max-width: 900px) {
    .layout-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero h1 { font-size: 2.8rem; }

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

    .section-padding { padding: 80px 5%; }
}

/* ── Responsive — Mobile (≤768px) ──────────────────────────── */
@media (max-width: 768px) {
    /* Hide desktop nav, show burger */
    .nav-links { display: none; }

    .mobile-menu-btn {
        display: flex;
    }

    /* Compact logo bar on mobile */
    .nav-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 5% !important;
        gap: 0 !important;
    }

    .logo-container {
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        text-align: left !important;
    }

    .logo-container img {
        height: 46px !important;
        margin-bottom: 0 !important;
    }

    .logo-container h1 {
        font-size: 1rem !important;
        margin: 0 !important;
        line-height: 1.25 !important;
        max-width: 190px;
    }

    .logo-container .tagline,
    .logo-container .tagline-red,
    .logo-container > div:nth-child(3) {
        display: none !important;
    }

    /* Hero */
    .hero {
        min-height: 85svh !important;
    }

    .hero h1 {
        font-size: clamp(1.9rem, 8vw, 2.4rem) !important;
        letter-spacing: -0.02em;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .slider-prev, .slider-next {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    /* Sections */
    .section-padding {
        padding: 64px 5% !important;
    }

    /* About stats — horizontal on mobile */
    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-card h3 { font-size: 2.2rem; }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Map */
    .map-container iframe {
        height: 300px;
    }

    /* Page header */
    .page-header {
        padding: 100px 5% 40px;
    }

    /* Buttons */
    .btn {
        padding: 13px 22px;
        font-size: 0.9rem;
    }
}

/* ── Responsive — Small Mobile (≤480px) ────────────────────── */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem !important;
    }

    .slider-nav { padding: 0 10px; }

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

    .footer-container {
        grid-template-columns: 1fr;
    }

    h2 { font-size: 1.7rem; }
}

/* ── Mobile Nav Drawer ──────────────────────────────────────── */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: min(85%, 340px);
    height: 100dvh;
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    z-index: 100000;
    transition: left 0.38s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 4px 0 24px rgba(12,22,40,0.18);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav.active { left: 0; }

.mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    padding: 12px 12px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-main);
}

.mobile-nav-close {
    font-size: 1.6rem;
    color: var(--text-heading);
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px 14px;
    outline: none;
    border-radius: var(--r-sm);
    transition: var(--t);
    line-height: 1;
}

.mobile-nav-close:hover {
    background: var(--bg-alt);
}

.mobile-nav a {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-heading);
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    transition: all var(--t);
    gap: 10px;
}

.mobile-nav a:hover,
.mobile-nav a:active {
    background-color: rgba(30,98,167,0.06);
    color: var(--primary);
    padding-left: 30px;
}

.mobile-nav a:last-child {
    border-bottom: none;
    margin: 16px;
    border-radius: var(--r-sm);
    background: var(--grad-primary);
    color: #fff;
    padding: 14px 20px;
    justify-content: center;
    font-weight: 600;
    box-shadow: var(--shadow-blue);
}

.mobile-nav a:last-child:hover {
    background: var(--grad-primary);
    color: #fff;
    padding-left: 20px;
    opacity: 0.9;
}

/* Mobile overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12,22,40,0.55);
    backdrop-filter: blur(3px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.38s ease, visibility 0.38s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ── Touch & Accessibility ──────────────────────────────────── */
@media (hover: none) {
    /* Disable complex hover effects on touch */
    .stat-card:hover { transform: none; }
    .gallery-item:hover { transform: none; }
    .btn:hover { transform: none; }
}

/* Minimum tap target for icon-only interactive elements only */
.dot,
.mobile-menu-btn,
.slider-prev,
.slider-next,
.social-icons a {
    min-height: 44px;
    min-width: 44px;
}

.dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── Focus visible (Accessibility) ─────────────────────────── */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── Scroll performance ─────────────────────────────────────── */
.hero-slider .slide,
.gallery-item img {
    will-change: transform;
}

/* ── Custom Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb {
    background: var(--border-primary);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
