/* layout.css — Global tokens, reset, typography, navbar, footer, mega menu,
   animations, loading screen, components */

/* ============================================================
   FONT FACE
   ============================================================ */
@font-face {
    font-family: 'Poppins';
    src: url('/Fonts/Poppins/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('/Fonts/Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('/Fonts/Poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('/Fonts/Poppins/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    --color-primary: #034694;
    --color-shade-1: #033f85;
    --color-shade-2: #023876;
    --color-shade-3: #023168;
    --color-shade-4: #022a59;
    --color-shade-5: #02234a;
    --color-shade-6: #011c3b;
    --color-shade-7: #01152c;
    --color-shade-8: #010e1e;
    --color-shade-9: #00070f;
    --color-tint-1: #1c599f;
    --color-tint-2: #356ba9;
    --color-tint-3: #4f7eb4;
    --color-tint-4: #6890bf;
    --color-tint-5: #81a3ca;
    --color-tint-6: #9ab5d4;
    --color-tint-7: #b3c8df;
    --color-tint-8: #cddaea;
    --color-tint-9: #e6edf4;
    --color-bg: #ffffff;
    --color-ink: #111827;
    --color-muted: #5b6472;
    --color-line: #e4eaf2;
    --color-soft: #f8fbff;
    --color-dark: #071d37;
    --color-gray: #3f4651;
    /* Type scale */
    --fs-display: clamp(2rem, 3.5vw, 3rem);
    --fs-section-title: clamp(1.625rem, 2.5vw, 2.25rem);
    --fs-h1: 2.625rem;
    --fs-h2: 2rem;
    --fs-h3: 1.75rem;
    --fs-h4: 1.5rem;
    --fs-h5: 1.25rem;
    --fs-h6: 1.125rem;
    --fs-body: 0.875rem;
    --fs-body-sm: .875rem;
    --fs-caption: .8125rem;
    --fs-small: .75rem;
    --fs-link: 0.875rem;     /* 14px — anchor text */
    /* Line heights */
    --lh-display: 1.1;
    --lh-section: 1.15;
    --lh-heading: 1.3;
    --lh-body: 1.6;
    --lh-caption: 1.5;
    /* Letter spacing */
    --ls-display: -.02em;
    --ls-section: -.015em;
    --ls-eyebrow: .18em;
    --ls-nav: .06em;
    --ls-body: .01em;
    /* Spacing */
    --section-py: 88px;
    --section-gap: 1.5rem;
    --space-xs: .25rem;
    --space-sm: .5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(3, 70, 148, .04);
    --shadow-md: 0 12px 34px rgba(3, 70, 148, .045);
    --shadow-lg: 0 18px 55px rgba(3, 70, 148, .08);
    --shadow-xl: 0 25px 70px rgba(15, 39, 65, .14);
    /* Borders */
    --border-default: 1px solid var(--color-line);
    --border-primary: 1px solid rgba(3, 70, 148, .24);
    --border-hover: 1px solid rgba(3, 70, 148, .35);
    /* Radius */
    --radius-card: 6px;
    --radius-btn: 6px;
    --radius-input: 6px;
    --radius-badge: 4px;
    --radius-image: 4px;
    --radius-dropdown: 6px;
    --radius-modal: 8px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    color: var(--color-ink);
    background: var(--color-bg);
    letter-spacing: var(--ls-body);
    line-height: var(--lh-body);
}

/*h1, h2, h3, h4, h5, h6, strong, b, .fw-bold, .fw-semibold {
    font-weight: 400 !important;
}*/

h1 { font-size: var(--fs-h1); line-height: var(--lh-heading); letter-spacing: -.015em; margin-bottom: .75rem; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-heading); letter-spacing: -.01em; margin-bottom: .75rem; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-heading); letter-spacing: -.005em; margin-bottom: .5rem; }
h4 { font-size: var(--fs-h4); line-height: var(--lh-heading); margin-bottom: .5rem; }
h5 { font-size: var(--fs-h5); line-height: var(--lh-heading); margin-bottom: .5rem; }
h6 { font-size: var(--fs-h6); line-height: var(--lh-heading); letter-spacing: .01em; margin-bottom: .5rem; }
p  { font-size: var(--fs-body); line-height: var(--lh-body); letter-spacing: var(--ls-body); margin-bottom: 1rem; }

.display-title { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); }
.section-title { font-size: var(--fs-section-title); line-height: var(--lh-section); letter-spacing: var(--ls-section); }

