/* ============================================================
   ModhaTech Premium UI — modern SaaS / React-style design layer
   Font: Outfit (unchanged from hero)
   ============================================================ */

:root {
  --ui-radius-sm: 10px;
  --ui-radius-md: 14px;
  --ui-radius-lg: 20px;
  --ui-radius-pill: 999px;
  --ui-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --ui-shadow-md: 0 4px 24px rgba(16, 24, 40, 0.08);
  --ui-shadow-lg: 0 20px 48px rgba(16, 24, 40, 0.12);
  --ui-shadow-glow: 0 0 0 1px rgba(31, 168, 79, 0.12), 0 8px 32px rgba(31, 168, 79, 0.1);
  --ui-border: rgba(31, 168, 79, 0.14);
  --ui-border-subtle: rgba(0, 0, 0, 0.06);
  --ui-nav-height: 62px;
  --ui-section-y: 4.5rem;
}

body.dark-mode {
  --ui-border-subtle: rgba(255, 255, 255, 0.08);
  --ui-shadow-md: 0 4px 24px rgba(0, 0, 0, 0.35);
  --ui-shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.45);
}

body.dark-mode .section-premium--alt {
  background: linear-gradient(180deg, transparent 0%, rgba(31, 168, 79, 0.06) 50%, transparent 100%);
}

body.dark-mode .page-header-premium {
  background: linear-gradient(180deg, rgba(31, 168, 79, 0.08) 0%, transparent 100%);
}

body.dark-mode .local-seo-premium {
  background: var(--boxColor);
  border-color: var(--ui-border-subtle);
}

/* Corporate typography — stop forced capitalize sitewide */
body {
  text-transform: none;
  letter-spacing: -0.01em;
}

.title,
.title-2,
.pretitle,
h1, h2, h3, h4, h5, h6,
.navbar ul li a,
.btn,
.footer h4 {
  text-transform: none;
}

/* ── Navbar ── */
.navbar-premium {
  min-height: var(--ui-nav-height);
  padding: 0.4rem 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.navbar-premium .navbar-brand {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  margin-right: 0.75rem;
  line-height: 1;
}

.navbar-premium .navbar-brand .logo {
  width: 11.5rem;
  height: auto;
  display: block;
}

.navbar-premium .navbar-nav {
  align-items: center;
  gap: 0;
}

.navbar-premium .nav-item {
  margin: 0;
}

.navbar-premium .nav-link {
  font-size: 0.9rem;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
  padding: 0.38rem 0.7rem !important;
  border-radius: var(--ui-radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
  color: var(--secendaryColor) !important;
}

.navbar-premium .nav-link:hover,
.navbar-premium .nav-link.active {
  background: rgba(31, 168, 79, 0.1);
  color: var(--brand-color) !important;
}

.navbar-premium.sticky,
.navbar-premium.scrolled {
  background: rgba(248, 246, 244, 0.88) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--ui-shadow-sm);
  border-bottom: 1px solid var(--ui-border-subtle);
}

body.dark-mode .navbar-premium.sticky,
body.dark-mode .navbar-premium.scrolled {
  background: rgba(21, 21, 21, 0.9) !important;
}

.navbar-premium .navbar-cta {
  margin-left: 0.5rem;
  padding: 0.45rem 1rem !important;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: var(--ui-radius-pill);
  white-space: nowrap;
}

.navbar-premium .navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.75rem;
}

.navbar-premium .switch-button {
  width: 38px;
  height: 38px;
  margin-left: 0;
}

@media (min-width: 992px) {
  .navbar-premium .nav-link {
    padding: 0.38rem 0.72rem !important;
  }
}

@media (max-width: 991px) {
  .navbar-premium .navbar-collapse {
    padding: 1rem 0 1.25rem;
  }
  .navbar-premium .nav-link {
    padding: 0.65rem 0.85rem !important;
  }
  .navbar-premium .navbar-cta {
    margin: 0.75rem 0 0;
    display: inline-flex;
    width: fit-content;
  }
}

/* ── Section system ── */
.section-premium {
  padding: var(--ui-section-y) 0;
  position: relative;
}

.section-premium--alt {
  background: linear-gradient(180deg, transparent 0%, rgba(31, 168, 79, 0.04) 50%, transparent 100%);
}

