/* ============================================================
   CIEED — Main Stylesheet
   Brand: #CB0877 (Primary) | #210863 (Secondary) | #FFFFFF (BG)
   Font: Poppins
   ============================================================ */

/* ─── CSS Custom Properties ─────────────────────────────── */
:root {
    --primary:        #CB0877;
    --primary-dark:   #a0065d;
    --primary-light:  #f5027d;
    --primary-pale:   #fce4f0;
    --secondary:      #210863;
    --secondary-dark: #160540;
    --secondary-mid:  #2f0d8a;
    --secondary-light:#4a1ebd;
    --white:          #ffffff;
    --off-white:      #f8f9fc;
    --light-gray:     #f0f2f7;
    --mid-gray:       #d1d5e0;
    --text-dark:      #1a1a2e;
    --text-body:      #3d3d5c;
    --text-muted:     #7a7a9d;
    --success:        #0db87f;
    --warning:        #f6a623;
    --shadow-sm:      0 2px 8px rgba(33,8,99,0.08);
    --shadow-md:      0 6px 24px rgba(33,8,99,0.12);
    --shadow-lg:      0 16px 48px rgba(33,8,99,0.16);
    --shadow-xl:      0 24px 64px rgba(33,8,99,0.22);
    --radius-sm:      6px;
    --radius-md:      12px;
    --radius-lg:      20px;
    --radius-xl:      32px;
    --nav-height:     80px;
    --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-body);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── Utility Classes ────────────────────────────────────── */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-pad   { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.badge-primary { background: var(--primary-pale); color: var(--primary); }
.badge-secondary { background: rgba(33,8,99,0.08); color: var(--secondary); }

.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-label::before {
    content: '';
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.25;
    margin-bottom: 16px;
}
.section-title span { color: var(--primary); }

.section-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 580px;
    line-height: 1.8;
}
.text-center .section-sub { margin: 0 auto; }
.text-center .section-label { justify-content: center; }
.text-center .section-label::before { display: none; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(203,8,119,0.35);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}
.btn-secondary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(33,8,99,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--secondary);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-sm { padding: 9px 20px; font-size: 0.82rem; }

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--nav-height);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    height: 68px;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-logo-img {
    height: auto;
    max-height: 55px;
    width: auto;
    object-fit: contain;
}

/* Desktop Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.nav-item { position: relative; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}
.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--primary);
    background: var(--primary-pale);
}

.nav-arrow {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}
.nav-item.has-mega:hover .nav-arrow,
.nav-item.mega-open .nav-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

/* CTA Nav Link */
.nav-link.nav-cta {
    background: var(--primary);
    color: var(--white);
    padding: 9px 20px;
    border-radius: 50px;
    font-weight: 600;
}
.nav-link.nav-cta:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(203,8,119,0.3);
}

/* ─── Mega Menu ──────────────────────────────────────────── */
.mega-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    border-top: 3px solid var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    pointer-events: none;
}

/* Invisible bridge to prevent hover loss between nav item and mega menu */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background: transparent;
}
.navbar.scrolled .mega-menu { top: 68px; }

.nav-item.has-mega:hover .mega-menu,
.nav-item.mega-open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.mega-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 24px 28px;
}

.mega-inner.with-image {
    display: flex;
    gap: 32px;
    align-items: stretch;
}

.mega-image-col {
    flex: 0 0 320px;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: var(--shadow-sm);
}

.mega-image-col img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.mega-image-col::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(33,8,99,0.95) 0%, rgba(33,8,99,0.2) 100%);
    z-index: 2;
}

.mega-image-caption {
    position: relative;
    z-index: 3;
    padding: 24px;
    color: var(--white);
}

.mega-image-caption h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.mega-image-caption p {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.4;
}

.mega-content-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mega-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: baseline;
    gap: 16px;
}
.mega-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
}
.mega-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.mega-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: var(--transition);
}
.mega-card:hover {
    background: var(--off-white);
    border-color: var(--mid-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.mega-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white);
    font-size: 1.1rem;
}

