/* RTL one-pager base styles using only CSS variables and flex/grid */
:root {
    --color-primary: #0b2b4a; /* navy */
    --color-accent: #f2b632; /* gold */
    --color-bg: #f3f6f9; /* light neutral */
    --color-surface: #ffffff; /* white */
    --color-success: #25d366; /* WhatsApp green */
    --radius: 16px;
    --shadow-sm: 0 6px 18px rgba(11, 43, 74, 0.08);
    --shadow-md: 0 14px 40px rgba(11, 43, 74, 0.12);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--color-bg);
    color: #0e1a2b;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden; /* prevent horizontal scroll on mobile */
}

/* Force LTR rendering for phone numbers even in RTL layout */
a[href^="tel"],
.phone-number {
    direction: ltr;
    unicode-bidi: bidi-override;
    display: inline-block;
}

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

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

.riyadh-root {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.container {
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: 16px;
}

.block {
    margin-block: 0;
}



.card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
    border-radius: var(--radius);
    box-shadow: 0 8px 25px rgba(11, 43, 74, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(11, 43, 74, 0.25), 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card.pad {
    padding: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 14px;
    letter-spacing: 0.2px;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 3px 6px rgba(0, 0, 0, 0.16),
        0 6px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 16px 32px rgba(0, 0, 0, 0.25),
        0 24px 48px rgba(0, 0, 0, 0.3);
}

.btn:hover::before {
    opacity: 1;
}

.btn.primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, #ffd700 100%);
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn.dark {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e4a7a 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(11, 43, 74, 0.3);
}

.btn.success {
    background: linear-gradient(135deg, var(--color-success) 0%, #16a34a 100%);
    color: #072d14;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.btn.outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(11, 43, 0, 0.1);
}

.section-title {
    font-size: 36px;
    line-height: 1.2;
    margin: 0 0 16px;
    color: var(--color-primary);
    text-align: center;
    font-weight: 800;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    letter-spacing: -0.5px;
}

.section-sub {
    color: #5b6b7e;
    text-align: center;
    margin: 0 0 32px;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.6;
}

/* Grid layouts */
.grid {
    display: grid;
    gap: 30px;
}

.grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Header */
header {
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 0;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 24px;
}

header .logo {
    color: var(--color-primary);
    font-size: 20px;
    font-weight: 800;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    letter-spacing: -0.5px;
}

header ul {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

header a {
    color: #5b6b7e;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 15px;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
}

header a:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
    background: rgba(11, 43, 74, 0.05);
    box-shadow: 0 4px 12px rgba(11, 43, 74, 0.15);
}

header a.active {
    color: var(--color-primary);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

header .cta-buttons {
    display: flex;
    gap: 8px;
}

/* Hide dropdown CTA items by default on desktop */
.nav-cta-item { display: none; }

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-primary);
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(11, 43, 74, 0.1);
}

/* Hero section */
.hero-bg {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0b2b4a 0%, #1e4a7a 100%);
    color: white;
    overflow: hidden;
    margin-top: 0;
    padding-bottom: 120px; /* Add space for contact block */
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('public/Herobackground.webp') center/cover;
    opacity: 0.35;
    z-index: 1;
}

.hero-bg .backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 43, 74, 0.7);
    z-index: 2;
}

.hero-bg .content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin-bottom: 60px; /* Space between content and contact block */
}

/* English content container */
[lang="en"] .hero-bg .content {
    max-width: 900px;
    margin-bottom: 80px;
    padding: 0 20px;
}

