/* ==========================================================================
   Xpress Packaging Industries - Master Stylesheet
   Design System: Black-Navy (#0B101D), Accent Gold (#D4AF37), Slate (#475569)
   ========================================================================== */

:root {
    --primary-navy: #0B101D;       /* Black-Navy */
    --dark-navy: #050811;          /* Deepest Black-Navy */
    --accent-gold: #D4AF37;
    --gold-light: #F5E6BE;
    --gold-hover: #C29F2B;
    --slate-dark: #0F172A;
    --slate-body: #334155;
    --slate-muted: #64748B;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --border-light: #E2E8F0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(11, 16, 29, 0.12);
    --shadow-lg: 0 16px 40px rgba(11, 16, 29, 0.18);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--slate-body);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

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

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-navy);
    font-weight: 700;
    line-height: 1.25;
}

/* Top Announcement / Info Bar */
.top-bar {
    background: var(--dark-navy);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;
    height: 36px;
}

.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-info i {
    color: var(--accent-gold);
}

.top-bar-social {
    display: flex;
    gap: 1rem;
}

.top-bar-social a {
    color: rgba(255, 255, 255, 0.7);
}

.top-bar-social a:hover {
    color: var(--accent-gold);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    height: 80px;
    transition: var(--transition-smooth);
}

header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.99);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 100%;
}

/* Logo — Pure CSS/HTML text logo */
.logo-section {
    display: flex;
    align-items: center;
    height: 100%;
    overflow: hidden;
    padding: 2px 0;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

/* CSS Text Logo Container */
.css-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-family: 'Inter', Arial, sans-serif;
    user-select: none;
}

/* Top row: the X + PRESS */
.logo-top-row {
    display: flex;
    align-items: flex-end;
    line-height: 1;
}

/* The tall italic X */
.logo-x {
    font-size: 3rem;
    font-weight: 900;
    color: #0a0a0a;
    font-style: italic;
    letter-spacing: -4px;
    line-height: 0.78;
    margin-right: -2px;
    transform: scaleY(1.15);
    transform-origin: bottom left;
}

/* PRESS next to X */
.logo-press {
    font-size: 1.65rem;
    font-weight: 900;
    color: #0a0a0a;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 0.9;
    padding-bottom: 1px;
}

/* PACKAGING INDUSTRIES sub-line */
.logo-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    margin-top: 1px;
    padding-left: 2px;
}

/* Invert logo colors on dark backgrounds (footer etc.) */
.footer-about .css-logo .logo-x,
.footer-about .css-logo .logo-press {
    color: #ffffff;
}
.footer-about .css-logo .logo-sub {
    color: rgba(255, 255, 255, 0.8);
}

/* SVG Logo Image */
.logo-img {
    height: 46px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

/* Main Navigation Menu */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--slate-dark);
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 1.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px 2px 0 0;
    transition: width var(--transition-smooth);
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-navy);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform var(--transition-smooth);
    color: var(--slate-muted);
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
    color: var(--accent-gold);
}

/* Mega Dropdown Menu (4 Columns: Transportation, Packaging, Specialized, Support Services) */
.nav-item.dropdown {
    position: static;
}

.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-bottom: 3px solid var(--accent-gold);
    padding: 2.2rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
}

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

.mega-dropdown-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.mega-dropdown-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-category {
    display: flex;
    flex-direction: column;
}

.service-category h4 {
    color: var(--primary-navy);
    font-size: 0.88rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-links {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.service-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.5rem;
    background: transparent;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--slate-dark);
    transition: var(--transition-fast);
    border: none;
}

.service-link:hover {
    background: rgba(11, 16, 29, 0.04);
    color: var(--primary-navy);
    transform: none;
    box-shadow: none;
}

.service-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--primary-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.service-link:hover .service-icon {
    background: var(--accent-gold);
    color: var(--primary-navy);
}

.service-info {
    flex: 1;
    overflow: hidden;
}

.service-name {
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1.3;
    color: var(--slate-dark);
}

.service-link:hover .service-name {
    color: var(--primary-navy);
}

