/* =====================================================
   VIJAYENDRA SAFETY NETS — MASTER STYLESHEET v3
   Theme: Navy Blue #1B3770 + Gold #F5A623 + White
   ===================================================== */

/* ── Variables ──────────────────────────────────────── */
:root {
  --navy: #1B3770;
  --navy-dark: #122654;
  --navy-light: #2a50a0;
  --gold: #F5A623;
  --gold-dark: #d4891a;
  --gold-light: #ffc656;
  --white: #ffffff;
  --off-white: #f8fafc;
  --bg: #EEF2F9;
  --text: #1e2d45;
  --muted: #5a6d87;
  --border: #d0daea;
  --ease: all 0.3s ease;
  --shadow-sm: 0 2px 10px rgba(27, 55, 112, .08);
  --shadow-md: 0 6px 24px rgba(27, 55, 112, .13);
  --shadow-lg: 0 16px 48px rgba(27, 55, 112, .18);
  --radius: 12px;
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* legacy aliases */
  --primary-color: #1B3770;
  --secondary-color: #2a50a0;
  --accent-color: #F5A623;
  --text-dark: #1e2d45;
  --text-light: #f8fafc;
  --bg-light: #EEF2F9;
  --white-var: #ffffff;
  --transition: all 0.3s ease;
  --heading-font: 'Outfit', sans-serif;
  --body-font: 'Inter', sans-serif;
}

/* ── Reset ──────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* prevent horizontal scroll globally */
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  word-break: break-word;
}

/* iOS Safari-compatible body scroll lock when mobile menu is open */
body.menu-open {
  position: fixed;
  width: 100%;
  overflow-y: scroll; /* keeps scrollbar visible, prevents layout shift */
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 15px;
  cursor: pointer;
  transition: var(--ease);
  border: none;
  text-align: center;
  letter-spacing: .3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  box-shadow: 0 4px 18px rgba(27, 55, 112, .35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(27, 55, 112, .45);
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
}

.btn-accent {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  box-shadow: 0 4px 18px rgba(245, 166, 35, .38);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(245, 166, 35, .5);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

/* ══════════════════════════════════════════════════════
   MARQUEE BAR  ← single-line, infinite, no-wrap
   ══════════════════════════════════════════════════════ */
.marquee-bar {
  background: linear-gradient(90deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-dark) 100%);
  color: var(--white);
  height: 36px;
  line-height: 36px;
  overflow: hidden;
  white-space: nowrap;
  /* ← MUST be on the bar */
  display: block;
  /* block so track flows naturally */
  position: relative;
  z-index: 1010;
  border-bottom: 2px solid var(--gold);
  padding: 0;
  margin: 0;
}

.marquee-track {
  display: inline-flex;
  /* inline so it doesn't create a new line */
  flex-wrap: nowrap;
  white-space: nowrap;
  animation: marqueeRoll 38s linear infinite;
  will-change: transform;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.marquee-content span {
  font-size: 13px;
  font-weight: 500;
  padding: 0 28px;
  letter-spacing: .2px;
  display: inline-block;
  white-space: nowrap;
}

.marquee-content i {
  color: var(--gold);
  margin-right: 6px;
  font-size: 12px;
}

@keyframes marqueeRoll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ══════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════ */
header {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(27, 55, 112, .08);
  transition: var(--ease);
  margin: 0;
  padding: 0;
  border: 0;
  /* Removes any gap/whitespace below header before hero */
  display: block;
  vertical-align: top;
}

header.scrolled {
  box-shadow: 0 4px 24px rgba(27, 55, 112, .16);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px;
  gap: 16px;
}

.logo img {
  max-height: 62px;
  width: auto;
}

/* Desktop Nav */
.nav-menu {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}

.nav-menu>li {
  position: relative;
}

.nav-menu>li>a {
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .5px;
  padding: 9px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--ease);
}

.nav-menu>li>a:hover,
.nav-menu>li.active>a {
  color: var(--gold-dark);
  background: rgba(245, 166, 35, .1);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  min-width: 210px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  border-top: 3px solid var(--gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: var(--ease);
  max-height: 70vh;
  overflow-y: auto;
  z-index: 999;
}

.nav-menu li:hover>.dropdown-menu,
.nav-menu li.active>.dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-size: 13px;
  border-bottom: 1px solid var(--bg);
  transition: var(--ease);
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background: var(--bg);
  color: var(--navy);
  padding-left: 22px;
}

/* Hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  font-size: 20px;
  cursor: pointer;
  color: var(--navy);
  padding: 7px 11px;
  border-radius: 8px;
  transition: var(--ease);
  z-index: 1200;
  /* ALWAYS above overlay(1049) and nav(1050) */
  position: relative;
  line-height: 1;
  pointer-events: auto !important;
  /* can NEVER be blocked */
  -webkit-tap-highlight-color: transparent;
}