.hero-heading {
    font-size: clamp(2.8rem, 5vw, 4rem);
    line-height: 1.15;
    margin: 0 0 24px;
    font-weight: 800;
    color: white;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Arabic text optimization */
[lang="ar"] .hero-heading,
.hero-heading {
    line-height: 1.1;
    letter-spacing: -1px;
}

/* English text optimization */
[lang="en"] .hero-heading {
    line-height: 1.4;
    letter-spacing: -0.3px;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 32px;
    text-transform: capitalize;
}

[lang="en"] .hero-subheading {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.3;
    margin-bottom: 32px;
    text-transform: capitalize;
}

[lang="en"] .hero-description {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 40px;
    text-transform: none;
}

[lang="en"] .hero-features {
    margin: 40px 0;
    gap: 32px;
}

[lang="en"] .hero-features .feature-item {
    text-transform: capitalize;
}

[lang="en"] .hero-buttons {
    margin: 40px 0;
}

[lang="en"] .btn {
    text-transform: capitalize;
}

.hero-subheading {
    font-size: 2.8rem;
    line-height: 1.2;
    margin: 0 0 28px;
    font-weight: 700;
    color: var(--color-accent);
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.7;
    margin: 0 0 36px;
    color: white;
    opacity: 0.95;
    font-weight: 400;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin: 36px 0;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    color: white;
    font-weight: 500;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.feature-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 36px 0;
    flex-wrap: wrap;
}

/* Hero Contact Strip */
.hero-contact-strip {
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
    max-width: 900px;
}

.hero-contact-strip .strip-item {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 10px 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.hero-contact-strip .strip-icon {
    font-size: 18px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.hero-contact-strip .strip-text h4 {
    margin: 0;
    font-size: 12px;
    color: var(--color-accent);
    font-weight: 700;
}

.hero-contact-strip .strip-text a,
.hero-contact-strip .strip-text p {
    margin: 0;
    font-size: 13px;
    color: #ffffff;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .hero-contact-strip {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 16px;
    }
}

.btn-icon {
    font-size: 1.3rem;
    margin-left: 8px;
}

/* Contact Information Block */
.contact-info-block {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 43, 74, 0.6);
    border-radius: 6px;
    padding: 3px 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 4;
    width: auto;
    min-width: 380px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.contact-info-block:hover {
    background: rgba(11, 43, 74, 0.65);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    transform: translateX(-50%) translateY(-1px);
}

.contact-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    height: 20px;
}

.contact-item:last-child {
    border-right: none;
}

.contact-item:first-child {
    padding-left: 0;
}

.contact-item:last-child {
    padding-right: 0;
}

.contact-item h4 {
    margin: 0;
    color: var(--color-accent);
    font-size: 0.65rem;
    font-weight: 500;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-right: 4px;
}

.contact-item p {
    margin: 0;
    color: white;
    font-size: 0.7rem;
    font-weight: 400;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    opacity: 0.9;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--color-success);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease;
    z-index: 1000;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* Respect mobile safe areas and avoid cropping on very narrow devices */
@supports (left: max(0px)) {
    .floating-whatsapp {
        left: max(12px, env(safe-area-inset-left));
        bottom: max(12px, env(safe-area-inset-bottom));
    }
}
/* Legacy iOS safe-area syntax */
@supports not (left: max(0px)) {
    .floating-whatsapp {
        left: calc(12px + constant(safe-area-inset-left));
        bottom: calc(12px + constant(safe-area-inset-bottom));
    }
}

/* Extra guard for very narrow phones */
@media (max-width: 360px) {
    .floating-whatsapp {
        left: 10px !important;
        bottom: 12px;
        width: 52px;
        height: 52px;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    animation: scrollBounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

/* Scroll Animations */
@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-8px);
    }
    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        top: 6px;
    }
    50% {
        opacity: 0.5;
        top: 16px;
    }
    100% {
        opacity: 1;
        top: 6px;
    }
}



/* Hide scroll indicator when scrolled */
.hero-bg.scrolled .scroll-indicator {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Modern About Section */
.about-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(11, 43, 74, 0.03) 0%, transparent 50%);
    z-index: 1;
}

.about-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(11, 43, 74, 0.08);
    color: var(--color-primary);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.badge-icon {
    font-size: 16px;
}

.about-header .section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--color-primary);
}

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

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

