/* =============================================
   EMI — services.css
   Services Landing Page
============================================= */

:root {
  --blue-dark:   #0a1628;
  --blue-mid:    #0d2244;
  --blue:        #1a3a6b;
  --blue-light:  #2563b0;
  --yellow:      #f5c518;
  --yellow-light:#ffd84d;
  --white:       #ffffff;
  --off-white:   #f4f6fa;
  --gray:        #8a9bb5;
  --gray-light:  #e8edf5;
  --text-dark:   #0d1c30;
  --text-body:   #3a4a5c;
  --radius:      6px;
  --shadow:      0 8px 32px rgba(10,22,40,0.18);
  --transition:  0.35s cubic-bezier(.4,0,.2,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; color: var(--text-body); background: var(--white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { width: 92%; max-width: 1200px; margin: 0 auto; }

/* =============================================
   UTILITIES
============================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif; font-size: 1rem;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; border: none; transition: var(--transition);
}
.btn-primary { background: var(--yellow); color: var(--blue-dark); }
.btn-primary:hover { background: var(--yellow-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,197,24,0.4); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--blue-dark); transform: translateY(-2px); }
.section-tag {
  display: inline-block; font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--yellow); margin-bottom: 10px;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800;
  color: var(--blue-dark); line-height: 1.1;
}
.section-title span { color: var(--blue-light); }
.section-title.light { color: var(--white); }
.section-title.light span { color: var(--yellow); }

/* =============================================
   NAVBAR
============================================= */
#navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--blue-mid); box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  transition: background var(--transition);
}
#navbar.scrolled { background: rgba(10,22,40,0.97); backdrop-filter: blur(10px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 48px; height: 48px; background: var(--yellow); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 1.3rem; color: var(--blue-dark);
  /* REPLACE: <img src="logo.png" style="height:48px;width:auto;border-radius:6px;"> */
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-family: 'Barlow Condensed', sans-serif; font-size: 1.25rem; font-weight: 800; color: var(--white); letter-spacing: 1px; }
.logo-text span { font-size: 0.68rem; color: var(--yellow); letter-spacing: 2px; text-transform: uppercase; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px; padding: 8px 14px;
  color: rgba(255,255,255,0.85); font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  border-radius: var(--radius); transition: var(--transition); white-space: nowrap;
  background: none; border: none; cursor: pointer;
}
.nav-link:hover, .nav-item:hover > .nav-link,
.nav-link.active-page { color: var(--yellow); background: rgba(255,255,255,0.05); }
.nav-link i.fa-chevron-down { font-size: 0.65rem; transition: transform .3s; }
.nav-item:hover > .nav-link i.fa-chevron-down { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
  background: var(--blue-dark); border-top: 3px solid var(--yellow);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: var(--transition); z-index: 999;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-group { padding: 12px 0 6px; }
.dropdown-group-title {
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--yellow);
  padding: 4px 18px 6px; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 4px;
}
.dropdown a {
  display: flex; align-items: center; gap: 8px; padding: 8px 18px;
  color: rgba(255,255,255,0.75); font-size: 0.88rem; transition: var(--transition);
}
.dropdown a i { color: var(--yellow); width: 14px; font-size: 0.8rem; }
.dropdown a:hover { background: rgba(245,197,24,0.08); color: var(--white); padding-left: 24px; }
.dropdown.mega { min-width: 700px; display: grid; grid-template-columns: repeat(2,1fr); left: -200px; }

/* =============================================
   LANGUAGE SWITCHER
============================================= */
.nav-lang { position: relative; }
.lang-trigger {
  display: flex; align-items: center; gap: 6px; padding: 7px 12px;
  color: rgba(255,255,255,0.85); font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  border-radius: var(--radius); transition: var(--transition);
  cursor: pointer; background: none; border: none; white-space: nowrap;
}
.lang-trigger:hover, .nav-lang:hover .lang-trigger { color: var(--yellow); background: rgba(255,255,255,0.05); }
.lang-trigger .globe { font-size: 0.9rem; color: var(--yellow); }
.lang-trigger i.fa-chevron-down { font-size: 0.6rem; transition: transform .3s; }
.nav-lang:hover .lang-trigger i.fa-chevron-down { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 130px;
  background: var(--blue-dark); border-top: 3px solid var(--yellow);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: var(--transition); z-index: 999; overflow: hidden;
}
.nav-lang:hover .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  display: flex; align-items: center; gap: 10px; padding: 11px 18px; cursor: pointer;
  color: rgba(255,255,255,0.75); font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  transition: var(--transition); border: none; background: none; width: 100%; text-align: left;
}
.lang-option:hover { background: rgba(245,197,24,0.08); color: var(--white); }
.lang-option.active { color: var(--yellow); }
.lang-option .flag { font-size: 1.1rem; }

