:root {
    --primary-color: #20315d;
    --secondary-color: #3b3b3b;
    --light-slate: #989898;
    --dark-slate: #1a242f;
    --accent-yellow: #5BB8F5;
}

/* Override Tailwind's text-blue-600 to use our custom color */
.text-blue-600 {
    color: #20315d !important;
}

/* Override Tailwind's bg-blue-600 to use our custom color */
.bg-blue-600 {
    background-color: #20315d !important;
}

/* Override Tailwind's border-blue-600 to use our custom color */
.border-blue-600 {
    border-color: #20315d !important;
}

body { 
    font-family: 'Open Sans', sans-serif; 
}

h1, h2, h3, h4, .nav-font { 
    font-family: 'Montserrat', sans-serif; 
}

.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-bg {
    background-image: url('../img/hero-background.jpg');
}

/* Dark overlay for hero section using pseudo-element so it doesn't
   conflict with the inline background-image on the HTML element */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 36, 47, 0.45);
    pointer-events: none;
    z-index: 1;
}

/* Ensure hero content sits above the overlay */
.hero-section > * {
    position: relative;
    z-index: 2;
}

.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.about-hero-bg {
    background-image: url('../img/about-us-background.jpg');
}

.services-hero-bg {
    background-image: url('../img/services-background.jpg');
}

.contacts-hero-bg {
    background-image: url('../img/contacts-background.jpg');
}

/* Dark overlay for page header sections */
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 36, 47, 0.65);
    pointer-events: none;
    z-index: 1;
}

/* Ensure page header content sits above the overlay */
.page-header > * {
    position: relative;
    z-index: 2;
}

.bt-btn-yellow {
    background-color: var(--accent-yellow);
    color: #20315d;
    transition: all 0.3s;
}

.bt-btn-yellow:hover {
    background-color: #3AA3E8;
    transform: translateY(-2px);
}

.bt-btn-blue {
    background-color: var(--primary-color);
    color: white;
    transition: all 0.3s;
}

.bt-btn-blue:hover {
    background-color: #162343;
}

.overlap-card { 
    margin-top: -60px; 
    z-index: 20; 
}

.border-accent { 
    border-top: 4px solid var(--accent-yellow); 
}

.check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.check-list li::before {
    content: '\f00c';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-yellow);
}

.service-card-img {
    height: 250px;
    overflow: hidden;
}

.service-card-img img {
    transition: transform 0.5s;
}

.service-card:hover img {
    transform: scale(1.1);
}

.form-input {
    background-color: #f5f5f5;
    border: none;
    padding: 1rem;
    width: 100%;
    outline: none;
    transition: background 0.3s;
}

.form-input:focus {
    background-color: #e0e0e0;
}

.map-container iframe {
    filter: grayscale(100%);
    border: 0;
}

/* ── Contact form feedback banner ───────────────────────────────────────────── */
.contact-feedback {
    padding: 0.9rem 1.1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 0.5rem;
}

.contact-feedback--success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.contact-feedback--error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.hero-logo-img {
    max-width: 380px;
}

/* Navigation styles */
.bg-slate-900.text-white.text-xs.py-3.px-4.lg\:px-20.flex.justify-between.items-center.border-b.border-slate-800 {
    background-color: #111827;
    color: white;
    font-size: 0.75rem;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1f2937;
}

