/* =====================================================================
   Saansh Realtech — design tokens, base, layout, header, hero, footer
   Loaded after Bootstrap 5. Components live in components.css,
   breakpoints in responsive.css.
   ===================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); }

:root {
  /* Brand */
  --sr-blue: #155EEF;
  --sr-blue-600: #0F4FD1;
  --sr-blue-2: #377DFF;
  --sr-blue-50: #EEF4FF;
  --sr-navy: #102A56;
  --sr-navy-900: #0A1D3D;
  --sr-yellow: #FFC928;
  --sr-yellow-600: #F0B400;
  --sr-yellow-50: #FFF7D6;
  /* Neutrals */
  --sr-bg: #FFFFFF;
  --sr-bg-soft: #F5F8FC;
  --sr-text: #172B4D;
  --sr-muted: #64748B;
  --sr-border: #E2E8F0;
  --sr-border-strong: #CBD5E1;
  --sr-success: #15803D;
  --sr-success-50: #ECFDF3;
  --sr-danger: #B42318;
  --sr-danger-50: #FEF3F2;
  /* Type */
  --sr-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sr-display: "Manrope", "Inter", system-ui, sans-serif;
  --fs-xs: .75rem; --fs-sm: .875rem; --fs-base: 1rem; --fs-md: 1.125rem; --fs-lg: 1.375rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl: clamp(1.875rem, 1.4rem + 2vw, 2.625rem);
  --fs-hero: clamp(2.375rem, 1.6rem + 3.6vw, 4.25rem);
  /* Space & shape */
  --sp-section: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --r-badge: 4px; --r-ctl: 8px; --r-card: 12px; --r-panel: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 86, .06);
  --shadow-md: 0 8px 24px -8px rgba(16, 42, 86, .18);
  --shadow-lg: 0 24px 48px -16px rgba(16, 42, 86, .28);
  --header-h: 72px;
  --container: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Bootstrap overrides */
  --bs-body-font-family: var(--sr-font);
  --bs-body-color: var(--sr-text);
  --bs-primary: #155EEF; --bs-primary-rgb: 21, 94, 239;
  --bs-link-color: #155EEF; --bs-link-color-rgb: 21, 94, 239; --bs-link-hover-color: #0F4FD1; --bs-link-hover-color-rgb: 15, 79, 209;
  --bs-border-color: #E2E8F0; --bs-border-radius: 8px;
  --bs-focus-ring-color: rgba(21, 94, 239, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { font-family: var(--sr-font); font-size: var(--fs-base); line-height: 1.6; color: var(--sr-text); background: var(--sr-bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6, .display { font-family: var(--sr-display); color: var(--sr-navy); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 1rem; }
a { color: var(--sr-blue); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--sr-blue-600); text-decoration: underline; }
img { max-width: 100%; height: auto; }
.container-sr { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.text-muted-sr { color: var(--sr-muted) !important; }
.lead-sr { font-size: var(--fs-md); color: var(--sr-muted); max-width: 62ch; }
.visually-hidden-focusable:focus { position: fixed !important; top: 8px; left: 8px; z-index: 2000; background: #fff; padding: 10px 16px; border-radius: var(--r-ctl); box-shadow: var(--shadow-md); }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: -.2em; }

/* Focus — visible for keyboard users everywhere */
:focus-visible { outline: 3px solid var(--sr-blue-2); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .form-control:focus, .form-select:focus { box-shadow: 0 0 0 4px rgba(21, 94, 239, .25); outline: none; border-color: var(--sr-blue); }

/* ---------- Buttons ---------- */
.btn { --bs-btn-font-weight: 600; --bs-btn-padding-y: .625rem; --bs-btn-padding-x: 1.125rem; --bs-btn-border-radius: var(--r-ctl); --bs-btn-font-size: .9375rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn-lg { --bs-btn-padding-y: .8rem; --bs-btn-padding-x: 1.5rem; --bs-btn-font-size: 1rem; }
.btn-sm { --bs-btn-padding-y: .375rem; --bs-btn-padding-x: .75rem; --bs-btn-font-size: .8125rem; }
.btn-primary { --bs-btn-bg: var(--sr-blue); --bs-btn-border-color: var(--sr-blue); --bs-btn-hover-bg: var(--sr-blue-600); --bs-btn-hover-border-color: var(--sr-blue-600); --bs-btn-active-bg: #0C42B3; --bs-btn-active-border-color: #0C42B3; --bs-btn-disabled-bg: var(--sr-blue); --bs-btn-disabled-border-color: var(--sr-blue); }
.btn-cta { --bs-btn-color: var(--sr-navy); --bs-btn-bg: var(--sr-yellow); --bs-btn-border-color: var(--sr-yellow); --bs-btn-hover-color: var(--sr-navy); --bs-btn-hover-bg: var(--sr-yellow-600); --bs-btn-hover-border-color: var(--sr-yellow-600); --bs-btn-active-color: var(--sr-navy); --bs-btn-active-bg: #E0A800; --bs-btn-active-border-color: #E0A800; --bs-btn-disabled-bg: var(--sr-yellow); --bs-btn-disabled-color: var(--sr-navy); }
.btn-outline-primary { --bs-btn-color: var(--sr-blue); --bs-btn-border-color: var(--sr-border-strong); --bs-btn-hover-bg: var(--sr-blue-50); --bs-btn-hover-color: var(--sr-blue-600); --bs-btn-hover-border-color: var(--sr-blue); --bs-btn-active-bg: var(--sr-blue-50); --bs-btn-active-color: var(--sr-blue-600); --bs-btn-active-border-color: var(--sr-blue); }
.btn-ghost-light { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.5); --bs-btn-hover-color: var(--sr-navy); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff; }
.btn-whatsapp { --bs-btn-color: #fff; --bs-btn-bg: #1F9D55; --bs-btn-border-color: #1F9D55; --bs-btn-hover-bg: #17834A; --bs-btn-hover-border-color: #17834A; --bs-btn-hover-color: #fff; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.link-arrow .ic { transition: transform .15s var(--ease); }
.link-arrow:hover .ic { transform: translateX(2px); }

/* ---------- Demo notice ---------- */
.demo-bar { background: var(--sr-yellow-50); color: #6B4E00; font-size: var(--fs-sm); text-align: center; padding: 6px 16px; border-bottom: 1px solid #F5E3A3; }

/* ---------- Utility bar ---------- */
.utility-bar { background: var(--sr-navy); color: #C9D6EC; font-size: .8125rem; }
.utility-bar .container-sr { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.utility-bar a { color: #E6EDF8; }
.utility-bar a:hover { color: #fff; }
.utility-list { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.utility-list li { display: inline-flex; align-items: center; gap: 6px; }
.utility-social { display: flex; gap: 14px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--sr-border); transition: box-shadow .2s; }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(10px); } }
.site-header.is-scrolled { box-shadow: 0 4px 16px -8px rgba(16,42,86,.18); }
.site-header .container-sr { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--sr-navy); font-family: var(--sr-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; color: var(--sr-navy); }
.brand img { width: 38px; height: 38px; }
.brand .brand-sub { color: var(--sr-blue); font-weight: 600; }
.brand-logo-img { height: 44px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.main-nav > ul > li { position: relative; }
.nav-link-sr { display: inline-flex; align-items: center; gap: 4px; padding: 10px 10px; color: var(--sr-text); font-weight: 500; font-size: .9rem; border-radius: var(--r-ctl); background: none; border: 0; white-space: nowrap; }
.nav-link-sr:hover, .nav-link-sr[aria-expanded="true"] { color: var(--sr-blue); background: var(--sr-blue-50); text-decoration: none; }
.nav-link-sr.is-active { color: var(--sr-blue); }
.nav-link-sr .ic { width: 14px; height: 14px; transition: transform .15s; }
.nav-link-sr[aria-expanded="true"] .ic { transform: rotate(180deg); }
.nav-dropdown { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: #fff; border: 1px solid var(--sr-border); border-radius: var(--r-card); box-shadow: var(--shadow-lg); padding: 8px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
.nav-dropdown.is-open { opacity: 1; visibility: visible; transform: none; }
.nav-dropdown a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--sr-text); font-size: .9rem; }
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { background: var(--sr-bg-soft); color: var(--sr-blue); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-icon-link { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--sr-navy); }
.header-icon-link:hover { background: var(--sr-bg-soft); color: var(--sr-blue); }
.header-icon-link .count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sr-blue); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.nav-toggle { display: none; }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(10,29,61,.45); z-index: 1040; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.mobile-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: #fff; z-index: 1050; transform: translateX(100%); transition: transform .25s var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); visibility: hidden; }
.mobile-drawer.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--sr-border); }
.drawer-body { overflow-y: auto; padding: 8px 10px 24px; flex: 1; }
.drawer-body ul { list-style: none; margin: 0; padding: 0; }
.drawer-body > ul > li { border-bottom: 1px solid var(--sr-bg-soft); }
.drawer-body a, .drawer-sub-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px 10px; color: var(--sr-text); font-weight: 500; background: none; border: 0; text-align: left; }
.drawer-sub { padding-left: 12px !important; padding-bottom: 8px !important; }
.drawer-sub a { padding: 9px 10px; font-weight: 400; color: var(--sr-muted); }
.drawer-foot { padding: 16px 18px; border-top: 1px solid var(--sr-border); display: grid; gap: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--sr-navy); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,29,61,.92) 0%, rgba(16,42,86,.78) 38%, rgba(16,42,86,.25) 70%, rgba(16,42,86,.05) 100%); }
.hero-inner { padding-top: clamp(3.5rem, 2rem + 6vw, 7rem); padding-bottom: clamp(7.5rem, 6rem + 6vw, 10.5rem); }
.hero h1 { color: #fff; font-size: var(--fs-hero); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; max-width: 13ch; margin-bottom: 1.25rem; }
.hero-text { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: #D7E2F4; max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The search panel docks across the hero's bottom edge */
.hero-search-wrap { position: relative; z-index: 5; margin-top: -84px; }
.search-panel { background: #fff; border-radius: var(--r-panel); box-shadow: var(--shadow-lg); border: 1px solid var(--sr-border); }
.search-tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--sr-border); overflow-x: auto; scrollbar-width: none; }
.search-tabs::-webkit-scrollbar { display: none; }
.search-tab { position: relative; border: 0; background: none; padding: 10px 14px 12px; font-weight: 600; font-size: .9rem; color: var(--sr-muted); white-space: nowrap; }
.search-tab[aria-selected="true"] { color: var(--sr-navy); }
.search-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--sr-blue); }
.search-tab:hover { color: var(--sr-navy); }
.search-fields { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 1fr auto; gap: 0; padding: 10px; align-items: stretch; }
.search-field { position: relative; padding: 6px 14px; border-right: 1px solid var(--sr-border); }
.search-field:last-of-type { border-right: 0; }
.search-field label { display: block; font-size: .75rem; font-weight: 600; color: var(--sr-muted); margin-bottom: 2px; }
.search-field .form-control, .search-field .form-select { border: 0; padding: 2px 0; font-weight: 500; color: var(--sr-text); background-color: transparent; box-shadow: none !important; font-size: .95rem; }
.search-field .form-select { background-position: right 0 center; padding-right: 22px; }
.search-submit { padding: 6px 4px 6px 10px; display: flex; }
.search-submit .btn { width: 100%; min-height: 52px; padding-inline: 28px; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--sr-border); border-radius: var(--r-card); box-shadow: var(--shadow-lg); list-style: none; margin: 0; padding: 6px; z-index: 30; max-height: 320px; overflow-y: auto; }
.ac-list li { padding: 9px 12px; border-radius: 6px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
.ac-list li[aria-selected="true"], .ac-list li:hover { background: var(--sr-bg-soft); color: var(--sr-blue); }
.ac-list small { color: var(--sr-muted); }

/* ---------- Sections ---------- */
.section { padding-block: var(--sp-section); }
.section-soft { background: var(--sr-bg-soft); }
.section-tight { padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 2rem; }
.section-head h2 { margin-bottom: .35rem; }
.section-head p { color: var(--sr-muted); margin: 0; max-width: 60ch; }
.page-hero { background: var(--sr-bg-soft); border-bottom: 1px solid var(--sr-border); padding: 2rem 0 2.25rem; }
.page-hero h1 { margin-bottom: .4rem; }
.page-hero p { color: var(--sr-muted); margin: 0; max-width: 70ch; }

/* Breadcrumbs */
.crumbs { font-size: .8125rem; color: var(--sr-muted); margin-bottom: .75rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--sr-border-strong); }
.crumbs a { color: var(--sr-muted); }
.crumbs a:hover { color: var(--sr-blue); }
.crumbs [aria-current] { color: var(--sr-text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--sr-navy-900); color: #A9B8D2; font-size: .9rem; }
.site-footer h2 { color: #fff; font-size: .95rem; font-weight: 700; letter-spacing: 0; margin-bottom: 1rem; }
.site-footer a { color: #C9D6EC; }
.site-footer a:hover { color: #fff; }
.footer-main { padding: 4rem 0 2.5rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand p { max-width: 36ch; margin-top: 1rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand .brand-sub { color: #8DB3FF; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ic { margin-top: 3px; color: #8DB3FF; }
.footer-social { display: flex; gap: 10px; margin-top: 1rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.footer-social a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .8125rem; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.footer-disclaimer { font-size: .75rem; color: #7F90AE; padding-bottom: 1.5rem; max-width: 110ch; }

/* ---------- Prose (CMS content) ---------- */
.prose { font-size: 1.0625rem; line-height: 1.75; max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h3 { font-size: 1.25rem; margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .35rem; }
.prose blockquote { border-left: 3px solid var(--sr-blue); padding: .25rem 0 .25rem 1rem; color: var(--sr-navy); margin: 1.5rem 0; }
.prose img.md-img { border-radius: var(--r-card); margin: 1rem 0; }
.prose code { background: var(--sr-bg-soft); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.prose .md-table { font-size: .95rem; }
.prose .md-table th { background: var(--sr-bg-soft); color: var(--sr-navy); }

/* Floating WhatsApp / call (mobile) */
.mobile-cta-bar { display: none; }

/* Cookie consent */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 1060; max-width: 420px; background: #fff; border: 1px solid var(--sr-border); border-radius: var(--r-card); box-shadow: var(--shadow-lg); padding: 18px 18px 16px; font-size: .875rem; }
.consent p { margin-bottom: 12px; color: var(--sr-muted); }
.consent .btn { --bs-btn-padding-y: .45rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Header refinements */
.brand { flex-shrink: 0; margin-right: 8px; }
.header-cta-desktop { white-space: nowrap; }