.heading-premium {
  max-width: 720px;
  margin-bottom: 3rem;
}

.heading-premium--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.heading-premium .pretitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: var(--ui-radius-pill);
  background: rgba(31, 168, 79, 0.09);
  border: 1px solid var(--ui-border);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.heading-premium .title {
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.heading-premium p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--secendaryColor);
  margin-bottom: 0;
}

/* ── Cards (services, features, why-us) ── */
.card-premium,
.box.box-service,
.box.box-hover,
.why-choose-us .box,
.counter-card {
  background: var(--boxColor);
  border: 1px solid var(--ui-border-subtle);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  overflow: hidden;
}

.card-premium:hover,
.box.box-service:hover,
.box.box-hover:hover,
.why-choose-us .box:hover {
  transform: translateY(-6px);
  box-shadow: var(--ui-shadow-lg);
  border-color: var(--ui-border);
}

.box.box-service,
.box.box-hover {
  padding: 1.75rem !important;
  height: 100%;
}

.box.box-service .box-icon,
.card-premium__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ui-radius-md);
  background: rgba(31, 168, 79, 0.1);
  border: 1px solid var(--ui-border);
  margin-bottom: 1.1rem;
}

.box.box-service .box-icon i,
.card-premium__icon i {
  font-size: 1.35rem;
  color: var(--brand-color);
}

.box.box-service .title-2 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.box.box-service p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--secendaryColor);
}

.learn-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-color);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  transition: gap 0.2s ease;
}

.learn-more:hover {
  gap: 0.55rem;
}

/* ── Buttons ── */
.btn {
  border-radius: var(--ui-radius-pill) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.65rem !important;
  letter-spacing: -0.01em;
  box-shadow: var(--ui-shadow-glow);
  border: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(31, 168, 79, 0.25);
}

/* ── Page headers (inner pages) ── */
.page-header-premium {
  padding: 5.75rem 0 2.5rem;
  background: linear-gradient(180deg, rgba(31, 168, 79, 0.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--ui-border-subtle);
  margin-bottom: 2rem;
}

.page-header-premium .title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0.75rem 0 1rem;
}

.page-header-premium p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--secendaryColor);
  max-width: 720px;
}

.breadcrumb-nav ol {
  font-size: 0.88rem;
}

/* ── Stats / counter ── */
.counter-up {
  padding: 3rem 0;
}

.counter-card {
  padding: 2rem 1.5rem;
  text-align: center;
}

.counter-card .counter {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--brand-color);
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
  line-height: 1;
}

.counter-card .description {
  font-size: 0.92rem;
  color: var(--secendaryColor);
  margin: 0;
}

/* ── FAQ ── */
.faq .box {
  border-radius: var(--ui-radius-md);
  border: 1px solid var(--ui-border-subtle);
  background: var(--boxColor);
  padding: 1.1rem 1.35rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--ui-shadow-sm);
  transition: border-color 0.2s ease;
}

.faq .box:hover {
  border-color: var(--ui-border);
}

.faq .heading-3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ── Testimonials ── */
.testimonials .box {
  border-radius: var(--ui-radius-lg);
  border: 1px solid var(--ui-border-subtle);
  padding: 2rem;
  box-shadow: var(--ui-shadow-md);
  background: var(--boxColor);
}