/* Header styles */
.bg-white.sticky.top-0.z-50.shadow-sm.px-4.lg\:px-20.py-5.flex.justify-between.items-center {
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1.25rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Footer styles */
.bg-slate-900.text-white.pt-24.pb-12.px-4.lg\:px-20 {
    background-color: #111827;
    color: white;
    padding-top: 6rem;
    padding-bottom: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Text styles */
.text-gray-700 {
    color: #374151;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-gray-200 {
    color: #e5e7eb;
}

.text-gray-100 {
    color: #f3f4f6;
}

.text-blue-600 {
    color: var(--primary-color);
}

.text-blue-500 {
    color: var(--primary-color);
}

.text-yellow-400 {
    color: #5BB8F5 !important;
}

.text-slate-900 {
    color: #0f172a;
}

.text-slate-800 {
    color: #1f2937;
}

.text-white {
    color: #ffffff;
}

/* Background styles */
.bg-white {
    background-color: #ffffff;
}

.bg-slate-900 {
    background-color: #111827;
}

.bg-slate-800 {
    background-color: #1f2937;
}

.bg-slate-50 {
    background-color: #f8fafc;
}

.bg-blue-600 {
    background-color: var(--primary-color);
}

.bg-blue-500 {
    background-color: var(--primary-color);
}

/* Border styles */
.border-b {
    border-bottom: 1px solid;
}

.border-t {
    border-top: 1px solid;
}

.border-l {
    border-left: 1px solid;
}

.border-r {
    border-right: 1px solid;
}

.border {
    border: 1px solid;
}

.border-transparent {
    border-color: transparent;
}

.border-gray-100 {
    border-color: #f3f4f6;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-gray-400 {
    border-color: #9ca3af;
}

.border-gray-500 {
    border-color: #6b7280;
}

.border-gray-600 {
    border-color: #4b5563;
}

.border-gray-700 {
    border-color: #374151;
}

.border-gray-800 {
    border-color: #1f2937;
}

.border-gray-900 {
    border-color: #0f172a;
}

.border-blue-600 {
    border-color: var(--primary-color);
}

.border-blue-500 {
    border-color: var(--primary-color);
}

.border-yellow-400 {
    border-color: #5BB8F5 !important;
}

.border-slate-700 {
    border-color: #374151;
}

.border-slate-800 {
    border-color: #1f2937;
}

/* Font styles */
.font-bold {
    font-weight: 700;
}

.font-black {
    font-weight: 900;
}

.font-normal {
    font-weight: 400;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

.text-7xl {
    font-size: 4.5rem;
    line-height: 1;
}

.text-8xl {
    font-size: 6rem;
    line-height: 1;
}

/* Layout styles */
.flex {
    display: flex;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.inline {
    display: inline;
}

.inline-block {
    display: inline-block;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.uppercase {
    text-transform: uppercase;
}

.capitalize {
    text-transform: capitalize;
}

.lowercase {
    text-transform: lowercase;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.tracking-wide {
    letter-spacing: 0.05em;
}

.tracking-normal {
    letter-spacing: 0;
}

.leading-relaxed {
    line-height: 1.625;
}

.leading-normal {
    line-height: 1.5;
}

.leading-tight {
    line-height: 1.25;
}

/* Spacing styles */
.p-4 {
    padding: 1rem;
}

.p-8 {
    padding: 2rem;
}

.p-10 {
    padding: 2.5rem;
}

.p-12 {
    padding: 3rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-20 {
    padding-left: 5rem;
    padding-right: 5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-5 {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.pt-24 {
    padding-top: 6rem;
}

.pb-12 {
    padding-bottom: 3rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-20 {
    margin-bottom: 5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-4 {
    margin-right: 1rem;
}

.mr-6 {
    margin-right: 1.5rem;
}

.ml-6 {
    margin-left: 1.5rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.my-6 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-8 > * + * {
    margin-top: 2rem;
}

.space-y-12 > * + * {
    margin-top: 3rem;
}

.space-y-16 > * + * {
    margin-top: 4rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-x-6 > * + * {
    margin-left: 1.5rem;
}

.space-x-8 > * + * {
    margin-left: 2rem;
}

/* Width styles */
.w-full {
    width: 100%;
}

.w-12 {
    width: 3rem;
}

.w-64 {
    width: 16rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-2xl {
    max-width: 42rem;
}

/* Height styles */
.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 4rem !important;
}

.h-24 {
    height: 6rem;
}

.h-64 {
    height: 16rem;
}

.h-80 {
    height: 20rem;
}

.h-96 {
    height: 24rem;
}

.h-screen {
    height: 100vh;
}

/* Position styles */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.z-50 {
    z-index: 50;
}

/* Shadow styles */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Transition styles */
.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

/* Hover styles */
.hover\:text-blue-600:hover {
    color: var(--primary-color);
}

.hover\:bg-blue-600:hover {
    background-color: var(--primary-color);
}

.hover\:bg-blue-500:hover {
    background-color: var(--primary-color);
}

.hover\:bg-yellow-400:hover {
    background-color: #5BB8F5;
}

.hover\:border-yellow-400:hover {
    border-color: #5BB8F5;
}

/* Grid styles */
.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Gap styles */
.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.gap-16 {
    gap: 4rem;
}

/* Display for different screen sizes */
.lg\:hidden {
    display: none;
}

.lg\:flex {
    display: flex;
}

.lg\:block {
    display: block;
}

.lg\:px-20 {
    padding-left: 5rem;
    padding-right: 5rem;
}

.lg\:text-left {
    text-align: left;
}

.lg\:text-right {
    text-align: right;
}

/* Scroll behavior */
.scroll-smooth {
    scroll-behavior: smooth;
}

/* Overflow styles */
.overflow-hidden {
    overflow: hidden;
}

/* Object styles */
.object-cover {
    object-fit: cover;
}

.object-center {
    object-position: center;
}

/* Cursor styles */
.cursor-pointer {
    cursor: pointer;
}

/* List styles */
.list-disc {
    list-style-type: disc;
}

.list-none {
    list-style-type: none;
}

/* Outline styles */
.outline-none {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Resize styles */
.resize-none {
    resize: none;
}

/* Appearance styles */
.appearance-none {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* User select styles */
.select-none {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Pointer events styles */
.pointer-events-none {
    pointer-events: none;
}

.pointer-events-auto {
    pointer-events: auto;
}

/* Transform styles */
.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.scale-110 {
    --tw-scale-x: 1.1;
    --tw-scale-y: 1.1;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

/* Backdrop filter styles */
.backdrop-blur {
    --tw-backdrop-blur: blur(8px);
    -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
    backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}

/* Animation styles */
.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: none;
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Focus styles */
.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-2:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-blue-500:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(0 122 179 / var(--tw-ring-opacity));
}

/* Disabled styles */
.disabled\:opacity-50:disabled {
    opacity: 0.5;
}

.disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed;
}

/* Print styles */
@media print {
    .print\:hidden {
        display: none !important;
    }
}

/* Screen reader only styles */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduce motion styles */
@media (prefers-reduced-motion: reduce) {
    .motion-reduce\:transition-none {
        transition-property: none;
    }
}

/* High contrast styles */
@media (prefers-contrast: high) {
    .contrast-more\:border {
        border-width: 1px;
    }
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    .dark\:bg-gray-900 {
        background-color: #111827;
    }
    
    .dark\:text-white {
        color: #ffffff;
    }
    
    .dark\:text-gray-300 {
        color: #d1d5db;
    }
}

/* Mobile-first responsive design */
@media (max-width: 767px) {
    /* Navigation improvements for mobile */
    nav {
        padding: 1rem;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    
    /* Mobile menu toggle button styling */
    .lg\:hidden {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        color: #111827;
        transition: color 0.3s ease;
    }
    
    .lg\:hidden:hover {
        color: #20315d;
    }
    
    /* Mobile navigation menu */
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        z-index: 100;
        border-radius: 0 0 8px 8px;
        border: 1px solid #e5e7eb;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        width: 100%;
        text-align: left;
    }
    
    nav ul li a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 6px;
        transition: all 0.3s ease;
        font-size: 0.9rem;
    }
    
    nav ul li a:hover {
        background-color: #f3f4f6;
        color: #20315d;
    }
    
    /* Hero section mobile adjustments */
    .hero-section {
        padding: 2rem 0;
        height: auto;
        min-height: 60vh;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-section .max-w-2xl {
        text-align: center;
    }
    
    /* Service cards mobile layout */
    .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .grid.md\:grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .grid.lg\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .grid.lg\:grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .grid.lg\:grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    /* Section padding adjustments */
    section.py-24 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Text size adjustments for mobile */
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
    
    .text-8xl {
        font-size: 4rem;
    }
    
    /* Button adjustments */
    .bt-btn-yellow, .bt-btn-blue {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
    
    /* Container padding */
    .px-4.lg\:px-20 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .px-20 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Footer adjustments */
    footer {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }
    
    footer .grid.lg\:grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    /* Map container mobile */
    .map-container {
        height: 300px;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 1rem;
    }
    
    /* Service page mobile */
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    /* About page mobile */
    .about-hero {
        height: auto;
        min-height: 50vh;
    }
    
    /* Contact page mobile */
    .contact-info {
        margin-bottom: 2rem;
    }
    
    /* Responsive spacing */
    .gap-8 {
        gap: 1.5rem;
    }
    
    .gap-12 {
        gap: 2rem;
    }
    
    .gap-16 {
        gap: 2.5rem;
    }
    
    /* Responsive text alignment */
    .text-center-mobile {
        text-align: center;
    }
    
    .text-left-mobile {
        text-align: left;
    }
    
    .text-right-mobile {
        text-align: right;
    }
    
    /* Mobile-specific utilities */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 99;
        display: none;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
}

/* Tablet responsive design */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Navigation adjustments */
    nav {
        padding: 1.5rem 2rem;
    }
    
    /* Hero section adjustments */
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    /* Grid layouts for tablets */
    .grid.md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid.md\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid.lg\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid.lg\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid.lg\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Text size adjustments */
    .text-4xl {
        font-size: 2.5rem;
    }
    
    .text-5xl {
        font-size: 3rem;
    }
    
    .text-6xl {
        font-size: 3.5rem;
    }
    
    /* Container padding */
    .px-4.lg\:px-20 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .px-20 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Desktop responsive design */
@media (min-width: 1024px) {
    /* Navigation adjustments */
    nav {
        padding: 1.5rem 3rem;
    }
    
    /* Hero section adjustments */
    .hero-section h1 {
        font-size: 4rem;
    }
    
    /* Grid layouts for desktop */
    .grid.md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid.md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid.lg\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid.lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid.lg\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Text size adjustments */
    .text-4xl {
        font-size: 3rem;
    }
    
    .text-5xl {
        font-size: 4rem;
    }
    
    .text-6xl {
        font-size: 5rem;
    }
    
    .text-8xl {
        font-size: 6rem;
    }
    
    /* Container padding */
    .px-4.lg\:px-20 {
        padding-left: 5rem;
        padding-right: 5rem;
    }
    
    .px-20 {
        padding-left: 5rem;
        padding-right: 5rem;
    }
    
    /* Footer adjustments */
    footer .grid.lg\:grid-cols-4 {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for high DPI displays */
    .hero-section {
        background-size: cover;
        background-position: center;
    }
    
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print styles */
@media print {
    nav {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        height: auto !important;
    }
    
    .overlap-card {
        margin-top: 0 !important;
        position: relative !important;
    }
    
    button, .bt-btn-yellow, .bt-btn-blue {
        display: none !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}

/* ============================================================
   NAVIGATION — MOBILE & TABLET (below 1024px)
   This block supersedes the earlier mobile-only nav rules and
   extends full hamburger-menu behaviour up to 1023 px (the
   same breakpoint Tailwind uses for its "lg" prefix).
   ============================================================ */
@media (max-width: 1023px) {

    /* Show the hamburger icon on all sub-desktop viewports */
    .lg\:hidden {
        display: flex !important;
        align-items: center;
        cursor: pointer;
        font-size: 1.5rem;
        color: #ffffff;
        transition: color 0.3s ease;
    }

    /* Give the nav a solid semi-transparent background so the
       hamburger + logo are always legible.
       z-index must exceed the overlay (99) so the dropdown links
       are always clickable on mobile. */
    nav {
        background-color: rgba(26, 36, 47, 0.75) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 200 !important;
    }

    /* When the nav has scrolled to solid-white state (added by JS),
       restore the opaque white background */
    nav.bg-white {
        background-color: #ffffff !important;
    }

    /* Hide the desktop inline nav list — it becomes a dropdown */
    nav ul {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        box-shadow: 0 12px 20px -4px rgba(0, 0, 0, 0.15);
        padding: 0.75rem 0.5rem;
        flex-direction: column;
        gap: 0.25rem;
        z-index: 200;
        border-radius: 0 0 10px 10px;
        border-top: 3px solid var(--accent-yellow);
    }

    /* Show the dropdown when the JS toggles the .show class */
    nav ul.show {
        display: flex !important;
    }

    nav ul li {
        width: 100%;
    }

    /* Force all nav link text to a dark, readable colour inside
       the white dropdown — overrides the text-white / text-yellow-400
       HTML classes */
    nav ul li a,
    nav ul li.text-yellow-400 {
        display: block !important;
        padding: 0.75rem 1rem !important;
        border-radius: 6px !important;
        color: #1e293b !important;
        font-size: 0.9rem;
        font-weight: 700;
        transition: background 0.2s ease, color 0.2s ease;
        text-decoration: none;
    }

    /* Active / current page link gets an accent highlight */
    nav ul li a.text-yellow-400 {
        color: var(--primary-color) !important;
        background-color: #f1f5f9;
        border-left: 3px solid var(--accent-yellow);
    }

    nav ul li a:hover {
        background-color: #f1f5f9 !important;
        color: var(--primary-color) !important;
    }

    /* Hide the email address in the nav on mobile/tablet — too cramped */
    nav .hidden.lg\:inline,
    nav span.hidden {
        display: none !important;
    }

    /* Mobile overlay for when menu is open */
    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.45);
        z-index: 99;
        display: none;
    }

    .mobile-menu-overlay.active {
        display: block;
    }
}

/* On full desktop (1024px+) ensure hamburger stays hidden */
@media (min-width: 1024px) {
    .lg\:hidden {
        display: none !important;
    }
}

/* ============================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ============================================================ */

/* --- Keyframes --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes iconBounce {
    0%   { transform: translateY(0) scale(1); }
    35%  { transform: translateY(-9px) scale(1.1); }
    65%  { transform: translateY(-4px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

/* --- Hero sequential animations (auto-play on page load) --- */
.hero-animate-1 {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
.hero-animate-2 {
    opacity: 0;
    animation: fadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}
.hero-animate-3 {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}
.hero-animate-4 {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.75s both;
}
.hero-img-animate {
    opacity: 0;
    animation: zoomIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

/* Inner-page header animations */
.page-animate-1 {
    opacity: 0;
    animation: fadeInDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.page-animate-2 {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* --- Scroll-reveal base states --- */
.reveal       { opacity: 0; transform: translateY(35px); will-change: opacity, transform; }
.reveal-left  { opacity: 0; transform: translateX(-50px); will-change: opacity, transform; }
.reveal-right { opacity: 0; transform: translateX(50px); will-change: opacity, transform; }
.reveal-scale { opacity: 0; transform: scale(0.9); will-change: opacity, transform; }

/* Active / in-view states */
.reveal.in-view,
.reveal-left.in-view,
.reveal-right.in-view,
.reveal-scale.in-view {
    opacity: 1;
    transform: none;
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Stagger delays --- */
.delay-100 { transition-delay: 0.10s !important; }
.delay-200 { transition-delay: 0.20s !important; }
.delay-300 { transition-delay: 0.30s !important; }
.delay-400 { transition-delay: 0.40s !important; }
.delay-500 { transition-delay: 0.50s !important; }
.delay-600 { transition-delay: 0.60s !important; }
.delay-700 { transition-delay: 0.70s !important; }

/* --- Micro-interactions --- */

/* Buttons — spring lift + glow */
.bt-btn-yellow,
.bt-btn-blue {
    will-change: transform;
}
.bt-btn-yellow:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 10px 28px rgba(91, 184, 245, 0.45) !important;
}
.bt-btn-yellow:active {
    transform: translateY(0) scale(0.98) !important;
}
.bt-btn-blue:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 10px 28px rgba(32, 49, 93, 0.35) !important;
}
.bt-btn-blue:active {
    transform: translateY(0) scale(0.98) !important;
}

/* Outline buttons */
button.border-white {
    transition: background-color 0.3s, color 0.3s,
                transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
button.border-white:hover {
    transform: translateY(-3px) scale(1.02) !important;
}

/* Nav link slide-in underline */
nav ul li a {
    position: relative;
}
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-yellow);
    transition: width 0.3s ease;
    border-radius: 1px;
}
nav ul li a:hover::after {
    width: 100%;
}

/* Icon bounce on service/feature card hover */
.flex.group:hover .text-4xl {
    animation: iconBounce 0.5s ease;
}

/* Quick-service card lift (overlap section) */
.overlap-card .grid > div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.overlap-card .grid > div:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.15);
}

/* Image hover subtle zoom */
.img-hover {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.img-hover:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Form input micro-interaction */
.form-input {
    transition: background-color 0.3s, transform 0.2s ease, box-shadow 0.2s ease !important;
}
.form-input:focus {
    background-color: #dbeafe !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(32, 49, 93, 0.12) !important;
}

/* ============================================================
   CORE VALUES — FLIP CARD EFFECT
   ============================================================ */

.flip-card {
    perspective: 1000px;
    height: 220px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.flip-card-front {
    background-color: #f8fafc;
    border-bottom: 4px solid transparent;
    transition: border-color 0.3s;
}

.flip-card:hover .flip-card-front {
    border-color: #5BB8F5;
}

.flip-card-back {
    background-color: var(--primary-color);
    transform: rotateY(180deg);
    color: #ffffff;
}

.flip-card-back i,
.flip-card-back h4,
.flip-card-back p {
    color: #ffffff !important;
}

/* ============================================================
   SERVICES DROPDOWN MENU
   ============================================================ */

/* Arrow icon next to SERVICES label */
.nav-dropdown-arrow {
    display: inline-block;
    font-size: 9px;
    margin-left: 5px;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

/* Dropdown panel — desktop only (shown via hover) */
@media (min-width: 1024px) {
    .nav-dropdown-parent {
        position: relative;
    }

    /* The dropdown <ul> is always flex-column but hidden via opacity/visibility */
    .nav-dropdown {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        position: absolute !important;
        top: calc(100% + 14px) !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(-8px) !important;
        background: #ffffff !important;
        min-width: 210px !important;
        border-radius: 8px !important;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14) !important;
        border-top: 3px solid var(--accent-yellow) !important;
        padding: 0.4rem 0 !important;
        z-index: 300 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s !important;
        /* Invisible bridge so the hover doesn't break when moving mouse down */
    }

    /* Invisible bridge between nav link and dropdown panel */
    .nav-dropdown::before {
        content: '';
        position: absolute;
        top: -14px;
        left: 0;
        right: 0;
        height: 14px;
    }

    /* Show dropdown when parent li is hovered */
    .nav-dropdown-parent:hover .nav-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(-50%) translateY(0) !important;
    }

    /* Rotate arrow up when open */
    .nav-dropdown-parent:hover .nav-dropdown-arrow {
        transform: rotate(180deg);
    }

    /* Dropdown item list items */
    .nav-dropdown li {
        width: 100%;
        position: static !important;
    }

    /* Dropdown item links */
    .nav-dropdown li a {
        display: block !important;
        padding: 0.65rem 1.25rem !important;
        color: #1e293b !important;
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.06em !important;
        border-radius: 0 !important;
        white-space: nowrap !important;
        background: transparent !important;
        transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease !important;
    }

    /* Remove the underline pseudo-element on dropdown items */
    .nav-dropdown li a::after {
        display: none !important;
    }

    .nav-dropdown li a:hover {
        background: #f1f5f9 !important;
        color: var(--primary-color) !important;
        padding-left: 1.6rem !important;
    }
}

/* Dropdown panel — mobile/tablet (shown via .open class toggled by JS) */
@media (max-width: 1023px) {
    /* Override the blanket "nav ul { display:none !important }" rule
       so the nested dropdown ul can be shown inside the mobile menu */
    nav ul.nav-dropdown {
        display: none !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        background: transparent !important;
        min-width: 0 !important;
        width: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border-top: none !important;
        border-left: 3px solid var(--accent-yellow) !important;
        padding: 0.2rem 0 0.2rem 0 !important;
        margin: 0.25rem 0 0.25rem 1rem !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transition: none !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    nav ul.nav-dropdown.open {
        display: flex !important;
    }

    nav ul.nav-dropdown li a {
        padding: 0.55rem 1rem !important;
        font-size: 0.82rem !important;
        color: #334155 !important;
        font-weight: 600 !important;
        background: transparent !important;
        border-radius: 4px !important;
        letter-spacing: 0.04em !important;
    }

    nav ul.nav-dropdown li a::after {
        display: none !important;
    }

    nav ul.nav-dropdown li a:hover {
        background: #f1f5f9 !important;
        color: var(--primary-color) !important;
    }

    /* Rotate arrow when dropdown is open on mobile */
    .nav-dropdown-parent .nav-dropdown.open ~ a .nav-dropdown-arrow,
    .nav-dropdown-parent.open .nav-dropdown-arrow {
        transform: rotate(180deg);
    }
}

/* Scroll offset for fixed nav when jumping to anchors */
#field-services,
#radwin-services,
#logistics-services,
#ict-products {
    scroll-margin-top: 95px;
}

/* --- Respect reduced motion --- */
/* --- Respect reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right, .reveal-scale,
    .hero-animate-1, .hero-animate-2, .hero-animate-3, .hero-animate-4,
    .hero-img-animate, .page-animate-1, .page-animate-2 {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .bt-btn-yellow:hover,
    .bt-btn-blue:hover {
        transform: none !important;
    }
}