.service-desc {
    font-size: 0.72rem;
    color: var(--slate-muted);
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-link:hover .service-desc {
    color: var(--slate-body);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1005;
    background: transparent;
    border: none;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: var(--primary-navy);
    margin: 3px 0;
    transition: var(--transition-fast);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation Drawer */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem 2rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   Hero — Full-width background image, text left-aligned over it
   ============================================================ */
.blank-hero-section {
    min-height: 600px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
    /* Full-width background image on the section itself */
    background: url('../images/hero-background.webp') center center / cover no-repeat;
}

/* Left panel: dark gradient overlay so text is readable */
.hero-left {
    background: linear-gradient(
        to right,
        rgba(5, 8, 17, 0.96) 0%,
        rgba(5, 8, 17, 0.90) 55%,
        rgba(5, 8, 17, 0.50) 80%,
        rgba(5, 8, 17, 0.0) 100%
    );
    padding: 5rem 3.5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Right panel: fully transparent — background image shows through */
.hero-right {
    position: relative;
    background: transparent;
}

/* Subtle gold bottom border on the whole hero */
.blank-hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--accent-gold) 50%, transparent);
    z-index: 2;
    pointer-events: none;
}

.blank-hero-container {
    display: contents;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.blank-hero-title {
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 800;
    color: var(--bg-white);
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blank-hero-title span {
    color: var(--accent-gold);
}

.blank-hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 480px;
}

/* 4-icon feature row below the subtitle */
.hero-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hero-feature i {
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 0.2rem;
}

.hero-feature strong {
    font-size: 0.8rem;
    color: #fff;
    line-height: 1.3;
}

.hero-feature span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
}

/* CTA row */
.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-tagline {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: rgba(255, 255, 255, 0.35);
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 1rem;
}

/* Responsive: tablet layout */
@media (max-width: 1024px) and (min-width: 601px) {
    .blank-hero-section {
        background-image: url('../images/hero-background-tablet.webp');
        background-position: center center;
    }
    .hero-left {
        padding: 4rem 2.5rem 3rem;
    }
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive: stack on mobile */
@media (max-width: 600px) {
    .blank-hero-section {
        grid-template-columns: 1fr;
        min-height: auto;
        background-image: url('../images/hero-background-mobile.webp');
        background-position: center top;
        background-size: cover;
    }
    .hero-left {
        padding: 3rem 1.5rem;
        background: linear-gradient(
            to bottom,
            rgba(5, 8, 17, 0.96) 0%,
            rgba(5, 8, 17, 0.92) 70%,
            rgba(5, 8, 17, 0.75) 100%
        );
    }
    .hero-right {
        height: 55vw;
        min-height: 280px;
        max-height: 400px;
    }
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
    .logo-img {
        height: 31px;
        max-width: 207px;
    }
}

/* Inner Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-navy) 100%);
    color: var(--bg-white);
    padding: 3.5rem 2rem;
    text-align: center;
    position: relative;
}

.page-banner-title {
    font-size: 2.5rem;
    color: var(--bg-white);
    margin-bottom: 0.5rem;
}

.page-banner-breadcrumb {
    font-size: 0.9rem;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.page-banner-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.page-banner-breadcrumb a:hover {
    color: var(--bg-white);
}

/* Section Containers & Typography */
.section {
    padding: 5rem 2rem;
}

.section-light {
    background-color: #F4F6F9;
}

.section-white {
    background-color: var(--bg-white);
}

.section-dark {
    background-color: var(--dark-navy);
    color: var(--bg-white);
}

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

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

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3.5rem auto;
}

.section-subtitle {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.section-dark .section-title {
    color: var(--bg-white);
}

.section-description {
    font-size: 1.05rem;
    color: var(--slate-muted);
}

/* Featured Services Grid - Styled as per Attached Image */
.service-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.featured-service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.4);
}

.featured-card-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--dark-navy);
}

.featured-card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-service-card:hover .featured-card-img-container img {
    transform: scale(1.08);
}

.featured-card-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.featured-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
    font-family: 'Georgia', serif; /* Serif font matching target image */
}

.featured-card-text {
    font-size: 0.92rem;
    color: var(--slate-body);
    line-height: 1.6;
    flex: 1;
}

.featured-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    background: #F4F6F9;
    color: var(--primary-navy);
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    margin-top: 1.4rem;
    align-self: flex-start;
    transition: var(--transition-fast);
}

.featured-card-btn i {
    color: var(--accent-gold);
    transition: transform var(--transition-fast);
}

.featured-service-card:hover .featured-card-btn {
    background: var(--primary-navy);
    color: var(--bg-white);
}

.featured-service-card:hover .featured-card-btn i {
    transform: translateX(4px);
    color: var(--accent-gold);
}