/* Sections */
.section { padding: var(--section-py) 0; }
.section-light { background: var(--color-bg); border-top: var(--border-default); }
.section-soft { background: linear-gradient(180deg, var(--color-soft) 0%, var(--color-bg) 100%); border-top: var(--border-default); border-bottom: var(--border-default); }

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gradient { 0%, 100% { background-position: 0% center; } 50% { background-position: 100% center; } }
@keyframes pulse { 0%, 100% { opacity: 0.1; } 50% { opacity: 0.2; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.animate-fade-in { animation: fadeIn 1s ease-in-out; }
.animate-slide-up { animation: slideUp 0.8s ease-out; }
.animate-slide-in-left { animation: slideInLeft 0.8s ease-out; }
.animate-slide-in-right { animation: slideInRight 0.8s ease-out; }
.animate-scale-in { animation: scaleIn 0.6s ease-out; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-slide-down { animation: slideDown 0.3s ease-out; }
.animate-gradient { background-size: 200% auto; animation: gradient 3s linear infinite; }
.animate-pulse { animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-bounce { animation: bounce 1s ease-in-out infinite; }

/* Scroll-triggered animations (data-animate) */
[data-animate] { opacity: 0; transition: all 0.7s ease-out; }
[data-animate="fade-in"] { opacity: 0; }
[data-animate="slide-up"] { transform: translateY(3rem); }
[data-animate="slide-left"] { transform: translateX(-3rem); }
[data-animate="slide-right"] { transform: translateX(3rem); }
[data-animate="scale-in"] { transform: scale(0.95); }
[data-animate].animated { opacity: 1; transform: none; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-shadow { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); }
.gradient-text { background: linear-gradient(to right, #f97316, var(--color-primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.card-shimmer { position: relative; overflow: hidden; }
.card-shimmer::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.5s; }
.card-shimmer:hover::before { left: 100%; }

/* ============================================================
   LOADING SCREEN
   ============================================================ */
.loading-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: linear-gradient(135deg, var(--color-shade-4) 0%, var(--color-shade-8) 50%, var(--color-shade-7) 100%);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loading-screen-hide { opacity: 0; visibility: hidden; }
.loading-bg-pulse {
    position: absolute; width: 24rem; height: 24rem;
    background: var(--color-primary); border-radius: 50%;
    filter: blur(80px); opacity: 0.15; animation: pulse 3s cubic-bezier(0.4,0,0.6,1) infinite;
}
.loading-bg-pulse-1 { top: 25%; left: 25%; }
.loading-bg-pulse-2 { bottom: 25%; right: 25%; animation-delay: 1s; }
.loading-content { position: relative; text-align: center; }
.loading-icon-wrap { position: relative; margin-bottom: 2rem; }
.loading-icon {
    width: 6rem; height: 6rem; border-radius: 1rem;
    object-fit: contain; display: block; margin: 0 auto;
    animation: bounce 1s ease-in-out infinite;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}
.loading-icon-glow {
    position: absolute; inset: 0; width: 6rem; height: 6rem; margin: 0 auto;
    background: linear-gradient(135deg, var(--color-primary), var(--color-tint-1));
    border-radius: 1rem; filter: blur(20px); opacity: 0.5;
    animation: pulse 3s cubic-bezier(0.4,0,0.6,1) infinite;
}
.loading-title { font-size: var(--fs-h2); font-weight: 400 !important; color: #fff; margin-bottom: .5rem; }
.loading-subtitle { color: #d1d5db; margin-bottom: 2rem; }
.loading-bar-track { width: 16rem; height: .5rem; background: var(--color-shade-6); border-radius: 1rem; overflow: hidden; margin: 0 auto; }
.loading-bar-fill { height: 100%; background: linear-gradient(to right, var(--color-primary), var(--color-tint-1)); border-radius: 1rem; transition: width 0.3s ease-out; width: 0; }
.loading-percent { color: #fff; margin-top: 1rem; font-weight: 500; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
    background-color: var(--color-shade-7); color: #fff;
    padding: .5rem 0; animation: slideDown 0.3s ease-out;
}
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; font-size: var(--fs-small); gap: .5rem; }
.topbar-contact { display: flex; align-items: center; gap: .75rem; }
.topbar-link { color: #fff; text-decoration: none; display: flex; align-items: center; gap: .375rem; transition: color 0.3s; }
.topbar-link:hover { color: var(--color-tint-5); }
.topbar-link i { font-size: 10px; }
.topbar-hours { color: #d1d5db; font-size: var(--fs-small); }

/* ============================================================
   NAVBAR
   ============================================================ */
.site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm); animation: slideDown 0.3s ease-out;
    transition: box-shadow 0.3s ease;
}
.site-navbar.navbar-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; }
.navbar-brand-link { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.navbar-logo {
    height: auto;
    width: 16rem;
}
.navbar-desktop { display: flex; align-items: center; gap: 1.5rem; }

/* Nav Links */
.nav-link-item {
    position: relative; color: var(--color-ink); text-decoration: none;
    font-weight: 500; font-size: var(--fs-body-sm);
    transition: color 0.3s; padding: 1rem 0; background: none; border: none; cursor: pointer;
}
.nav-link-item:hover { color: var(--color-primary); }
.nav-link-underline {
    position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--color-primary); transition: width 0.3s;
}
.nav-link-item:hover .nav-link-underline { width: 100%; }

/* Nav CTA Button */
.nav-cta-btn {
    background: linear-gradient(to right, var(--color-primary), var(--color-shade-1));
    color: #fff; padding: .75rem 1.5rem; border-radius: var(--radius-btn);
    font-weight: 600; font-size: var(--fs-body-sm); text-decoration: none;
    box-shadow: var(--shadow-md); transition: all 0.3s;
}
.nav-cta-btn:hover { background: linear-gradient(to right, var(--color-shade-1), var(--color-shade-2)); box-shadow: var(--shadow-lg); transform: translateY(-2px); color: #fff; }

/* Mobile Toggle */
.mobile-toggle { background: none; border: none; color: var(--color-ink); font-size: 1.25rem; padding: .5rem; cursor: pointer; transition: color 0.3s; }
.mobile-toggle:hover { color: var(--color-primary); }

/* ============================================================
   MEGA MENU
   ============================================================ */
.mega-menu-trigger { position: static; }
.mega-menu-btn { display: flex; align-items: center; gap: .375rem; }
.mega-chevron { font-size: 10px; transition: transform 0.5s; }
.mega-chevron-open { transform: rotate(180deg); color: var(--color-shade-2); }

.mega-menu-panel {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border-top: 1px solid var(--color-line);
    opacity: 0; transform: translateY(-1rem); visibility: hidden;
    pointer-events: none; transition: all 0.5s ease-in-out; z-index: 50;
    overflow: hidden;
}
.mega-menu-panel.mega-menu-open {
    opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto;
}

.mega-menu-grid {
    display: grid; grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem 2.5rem; padding: 2.5rem 0;
}
.mega-category-wide { grid-column: span 1; }
@media(min-width:992px) {
    .mega-menu-grid { grid-template-columns: 1fr 2fr 1fr; }
}

.mega-category-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.mega-category-bar { width: 3px; height: 1.25rem; background: var(--color-primary); border-radius: 2px; flex-shrink: 0; }
.mega-category-title { color: var(--color-primary); font-weight: 600 !important; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; line-height: 1.3; margin: 0; }

.mega-category-items-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .75rem; }

.mega-item {
    display: flex; align-items: flex-start; gap: .75rem;
    padding: .625rem; border-radius: .75rem;
    transition: all 0.3s; text-decoration: none; color: inherit;
}
.mega-item:hover { background: rgba(3,70,148,0.05); transform: translateX(4px); color: inherit; }
.mega-item-icon {
    width: 2.25rem; height: 2.25rem; border-radius: .5rem;
    background: rgba(3,70,148,0.1); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.3s; color: var(--color-primary); font-size: .875rem;
}
.mega-item:hover .mega-item-icon { background: var(--color-primary); color: #fff; }
.mega-item-text h4 { font-size: 13px; font-weight: 500 !important; color: var(--color-ink); margin: 0 0 .125rem; transition: color 0.3s; line-height: 1.3; }
.mega-item:hover .mega-item-text h4 { color: var(--color-primary); }
.mega-item-text p { font-size: 11px; color: var(--color-muted); line-height: 1.4; margin: 0; transition: color 0.3s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mega-item:hover .mega-item-text p { color: var(--color-ink); }

/* Mega Bottom Bar */
.mega-bottom-bar {
    border-top: 1px solid var(--color-line); padding: 2rem 0;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.mega-experts { display: flex; align-items: center; gap: 1rem; background: var(--color-soft); padding: 1rem 1.5rem; border-radius: 1rem; border: 1px solid var(--color-line); }
.mega-experts-avatars { display: flex; }
.mega-avatar {
    width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid #fff;
    background: #e2e8f0; display: flex; align-items: center; justify-content: center;
    color: #94a3b8; margin-left: -.75rem; overflow: hidden;
}
.mega-avatar:first-child { margin-left: 0; }
.mega-experts-title { font-size: var(--fs-body-sm); font-weight: 500 !important; color: var(--color-ink); margin: 0; }
.mega-experts-sub { font-size: var(--fs-small); color: var(--color-muted); margin: 0; }
.mega-bottom-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.mega-explore-btn {
    color: var(--color-primary); font-weight: 500 !important; font-size: var(--fs-body-sm);
    padding: .75rem 1.5rem; border-radius: .75rem; transition: all 0.3s;
    border: 1px solid transparent; text-decoration: none;
}
.mega-explore-btn:hover { background: rgba(3,70,148,0.05); border-color: rgba(3,70,148,0.1); color: var(--color-primary); }
.mega-demo-btn {
    background: var(--color-primary); color: #fff; font-weight: 500 !important;
    font-size: var(--fs-body-sm); padding: .875rem 2.5rem; border-radius: .75rem;
    box-shadow: 0 10px 20px rgba(3,70,148,0.2); transition: all 0.3s; text-decoration: none;
}
.mega-demo-btn:hover { box-shadow: 0 15px 30px rgba(3,70,148,0.3); transform: translateY(-2px); color: #fff; }

/* Decorative anchor */
.mega-anchor-decor { position: absolute; right: 0; bottom: 0; opacity: 0.03; pointer-events: none; }
.mega-anchor-decor i { font-size: 200px; transform: translateX(25%) translateY(25%) rotate(12deg); }

/* ============================================================
   RESOURCES DROPDOWN
   ============================================================ */
.resources-dropdown { position: relative; }
.resources-dropdown-panel {
    position: absolute;
    top: 125%;
    right: 0;
    width: 16rem;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid var(--color-line);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-.5rem);
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s;
    z-index: 50;
}
.resources-dropdown-panel.resources-open { opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto; }
.resources-dropdown-inner { padding: .75rem; }
.resources-item {
    display: flex; align-items: flex-start; gap: .75rem; padding: .75rem; border-radius: .75rem;
    text-decoration: none; color: inherit; transition: all 0.3s;
}
.resources-item:hover { background: rgba(3,70,148,0.05); color: inherit; }
.resources-item-icon {
    width: 2.25rem; height: 2.25rem; border-radius: .5rem;
    background: rgba(3,70,148,0.1); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: var(--color-primary); font-size: .875rem; transition: all 0.3s;
}
.resources-item:hover .resources-item-icon { background: var(--color-primary); color: #fff; }
.resources-item-title { font-size: var(--fs-body-sm); font-weight: 500 !important; color: var(--color-ink); margin: 0 0 .125rem; transition: color 0.3s; }
.resources-item:hover .resources-item-title { color: var(--color-primary); }
.resources-item-desc { font-size: 11px; color: var(--color-muted); line-height: 1.4; margin: 0; }

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.mobile-drawer {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 1030;
    background: #fff;
    border-top: 1px solid var(--color-line);
}
.mobile-drawer.mobile-drawer-open { display: block; animation: slideDown 0.3s ease-out; }
/* Push content below the sticky navbar so the logo + hamburger remain tappable */
.mobile-drawer-inner { padding: 5.5rem 1.5rem 3rem; }
.mobile-section { margin-bottom: 2rem; }
.mobile-section-heading { font-size: var(--fs-small); font-weight: 500 !important; color: #9ca3af; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.mobile-nav-list { display: flex; flex-direction: column; gap: .5rem; }
.mobile-nav-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem; border-radius: .75rem; text-decoration: none;
    font-weight: 600; color: var(--color-ink); transition: background 0.3s;
}
.mobile-nav-link:hover { background: var(--color-soft); color: var(--color-ink); }
.mobile-nav-link i { font-size: 10px; color: #9ca3af; }

.mobile-section-label {
    font-size: 10px; font-weight: 600 !important; color: var(--color-primary);
    text-transform: uppercase; letter-spacing: .2em; margin-bottom: 1rem;
    display: flex; align-items: center; gap: .5rem;
}
.mobile-label-line { width: 1rem; height: 1px; background: rgba(3,70,148,0.3); }

.mobile-services-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media(min-width:576px) { .mobile-services-grid { grid-template-columns: 1fr 1fr; } }

.mobile-service-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem; border-radius: 1rem;
    background: var(--color-soft); border: 1px solid var(--color-line);
    text-decoration: none; color: var(--color-ink); transition: all 0.3s;
}
.mobile-service-item:active { background: var(--color-primary); color: #fff; }
.mobile-service-item:active .mobile-service-icon { background: rgba(255,255,255,0.2); color: #fff; }
.mobile-service-icon {
    width: 2.5rem; height: 2.5rem; border-radius: .75rem;
    background: #fff; display: flex; align-items: center; justify-content: center;
    color: var(--color-primary); box-shadow: var(--shadow-sm); flex-shrink: 0;
    transition: all 0.3s;
}
.mobile-service-item span { font-weight: 500 !important; font-size: var(--fs-body-sm); }

.mobile-cta-wrap { padding-top: 1.5rem; border-top: 1px solid var(--color-line); }
.mobile-cta-btn {
    display: flex; align-items: center; justify-content: center; width: 100%;
    background: var(--color-primary); color: #fff; padding: 1rem;
    border-radius: .75rem; font-weight: 600; text-decoration: none;
    box-shadow: 0 10px 20px rgba(3,70,148,0.2); transition: all 0.3s;
}
.mobile-cta-btn:hover { color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { position: relative; padding: 3rem 0 0; overflow: hidden; }
.footer-bg { position: absolute; inset: 0; z-index: 0; }
.footer-bg-img { width: 100%; height: 100%; object-fit: cover; }
.footer-bg-overlay { position: absolute; inset: 0; background: rgba(0,7,15,0.9); }
.footer-logo { height: 1.5rem; width: auto; filter: brightness(0) invert(1); opacity: 0.8; transition: opacity 0.3s; }
.footer-logo:hover { opacity: 1; }
.footer-desc { color: #9ca3af; font-size: var(--fs-body-sm); margin-bottom: 1.5rem; }

.footer-social { display: flex; gap: .75rem; }
.footer-social-link {
    width: 2.5rem; height: 2.5rem; border-radius: 50%;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af; font-size: var(--fs-body-sm); text-decoration: none;
    transition: all 0.3s;
}
.footer-social-link:hover { background: var(--color-primary); color: #fff; transform: scale(1.1) translateY(-2px); }

.footer-heading { font-weight: 500 !important; color: #d1d5db; font-size: 1rem; margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: .05em; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .75rem; }
.footer-links a { color: #9ca3af; text-decoration: none; font-size: var(--fs-body-sm); transition: all 0.3s; display: inline-block; }
.footer-links a:hover { color: #fff; transform: translateX(4px); }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: .75rem; color: #9ca3af; font-size: var(--fs-body-sm); margin-bottom: .75rem; transition: color 0.3s; }
.footer-contact li:hover { color: #fff; }
.footer-contact i { color: var(--color-primary); margin-top: .25rem; flex-shrink: 0; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0;
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
}
.footer-copyright { color: #9ca3af; font-size: var(--fs-small); margin: 0; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: #9ca3af; font-size: var(--fs-small); text-decoration: none; transition: color 0.3s; }
.footer-legal a:hover { color: #fff; }

/* ============================================================
   SERVICE CTA BANNER
   ============================================================ */
.service-cta-banner {
    position: relative; padding: 3rem 0; background: var(--color-shade-9); overflow: hidden;
}
.service-cta-bg-pulse {
    position: absolute; top: 0; left: 33%; width: 24rem; height: 24rem;
    background: rgba(3,70,148,0.2); border-radius: 50%;
    filter: blur(80px); opacity: 0.1; animation: pulse 3s cubic-bezier(0.4,0,0.6,1) infinite;
}
.service-cta-inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.service-cta-text { color: #fff; }
.service-cta-title { font-size: var(--fs-h2); font-weight: 400 !important; margin-bottom: .75rem; }
.service-cta-subtitle { font-size: 1.125rem; color: #e5e7eb; margin: 0; }
.service-cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.service-cta-primary {
    background: linear-gradient(to right, var(--color-primary), var(--color-shade-1));
    color: #fff; padding: .875rem 2.5rem; border-radius: .5rem; font-weight: 600;
    text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s; display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
}
.service-cta-primary:hover { transform: scale(1.05); color: #fff; }
.service-cta-secondary {
    background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
    color: #fff; padding: .875rem 2.5rem; border-radius: .5rem; font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2); text-decoration: none;
    transition: all 0.3s; display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
}
.service-cta-secondary:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); color: #fff; }

@media(max-width:767px) {
    .service-cta-inner { text-align: center; justify-content: center; }
    .service-cta-actions { justify-content: center; flex-direction: column; }
    .service-cta-primary, .service-cta-secondary { width: 100%; justify-content: center; }
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section { background: #f9fafb; }
.faq-wrapper { max-width: 52rem; margin: 0 auto; }
.faq-eyebrow { color: var(--color-primary); font-weight: 600; font-size: var(--fs-body-sm); text-transform: uppercase; letter-spacing: .05em; }
.faq-divider { width: 6rem; height: 3px; background: var(--color-primary); margin: 0 auto 1.5rem; }
.faq-subtitle { font-size: 1.125rem; color: var(--color-muted); }
.faq-list { display: flex; flex-direction: column; gap: 1rem; }

.faq-item {
    background: #fff; border: 2px solid var(--color-line); border-radius: .75rem;
    overflow: hidden; transition: all 0.3s;
}
.faq-item:hover { border-color: var(--color-tint-7); box-shadow: var(--shadow-md); }
.faq-item-open { border-color: var(--color-tint-5); }

.faq-question {
    width: 100%; padding: 1.25rem 1.5rem; text-align: left; background: none; border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    transition: background 0.3s;
}
.faq-question:hover { background: #f9fafb; }
.faq-q-inner { display: flex; align-items: flex-start; gap: 1rem; flex: 1; }
.faq-q-icon {
    width: 2.5rem; height: 2.5rem; border-radius: .5rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: rgba(3,70,148,0.1); color: var(--color-primary); transition: all 0.3s;
}
.faq-item-open .faq-q-icon { background: var(--color-primary); color: #fff; }
.faq-q-inner span { font-weight: 500 !important; font-size: 1.0625rem; color: var(--color-ink); }
.faq-chevron { color: var(--color-primary); flex-shrink: 0; transition: transform 0.3s; }
.faq-item-open .faq-chevron { transform: rotate(180deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer-open { max-height: 24rem; }
.faq-answer-inner {
    padding: .5rem 1.5rem 1.25rem 4.5rem;
    background: linear-gradient(to bottom, rgba(3,70,148,0.03), transparent);
}
.faq-answer-inner p { color: var(--color-muted); line-height: 1.7; margin: 0; }

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
    padding: 3rem 0; position: relative; overflow: hidden;
    background: linear-gradient(to right, var(--color-shade-3), var(--color-shade-5), var(--color-shade-7));
}
.stats-bg-pulse {
    position: absolute; width: 24rem; height: 24rem;
    background: var(--color-primary); border-radius: 50%;
    filter: blur(80px); opacity: 0.1;
    animation: pulse 3s cubic-bezier(0.4,0,0.6,1) infinite;
}
.stats-bg-pulse-1 { top: 0; left: 25%; }
.stats-bg-pulse-2 { bottom: 0; right: 25%; animation-delay: 1s; }

.stat-card { text-align: center; }
.stat-icon-wrap { position: relative; display: inline-block; margin-bottom: 1rem; }
.stat-icon {
    width: 3.5rem; height: 3.5rem; border-radius: .75rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-tint-1));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.25rem; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s;
}
.stat-card:hover .stat-icon { transform: rotate(12deg) scale(1.1); }
.stat-icon-glow {
    position: absolute; inset: 0; border-radius: .75rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-tint-1));
    filter: blur(20px); opacity: 0.5; transition: opacity 0.3s;
}
.stat-card:hover .stat-icon-glow { opacity: 0.75; }
.stat-number { font-size: var(--fs-h2); font-weight: 500 !important; color: #fff; margin-bottom: .25rem; }
.stat-label { color: #d1d5db; font-size: var(--fs-body-sm); font-weight: 500; }

@media(min-width:768px) {
    .stat-icon { width: 5rem; height: 5rem; border-radius: 1rem; font-size: 1.5rem; }
    .stat-icon-glow { border-radius: 1rem; }
    .stat-icon-wrap { margin-bottom: 1.5rem; }
    .stat-number { font-size: 2.5rem; margin-bottom: .5rem; }
    .stat-label { font-size: 1.0625rem; }
    .stats-section { padding: 5rem 0; }
}
/* ============================================================
   HOME PAGE ICONS
   ============================================================ */
.icon_background .fa-solid {
    color: #ffffffdb;
    background-color: #ffffff2b;
    padding: 8px;
    border-radius: 4px;
}
.svc-hero-scroll {
    position: absolute;
    bottom: 0rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    animation: bounce 2s infinite;
}

.svc-hero-scroll-dot {
    width: 2rem;
    height: 3rem;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: .5rem;
}

    .svc-hero-scroll-dot span {
        width: .375rem;
        height: .75rem;
        background: rgba(255,255,255,.5);
        border-radius: 50rem;
    }
/* ============================================================
   WHY CHOOSE US SECTION
   ============================================================ */
.why-choose-section {
    background: linear-gradient(to bottom, #fff, #f9fafb);
    position: relative;
    overflow: hidden;
}

.why-image-wrap { position: relative; }
.why-image-glow {
    position: absolute; inset: -1rem; border-radius: 1.5rem;
    background: linear-gradient(to right, rgba(3,70,148,0.2), rgba(3,70,148,0.2));
    filter: blur(30px); transition: filter 0.7s;
}
.why-image-wrap:hover .why-image-glow { filter: blur(40px); }
.why-image-container { position: relative; border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-xl); }
.why-image { width: 100%; height: 600px; object-fit: cover; transition: transform 0.7s; }
.why-image-container:hover .why-image { transform: scale(1.05); }

.why-image-badge {
    position: absolute; bottom: 2rem; left: 2rem;
    background: linear-gradient(135deg, var(--color-shade-3), var(--color-shade-5));
    border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow-xl);
    transition: transform 0.5s;
}
.why-image-badge:hover { transform: scale(1.05); }
.why-badge-dots { display: flex; margin-left: -.5rem; margin-bottom: .75rem; }
.why-badge-dot {
    width: 2rem; height: 2rem; border-radius: 50%;
    background: linear-gradient(135deg, var(--color-tint-3), var(--color-primary));
    border: 2px solid #fff; margin-left: -.5rem;
}
.why-badge-label { color: rgba(255,255,255,0.8); font-size: var(--fs-body-sm); font-weight: 500; line-height: 1.4; }
.why-badge-value { font-size: 2.5rem; font-weight: 500 !important; color: #fff; }

.why-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(3,70,148,0.05); color: var(--color-primary);
    padding: .5rem 1rem; border-radius: 2rem; font-size: var(--fs-body-sm); font-weight: 600;
    margin-bottom: 1.5rem;
}
.why-eyebrow-dot { width: .5rem; height: .5rem; background: var(--color-primary); border-radius: 50%; animation: pulse 3s cubic-bezier(0.4,0,0.6,1) infinite; }
.why-desc { color: var(--color-muted); font-size: 1.0625rem; line-height: 1.7; margin-bottom: 2rem; }

.why-check-item { display: flex; align-items: flex-start; gap: .75rem; }
.why-check-icon {
    width: 1.5rem; height: 1.5rem; border-radius: 50%;
    background: rgba(3,70,148,0.1); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: .25rem; color: var(--color-primary);
    transition: all 0.3s;
}
.why-check-item:hover .why-check-icon { background: var(--color-primary); color: #fff; }
.why-check-item p { color: var(--color-ink); font-weight: 500; margin: 0; font-size: var(--fs-body-sm); }

.why-counter-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 3.5rem; height: 3.5rem; border-radius: 50%;
    background: rgba(3,70,148,0.1); color: var(--color-primary);
    margin-bottom: .75rem; transition: all 0.3s; font-size: 1.25rem;
}
.why-counter:hover .why-counter-icon { background: var(--color-primary); color: #fff; transform: scale(1.1); }
.why-counter-value { font-size: var(--fs-h3); font-weight: 500 !important; color: var(--color-ink); margin-bottom: .25rem; }
.why-counter-label { font-size: var(--fs-body-sm); color: var(--color-muted); }

.why-cta-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    background: linear-gradient(to right, var(--color-primary), var(--color-shade-1));
    color: #fff; padding: 1rem 2rem; border-radius: .5rem; font-weight: 600;
    text-decoration: none; box-shadow: var(--shadow-md);
    transition: all 0.3s;
}
.why-cta-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.why-cta-btn i { transition: transform 0.3s; }
.why-cta-btn:hover i { transform: translateX(4px); }

/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */
.scroll-top-btn {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 1030;
    width: 3rem; height: 3rem; border-radius: 50%;
    background: var(--color-primary); color: #fff; border: none;
    box-shadow: var(--shadow-lg); cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(1rem);
    transition: all 0.3s;
}
.scroll-top-btn.scroll-top-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--color-shade-1); transform: translateY(-3px); }

/* ============================================================
   ZOHO CONTACT FORM
   ============================================================ */
.zoho-contact-form { width: 100%; box-sizing: border-box; }
.zoho-contact-form * { box-sizing: border-box; direction: ltr; }
.zoho-form-row { margin-bottom: 1.25rem; }
.zoho-form-row-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.zoho-form-label { display: block; font-size: .875rem; font-weight: 600; color: #334155; margin-bottom: .5rem; }
.zoho-required { color: #ef4444; margin-left: 2px; }
.zoho-form-field { width: 100%; }
.zoho-form-input,
.zoho-form-select,
.zoho-form-textarea {
    width: 100%; padding: .75rem 1rem; font-size: .9375rem; color: #1e293b;
    background-color: #fff; border: 1px solid #d1d5db; border-radius: .5rem;
    outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; font-family: inherit;
}
.zoho-form-input:focus,
.zoho-form-select:focus,
.zoho-form-textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(3, 70, 148, 0.15); }
.zoho-form-input::placeholder,
.zoho-form-textarea::placeholder { color: #9ca3af; }
.zoho-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer;
}
.zoho-form-textarea { resize: vertical; min-height: 120px; }
.zoho-captcha-input { max-width: 180px; flex-shrink: 0; }
.zoho-captcha-inline { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.zoho-captcha-img { border-radius: .375rem; border: 1px solid #e2e8f0; height: 50px; flex-shrink: 0; padding: 4px; }
.zoho-captcha-reload {
    display: inline-flex; align-items: center; gap: .375rem;
    font-size: .8125rem; font-weight: 500; color: var(--color-primary);
    text-decoration: none; cursor: pointer; white-space: nowrap; flex-shrink: 0;
    border: 1px solid rgba(3,70,148,0.17); padding: 6px 16px; border-radius: 16px; transition: color 0.2s;
}
.zoho-captcha-reload:hover { color: #022b5e; }
.zoho-form-actions { display: flex; gap: .75rem; margin-top: 1.5rem; }
.zoho-submit-btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .875rem 2rem; font-size: 1rem; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0560c9 100%);
    border: none; border-radius: .5rem; cursor: pointer;
    transition: all 0.3s; box-shadow: 0 4px 14px rgba(3, 70, 148, 0.25);
}
.zoho-submit-btn:hover { background: linear-gradient(135deg, #022b5e 0%, var(--color-primary) 100%); box-shadow: 0 6px 20px rgba(3, 70, 148, 0.35); transform: translateY(-1px); }
.zoho-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.zoho-submit-btn i { font-size: .875rem; }
.zoho-reset-btn {
    padding: .875rem 1.5rem; font-size: .9375rem; font-weight: 500;
    color: #64748b; background-color: #f1f5f9; border: 1px solid #e2e8f0;
    border-radius: .5rem; cursor: pointer; transition: all 0.2s;
}
.zoho-reset-btn:hover { background-color: #e2e8f0; color: #334155; }

@media (max-width: 640px) {
    .zoho-form-actions { flex-direction: column; }
    .zoho-form-row-grid { grid-template-columns: 1fr; }
    .zoho-captcha-inline { flex-direction: column; align-items: flex-start; }
    .zoho-captcha-input { max-width: 100%; width: 100%; }
}

/* ============================================================
   RESPONSIVE — TYPE SCALE PER BREAKPOINT
   xs  : <576px        sm : ≥576px      md : ≥768px
   lg  : ≥992px        xl : ≥1200px (base values in :root)
   Variables cascade: smaller breakpoints override larger ones.
   ============================================================ */

/* Large (lg) — tablets landscape / small desktops: <1200px */
@media(max-width:1199.98px) {
    :root {
        --fs-h1: 2.375rem;   /* 38px */
        --fs-h2: 1.875rem;   /* 30px */
        --fs-h3: 1.625rem;   /* 26px */
        --fs-h4: 1.375rem;   /* 22px */
        --fs-h5: 1.1875rem;  /* 19px */
        --fs-h6: 1.0625rem;  /* 17px */
        --fs-body: 0.875rem; /* 14px */
        --fs-link: 0.875rem; /* 14px */
    }
}

/* Medium (md) — tablets portrait: <992px */
@media(max-width:991.98px) {
    :root {
        --section-py: 62px;
        --section-gap: 1rem;
        --fs-h1: 2.125rem;   /* 34px */
        --fs-h2: 1.75rem;    /* 28px */
        --fs-h3: 1.5rem;     /* 24px */
        --fs-h4: 1.25rem;    /* 20px */
        --fs-h5: 1.125rem;   /* 18px */
        --fs-h6: 1rem;       /* 16px */
        --fs-body: 0.875rem; /* 14px */
        --fs-link: 0.875rem; /* 14px */
    }
    .display-title { letter-spacing: -.015em; }
    .why-image { height: 400px; }
    .why-image-badge { padding: 1rem; bottom: 1rem; left: 1rem; }
    .why-badge-value { font-size: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-legal { justify-content: center; }
}

/* Small (sm) — large phones / small tablets: <768px */
@media(max-width:767.98px) {
    :root {
        --section-py: 52px;
        --fs-h1: 1.875rem;    /* 30px */
        --fs-h2: 1.5rem;      /* 24px */
        --fs-h3: 1.375rem;    /* 22px */
        --fs-h4: 1.1875rem;   /* 19px */
        --fs-h5: 1.0625rem;   /* 17px */
        --fs-h6: 0.9375rem;   /* 15px */
        --fs-body: 0.8125rem; /* 13px */
        --fs-link: 0.8125rem; /* 13px */
    }
}

/* Extra Small (xs) — phones: <576px */
@media(max-width:575.98px) {
    :root {
        --section-py: 44px;
        --fs-h1: 1.625rem;    /* 26px */
        --fs-h2: 1.375rem;    /* 22px */
        --fs-h3: 1.25rem;     /* 20px */
        --fs-h4: 1.125rem;    /* 18px */
        --fs-h5: 1rem;        /* 16px */
        --fs-h6: 0.9375rem;   /* 15px */
        --fs-body: 0.8125rem; /* 13px */
        --fs-link: 0.75rem;   /* 12px */
    }
    .topbar{
        display: none;
    }
    .topbar-contact {
        gap: .5rem;
    }
    .service-cta-title { font-size: 1.375rem; }
}

/* ============================================================
   BOOTSTRAP OVERRIDES
   ============================================================ */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--color-shade-2);
    border-color: var(--color-shade-2);
}
.btn-primary:active {
    background-color: var(--color-shade-3) !important;
    border-color: var(--color-shade-3) !important;
}
.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
a { color: var(--color-primary); font-size: var(--fs-link); }
a:hover { color: var(--color-shade-2); }

/* ============================================================
   GLOBAL OVERFLOW SAFETY & RESPONSIVE LOGO
   ============================================================ */
html, body {
    overflow-x: clip;
    max-width: 100%;
}
/* Fallback for older browsers that don't support overflow-x: clip.
   `hidden` on <html> doesn't break position: sticky the way it does on <body>. */
@supports not (overflow-x: clip) {
    html { overflow-x: hidden; }
    body { overflow-x: hidden; }
}

/* Reinforce fixed navbar — overrides any inherited positioning quirks */
.site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
}

/* Push page content below the fixed navbar so the first section isn't hidden underneath.
   Heights are approximate to topbar (~32px) + navbar (~80px) on desktop, less on mobile. */
body > main { padding-top: 112px; }
@media (max-width: 991px) {
    body > main { padding-top: 96px; }
}
@media (max-width: 767px) {
    body > main { padding-top: 88px; }
    /* Topbar gets tighter on small screens */
    .topbar { font-size: 11px; }
    .topbar-inner { gap: .25rem; }
}

/* Full-viewport heroes are designed to sit *behind* the navbar (translucent navbar,
   content vertically centered). Strip the padding-top on pages that lead with one. */
body > main:has(> .hero-section:first-child),
body > main:has(> .svc-hero:first-child),
body > main:has(> .ps-hero:first-child),
body > main:has(> section.hero-section:first-child),
body > main:has(> section.svc-hero:first-child),
body > main:has(> section.ps-hero:first-child) {
    padding-top: 0;
}

/* Defensive: prevent any oversized media from forcing the viewport wider */
img, svg, video, iframe { max-width: 100%; }

/* Responsive navbar logo — scales down on smaller screens */
.navbar-logo { max-width: 100%; }

@media (max-width: 1199px) {
    .navbar-logo { width: 14rem; }
}
@media (max-width: 767px) {
    .navbar-brand-link { gap: 0; }
    .navbar-logo { width: 10rem; }
    .navbar-inner { padding: .75rem 0; }
}
@media (max-width: 374px) {
    .navbar-logo { width: 10rem; }
}

/* ============================================================
   HOME PAGE — MOBILE RESPONSIVENESS HARDENING
   Sections with negative offsets / rotations / decorative blurs
   must clip their bleed so the page never grows wider than the
   viewport on small screens.
   ============================================================ */
.hero-section,
.hero-section + section,
.hero-section ~ section {
    overflow: hidden;
}

@media (max-width: 767px) {
    /* Tighten huge vertical padding from inline styles */
    section[style*="padding-top: 6rem"],
    section[style*="padding-top: 5rem"] {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
    /* Hero scroll dot pulled inside */
    .hero-section { min-height: 88vh; }
    /* Container side padding bumped a touch for breathing room */
    .container,
    .container-fluid { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
    /* Hero text wrappers shouldn't bleed when ancestors set 100% width */
    .hero-section h1,
    .hero-section p,
    .hero-section .container > * { max-width: 100%; }
}

/* ── Hero header — responsive font sizes ──
   Inline styles in Views/Home/Index.cshtml define the laptop baseline
   (badge 8px, h1 46px, p 13px, button 13px). The rules below scale
   the hero text up on larger desktops and down on smaller screens. */

/* Larger desktop (≥1400px) */
@media (min-width: 1400px) {
    .hero-section h1 { font-size: 60px !important; }
    .hero-section p { font-size: 15px !important; }
    .hero-section .home-button .btn { font-size: 15px !important; }
    .hero-section span.rounded-pill { font-size: 10px !important; }
}

/* Extra-large desktop (≥1600px) */
@media (min-width: 1600px) {
    .hero-section h1 { font-size: 68px !important; }
    .hero-section p { font-size: 17px !important; }
    .hero-section .home-button .btn { font-size: 16px !important; }
    .hero-section span.rounded-pill { font-size: 11px !important; }
}

/* Ultra-wide desktop (≥1920px) */
@media (min-width: 1920px) {
    .hero-section h1 { font-size: 69px !important; }
    .hero-section p { font-size: 18px !important; }
}

/* Tablet (≤991px) */
@media (max-width: 991px) {
    .hero-section h1 { font-size: 38px !important; }
    .hero-section p { font-size: 14px !important; }
    .hero-section .home-button .btn { font-size: 13px !important; }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
    .hero-section h1 { font-size: 30px !important; line-height: 1.2; }
    .hero-section p { font-size: 13px !important; }
    .hero-section .home-button .btn { font-size: 12px !important; padding: .75rem 1.25rem !important; }
    .hero-section span.rounded-pill { font-size: 8px !important; }
}

/* Small mobile (≤575px) */
@media (max-width: 575px) {
    .hero-section h1 { font-size: 26px !important; }
    .hero-section p { font-size: 12px !important; }
}

/* Very small (≤374px) */
@media (max-width: 374px) {
    .hero-section h1 { font-size: 22px !important; }
    .hero-section p { font-size: 11px !important; }
}

@media (max-width: 374px) {
    .container,
    .container-fluid { padding-left: 1rem !important; padding-right: 1rem !important; }
}

@media (max-width: 575px) {
    /* Inline icon decorations inside the credibility section sit better
       at smaller padding on phones */
    .icon_background .fa-solid { padding: 6px; }
}

/* ── About-Us image with rotated background tile + floating callout ── */
.home-about-image-wrap {
    position: relative;
    max-width: 100%;
}
.home-about-image-bg {
    position: absolute;
    inset: -1rem;
    background: var(--color-tint-9);
    border-radius: 2.5rem;
    transform: rotate(-3deg);
    z-index: 0;
}
.home-about-image {
    position: relative;
    z-index: 10;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2.5rem;
    box-shadow: var(--shadow-xl);
    transition: transform .5s;
}
.home-about-image:hover { transform: scale(1.02); }
.home-about-floating-card {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    z-index: 20;
    max-width: 240px;
    background: #fff;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    flex-direction: column;
}
.home-about-floating-icon {
    width: 3rem;
    height: 3rem;
    background: var(--color-primary);
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .75rem;
}
@media (max-width: 1199px) {
    /* Pull the floating card inside the image bounds so it doesn't bleed
       into the next column on narrower desktop widths */
    .home-about-floating-card {
        bottom: 1rem;
        right: 1rem;
        max-width: 220px;
        padding: 1.25rem;
    }
}
@media (max-width: 991px) {
    .home-about-image-bg {
        inset: -.5rem;
        border-radius: 1.75rem;
    }
    .home-about-image {
        border-radius: 1.75rem;
    }
}
@media (max-width: 767px) {
    .home-about-image-bg {
        inset: -.375rem;
        transform: rotate(-2deg);
        border-radius: 1.5rem;
    }
    .home-about-image {
        border-radius: 1.5rem;
    }
}

/* ── Why-Choose-Us image wrapper with soft blur halo ── */
.home-why-image-wrap {
    position: relative;
    max-width: 100%;
}
.home-why-blur {
    position: absolute;
    top: -2.5rem;
    left: -2.5rem;
    width: 10rem;
    height: 10rem;
    background: rgba(3, 70, 148, .1);
    border-radius: 50%;
    filter: blur(3rem);
    pointer-events: none;
    z-index: 0;
}
@media (max-width: 767px) {
    .home-why-blur {
        top: -1rem;
        left: -1rem;
        width: 6rem;
        height: 6rem;
        filter: blur(2rem);
    }
    .marginal-content{
        margin-top: 20px;
    }
    .marginal-content-port{
        margin-top: 24px;
    }
    .marginal-content-home {
        margin-top: 110px;
    }
    .home-button{
        margin-bottom: 24px
    }
    .mouse-indicator{
        display: none
    }
}