.mega-card-body h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 4px;
    transition: color 0.2s;
}
.mega-card:hover .mega-card-body h4 { color: var(--primary); }

.mega-card-body p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.mega-footer {
    border-top: 1px solid var(--light-gray);
    padding-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.btn-mega-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap 0.2s;
}
.btn-mega-all:hover { gap: 12px; }

/* ─── Hamburger ──────────────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.hamburger:hover { background: var(--light-gray); }

.bar {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--secondary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ─── Page Offset for Fixed Nav ──────────────────────────── */
.page-body { padding-top: var(--nav-height); }

/* ─── Page Hero Banner (inner pages) ─────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-mid) 50%, var(--primary) 100%);
    padding: 80px 0 72px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}
.page-hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.82);
    max-width: 540px;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
}
.breadcrumb a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { color: rgba(255,255,255,0.4); }

/* ─── Hero Section (Homepage) ───────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f2f7 0%, #e2e8f0 50%, #d1d5e0 100%);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(203,8,119,0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(74,30,189,0.1) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.03'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: var(--primary);
    animation: floatShape 8s ease-in-out infinite;
}
.hero-shape:nth-child(1) { width: 500px; height: 500px; top: -150px; right: -100px; animation-delay: 0s; }
.hero-shape:nth-child(2) { width: 300px; height: 300px; bottom: -80px; left: 10%; animation-delay: 3s; background: var(--white); }
.hero-shape:nth-child(3) { width: 200px; height: 200px; top: 30%; right: 20%; animation-delay: 5s; }

@keyframes floatShape {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 120px 0 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--secondary-dark);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 28px;
}
.hero-badge i { color: var(--primary); font-size: 0.85rem; }

.hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--secondary-dark);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.hero-title .highlight {
    background: linear-gradient(90deg, var(--primary), #ff6ab5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-body);
    max-width: 580px;
    margin-bottom: 40px;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

.hero-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-dark);
    line-height: 1;
    margin-bottom: 4px;
}
.hero-stat-num span { color: var(--primary); }

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ─── About Preview ──────────────────────────────────────── */
.about-preview { background: var(--off-white); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-img-wrap {
    position: relative;
}
.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.5);
}
.img-placeholder i { font-size: 4rem; }
.img-placeholder span { font-size: 0.85rem; }

.about-img-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 180px;
    background: var(--primary);
    border-radius: var(--radius-md);
    padding: 20px;
    color: var(--white);
    box-shadow: var(--shadow-md);
    text-align: center;
}
.about-img-accent .accent-num {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}
.about-img-accent .accent-label { font-size: 0.78rem; opacity: 0.85; }

.about-content .section-label { justify-content: flex-start; }

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.about-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.about-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--primary-pale);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.about-feature h5 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 2px;
}
.about-feature p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

/* ─── Services Overview ──────────────────────────────────── */
.services-overview { background: var(--white); }

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

.service-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 20px;
    transition: var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(5deg); }

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap 0.2s;
}
.service-link:hover { gap: 10px; }

/* ─── Tools Highlight ────────────────────────────────────── */
.tools-highlight {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}
.tools-highlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}
.tools-highlight .container { position: relative; z-index: 1; }
.tools-highlight .section-title { color: var(--white); }
.tools-highlight .section-label { color: rgba(255,255,255,0.7); }
.tools-highlight .section-label::before { background: rgba(255,255,255,0.5); }
.tools-highlight .section-sub { color: rgba(255,255,255,0.65); }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.tool-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: var(--transition);
    cursor: pointer;
}
.tool-card:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(203,8,119,0.5);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.tool-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(203,8,119,0.2);
    border: 1px solid rgba(203,8,119,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 18px;
    transition: var(--transition);
}
.tool-card:hover .tool-card-icon {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.tool-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.tool-card p {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
    margin-bottom: 18px;
}
.tool-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap 0.2s;
}
.tool-card:hover .tool-card-link { gap: 10px; }

/* ─── Featured Projects ──────────────────────────────────── */
.featured-projects { background: var(--off-white); }

.projects-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 56px;
    gap: 24px;
}
.projects-header .section-sub { margin: 0; }

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