/* =============================================
   SEARCH POPUP (small card)
============================================= */
.nav-right { display: flex; align-items: center; gap: 8px; position: static; }
.nav-search-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85); font-size: 0.9rem;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.nav-search-btn:hover,
.nav-search-btn.active { background: var(--yellow); color: var(--blue-dark); border-color: var(--yellow); }

.search-popup {
  position: fixed; top: 80px; right: 20px; left: auto;
  width: 320px; background: var(--white); border-radius: 10px;
  box-shadow: 0 12px 40px rgba(10,22,40,0.2); border-top: 3px solid var(--yellow);
  opacity: 0; visibility: hidden;
  transform: translateY(8px) scale(0.97);
  transition: opacity .25s, visibility .25s, transform .25s;
  z-index: 9000; overflow: hidden;
}
.search-popup.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.search-popup::before {
  content: ''; position: absolute; top: -8px; right: 16px;
  width: 0; height: 0;
  border-left: 8px solid transparent; border-right: 8px solid transparent;
  border-bottom: 8px solid var(--yellow);
}
.search-popup-inner { padding: 16px; }
.search-popup-label {
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.72rem;
  font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gray); margin-bottom: 10px; display: block;
}
.search-input-wrap {
  display: flex; align-items: center;
  border: 1.5px solid var(--gray-light); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s;
}
.search-input-wrap:focus-within { border-color: var(--blue-light); }
.search-input {
  flex: 1; padding: 10px 14px; border: none; outline: none;
  font-family: 'Lato', sans-serif; font-size: 0.9rem; color: var(--text-dark); background: var(--white);
}
.search-input::placeholder { color: var(--gray); }
.search-submit-btn {
  padding: 10px 14px; background: var(--blue-dark); border: none;
  color: var(--white); font-size: 0.85rem; cursor: pointer; transition: var(--transition);
}
.search-submit-btn:hover { background: var(--blue-light); }
.search-suggestions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.search-suggestion-tag {
  padding: 4px 12px; border-radius: 50px; border: 1px solid var(--gray-light);
  color: var(--gray); font-size: 0.78rem; cursor: pointer; transition: var(--transition);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; letter-spacing: 0.5px; background: none;
}
.search-suggestion-tag:hover { border-color: var(--yellow); color: var(--blue-dark); background: rgba(245,197,24,0.08); }

/* =============================================
   HAMBURGER
============================================= */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   PAGE HERO
============================================= */
#page-hero {
  position: relative; height: 300px; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%); overflow: hidden;
}
#page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 50%, rgba(245,197,24,0.07) 0%, transparent 50%),
    radial-gradient(circle at 20% 20%, rgba(37,99,176,0.15) 0%, transparent 40%);
}
.hero-ring {
  position: absolute; right: 140px; top: 50%; transform: translateY(-50%);
  width: 260px; height: 260px; border: 2px solid rgba(245,197,24,0.1); border-radius: 50%; z-index: 1;
}
.hero-ring::before { content: ''; position: absolute; inset: 25px; border: 1px solid rgba(245,197,24,0.06); border-radius: 50%; }
.hero-watermark { position: absolute; right: 165px; top: 50%; transform: translateY(-50%); font-size: 6.5rem; color: rgba(255,255,255,0.04); z-index: 1; }
.page-hero-inner { position: relative; z-index: 2; width: 100%; }
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.85rem;
  font-weight: 700; letter-spacing: 4px; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 14px;
}
.page-hero-eyebrow::before { content: ''; display: block; width: 30px; height: 2px; background: var(--yellow); }
#page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800;
  color: var(--white); text-transform: uppercase; line-height: 1; margin-bottom: 18px;
}
#page-hero h1 em { font-style: normal; color: var(--yellow); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.55); flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color .2s; }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb i { font-size: 0.6rem; color: var(--yellow); }
.breadcrumb span { color: var(--yellow); }