.mobile-toggle:hover {
  background: var(--navy);
  color: var(--white);
}

/* Mobile overlay — dark semi-transparent backdrop behind the nav panel */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1100; /* below nav (1150) but above everything else */
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}


/* ══════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════ */
.hero {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
  /* no whitespace gap below header */
  font-size: 0;
  border: 0;
  background: #000;
  /* dark bg so no flash of white */
}

.hero .swiper,
.hero .swiper-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
  vertical-align: top;
}

.swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 6s ease;
}

.swiper-slide-active .slide-bg {
  transform: scale(1.04);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(27, 55, 112, .72) 0%, rgba(0, 0, 0, .6) 100%);
  z-index: 1;
}

/* Hero content: clamp keeps it always readable */
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 680px;
  padding: 20px 24px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s ease, transform .9s ease;
  font-size: 1rem;
  /* reset from parent font-size:0 */
}

.swiper-slide-active .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-content h1 {
  font-size: clamp(1.2rem, 3.5vw, 3rem);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .55);
  line-height: 1.15;
}

.hero-content p {
  font-size: clamp(.82rem, 1.8vw, 1.05rem);
  margin-bottom: 22px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
  line-height: 1.6;
}

.hero-content .btn {
  font-size: clamp(.8rem, 1.5vw, .95rem);
  padding: clamp(9px, 1.5vw, 13px) clamp(20px, 3vw, 32px);
}

/* Swiper pagination dots */
.swiper-pagination-bullet {
  background: var(--white);
  opacity: .6;
  width: 10px;
  height: 10px;
}

.swiper-pagination-bullet-active {
  background: var(--gold);
  opacity: 1;
  width: 28px;
  border-radius: 5px;
}

/* ══════════════════════════════════════════════════════
   QUICK CONTACT WRAPPER + FORM
   ══════════════════════════════════════════════════════ */
.qc-wrapper {
  background: var(--navy-dark);
  padding: 0 0 28px;
  position: relative;
  z-index: 5;
}

.quick-contact {
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px 32px 30px;
  border-top: 4px solid var(--gold);
  position: relative;
}

.qc-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 4px 4px 0 0;
  position: absolute;
  top: -32px;
  left: 0;
  border-radius: 8px 8px 0 0;
}

.qc-label i {
  font-size: 14px;
}

.qc-tagline {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
}

.qc-tagline strong {
  color: var(--gold-dark);
}

.qc-form {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  min-width: 190px;
  position: relative;
}

.qc-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--navy);
  font-size: 14px;
  pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 14px 18px 14px 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--text);
  transition: var(--ease);
}

.form-control:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(27, 55, 112, .12);
}

.qc-btn-group {
  flex: none;
}

.qc-submit {
  white-space: nowrap;
  padding: 14px 30px;
  font-size: 15px;
}

/* ══════════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════════ */
section {
  padding: 75px 0;
}

section:nth-child(even) {
  background: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 52px;
}

.section-title h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}

.section-title p {
  color: var(--muted);
  max-width: 560px;
  margin: 22px auto 0;
  font-size: .97rem;
}