/* ── Contact form ── */
.contact input.form-control,
.contact textarea.form-control,
.contact select.form-control {
  border-radius: var(--ui-radius-md);
  border: 1px solid var(--ui-border-subtle);
  padding: 0.85rem 1.1rem;
  background: var(--boxColor);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact input.form-control:focus,
.contact textarea.form-control:focus {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 3px rgba(31, 168, 79, 0.15);
}

.contact-map {
  border-radius: var(--ui-radius-lg);
  border: 1px solid var(--ui-border-subtle);
  overflow: hidden;
}

/* ── Services / feature grids ── */
.services-grid > [class*="col-"],
.feature-grid > [class*="col-"] {
  display: flex;
}

.services-grid .box-service,
.feature-grid .box {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.services-grid .learn-more,
.feature-grid .learn-more {
  margin-top: auto;
  padding-top: 0.75rem;
}

/* ── Compact footer ── */
.footer.footer-compact {
  background: var(--bodyColor) !important;
  border-top: 1px solid var(--ui-border-subtle);
  padding: 2.5rem 0 0;
  margin-top: 0;
}

/* Override legacy .footer rules from style.css — must beat .footer ul li a */
.footer.footer-compact ul li {
  list-style: none;
  cursor: default;
}

.footer.footer-compact .footer-compact__links a,
.footer.footer-compact .footer-compact__contact,
.footer.footer-compact .footer-compact__tagline,
.footer.footer-compact ul li a {
  color: var(--primaryColor);
  text-transform: none;
  font-weight: 500;
}

body.dark-mode .footer.footer-compact .footer-compact__links a,
body.dark-mode .footer.footer-compact .footer-compact__contact,
body.dark-mode .footer.footer-compact .footer-compact__tagline,
body.dark-mode .footer.footer-compact ul li a {
  color: var(--secendaryColor);
}

.footer.footer-compact .footer-compact__links a:hover,
.footer.footer-compact ul li a:hover {
  color: var(--brand-color);
}

body.dark-mode .footer.footer-compact {
  background: #141414 !important;
}

.footer-compact__main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2rem 2.5rem;
  padding-bottom: 2rem;
}

.footer-compact__brand {
  max-width: 280px;
}

.footer-compact__logo {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-compact__logo img {
  width: auto;
  max-width: 130px;
  height: auto;
}

.footer-compact__tagline {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--primaryColor);
  margin: 0 0 1rem;
}

body.dark-mode .footer-compact__tagline {
  color: var(--secendaryColor);
}

.footer-compact__contact {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--primaryColor);
  margin: 0 0 0.65rem;
}

body.dark-mode .footer-compact__contact {
  color: var(--secendaryColor);
}

.footer-compact__social {
  display: flex;
  gap: 0.5rem;
}

.footer-compact__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(31, 168, 79, 0.12);
  border: 1px solid var(--ui-border);
  color: var(--brand-color);
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-compact__social a:hover {
  background: var(--brand-color);
  color: #fff;
  transform: translateY(-2px);
}

.footer-compact__heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--title-2-color);
  margin: 0 0 0.85rem;
}

.footer-compact__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-compact__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--primaryColor);
  text-decoration: none;
  transition: color 0.15s ease;
}

body.dark-mode .footer-compact__links a {
  color: var(--secendaryColor);
}

.footer-compact__links a:hover {
  color: var(--brand-color);
}

.footer-compact__links--contact {
  gap: 0.35rem;
}

.footer-compact__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--ui-border-subtle);
  font-size: 0.82rem;
  color: var(--primaryColor);
}

body.dark-mode .footer-compact__bar {
  color: var(--secendaryColor);
}

.footer-compact__copy {
  margin: 0;
  color: inherit;
}

.footer-compact__copy a,
.footer-compact__legal a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.footer-compact__copy a:hover,
.footer-compact__legal a:hover {
  color: var(--brand-color);
}

.footer-compact__legal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-compact__legal span {
  color: var(--ui-border-subtle);
  user-select: none;
}

/* Footer logo: light / dark */
body:not(.dark-mode) .footer .dark-mode-logo {
  display: none !important;
}

body:not(.dark-mode) .footer .light-mode-logo {
  display: inline-block !important;
}

body.dark-mode .footer .light-mode-logo {
  display: none !important;
}

body.dark-mode .footer .dark-mode-logo {
  display: inline-block !important;
}

@media (max-width: 991px) {
  .footer-compact__main {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 2rem;
  }

  .footer-compact__brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  .footer.footer-compact {
    padding-top: 2rem;
  }

  .footer-compact__main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .footer-compact__bar {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 1rem;
  }
}

/* Navbar default light background when at top */
body:not(.dark-mode) .navbar-premium {
  background: transparent;
}

body:not(.dark-mode) .navbar-premium.sticky,
body:not(.dark-mode) .navbar-premium.scrolled {
  background: rgba(248, 246, 244, 0.92) !important;
}

/* ── Local SEO block (homepage) ── */
.local-seo-premium {
  background: var(--boxColor);
  border: 1px solid var(--ui-border-subtle);
  border-radius: var(--ui-radius-lg);
  padding: 3rem 2rem;
  box-shadow: var(--ui-shadow-sm);
}