.project-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.project-card-img {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}
.project-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(33,8,99,0.4), transparent);
}

.project-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    background: var(--primary);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.project-card-body { padding: 24px; }

.project-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}
.project-card-body p {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--light-gray);
}
.project-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.project-meta-item i { color: var(--primary); }

/* ─── CTA Section ────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 40%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
    padding: 96px 0;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section .container { position: relative; z-index: 1; text-align: center; }

.cta-section h2 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}
.cta-section p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    max-width: 560px;
    margin: 0 auto 40px;
}
.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Testimonials ───────────────────────────────────────── */
.testimonials { background: var(--white); }

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

.testimonial-card {
    background: var(--off-white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    right: 28px;
    font-size: 5rem;
    line-height: 1;
    color: var(--primary-pale);
    font-family: Georgia, serif;
    font-weight: 700;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-pale);
}

.testimonial-stars {
    color: #f6a623;
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: flex;
    gap: 3px;
}

.testimonial-card blockquote {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-info h5 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 2px;
}
.author-info span { font-size: 0.78rem; color: var(--text-muted); }

/* ─── Partners / Logos ───────────────────────────────────── */
.partners { background: var(--off-white); padding: 60px 0; }

.partners-label {
    text-align: center;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 36px;
    font-weight: 600;
}

.partners-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--light-gray);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    min-width: 120px;
    transition: var(--transition);
}
.partner-logo:hover {
    border-color: var(--primary-pale);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ─── Blog Section ───────────────────────────────────────── */
.blog-section { background: var(--white); }

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

.blog-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.blog-card-img {
    height: 180px;
    background: linear-gradient(135deg, var(--secondary-mid), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.35);
    font-size: 2.5rem;
}

.blog-card-body { padding: 24px; }

.blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.blog-cat {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: var(--primary-pale);
    padding: 3px 10px;
    border-radius: 50px;
}
.blog-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-card-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
    line-height: 1.45;
    transition: color 0.2s;
}
.blog-card:hover h3 { color: var(--primary); }
.blog-card-body p {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
}
.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap 0.2s;
}
.blog-read-more:hover { gap: 9px; }

/* ─── Contact Page ───────────────────────────────────────── */
.contact-section { background: var(--off-white); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}
.contact-info p {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 32px;
}

.contact-items { display: flex; flex-direction: column; gap: 20px; }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.contact-item:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }

.contact-item-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item-body h5 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 4px;
}
.contact-item-body p, .contact-item-body a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.2s;
}
.contact-item-body a:hover { color: var(--primary); }

/* Contact Form */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}
.contact-form-wrap h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 28px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--mid-gray);
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(203,8,119,0.12);
}
.form-control::placeholder { color: var(--text-muted); }

textarea.form-control { resize: vertical; min-height: 130px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-success {
    display: none;
    padding: 16px 20px;
    background: #e8f8f2;
    border: 1px solid #0db87f;
    border-radius: var(--radius-sm);
    color: #0a7a55;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 16px;
    align-items: center;
    gap: 10px;
}

/* ─── Inner Page: About ──────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.team-card {
    text-align: center;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    transition: var(--transition);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-pale); }

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 16px;
    border: 3px solid var(--primary-pale);
    transition: var(--transition);
}
.team-card:hover .team-avatar { border-color: var(--primary); }

.team-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--secondary); margin-bottom: 4px; }
.team-card span { font-size: 0.8rem; color: var(--primary); font-weight: 500; }
.team-card p { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.value-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--light-gray);
    transition: var(--transition);
    background: var(--white);
}
.value-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-pale); transform: translateY(-3px); }
.value-icon { font-size: 2rem; margin-bottom: 12px; }
.value-card h4 { font-size: 1rem; font-weight: 700; color: var(--secondary); margin-bottom: 8px; }
.value-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }

/* ─── Tools / Services Inner Pages ──────────────────────── */
.tools-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    margin-top: 48px;
}

.tool-detail-card {
    display: flex;
    gap: 24px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.tool-detail-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-pale); transform: translateY(-3px); }