/* =============================================
   SERVICES CATEGORIES SECTION
============================================= */
#services-categories {
  padding: 80px 0 100px;
  background: var(--off-white);
}

.categories-intro {
  text-align: center;
  margin-bottom: 56px;
}
.categories-intro h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800;
  color: var(--blue-dark); line-height: 1.1; margin-top: 8px;
}
.categories-intro h2 span { color: var(--blue-light); }
.categories-intro-divider {
  width: 60px; height: 4px; background: var(--yellow);
  border-radius: 2px; margin: 14px auto 0;
}
.categories-intro p {
  margin-top: 18px; font-size: 1rem; color: var(--gray);
  max-width: 560px; margin-left: auto; margin-right: auto; line-height: 1.7;
}

/* Category cards grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.category-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(10,22,40,0.07);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
  position: relative;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(10,22,40,0.13);
  border-color: rgba(245,197,24,0.3);
}

/* Coloured top accent bar per category */
.category-card-header {
  padding: 28px 32px 24px;
  border-left: 5px solid var(--yellow);
  position: relative;
}
.category-card:nth-child(2) .category-card-header { border-left-color: var(--blue-light); }
.category-card:nth-child(3) .category-card-header { border-left-color: #16a34a; }
.category-card:nth-child(4) .category-card-header { border-left-color: #dc6f1a; }

.category-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue));
  color: var(--yellow);
  transition: var(--transition);
}
.category-card:hover .category-icon { background: var(--yellow); color: var(--blue-dark); }

.category-card-header h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem; font-weight: 800;
  color: var(--blue-dark); text-transform: uppercase;
  letter-spacing: 0.5px; line-height: 1.2;
}

/* Service links list inside each card */
.category-links {
  padding: 0 32px 28px;
  border-top: 1px solid var(--gray-light);
  margin-top: 0;
}
.category-links li { border-bottom: 1px solid var(--gray-light); }
.category-links li:last-child { border-bottom: none; }
.category-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0; color: var(--text-body); font-size: 0.92rem;
  transition: var(--transition); gap: 10px;
}
.category-link-left {
  display: flex; align-items: center; gap: 10px;
}
.category-link-left i {
  color: var(--yellow); font-size: 0.78rem; flex-shrink: 0;
  width: 16px; text-align: center;
}
.category-link-arrow {
  color: var(--gray-light); font-size: 0.75rem;
  transition: var(--transition); flex-shrink: 0;
}
.category-link:hover { color: var(--blue-light); }
.category-link:hover .category-link-arrow { color: var(--yellow); transform: translateX(4px); }

/* =============================================
   CTA BANNER
============================================= */
#cta {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  position: relative; overflow: hidden; text-align: center;
}
#cta::before { content: ''; position: absolute; top: -60px; right: -60px; width: 400px; height: 400px; border: 2px solid rgba(245,197,24,0.08); border-radius: 50%; }
#cta::after  { content: ''; position: absolute; bottom: -80px; left: -80px; width: 300px; height: 300px; border: 2px solid rgba(245,197,24,0.06); border-radius: 50%; }
.cta-inner { position: relative; z-index: 1; }
.cta-inner p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 520px; margin: 14px auto 32px; line-height: 1.7; }
.cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* =============================================
   FOOTER