.local-seo-premium .title-2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.local-seo-premium ul li {
  font-size: 0.95rem;
  color: var(--primaryColor);
  line-height: 1.6;
}

body.dark-mode .local-seo-premium ul li {
  color: var(--secendaryColor);
}

/* ============================================================
   Sitewide theme consistency
   Legacy style.css hardcoded dark-theme hex values are neutralized
   in light mode so every section uses CSS variables correctly.
   ============================================================ */
body:not(.dark-mode) .heading-premium p,
body:not(.dark-mode) .page-header-premium p,
body:not(.dark-mode) .counter-card .description,
body:not(.dark-mode) .footer-compact__bar,
body:not(.dark-mode) .box.box-service p,
body:not(.dark-mode) .faq .box p {
  color: var(--secendaryColor);
}

body:not(.dark-mode) .local-seo-premium ul li,
body:not(.dark-mode) .breadcrumb-nav ol li,
body:not(.dark-mode) .breadcrumb-nav a {
  color: var(--primaryColor);
}

body.dark-mode .heading-premium p,
body.dark-mode .page-header-premium p,
body.dark-mode .box.box-service p,
body.dark-mode .local-seo-premium ul li {
  color: var(--secendaryColor);
}

/* ── Single service / tech detail layout ── */
.single-service > .row > .service-side,
.single-service .row.justify-content-between > .service-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.single-service .service-side > .title-2,
.single-service .service-side > h2 {
  width: 100%;
}