.tool-detail-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.tool-detail-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--secondary); margin-bottom: 8px; }
.tool-detail-body p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 12px; }

.tool-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-tag {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 50px;
    background: var(--light-gray);
    color: var(--text-body);
    font-weight: 500;
}

/* ─── Projects Page ──────────────────────────────────────── */
.projects-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    justify-content: center;
}
.filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 500;
    border: 1.5px solid var(--mid-gray);
    color: var(--text-body);
    background: var(--white);
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

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

/* ─── Blog Page ──────────────────────────────────────────── */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.blog-sidebar { position: sticky; top: calc(var(--nav-height) + 24px); }

.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}
.sidebar-widget h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-pale);
}

.sidebar-search {
    display: flex;
    border: 1.5px solid var(--mid-gray);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.sidebar-search input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: var(--text-dark);
}
.sidebar-search button {
    padding: 0 16px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.9rem;
}

.sidebar-categories li {
    padding: 8px 0;
    border-bottom: 1px solid var(--light-gray);
}
.sidebar-categories li:last-child { border-bottom: none; }
.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-body);
    transition: color 0.2s;
}
.sidebar-categories a:hover { color: var(--primary); }
.sidebar-categories .count {
    background: var(--primary-pale);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
}

.recent-post {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
}
.recent-post:last-child { border-bottom: none; }
.recent-post-img {
    width: 64px;
    height: 54px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--secondary-mid), var(--primary));
    flex-shrink: 0;
}
.recent-post h5 { font-size: 0.8rem; font-weight: 600; color: var(--text-dark); margin-bottom: 4px; line-height: 1.4; }
.recent-post span { font-size: 0.72rem; color: var(--text-muted); }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--secondary-dark); }

.footer-wave { overflow: hidden; display: block; line-height: 0; }
.footer-wave svg { display: block; width: 100%; height: 80px; }

.footer-main { background: var(--secondary); padding: 72px 0 48px; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 48px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.footer-logo-img {
    height: auto;
    max-height: 55px;
    width: auto;
    object-fit: contain;
}

.footer-tagline {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.footer-desc { font-size: 0.86rem; color: rgba(255,255,255,0.55); line-height: 1.75; margin-bottom: 24px; }

.footer-socials { display: flex; gap: 10px; }

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    transition: var(--transition);
}
.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: rgba(255,255,255,0.55);
    transition: var(--transition);
}
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-links a i { font-size: 0.65rem; color: var(--primary); }

.footer-contact-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.55);
}
.footer-contact-list li i {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
    width: 14px;
}
.footer-contact-list a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-contact-list a:hover { color: var(--white); }

.footer-newsletter h5 {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.newsletter-form {
    display: flex;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
}
.newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255,255,255,0.08);
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.84rem;
    color: var(--white);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form button {
    padding: 0 16px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.9rem;
    transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--primary-dark); }

/* Footer Bottom */
.footer-bottom {
    background: var(--secondary-dark);
    padding: 20px 0;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-bottom-inner p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

.footer-legal {
    display: flex;
    gap: 20px;
}
.footer-legal a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.75); }