/* ============================================================
   Creative Service Block — Alternating Side-by-Side Layout
   ============================================================ */
.services-creative-wrap {
    padding: 2rem 0;
}

.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
    max-height: 620px;
    overflow: hidden;
    margin: 0;
    border-bottom: none;
    position: relative;
}

.service-block:nth-child(even) {
    direction: rtl;
}

.service-block:nth-child(even) > *,
.service-block:nth-child(even) .svc-body,
.service-block:nth-child(even) .svc-body * {
    direction: ltr;
}

.service-block:last-child {
    border-bottom: none;
}

/* Image side */
.svc-hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 420px;
    max-height: 620px;
}

.svc-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.85);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}

.service-block:hover .svc-hero img {
    transform: scale(1.06);
    filter: brightness(0.75);
}

.svc-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(5, 10, 25, 0.35), rgba(5, 10, 25, 0.15));
    pointer-events: none;
}

.svc-hero-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 2rem 2.5rem;
    color: #fff;
    background: linear-gradient(to top, rgba(5, 8, 17, 0.85) 0%, transparent 100%);
}

.svc-hero-label .section-subtitle {
    color: var(--accent-gold);
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.svc-hero-label h2 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    line-height: 1.3;
}

/* Content side */
.svc-body {
    background: #fff;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    border-bottom: 1px solid #F0F2F5;
}

.service-block:nth-child(even) .svc-body {
    background: #FAFBFD;
}

.service-block:last-child .svc-body {
    border-bottom: none;
}

.svc-description p {
    font-size: 1rem;
    color: var(--slate-body);
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.svc-description p:last-child {
    margin-bottom: 0;
}

.svc-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.svc-feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.2rem;
    background: #F8FAFC;
    border-radius: 12px;
    border-left: 3px solid var(--accent-gold);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-block:nth-child(even) .svc-feature-item {
    background: #fff;
}

.svc-feature-item:hover {
    background: var(--primary-navy) !important;
    color: #fff !important;
    transform: translateX(6px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.15);
}

.svc-feature-item:hover .svc-feature-text strong,
.svc-feature-item:hover .svc-feature-text span {
    color: #fff !important;
}

.svc-feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--primary-navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.svc-feature-item:hover .svc-feature-icon {
    background: var(--accent-gold);
    color: var(--primary-navy);
}

.svc-feature-text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-navy);
    margin-bottom: 0.15rem;
    font-weight: 700;
}

.svc-feature-text span {
    font-size: 0.82rem;
    color: var(--slate-muted);
    line-height: 1.4;
}

/* Tablet */
@media (max-width: 1024px) {
    .service-block {
        grid-template-columns: 1fr;
        min-height: auto;
        max-height: none;
    }
    .service-block:nth-child(even) {
        direction: ltr;
    }
    .svc-hero {
        min-height: 300px;
        height: 300px;
    }
    .svc-body {
        padding: 2rem 1.5rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .svc-hero {
        min-height: 220px;
        height: 220px;
    }
    .svc-hero-label {
        padding: 1.2rem 1.5rem;
    }
    .svc-hero-label h2 {
        font-size: 1.2rem;
    }
    .svc-body {
        padding: 1.5rem 1rem;
        gap: 1.2rem;
    }
    .svc-feature-item {
        padding: 0.8rem 1rem;
    }
}

/* ============================================================
   Homepage Gallery — Proper Masonry Grid
   ============================================================ */

/* General Cards */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 175, 55, 0.5);
}

.card-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-navy), var(--dark-navy));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: var(--transition-fast);
}

.card:hover .card-icon {
    background: var(--accent-gold);
    color: var(--primary-navy);
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-navy);
    font-family: 'Georgia', serif;
}

.card-text {
    color: var(--slate-body);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-navy);
    color: var(--bg-white);
    border-color: var(--primary-navy);
}

.btn-primary:hover {
    background: var(--dark-navy);
    border-color: var(--dark-navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--accent-gold);
    color: var(--primary-navy);
    border-color: var(--accent-gold);
}

.btn-accent:hover {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer (Black-Navy) */
footer {
    background: var(--dark-navy);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 4rem;
    border-top: 4px solid var(--accent-gold);
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem 3rem 2rem;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: 3rem;
}

.footer-col h3 {
    color: var(--bg-white);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-gold);
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
    transform: translateX(4px);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.9rem;
}