.single-service .service-side > .row.g-2,
.single-service .service-side > .service-side__grid {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.single-service .service-side .service-box {
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: flex;
}

.single-service .service-side .service-box > .box {
  width: 100%;
  height: 100%;
}

.single-service .project-steps > [class*="col-"] {
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: flex;
}

.single-service .project-steps .box.box-service {
  width: 100%;
  height: 100%;
}

/* ── Tech stack grid ── */
.single-service img {
  border-radius: var(--ui-radius-lg);
  border: 1px solid var(--ui-border-subtle);
}

/* ── Clients strip ── */
.clients {
  padding: 2.5rem 0;
  border-top: 1px solid var(--ui-border-subtle);
  border-bottom: 1px solid var(--ui-border-subtle);
  background: var(--boxColor);
}

/* ── About progress bars ── */
.about .progress-bar {
  border-radius: var(--ui-radius-pill);
  overflow: hidden;
  height: 8px;
  background: rgba(31, 168, 79, 0.1);
}

/* sr-only for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Copy protection — forms remain editable */
body.no-copy {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body.no-copy input,
body.no-copy textarea,
body.no-copy select,
body.no-copy [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

body.no-copy img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

/* Internal linking + resources */
.internal-links-premium__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.internal-links-premium__list li {
  margin-bottom: 0.45rem;
  line-height: 1.5;
}

.internal-links-premium__list a {
  color: var(--primaryColor);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.internal-links-premium__list a:hover {
  color: var(--brand-color);
}

body.dark-mode .internal-links-premium__list a {
  color: var(--secendaryColor);
}

.resource-code {
  background: var(--boxColor);
  border: 1px solid var(--ui-border-subtle);
  border-radius: var(--ui-radius-md);
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.82rem;
  margin: 0.5rem 0 0;
}

.guide-content ul {
  padding-left: 1.25rem;
  margin: 1rem 0;
}

.guide-content ul li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
}

.testimonial-card {
  padding: 1.35rem;
}

/* ============================================================
   Sitewide responsive — mobile, tablet, desktop
   ============================================================ */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
video,
iframe,
svg,
canvas {
  max-width: 100%;
  height: auto;
}

.container {
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

/* Sidebar service cards (replaces inline fixed heights) */
.sidebar-service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  min-height: 220px;
  height: 100%;
}

/* Tech stack + feature grids — equal columns, no mx-auto shrink */
#tech-stack > .row > [class*="col-"],
.tech-grid > [class*="col-"],
.services-grid > [class*="col-"],
.feature-grid > [class*="col-"] {
  display: flex;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#tech-stack .box-service,
.tech-grid .box-service {
  width: 100%;
}

/* ── Tablet (≤991px) ── */
@media (max-width: 991px) {
  :root {
    --ui-section-y: 3.25rem;
    --ui-nav-height: 58px;
  }

  .page-header-premium {
    padding: 4.75rem 0 2rem;
    margin-bottom: 1.5rem;
  }

  .page-header-premium p {
    max-width: 100%;
  }

  .heading-premium {
    margin-bottom: 2.25rem;
  }

  .single-service {
    margin-top: 4.5rem;
  }

  .single-service > .row > .col-lg-7,
  .single-service .row.justify-content-between > .col-lg-7 {
    margin-bottom: 0.5rem;
  }

  .single-service .service-side {
    margin-top: 2rem;
  }

  .local-seo-premium {
    padding: 2rem 1.25rem;
  }

  .counter-card {
    padding: 1.5rem 1rem;
  }

  .why-choose-us .box h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .faq .heading-3 {
    font-size: 0.95rem;
    gap: 0.5rem;
  }

  .faq .rotate-icon {
    flex-shrink: 0;
  }

  .contact .info h5 {
    font-size: 1rem;
    line-height: 1.5;
    flex-wrap: wrap;
    word-break: break-word;
  }

  .contact-map {
    min-height: 220px;
    margin-top: 2rem;
  }

  .auth {
    min-height: auto;
    padding: 5rem 0 2.5rem;
  }

  .fzf .content h1 {
    font-size: clamp(1.75rem, 8vw, 3rem);
    text-align: center;
  }

  .fzf .content img {
    width: min(320px, 85vw);
  }

  /* Mobile navbar layout */
  .navbar-premium > .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .navbar-premium .navbar-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .navbar-premium .navbar-brand .logo {
    width: 9.5rem;
  }

  .navbar-premium #mobile-mode-toggle {
    order: 2;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 0.45rem;
  }

  .navbar-premium .navbar-toggler {
    order: 3;
    flex-shrink: 0;
    padding: 0.25rem 0.4rem;
  }

  .navbar-premium .navbar-collapse {
    order: 4;
    flex-basis: 100%;
    width: 100%;
  }

  .navbar-premium .navbar-nav {
    width: 100%;
  }

  .navbar-premium .dropdown-menu {
    border: none;
    box-shadow: none;
    padding-left: 0.5rem;
  }
}

/* ── Mobile (≤575px) ── */
@media (max-width: 575px) {
  :root {
    --ui-section-y: 2.5rem;
  }

  .section-premium {
    padding: var(--ui-section-y) 0;
  }

  .page-header-premium {
    padding: 4.25rem 0 1.75rem;
  }

  .page-header-premium .title {
    font-size: clamp(1.45rem, 6.5vw, 1.85rem);
  }

  .page-header-premium p,
  .heading-premium p {
    font-size: 0.95rem;
  }

  .breadcrumb-nav ol {
    font-size: 0.82rem;
  }

  .btn {
    padding: 0.75rem 1.35rem !important;
    font-size: 0.9rem;
  }

  .heading-premium .pretitle {
    font-size: 0.72rem;
  }

  .single-service {
    margin-top: 3.75rem;
  }

  .single-service .service-side .service-box.col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .sidebar-service-card {
    min-height: auto;
    padding: 1.25rem 1rem;
  }

  .single-service .service-box h3 {
    font-size: 0.95rem;
  }

  .single-service .service-box p {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .single-service .service-box i {
    font-size: 1.75rem;
  }

  .project-steps .box.box-service {
    padding: 1rem;
  }

  .contact .info h5 {
    font-size: 0.9rem;
  }

  .contact .info i {
    margin-left: 0 !important;
    margin-right: 0.65rem !important;
  }

  .g-recaptcha {
    transform: scale(0.88);
    transform-origin: 0 0;
  }

  .footer-compact__legal {
    flex-wrap: wrap;
  }

  .hero-premium__stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Small phones (≤380px) ── */
@media (max-width: 380px) {
  .navbar-premium .navbar-brand .logo {
    width: 8.25rem;
  }

  .hero-premium__stats {
    grid-template-columns: 1fr;
  }

  .hero-premium__stat-value {
    font-size: 1.35rem;
  }
}

/* ── Large screens — prevent over-stretch ── */
@media (min-width: 1400px) {
  .hero-premium .container {
    max-width: 1240px;
  }
}