.section-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #5b6b7e;
    max-width: 800px;
    margin: 0 auto;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

/* Story Card */
.story-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(11, 43, 74, 0.15), 0 6px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(11, 43, 74, 0.25), 0 10px 25px rgba(0, 0, 0, 0.15);
}

.story-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.story-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #f2c447 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.story-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.story-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #5b6b7e;
    margin-bottom: 32px;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.features-grid {
    display: grid;
    gap: 24px;
}

.feature-point {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-point:hover {
    background: rgba(11, 43, 74, 0.03);
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: var(--color-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.feature-point h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 4px 0;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.feature-point p {
    font-size: 0.95rem;
    color: #7a8699;
    margin: 0;
    line-height: 1.5;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Image Showcase */
.about-showcase {
    position: relative;
}

.showcase-main {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 20px 60px rgba(11, 43, 74, 0.15);
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.showcase-main:hover .main-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px;
    color: white;
}

.overlay-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.overlay-content p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.showcase-secondary {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(11, 43, 74, 0.1);
}

.secondary-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.image-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--color-accent);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Statistics Section */
.stats-section {
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
    padding: 40px 24px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(11, 43, 74, 0.15), 0 6px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-primary) 100%);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(11, 43, 74, 0.25), 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.stat-label {
    font-size: 1rem;
    color: #7a8699;
    font-weight: 500;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Section CTA */
.section-cta {
    background: linear-gradient(135deg, rgba(11, 43, 74, 0.8) 0%, rgba(30, 74, 122, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 2;
    margin: 80px auto;
    width: calc(100% - 32px);
    max-width: 1140px;
    transform: translateX(-20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.section-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.section-cta h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.section-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.section-cta .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Desktop enhancements for CTA buttons */
@media (min-width: 769px) {
    .section-cta .cta-buttons { flex-wrap: nowrap; align-items: center; }
    .section-cta .btn,
    .about-cta .btn,
    .contact-cta .btn {
        padding: 14px 26px;
        font-size: 1rem;
        min-width: 180px;
        height: 48px;
        display: inline-flex;
        align-items: center;
    }
    /* RTL: put primary on the right, secondary on the left */
    .section-cta .btn.primary { order: 1; }
    .section-cta .btn.success,
    .section-cta .btn.btn-outline { order: 2; }
}

.contact-cta {
    background: rgba(11, 43, 74, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 2;
    margin: 80px auto;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contact-cta .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 24px;
}

.contact-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.2;
}

.contact-cta .highlight {
    color: var(--color-accent);
    position: relative;
    display: inline-block;
}

.contact-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.contact-cta .section-badge {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.contact-cta .section-title {
    color: white;
}

.contact-cta .section-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.contact-cta .contact-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.contact-cta .btn {
    padding: 12px 24px;
    font-size: 1rem;
    max-width: 200px;
    white-space: nowrap;
    border-radius: 50px;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 3px 6px rgba(0, 0, 0, 0.16),
        0 6px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.contact-cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-cta .btn:hover::before {
    opacity: 1;
}

.contact-cta .btn.success {
    background: var(--color-success);
    color: white;
}

.contact-cta .btn.primary {
    background: var(--color-accent);
    color: var(--color-primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .section-cta,
    .contact-cta,
    .about-cta {
        padding: 40px 20px;
        margin: 40px auto;
        border-radius: 16px;
        width: calc(100% - 32px);
        max-width: 100%;
    }
    /* Fix mobile shift: neutralize desktop offset */
    .section-cta { transform: none; }
    
    .contact-cta h2 {
        font-size: 2rem;
    }
    
    .contact-cta p {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .contact-cta .badge {
        font-size: 13px;
        padding: 6px 12px;
        margin-bottom: 20px;
    }
    
    .section-cta .cta-buttons,
    .contact-cta .contact-actions,
    .about-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 14px; /* extra spacing to avoid overlap */
    }

    .section-cta .btn,
    .contact-cta .btn,
    .about-cta .btn {
        width: 100%;
        max-width: 340px;
        justify-content: center;
        margin: 0; /* prevent accidental overlap from margins */
        transform: none !important; /* prevent lift causing visual overlap */
    }
}

/* On touch devices, don't lift buttons on hover (prevents visual overlap) */
@media (hover: none) {
    .btn:hover {
        transform: none;
        box-shadow: 
            0 4px 8px rgba(0, 0, 0, 0.15),
            0 8px 16px rgba(0, 0, 0, 0.2);
    }
    .about-cta .btn:hover,
    .section-cta .btn:hover,
    .contact-cta .btn:hover { transform: none; }
}

/* Extra guard: stack CTA buttons vertically on small phones */
@media (max-width: 600px) {
    .section-cta .cta-buttons,
    .about-cta .cta-buttons,
    .contact-cta .contact-actions {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
    .section-cta .cta-buttons > *,
    .about-cta .cta-buttons > *,
    .contact-cta .contact-actions > * {
        flex: 1 1 100%;
    }
}

/* CTA Section */
.about-cta {
    background: linear-gradient(135deg, rgba(11, 43, 74, 0.8) 0%, rgba(30, 74, 122, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 2;
    margin: 80px auto;
    width: calc(100% - 32px);
    max-width: 1140px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.about-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
}



.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50px;
    padding: 12px 24px;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 3px 6px rgba(0, 0, 0, 0.12),
        0 6px 12px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-outline:hover::before {
    opacity: 1;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Responsive About Section */
@media (max-width: 768px) {
    .about-section {
        padding: 60px 0;
    }
    
    .about-header {
        margin-bottom: 60px;
    }
    
    .about-header .section-title {
        font-size: 2.2rem;
    }
    
    .section-description {
        font-size: 1.1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }
    
    .story-card {
        padding: 30px;
    }
    
    .story-header h3 {
        font-size: 1.5rem;
    }
    
    .main-image {
        height: 300px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-card {
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .about-cta {
        padding: 40px 24px;
        border-radius: 16px;
    }
    
    .cta-content h3 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .about-header .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
}

.list-dots {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.list-dots li {
    position: relative;
    padding-right: 20px;
    margin-bottom: 8px;
}

.list-dots li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.badge {
    display: inline-block;
    background: var(--color-accent);
    color: #1a1a1a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin: 4px;
}

/* Project cards */
.project-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.project-card .media img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.project-card .title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--color-primary);
}

.project-card .desc {
    color: #5b6b7e;
    margin: 0 0 16px;
    line-height: 1.6;
}

.project-card .chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Modern Services Section */
.services-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
    position: relative;
    overflow: hidden;
}

.services-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.services-header .section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 80px;
}

.service-card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 300px;
}

/* Service Cards */
.service-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(11, 43, 74, 0.15), 0 6px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    height: 600px;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
}



.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(11, 43, 74, 0.25), 0 12px 30px rgba(0, 0, 0, 0.15);
}

.service-card.featured {
    border: 2px solid var(--color-accent);
    order: 3;
}

.service-card.featured::before {
    content: 'الأكثر طلباً';
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-accent);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.service-card.featured {
    border: 2px solid var(--color-accent);
}



.service-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    flex-shrink: 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 43, 74, 0.8), rgba(17, 60, 100, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-icon {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}



.service-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.service-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #5b6b7e;
    margin-bottom: 20px;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex: 1;
}

.service-features li {
    font-size: 0.95rem;
    color: #7a8699;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Service Quote Button */
.service-quote-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto;
    transition: all 0.3s ease;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    box-shadow: 
        0 1px 3px rgba(37, 211, 102, 0.15),
        0 3px 6px rgba(37, 211, 102, 0.2),
        0 6px 12px rgba(37, 211, 102, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

/* Prevent quote button from being cropped on smaller cards */
.service-content {
    display: flex;
    flex-direction: column;
}

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

.service-quote-btn {
    margin-top: auto;
}

@media (max-width: 768px) {
    .service-quote-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

.service-quote-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-quote-btn:hover {
    background: linear-gradient(135deg, #20B954 0%, #0F7A6B 100%);
    transform: translateY(-8px);
    box-shadow: 
        0 4px 8px rgba(37, 211, 102, 0.2),
        0 8px 16px rgba(37, 211, 102, 0.25),
        0 16px 32px rgba(37, 211, 102, 0.3),
        0 24px 48px rgba(37, 211, 102, 0.35);
    color: white;
    text-decoration: none;
}

.service-quote-btn:hover::before {
    opacity: 1;
}

.service-quote-btn svg {
    flex-shrink: 0;
}

/* Service Process */
.service-process {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e4a7a 100%);
    border-radius: 24px;
    padding: 60px 40px;
    margin-bottom: 80px;
    color: white;
    text-align: center;
}

.service-process h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

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

.step-number {
    width: 60px;
    height: 60px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 16px;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.step-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.step-content p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}



/* Responsive Services */
@media (max-width: 1200px) {
    .services-grid {
        gap: 25px;
    }
    
    .service-card {
        flex: 1 1 calc(50% - 12.5px);
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }
    
    .services-grid {
        gap: 20px;
        margin-bottom: 60px;
    }
    
    .service-card {
        flex: 1 1 100%;
        min-width: 100%;
        height: auto; /* avoid cropping on small screens */
    }
    
    .service-content {
        padding: 24px;
        padding-bottom: 28px; /* ensure space for quote button */
    }
    
    .service-process {
        padding: 40px 24px;
        margin-bottom: 60px;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .services-cta {
        padding: 40px 24px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Projects Section Styling */
.projects-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.projects-header {
    text-align: center;
    margin-bottom: 60px;
}

.projects-filter {
    margin-bottom: 50px;
    text-align: center;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid rgba(11, 43, 74, 0.1);
    color: #5b6b7e;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

/* Vision Mission Section Spacing Fix */
.centered-lines {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.centered-lines p {
    margin-bottom: 32px;
    padding: 20px;
    background: rgba(11, 43, 74, 0.02);
    border-radius: 12px;
    border-left: 4px solid var(--color-accent);
    font-size: 1.1rem;
    line-height: 1.7;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.centered-lines p:last-child {
    margin-bottom: 0;
}

.centered-lines strong {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

/* CTA Section Spacing Fix */
.container.block {
    margin-bottom: 60px;
}

.container.block:last-child {
    margin-bottom: 0;
}

/* Vision Section specific spacing */


/* CTA Card Visibility Fix */


/* Projects Cards Additional Spacing */
.projects .card.project-card {
    margin-bottom: 20px;
}

.projects .grid.cols-3 {
    gap: 40px;
}

/* Ensure proper spacing on mobile */
@media (max-width: 768px) {
    .grid {
        gap: 20px;
    }
    
    .projects .grid.cols-3 {
        gap: 25px;
    }
    
    .featured {
        margin-top: 60px;
        margin-bottom: 60px;
    }
    
    .featured .wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Featured project */
.featured {
    margin-top: 80px;
    margin-bottom: 80px;
}

.featured .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.featured .card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Testimonials */
.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.metric {
    text-align: center;
    padding: 24px;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.metric .value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.metric .hint {
    color: #5b6b7e;
    font-size: 14px;
}

/* Testimonials Carousel */
.testimonials-carousel {
    position: relative;
    overflow: hidden; /* avoid horizontal scroll on small screens */
    margin: 32px 0;
    padding: 0 60px;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 24px;
    margin: 0 auto;
    width: 100%;
    justify-content: center;
}

.testimonial-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 8px 25px rgba(11, 43, 74, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11, 43, 74, 0.25), 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--color-accent);
}

.testimonial-card.active {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.testimonial-content {
    font-size: 16px;
    line-height: 1.6;
    color: #5b6b7e;
    margin-bottom: 20px;
    font-style: italic;
}

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

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 18px;
}

.testimonial-info h4 {
    margin: 0;
    color: var(--color-primary);
    font-size: 16px;
}

.testimonial-info p {
    margin: 4px 0 0 0;
    color: #7a8699;
    font-size: 14px;
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.star {
    color: var(--color-accent);
    font-size: 16px;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.carousel-dot.active {
    background: var(--color-accent);
    transform: scale(1.2);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid rgba(11, 43, 74, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--color-primary);
}

.carousel-arrow:hover {
    background: var(--color-accent);
    color: #1a1a1a;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: 0;
}

.carousel-arrow.next {
    right: 0;
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
}

/* Contact section */
/* Enhanced Contact Section */
.contact {
    padding: 100px 0;
    position: relative;
}

/* Contact Form Card */
.contact-form-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(11, 43, 74, 0.06);
    margin-bottom: 40px;
    overflow: hidden;
}

.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-header:hover {
    background-color: rgba(11, 43, 74, 0.02);
}

.form-header h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.form-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(11, 43, 74, 0.05);
    transition: all 0.3s ease;
}

.form-toggle:hover {
    background: rgba(11, 43, 74, 0.1);
}

.toggle-icon {
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.contact-form-card.expanded .toggle-icon {
    transform: rotate(180deg);
}

.contact-form {
    display: grid;
    gap: 20px;
    padding: 0 30px 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-form.expanded {
    max-height: 800px;
    padding: 0 30px 30px;
}

.contact-form.collapsed {
    max-height: 0;
    padding: 0 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid rgba(11, 43, 74, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(242, 182, 50, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    border-radius: 50px;
    padding: 14px 28px;
    font-size: 16px;
    box-shadow: 
        0 1px 3px rgba(22, 163, 74, 0.15),
        0 3px 6px rgba(22, 163, 74, 0.2),
        0 6px 12px rgba(22, 163, 74, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-form .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-form .btn:hover::before {
    opacity: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
    min-height: 500px;
}

/* Contact Info Card */
.contact-info-card, .working-hours-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(11, 43, 74, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.contact-info-card:hover, .working-hours-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(11, 43, 74, 0.25), 0 6px 15px rgba(0, 0, 0, 0.15);
}

.contact-methods {
    display: grid;
    gap: 30px;
    height: 100%;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.method-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    color: var(--color-primary);
}

.method-details h4 {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin: 0 0 8px;
    font-weight: 700;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.method-value {
    color: #5b6b7e;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.method-value:hover {
    color: var(--color-accent);
}

/* Working Hours Card */
.working-hours-card h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin: 0 0 24px;
    font-weight: 700;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.working-hours-card h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin: 0 0 24px;
    font-weight: 700;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.hours-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
    flex: 1;
}

.day-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(11, 43, 74, 0.1);
}

.day-row:last-child {
    border-bottom: none;
}

.day {
    color: var(--color-primary);
    font-weight: 600;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.contact .time {
    color: #1e293b; /* darker for visibility in contact section */
    font-weight: 700;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Warranty Section */
.warranty-section {
    margin-top: auto;
    padding: 20px 0;
    border-top: 2px solid rgba(11, 43, 74, 0.08);
}

.warranty-section h4 {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin: 0 0 16px;
    font-weight: 700;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.warranty-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warranty-list li {
    color: #5b6b7e;
    margin-bottom: 12px;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warranty-list li:last-child {
    margin-bottom: 0;
}

/* Contact Actions */
.contact-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.contact-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
}

/* Responsive Contact */
@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info-card,
    .working-hours-card {
        padding: 30px;
    }
    
    .contact-method {
        gap: 16px;
    }
    
    .method-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .contact-actions {
        flex-direction: column;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e4a7a 100%);
    color: white;
    padding: 60px 0 40px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(0deg, rgba(11, 43, 74, 0.75), rgba(11, 43, 74, 0.75)),
        url('public/FooterImage.webp') center/cover no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.footer .container {
    position: relative;
    z-index: 2;
}

/* Main Footer Content */
.footer-main {
    margin-bottom: 40px;
}

/* Company Info */
.company-info {
    text-align: center;
    margin-bottom: 50px;
}

.company-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 16px;
    color: white;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.company-slogan {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Footer Columns */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 24px;
    color: white;
    font-family: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    text-align: center;
    position: relative;
}

.footer-column h3::after { content: none; }

/* Working Hours Column */
.working-hours {
    text-align: center;
}

.hours-item {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.days {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.time {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Location Column */
.location-info {
    text-align: center;
}

.location-info p {
    margin: 0 0 16px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.location-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* Contact Column */
.contact-info {
    text-align: center;
}

.contact-item {
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Footer contact: add clearer gap between label and value */
.footer .contact-item { gap: 8px; }
.footer .contact-value { margin-top: 0; white-space: normal; max-width: 100%; }
/* Ensure footer contact items always wrap and never overlap */
.footer .contact-info,
.footer .contact-item,
.footer .contact-label,
.footer .contact-value {
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.8;
}
.footer .contact-label { display: inline; margin-bottom: 0; }
@media (max-width: 480px) {
    .footer .contact-info { gap: 12px; }
    .footer .contact-item { gap: 10px; padding-top: 6px; padding-bottom: 6px; align-items: center; }
    .footer .contact-label { margin: 0; display: inline; font-size: 0.95rem; }
    .footer .contact-value { font-size: 0.95rem; display: inline; }
}

.contact-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.contact-value {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Ensure footer phone renders LTR */
.footer .contact-value[href^="tel"] {
    direction: ltr;
    unicode-bidi: bidi-override;
    display: inline-block;
}

.contact-value:hover {
    color: var(--color-accent);
}

/* Footer Separator */
.footer-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 40px 0;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.footer-link:hover {
    color: var(--color-accent);
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 30px;
    }
    
    .company-name {
        font-size: 2rem;
    }
    
    .company-slogan {
        font-size: 1.1rem;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    
    .footer-columns {
        grid-template-columns: 1fr; /* stack columns */
        gap: 20px;
    }

    /* Prevent overlaps: allow wrapping and no overflow */
    .footer-columns, .footer-column, .footer-column * {
        min-width: 0;
        word-break: break-word;
        overflow-wrap: anywhere;
        line-height: 1.6;
    }

    .working-hours .hours-item,
    .contact-info .contact-item,
    .location-info p,
    .location-features .feature {
        margin-bottom: 8px;
        line-height: 1.6;
    }

    /* Fix overlap in contact column */
    .contact-info { display: flex; flex-direction: column; gap: 20px; }
    .contact-info .contact-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 0;
        padding-top: 8px;
        padding-bottom: 8px;
    }
    .contact-info .contact-item + .contact-item { margin-top: 10px; border-top: none; }
    .contact-info .contact-item .contact-label { display: block; margin: 0; line-height: 1.6; }
    .contact-info .contact-item a,
    .contact-info .contact-item p { display: block; margin: 0; line-height: 2.0; }
    
    .footer-column h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer-links {
        justify-content: center;
        gap: 12px;
        width: 100%;
        flex-wrap: wrap;
    }

    .footer-column,
    .contact-info,
    .location-info,
    .working-hours {
        text-align: center;
    }

    /* Add soft card styling per column to visually separate and avoid crowding */
    .footer-column {
        padding: 20px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
    }

    .contact-item {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .company-name {
        font-size: 1.6rem;
    }
    .footer-columns {
        gap: 16px;
    }
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--color-accent);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-heading {
        font-size: 2.5rem;
    }
    
    .hero-subheading {
        font-size: 2rem;
    }
    
    .grid.cols-2,
    .grid.cols-3 {
        grid-template-columns: 1fr;
    }
    
    .featured .wrap {
        grid-template-columns: 1fr;
    }
    
    .contact .cols {
        grid-template-columns: 1fr;
    }
    
    .metrics {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 0 16px;
    }

    /* Make hero feature points smaller and arrange 2 per row */
    .hero-features {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 16px;
        padding: 0 16px;
    }
    .feature-item { gap: 8px; font-size: 1rem; justify-content: center; }
    .feature-icon { font-size: 1.4rem; }
    .hero-features .feature-item:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
        text-align: center;
    }

    /* Mobile hero buttons: Call first, WhatsApp second */
    .hero-buttons .btn { padding: 10px 18px; font-size: 14px; }
    .hero-buttons .btn.primary { order: 1; width: 100%; max-width: 300px; margin: 0 auto; }
    .hero-buttons .btn.success { order: 2; width: 100%; max-width: 300px; margin: 0 auto; }
    .hero-buttons .btn .btn-icon { margin-left: 8px; }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    header nav {
        flex-direction: column;
        gap: 16px;
    }
    
    header ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .about .split {
        grid-template-columns: 1fr;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    header ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    header .cta-buttons {
        display: none; /* hide top-bar CTAs on mobile; moved into dropdown */
    }

    /* CTA icons inside mobile dropdown */
    .nav-cta-item { display: none; }
    header ul .nav-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 999px;
        margin: 8px 6px 0;
        box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    }
    header ul .nav-cta.success { background: linear-gradient(135deg, var(--color-success) 0%, #16a34a 100%); color: #fff; }
    header ul .nav-cta.primary { background: linear-gradient(135deg, var(--color-accent) 0%, #ffd700 100%); color: #1a1a1a; }
    header ul .nav-cta svg { width: 20px; height: 20px; fill: currentColor; }

    /* Mobile navbar: hamburger on left, company name centered */
    header nav {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        position: relative;
        gap: 0;
        padding: 12px 12px; /* thicker navbar on mobile */
        padding-right: 44px;   /* space for hamburger on right */
        padding-left: 12px;    /* minimal left padding since CTAs are in dropdown */
        min-height: 56px;      /* ensure consistent height */
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 22px;
        width: 36px;
        height: 36px;
        line-height: 36px; /* center icon inside */
    }

    header .logo {
        margin: 0 auto;
        font-size: 18px;
        font-weight: 800;
        max-width: calc(100% - 70px); /* leave room for hamburger */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap; /* keep on one line */
        line-height: 1.2;
        display: inline-block;
        word-break: break-word;
        text-align: center;
    }

    /* Mobile dropdown menu styling */
    header ul {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #ffffff;
        box-shadow: 0 12px 30px rgba(11, 43, 74, 0.12);
        padding: 12px 16px;
        gap: 8px;
        z-index: 200;
    }

    header ul.open {
        display: flex;
    }
    /* Show CTA icons only when dropdown is open on mobile */
    header ul.open .nav-cta-item { display: inline-block; }
    
    /* Mobile testimonials */
    .testimonial-card {
        min-width: 280px;
        margin: 0 12px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    
    .carousel-arrow.prev {
        left: -50px;
    }
    
    .carousel-arrow.next {
        right: -50px;
    }
    
    /* Mobile contact info block */
    .contact-info-block {
        min-width: unset;
        width: 92%;
        bottom: 70px;
        padding: 10px 20px;
    }
    
    .contact-grid {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-item {
        justify-content: center;
        width: 100%;
    }
    
    .contact-item h4 {
        font-size: 0.75rem;
    }
    
    .contact-item p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        min-width: 250px;
        padding: 20px;
    }
    
    .metrics {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .metric {
        padding: 20px;
    }
    
    .metric .value {
        font-size: 2rem;
    }
    
    .hero-heading {
        font-size: 2rem;
    }
    
    .hero-subheading {
        font-size: 1.5rem;
    }
}