.footer-contact-item {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.footer-contact-item i {
    color: var(--accent-gold);
    margin-top: 4px;
    font-size: 1rem;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.4);
    padding: 1.2rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom strong {
    color: var(--gold-light);
}

/* ============================================================
   Homepage Gallery — Pure 3×2 uniform grid, NO spanning
   All 6 items are identical rectangles
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 12px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    background: var(--dark-navy);
    height: 280px;
}

/* No spanning — all items are the same size */
.gallery-item:first-child {
    grid-column: span 1;
    height: 280px;
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease, filter 0.4s ease;
    filter: brightness(0.82);
}

.gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.6);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.4rem 1.5rem;
    background: linear-gradient(to top, rgba(5, 8, 17, 0.9) 0%, transparent 100%);
    color: #fff;
    transform: translateY(8px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h4 {
    color: var(--accent-gold);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.gallery-overlay p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
    .mega-dropdown-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-card-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item:first-child {
        grid-column: span 1;
    }
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .service-card-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .top-bar {
        display: none;
    }
    body {
        padding-top: 80px;
    }
    header {
        top: 0;
    }
    .mobile-menu {
        top: 70px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item:first-child {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .service-card-grid {
        grid-template-columns: 1fr !important;
    }
    .footer-container {
        grid-template-columns: 1fr !important;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-rows: 220px;
    }
    .gallery-item:first-child {
        grid-column: span 1;
    }
}

/* ============================================================
   Services Page — Card Grid (Almattar-style)
   ============================================================ */
.services-grid-section {
    padding: 5rem 2rem;
    background: #F4F6F9;
}

.svc-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.svc-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.svc-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.svc-card-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

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

.svc-card:hover .svc-card-image img {
    transform: scale(1.08);
}

.svc-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 15, 30, 0.15), rgba(10, 15, 30, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.svc-card:hover .svc-card-overlay {
    opacity: 1;
}

.svc-card-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-gold);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-navy);
    font-size: 1.5rem;
    transform: translateY(15px);
    transition: transform 0.5s ease;
}

.svc-card:hover .svc-card-icon {
    transform: translateY(0);
}

.svc-card-content {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.svc-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.7rem;
    transition: color 0.3s ease;
}

.svc-card:hover .svc-card-title {
    color: var(--accent-gold);
}

.svc-card-desc {
    color: var(--slate-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1.2rem;
}

.svc-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-decoration: none;
    transition: gap 0.3s ease;
}

.svc-card-link:hover {
    gap: 0.9rem;
}

@media (max-width: 768px) {
    .svc-cards-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   About Page - Stats, Team, CTA sections
   ============================================================ */

/* Animated Stats Strip */
.about-stats-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-navy) 100%);
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.about-stat-box {
    padding: 1.5rem;
}

.about-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.4rem;
    color: var(--accent-gold);
}

.about-stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0.3rem;
}

.about-stat-number::after {
    content: "+";
    font-size: 1.8rem;
    opacity: 0.7;
}

.about-stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Meet the Experts Team Section */
.about-team-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.96), rgba(15, 25, 50, 0.96)),
                url("../images/hero-background.webp") center center / cover no-repeat;
}

.about-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-team-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.about-team-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-gold);
}

.about-team-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), #e8c547);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--dark-navy);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
    padding: 3px;
    overflow: hidden;
}

.about-team-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
}

.about-team-role {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.about-team-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

/* CTA Banner */
.about-cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--dark-navy) 100%);
}

/* About page responsive */
@media (max-width: 768px) {
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-stat-number {
        font-size: 2rem;
    }
    .about-team-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   Industries We Serve — Homepage
   ============================================================ */
.industries-section {
    padding: 3.5rem 2rem;
    background: #F4F6F9;
    text-align: center;
}

.industries-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--primary-navy);
    margin-bottom: 0.8rem;
}

.industries-divider {
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    margin: 0 auto 2.5rem;
    border-radius: 2px;
}

.industries-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.industry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    min-width: 90px;
    transition: transform 0.3s ease;
}

.industry-item:hover {
    transform: translateY(-4px);
}

.industry-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-navy);
    background: transparent;
    transition: all 0.3s ease;
}

.industry-item:hover .industry-icon {
    background: var(--primary-navy);
    color: var(--accent-gold);
    border-color: var(--primary-navy);
}

.industry-item span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--slate-dark);
    letter-spacing: 0.3px;
}