============================================= */
#footer { background: var(--blue-dark); color: rgba(255,255,255,0.65); padding: 70px 0 0; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand p { line-height: 1.8; margin: 16px 0; color: rgba(255,255,255,0.5); font-size: 0.87rem; }
.footer-socials { display: flex; gap: 10px; margin-top: 10%; }
.social-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.06); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); transition: var(--transition); }
.social-icon:hover { background: var(--yellow); color: var(--blue-dark); }
.footer-col h4 { font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--yellow); display: inline-block; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.55); transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-links a i { color: var(--yellow); font-size: 0.65rem; }
.footer-links a:hover { color: var(--yellow); padding-left: 4px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.footer-contact i { color: var(--yellow); margin-top: 3px; width: 16px; }

/* Location hover card */
.footer-location-wrap { position: relative; display: inline-block; cursor: pointer; }
.footer-location-wrap .location-text { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.6; transition: color .2s; }
.footer-location-wrap:hover .location-text { color: var(--yellow); }
.location-card {
  position: absolute; bottom: calc(100% + 12px); left: 0; width: 260px;
  background: var(--white); border-radius: 8px; box-shadow: 0 12px 40px rgba(10,22,40,0.35);
  border-top: 3px solid var(--yellow); opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: var(--transition); z-index: 100; overflow: hidden;
}
.footer-location-wrap:hover .location-card { opacity: 1; visibility: visible; transform: translateY(0); }
.location-card-map-fallback {
  width: 100%; height: 130px; background: linear-gradient(135deg, var(--blue-mid), var(--blue));
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: rgba(255,255,255,0.15);
}
.location-card-body { padding: 12px 14px; }
.location-card-body strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--blue-dark); margin-bottom: 4px; }
.location-card-body p { font-size: 0.78rem; color: var(--text-body); line-height: 1.5; margin-bottom: 10px; }
.location-card-link {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px;
  background: var(--yellow); color: var(--blue-dark); border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; transition: var(--transition);
}
.location-card-link:hover { background: var(--yellow-light); }

.footer-bottom { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: rgba(255,255,255,0.35); flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: var(--yellow); }

/* =============================================
   BACK TO TOP
============================================= */
#back-to-top {
  position: fixed; bottom: 30px; right: 30px; width: 46px; height: 46px;
  background: var(--yellow); color: var(--blue-dark); border: none; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; box-shadow: 0 4px 16px rgba(245,197,24,0.5);
  opacity: 0; transform: translateY(20px); transition: var(--transition); z-index: 9999;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--yellow-light); transform: translateY(-3px); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .dropdown.mega { min-width: 500px; left: -100px; grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; flex-direction: column; align-items: flex-start; }
  .hamburger { display: flex; }
  .nav-menu.open {
    display: flex; position: fixed; top: 70px; left: 0; right: 0;
    background: var(--blue-dark); padding: 16px 0 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4); z-index: 999;
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .nav-item { width: 100%; }
  .nav-link { width: 100%; padding: 12px 20px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; display: none; border-top: none; border-left: 3px solid var(--yellow); margin-left: 20px; box-shadow: none; background: rgba(255,255,255,0.04); }
  .dropdown.mega { display: none; grid-template-columns: 1fr; min-width: auto; left: 0; position: static; }
  .nav-item.open .dropdown, .nav-item.open .dropdown.mega { display: block; }
  .nav-item.open > .nav-link i.fa-chevron-down { transform: rotate(180deg); }
  .nav-lang { width: 100%; }
  .lang-trigger { width: 100%; padding: 12px 20px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .lang-dropdown { position: static; opacity: 1; visibility: visible; transform: none; display: none; border-top: none; border-left: 3px solid var(--yellow); margin-left: 20px; box-shadow: none; background: rgba(255,255,255,0.04); }
  .nav-lang.open .lang-dropdown { display: block; }

  /* Search popup — centred on mobile */
  .search-popup {
    position: fixed; top: 80px;
    left: 50%; right: auto;
    transform: translateX(-50%) translateY(8px) scale(0.97);
    width: calc(100vw - 32px); max-width: 420px;
  }
  .search-popup.active { transform: translateX(-50%) translateY(0) scale(1); }
  .search-popup::before { display: none; }

  .categories-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  #page-hero { height: 240px; }
  .hero-ring, .hero-watermark { display: none; }
  .category-card-header { padding: 22px 22px 18px; }
  .category-links { padding: 0 22px 22px; }
}
@media (max-width: 400px) {
  .search-popup { width: calc(100vw - 24px); top: 74px; }
}