/* ─── Back to Top ────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: var(--transition);
    z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ─── Animations ─────────────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── Mobile Overlay ─────────────────────────────────────── */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(33,8,99,0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-overlay.active { opacity: 1; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
    .mega-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .about-grid { gap: 48px; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
    .tools-page-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 768px) {

    :root { --nav-height: 68px; }

    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(340px, 90vw);
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 80px 0 32px;
        overflow-y: auto;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: var(--shadow-xl);
    }

    .nav-menu.open { right: 0; }

    .nav-overlay { display: block; }

    .nav-item { border-bottom: 1px solid var(--light-gray); }
    .nav-item:last-child { border-bottom: none; }

    .nav-link {
        padding: 14px 24px;
        font-size: 0.95rem;
        justify-content: space-between;
        border-radius: 0;
    }
    .nav-link:hover { background: var(--off-white); }

    .nav-link.nav-cta {
        margin: 16px 24px;
        border-radius: var(--radius-sm);
        justify-content: center;
    }

    /* Mobile Mega Menu becomes accordion */
    .mega-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: all;
        display: none;
        background: var(--off-white);
    }
    .mega-menu.mobile-open { display: block; }

    .mega-inner { padding: 16px 24px; }
    .mega-inner.with-image { display: block; }
    .mega-image-col { display: none; }
    .mega-header { flex-direction: column; gap: 4px; margin-bottom: 16px; }
    .mega-grid { grid-template-columns: 1fr; gap: 10px; }
    .mega-card { padding: 12px; }
    .mega-footer { padding-top: 12px; }

    /* Inner pages */
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-img-accent { display: none; }
    .about-features { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .projects-full-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; }
    .section-pad { padding: 64px 0; }
    .projects-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .footer-legal { justify-content: center; }
    .cta-actions { flex-direction: column; align-items: center; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; }
    .partners-row { gap: 16px; }
    .contact-form-wrap { padding: 24px; }
    .hero-title { font-size: 2rem; }
}

/* ─── Image Support & Enhancements ──────────────────────── */

/* Universal cover image */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hero background image layer */
.hero-bg-img {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.12;
    mix-blend-mode: luminosity;
}

/* Page hero background image */
.page-hero { position: relative; overflow: hidden; }
.page-hero-img {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.page-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    mix-blend-mode: luminosity;
}
.page-hero .container { position: relative; z-index: 1; }

/* About section real photo */
.about-img-main { overflow: hidden; }
.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}
.about-img-wrap:hover .about-img-main img { transform: scale(1.04); }

/* Project card: real photo with overlay */
.project-card-img {
    position: relative;
    overflow: hidden;
}
.project-card-img img.card-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
    z-index: 0;
}
.project-card:hover .project-card-img img.card-photo { transform: scale(1.07); }
.card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(33,8,99,0.75) 0%, rgba(0,0,0,0.15) 65%);
    z-index: 1;
}
.project-tag { z-index: 2; }

/* Blog card: real photo */
.blog-card-img {
    position: relative;
    overflow: hidden;
}
.blog-card-img img.card-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
    z-index: 0;
}
.blog-card:hover .blog-card-img img.card-photo { transform: scale(1.07); }
.blog-card-img .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(33,8,99,0.25) 0%, rgba(203,8,119,0.35) 100%);
    z-index: 1;
}

/* Service card image strip at top */
.service-card-img {
    height: 170px;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin: -32px -28px 24px;
    position: relative;
}
.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card-img .card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(33,8,99,0.15) 0%, rgba(33,8,99,0.4) 100%);
}

/* Tool detail card with feature image */
.tool-detail-feature-img {
    width: 220px;
    height: 170px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}
.tool-detail-feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.tool-detail-card:hover .tool-detail-feature-img img { transform: scale(1.05); }

/* Service detail card with feature image */
.service-detail-img {
    width: 220px;
    height: 170px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}
.service-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.tool-detail-card:hover .service-detail-img img { transform: scale(1.05); }

/* Team card with real photo */
.team-avatar.has-photo {
    background: var(--light-gray);
    overflow: hidden;
    padding: 0;
}
.team-avatar.has-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* About section feature image panel */
.about-feature-img {
    width: 100%;
    height: 260px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}
.about-feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.about-feature-img:hover img { transform: scale(1.04); }

/* Value card with illustration image */
.value-card-img {
    width: 100%;
    height: 140px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
}
.value-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Partners real logos */
.partner-logo img {
    height: 100%;
    max-height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition);
}
.partner-logo:hover img { transform: scale(1.05); }

/* Contact office photo */
.contact-office-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.45);
}

/* Hero section float image */
.hero-float-img {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 42%;
    max-width: 560px;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    z-index: 2;
}
.hero-float-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.75;
}
@media (max-width: 1024px) { .hero-float-img { display: none; } }

/* Blog sidebar recent post img */
.recent-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    display: block;
}

/* Testimonial author photo */
.author-avatar.has-photo {
    background: none;
    overflow: hidden;
    padding: 0;
}
.author-avatar.has-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