@media (max-width: 600px) {
    .industries-grid {
        gap: 1.2rem 1.5rem;
    }
    .industry-icon {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
    .industry-item span {
        font-size: 0.72rem;
    }
}


/* ============================================================
   Nav CTA Button — Distinct Contact Us
   ============================================================ */
.nav-menu li a.nav-cta-btn {
    background: var(--primary-navy);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.nav-menu li a.nav-cta-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-navy);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.nav-menu li a.nav-cta-btn::after {
    display: none;
}


/* ============================================================
   COMPREHENSIVE MOBILE & TABLET RESPONSIVE FIXES
   ============================================================ */

/* --- Tablet: max-width 768px --- */
@media (max-width: 768px) {
    /* Stack all 2-column grids to single column */
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Section padding reduction */
    .section {
        padding: 3rem 1.2rem;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.5rem;
    }
    .section-description {
        font-size: 0.92rem;
    }
    
    /* Featured service cards — 2 col on tablet */
    .featured-service-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }
    
    /* Gallery — 2 col with gap */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: 200px;
        gap: 10px !important;
    }
    .gallery-item {
        height: 200px;
    }
    .gallery-item img {
        height: 200px;
    }
    
    /* Story slideshow on about page */
    .story-slideshow {
        aspect-ratio: 16/10 !important;
        min-height: 280px;
    }
    
    /* Industries section */
    .industries-grid {
        gap: 1.2rem 1.8rem;
    }
    
    /* About team cards */
    .about-team-grid {
        grid-template-columns: 1fr !important;
        max-width: 420px !important;
        margin: 0 auto;
    }
}

/* --- Mobile: max-width 600px --- */
@media (max-width: 600px) {
    /* Grid stacking */
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Section padding */
    .section {
        padding: 2.5rem 1rem;
    }
    
    /* Reduce font sizes */
    .section-title {
        font-size: 1.35rem;
        line-height: 1.3;
    }
    .section-subtitle {
        font-size: 0.7rem;
    }
    .section-description {
        font-size: 0.88rem;
    }
    
    /* Featured services — single column */
    .featured-service-cards {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    .featured-service-card {
        max-width: 100%;
    }
    
    /* Gallery — single column with gap */
    .gallery-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: none !important;
        grid-auto-rows: 220px;
        gap: 12px !important;
    }
    .gallery-item,
    .gallery-item:first-child {
        height: 220px !important;
    }
    .gallery-item img {
        height: 220px;
    }
    
    /* Card grids — single column */
    .card-grid,
    .feature-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Service card grid */
    .svc-cards-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Story slideshow */
    .story-slideshow {
        aspect-ratio: 4/3 !important;
        min-height: 250px;
        margin-bottom: 1rem;
    }
    
    /* About stats */
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }
    .about-stat-number {
        font-size: 1.8rem;
    }
    .about-stat-label {
        font-size: 0.75rem;
    }
    
    /* About team cards */
    .about-team-grid {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }
    .about-team-section {
        padding: 3rem 1rem;
    }
    
    /* Contact page — map heading fix */
    .contact-map-heading .section-title {
        font-size: 1.2rem !important;
    }
    
    /* Industries section */
    .industries-section {
        padding: 2.5rem 1rem;
    }
    .industries-grid {
        gap: 1rem 1.2rem;
    }
    .industry-icon {
        width: 44px;
        height: 44px;
        font-size: 0.95rem;
    }
    .industry-item span {
        font-size: 0.7rem;
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    /* Page banner */
    .page-banner {
        padding: 2.5rem 1rem;
    }
    .page-banner-title {
        font-size: 1.6rem;
    }
    
    /* Nav CTA button on mobile menu */
    .nav-cta-btn {
        display: inline-block !important;
    }
    
    /* Cards — prevent overflow */
    .card {
        padding: 1.5rem;
    }
    
    /* Services creative blocks */
    .service-block {
        grid-template-columns: 1fr !important;
    }
}

/* --- Small Mobile: max-width 420px --- */
@media (max-width: 420px) {
    .section {
        padding: 2rem 0.8rem;
    }
    .section-title {
        font-size: 1.2rem;
    }
    .hero-left h1 {
        font-size: 1.5rem;
    }
    .hero-left p {
        font-size: 0.85rem;
    }
    .industries-grid {
        gap: 0.8rem 1rem;
    }
    .industry-icon {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }
    .about-stats-grid {
        gap: 0.8rem;
    }
}