/* ══════════════════════════════════════════════════════
   SERVICE CARDS
   ══════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--ease);
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--gold);
}

.service-img {
  width: 100%;
  height: 195px;
  object-fit: cover;
  transition: transform .45s;
}

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

.service-content {
  padding: 22px;
}

.service-content h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.service-content p {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 12px;
  line-height: 1.65;
}

.service-content a {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.service-content a:hover {
  color: var(--navy);
}

/* Feature/highlight cards */
.feature-card {
  text-align: center;
  padding: 36px 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--ease);
  border-top: 3px solid var(--gold);
}

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

.feature-card i {
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--muted);
  font-size: .9rem;
}

/* ══════════════════════════════════════════════════════
   PAGE BANNER (inner pages)
   ══════════════════════════════════════════════════════ */
.page-banner {
  padding: 80px 0 50px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(245, 166, 35, .12);
}

.page-banner h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 10px;
  position: relative;
}

.page-banner h1::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ══════════════════════════════════════════════════════
   REVIEW CARDS
   ══════════════════════════════════════════════════════ */
.review-card {
  padding: 36px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: left;
  border-left: 4px solid var(--gold);
}

.review-stars {
  color: var(--gold);
  margin-bottom: 14px;
  font-size: 15px;
}

.review-text {
  font-style: italic;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.7;
}

.review-author {
  font-weight: 700;
  color: var(--navy);
}

/* ══════════════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════════════ */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border-left: 4px solid var(--navy);
}

.faq-item h4 {
  color: var(--navy);
  padding: 18px 22px;
  font-size: 1rem;
}

.faq-item p {
  color: var(--muted);
  padding: 0 22px 18px;
  font-size: .93rem;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════════════════ */
#cta {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-light));
  color: var(--white);
  text-align: center;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

#cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 18px;
  position: relative;
}

#cta p {
  font-size: 1.1rem;
  margin-bottom: 32px;
  opacity: .88;
  position: relative;
}

#cta .btn {
  position: relative;
}

/* ══════════════════════════════════════════════════════
   FLOATING CONTACTS
   ══════════════════════════════════════════════════════ */
.floating-contacts {
  position: fixed;
  bottom: 24px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .28);
  transition: var(--ease);
}

.float-whatsapp {
  background: #25D366;
}

.float-phone {
  background: var(--navy);
}

.float-btn:hover {
  transform: scale(1.14);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
footer {
  background: linear-gradient(160deg, #07112b 0%, #0f1e45 100%);
  color: #94a3b8;
  padding: 65px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 36px;
  margin-bottom: 40px;
}

.footer-widget h3 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1.05rem;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 10px;
  display: inline-block;
}

.footer-widget p {
  font-size: .9rem;
  line-height: 1.8;
}

.footer-widget ul {
  list-style: none;
}

.footer-widget ul li {
  margin-bottom: 9px;
  font-size: .9rem;
}

.footer-widget ul li a {
  transition: var(--ease);
}

.footer-widget ul li a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-widget ul li i {
  color: var(--gold);
  width: 20px;
  margin-right: 6px;
}

.footer-logo {
  max-height: 70px;
  margin-bottom: 16px;
}

.footer-bottom {
  text-align: center;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .85rem;
}

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

.footer-bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 991px) {
  .mobile-toggle {
    display: flex;
  }

  /* ── Slide-in nav from RIGHT ── */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    left: auto !important;
    width: 82%;
    max-width: 300px;
    height: 100%;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    box-shadow: -8px 0 40px rgba(27, 55, 112, .25);
    /*
     * CRITICAL iOS FIX:
     * 'visibility: hidden' makes the element completely invisible to the
     * browser's layout engine. Unlike transform alone, 'visibility: hidden'
     * ensures iOS Safari does NOT count this element when calculating the
     * page's scrollable width — preventing the horizontal scroll bug.
     */
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .32s cubic-bezier(.4, 0, .2, 1),
                visibility 0s linear .32s; /* delay visibility change until after slide-out */
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1150;
    gap: 0;
    border-left: 3px solid var(--gold);
    will-change: transform;
  }

  /* Slide IN — instantly visible, then slide in */
  .nav-menu.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform .32s cubic-bezier(.4, 0, .2, 1),
                visibility 0s linear 0s; /* make visible immediately on open */
  }

  /* Nav header strip */
  .nav-menu::before {
    content: 'MENU';
    display: block;
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    color: var(--gold);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 3px;
    padding: 18px 20px;
    width: 100%;
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .nav-menu>li {
    width: 100%;
    border-bottom: 1px solid #eef2f9;
  }

  .nav-menu>li:last-child {
    border-bottom: none;
  }

  .nav-menu>li>a {
    font-size: 14px;
    font-weight: 700;
    padding: 14px 20px;
    justify-content: space-between;
    width: 100%;
    border-radius: 0;
    color: var(--navy);
    letter-spacing: .4px;
    display: flex;
    align-items: center;
  }

  .nav-menu>li>a:hover,
  .nav-menu>li.active>a {
    background: var(--bg);
    color: var(--gold-dark);
    padding-left: 26px;
    transition: padding-left .2s;
  }

  /* Mobile dropdown */
  .dropdown-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    border-top: none;
    border-left: 3px solid var(--gold);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    padding-left: 8px;
    background: #f0f4fb;
    margin: 0;
  }

  .nav-menu li.active .dropdown-menu {
    max-height: 1200px;
  }

  .dropdown-menu li {
    border-bottom: 1px solid #dce6f5;
  }

  .dropdown-menu li:last-child {
    border-bottom: none;
  }

  .dropdown-menu li a {
    font-size: 13px;
    padding: 11px 20px;
    color: var(--navy);
    font-weight: 500;
  }

  .dropdown-menu li a:hover {
    color: var(--gold-dark);
    background: #e8eef8;
  }

  /* Hero 1:1 on tablet */
  .hero .swiper,
  .hero .swiper-container {
    aspect-ratio: 1 / 1;
  }

  .hero-content {
    padding: 16px 18px;
  }

  /* Page banner reduced on tablet */
  .page-banner {
    padding: 70px 0 40px;
  }
}

/* ══════════════════════════════════════════════════════
   MOBILE  ≤ 768px
   ══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  section {
    padding: 50px 0;
  }

  .hero .swiper,
  .hero .swiper-container {
    aspect-ratio: 1 / 1;
  }

  .hero-content {
    padding: 12px 14px;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: clamp(1rem, 5.5vw, 1.5rem);
    letter-spacing: .5px;
    margin-bottom: 8px;
  }

  .hero-content p {
    font-size: clamp(.75rem, 3.5vw, .9rem);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-content .btn {
    font-size: .82rem;
    padding: 9px 22px;
  }

  /* Quick contact */
  .qc-wrapper {
    padding: 0 0 22px;
  }

  .quick-contact {
    padding: 28px 18px 22px;
  }

  .qc-form {
    flex-direction: column;
    gap: 12px;
  }

  .form-group {
    min-width: 100%;
  }

  .qc-btn-group {
    width: 100%;
  }

  .qc-submit {
    width: 100%;
    justify-content: center;
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 14px;
  }

  .service-img {
    height: 135px;
  }

  .service-content {
    padding: 14px;
  }

  /* Page banner */
  .page-banner {
    padding: 60px 0 36px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Marquee */
  .marquee-bar {
    height: 32px;
  }

  .marquee-content span {
    font-size: 12px;
    margin: 0 20px;
  }

  /* Logo */
  .logo img {
    max-height: 55px;
  }

  /* Floating contacts — move left of screen edge on small phones */
  .floating-contacts {
    bottom: 18px;
    right: 14px;
  }

  .float-btn {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
}

/* ══════════════════════════════════════════════════════
   SMALL MOBILE  ≤ 480px
   ══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .service-img {
    height: 115px;
  }

  .hero-content h1 {
    font-size: clamp(.95rem, 6vw, 1.3rem);
  }

  .hero-content p {
    font-size: .75rem;
    -webkit-line-clamp: 2;
  }

  .float-btn {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}