/* Brand Colors & Global Variables */
:root {
  --primary-navy: #003E8E;
  --accent-teal: #097969;
  --whatsapp-green: #15803D; /* Accessible WhatsApp green: white text passes WCAG AA */
  --dark-slate: #0F172A;
  --text-main: #202A36;
  --bg-light: #F5F8FA;
  --white: #FFFFFF;
  --card-border: #DCE3EA;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 12px 24px -5px rgba(0, 62, 142, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  /* Prevent accidental horizontal paint overflow without creating a scroll container.
     `overflow-x: hidden` can interfere with position: sticky in some browsers. */
  overflow-x: clip;
  width: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); /* Space for mobile sticky CTA bar */
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

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

.container {
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
}

h1, h2, h3, h4, h5, h6, p {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Announcement Top Bar */
.top-bar {
  background: var(--primary-navy);
  color: var(--white);
  padding: 9px 0;
  font-size: 13.5px;
}

.top-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-phone {
  color: #93C5FD;
  font-weight: 700;
  text-decoration: none;
  margin-left: 5px;
  white-space: nowrap;
}

.top-timing {
  font-size: 12.5px;
  color: #E2E8F0;
}

/* Header */
header {
  background: var(--white);
  border-bottom: 1px solid var(--card-border);
  padding: 11px 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--accent-teal);
}

.logo-icon {
  background: #EFF6FF;
  color: var(--primary-navy);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--primary-navy);
  font-weight: 700;
}

.btn-whatsapp-header {
  background-color: #E8F9EE !important;
  color: #15803D !important;
  padding: 7px 15px;
  border-radius: 20px;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px !important;
}

.btn-whatsapp-header:hover {
  background-color: var(--whatsapp-green) !important;
  color: var(--white) !important;
}

/* Hero Section */
.hero {
  position: relative;
  background-image:
    linear-gradient(90deg, rgba(0, 34, 78, 0.94) 0%, rgba(0, 62, 142, 0.82) 48%, rgba(0, 62, 142, 0.28) 100%),
    url('../images/hero-home.webp');
  background-size: cover;
  background-position: center;
  padding: clamp(76px, 8vw, 112px) 0 58px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  color: var(--white);
}

.hero .container {
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.12);
  color: #F8FBFF;
  border: 1px solid rgba(255,255,255,0.24);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--white);
  letter-spacing: -1px;
  max-width: 900px;
  margin-bottom: 18px;
}

.hero h1 .highlight {
  color: #CDEEE7;
}

.hero p {
  font-size: clamp(16px, 1.5vw, 18px);
  color: #E8EEF6;
  max-width: 650px;
  margin: 0 0 30px 0;
}

.hero-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: var(--white);
  padding: 13px 26px;
  border-radius: 6px;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-call {
  background: var(--primary-navy);
  color: var(--white);
  padding: 13px 26px;
  border-radius: 6px;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: #F3F7FB;
}

.trust-item i {
  color: #8AD7C5;
  font-size: 17px;
}

/* Services Section */
.services-section {
  padding: 75px 0;
  background-color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 45px auto;
}

.sub-heading {
  color: var(--accent-teal);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-top: 6px;
  margin-bottom: 10px;
}

.section-desc {
  color: #556274;
  font-size: 15.5px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.service-card {
  position: relative;
  background-color: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 0 24px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #BFDBFE;
}

.card-icon {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--white);
  color: var(--primary-navy);
  border: 1px solid var(--card-border);
  box-shadow: 0 6px 18px rgba(0, 62, 142, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin: -24px 0 17px 0;
  transition: transform 0.22s ease, color 0.22s ease;
}

.service-card h3 {
  color: var(--primary-navy);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  color: #556274;
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-link {
  color: var(--primary-navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link:hover {
  color: var(--accent-teal);
}

.view-all-container {
  text-align: center;
  margin-top: 45px;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #F1F5F9;
  color: var(--primary-navy);
  text-decoration: none;
  padding: 13px 30px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid #CBD5E1;
  transition: all 0.2s;
}

.btn-view-all:hover {
  background: var(--primary-navy);
  color: var(--white);
  border-color: var(--primary-navy);
}

/* About Brief Section */
.about-brief-section {
  padding: 70px 0;
  background-color: var(--bg-light);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.brief-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

.brief-text h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 8px 0 14px 0;
}

.brief-text p {
  color: #3B4654;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.brief-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.bp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--primary-navy);
}

.bp-item i {
  color: var(--accent-teal);
}

.btn-text-link {
  color: var(--primary-navy);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brief-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-box {
  background: var(--white);
  border: 1px solid var(--card-border);
  padding: 25px;
  border-radius: 10px;
}

.stat-icon {
  font-size: 24px;
  color: var(--accent-teal);
  margin-bottom: 10px;
}

.stat-box h3 {
  color: var(--primary-navy);
  font-size: 18px;
  margin-bottom: 6px;
}

.stat-box p {
  color: #556274;
  font-size: 14px;
}

/* Why Choose Us */
.why-us-section {
  padding: 75px 0;
  background-color: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-item {
  background: var(--bg-light);
  padding: 28px 20px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  text-align: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px auto;
  border-radius: 50%;
  background: #EFF6FF;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.feature-item h4 {
  color: var(--primary-navy);
  font-size: 17px;
  margin-bottom: 8px;
}

.feature-item p {
  color: #556274;
  font-size: 14px;
}

/* How It Works (5 Steps) */
.how-it-works-section {
  padding: 75px 0;
  background-color: var(--bg-light);
  border-top: 1px solid var(--card-border);
}

.steps-flow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.step-box {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 26px 18px;
  text-align: center;
}

.step-num {
  display: inline-block;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-teal);
  margin-bottom: 10px;
}

.step-box h4 {
  color: var(--primary-navy);
  font-size: 16px;
  margin-bottom: 8px;
  transition: color 0.20s ease;
}

.step-box p {
  color: #556274;
  font-size: 13.5px;
}

/* Reviews */
.reviews-section {
  padding: 75px 0;
  background-color: var(--white);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--bg-light);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  color: #F59E0B;
  font-size: 14px;
  margin-bottom: 12px;
}

.review-text {
  color: #3B4654;
  font-size: 14.5px;
  font-style: italic;
  margin-bottom: 18px;
}

.reviewer-meta strong {
  display: block;
  color: var(--primary-navy);
  font-size: 14px;
}

.reviewer-meta span {
  color: #556274;
  font-size: 12.5px;
}

/* Coverage Areas */
.areas-section {
  padding: 75px 0;
  background-color: var(--bg-light);
  border-top: 1px solid var(--card-border);
}

.areas-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.area-pill {
  background: var(--white);
  color: var(--primary-navy);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #E2E8F0;
}

.area-pill i {
  color: var(--accent-teal);
  font-size: 13px;
}

/* Final CTA */
.final-cta-section {
  padding: 60px 0;
  background-color: var(--white);
}

.final-cta-box {
  background: linear-gradient(135deg, #003E8E 0%, #062b5e 100%);
  color: var(--white);
  border-radius: 12px;
  padding: 50px 30px;
  text-align: center;
}

.final-cta-box h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.final-cta-box p {
  color: #E2E8F0;
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 28px auto;
}

/* Footer */
.site-footer {
  background: #EAF0F5;
  color: #435164;
  padding: 55px 0 25px 0;
  border-top: 3px solid var(--primary-navy);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 35px;
  padding-bottom: 35px;
  border-bottom: 1px solid #CBD5E1;
}

.footer-logo {
  color: var(--primary-navy);
  margin-bottom: 14px;
}

.footer-info p {
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-phone a {
  color: var(--primary-navy);
  text-decoration: none;
}

.footer-links h4 {
  color: var(--primary-navy);
  font-size: 16px;
  margin-bottom: 15px;
}

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

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #435164;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--accent-teal);
}

.footer-bottom {
  text-align: center;
  padding-top: 22px;
  font-size: 13px;
}

/* Floating WhatsApp (Desktop only — z-index: 80) */
.floating-whatsapp {
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--whatsapp-green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 80;
  text-decoration: none;
}

/* Mobile Sticky Bar (Strictly visible only on mobile screens — z-index: 90) */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  border-top: 1px solid #E2E8F0;
  z-index: 90;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .top-bar {
    padding: 7px 0;
    font-size: 12.5px;
  }

  .top-flex {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 3px;
  }

  .top-timing {
    font-size: 11.5px;
  }

  .mobile-sticky-bar {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Phase 3A-1: Hide duplicate floating WhatsApp on mobile (handled by sticky CTA bar) */
  .floating-whatsapp {
    display: none !important;
  }

  .brief-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .header-flex {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.sticky-call {
  flex: 1 1 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-navy);
  color: var(--white);
  text-align: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14.5px;
  transition: background-color 0.2s, transform 0.1s;
}

.sticky-call:hover,
.sticky-call:active {
  background: #002D68;
}

.sticky-wa {
  flex: 1 1 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--whatsapp-green);
  color: var(--white);
  text-align: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14.5px;
  transition: background-color 0.2s, transform 0.1s;
}

.sticky-wa:hover,
.sticky-wa:active {
  background: #166534;
}
/* Page Banner for Inner Pages */
.page-banner {
  position: relative;
  background: linear-gradient(135deg, #F2F7FC 0%, #FAFCFE 100%);
  padding: 58px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--card-border);
  overflow: hidden;
}

.page-banner h1 {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-top: 8px;
  margin-bottom: 10px;
}

.page-banner p {
  color: #556274;
  font-size: 16px;
  max-width: 650px;
  margin: 0 auto;
}

/* Services Directory List */
.services-directory-section {
  padding: 70px 0;
  background-color: var(--bg-light);
}

.directory-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.directory-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.directory-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.dir-icon {
  width: 55px;
  height: 55px;
  border-radius: 10px;
  background: #EFF6FF;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.dir-content {
  min-width: 0;
  padding: 28px 30px;
}

.dir-content h2 {
  font-size: 21px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.dir-content p {
  color: #556274;
  font-size: 15px;
  margin-bottom: 14px;
}

.task-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
  padding-left: 0;
}

.task-list li {
  font-size: 13.5px;
  color: #3B4654;
  position: relative;
  padding-left: 18px;
}

.task-list li::before {
  content: "•";
  color: var(--accent-teal);
  font-size: 18px;
  position: absolute;
  left: 0;
  top: -2px;
}

.dir-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-learn-more {
  background: var(--primary-navy);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.2s;
}

.btn-learn-more:hover {
  background: #002e6b;
}

.btn-card-wa {
  background: #E8F9EE;
  color: #15803D;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-card-wa:hover {
  background: var(--whatsapp-green);
  color: var(--white);
}

@media (max-width: 768px) {
  .directory-card {
    flex-direction: column;
  }
}
/* Contact Page Styling */
.contact-main-section {
  padding: 75px 0;
  background-color: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: 45px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 36px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.highlight-card {
  border-color: #86EFAC;
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.12);
}

.contact-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.wa-icon {
  background: #E8F9EE;
  color: var(--whatsapp-green);
}

.phone-icon {
  background: #EFF6FF;
  color: var(--primary-navy);
}

.time-icon {
  background: #F1F5F9;
  color: var(--accent-teal);
}

.contact-card h3 {
  color: var(--primary-navy);
  font-size: 20px;
  margin-bottom: 10px;
}

.contact-card p {
  color: #556274;
  font-size: 14.5px;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.contact-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 22px;
}

.btn-contact-action {
  width: 100%;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
}

.btn-wa-action {
  background: var(--whatsapp-green);
  color: var(--white);
}

.btn-phone-action {
  background: var(--primary-navy);
  color: var(--white);
}

.coverage-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-teal);
  font-size: 14px;
  font-weight: 600;
}

.inquiry-guide-box {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 35px;
}

.inquiry-guide-box h3 {
  color: var(--primary-navy);
  font-size: 20px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.inquiry-guide-box h3 i {
  color: var(--accent-teal);
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.g-step strong {
  display: block;
  color: var(--primary-navy);
  font-size: 15.5px;
  margin-bottom: 6px;
}

.g-step span {
  color: #556274;
  font-size: 14px;
  line-height: 1.5;
}

/* =========================================================
   INDIVIDUAL SERVICE DETAIL PAGES (PHASE 2A)
   ========================================================= */

.service-detail-section {
  padding: 60px 0 32px 0;
  background-color: var(--white);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

/* Main Detail Content */
.detail-main {
  min-width: 0;
}

.detail-main .sub-heading {
  display: inline-block;
  margin-bottom: 8px;
}

.detail-main h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-top: 4px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.detail-main > p {
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.inner-subheading {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-top: 36px;
  margin-bottom: 18px;
  line-height: 1.35;
}

/* Task Checklist */
.task-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 36px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.task-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-light);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #1E293B;
}

.task-checklist li i,
.task-checklist li i.fa-check {
  color: var(--accent-teal);
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Process & Approach Steps */
.approach-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.app-step {
  background: var(--bg-light);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent-teal);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
}

.app-step strong {
  color: var(--primary-navy);
  font-weight: 700;
  margin-right: 4px;
}

/* Native Accordion FAQ Component */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

/* FAQs are structurally decoupled from the desktop sticky-sidebar row. */
.service-faq-block {
  min-width: 0;
}

.service-faq-block .inner-subheading {
  margin-top: 0;
}

.service-faq-block .faq-list {
  margin-bottom: 0;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 16px;
  transition: color 0.2s, background-color 0.2s;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  color: #002e6b;
  background-color: #F8FAFC;
}

.faq-icon {
  color: var(--accent-teal);
  font-size: 14px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px 18px 20px;
  border-top: 1px solid #F1F5F9;
  margin-top: -2px;
  padding-top: 14px;
}

.faq-answer p {
  margin: 0;
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.65;
}

/* Service Detail Sidebar */
.detail-sidebar {
  min-width: 0;
  align-self: stretch;
  position: relative;
}

.detail-sidebar-sticky {
  position: relative;
  top: auto;
  width: 100%;
  overflow: visible;
  overflow-anchor: none;
}

.sidebar-box {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.cta-sidebar {
  border-top: 4px solid var(--accent-teal);
}

.sidebar-box h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 10px;
  line-height: 1.35;
}

.sidebar-box h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--card-border);
}

.sidebar-box p {
  color: #556274;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.btn-sidebar-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: var(--whatsapp-green);
  color: var(--white);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 10px;
  transition: background-color 0.2s, transform 0.1s;
  box-shadow: 0 3px 8px rgba(37, 211, 102, 0.25);
}

.btn-sidebar-wa:hover {
  background: #166534;
  transform: translateY(-1px);
}

.btn-sidebar-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  background: #EFF6FF;
  color: var(--primary-navy);
  border: 1px solid #BFDBFE;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.btn-sidebar-call:hover {
  background: var(--primary-navy);
  color: var(--white);
  border-color: var(--primary-navy);
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-links li a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.sidebar-links li a:hover {
  background: #F1F5F9;
  color: var(--primary-navy);
  padding-left: 15px;
}

.sidebar-links li a.active {
  background: #EFF6FF;
  color: var(--primary-navy);
  font-weight: 700;
  border-left: 3px solid var(--accent-teal);
  padding-left: 15px;
}

/* Responsive Rules for Service Detail Pages */
@media (max-width: 991px) {
  .service-detail-section {
    padding: 45px 0 24px 0;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .detail-main,
  .service-faq-block,
  .detail-sidebar {
    grid-column: 1;
    grid-row: auto;
  }

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .detail-main h2 {
    font-size: 24px;
  }

  .inner-subheading {
    font-size: 19px;
    margin-top: 28px;
    margin-bottom: 14px;
  }

  .task-checklist {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .app-step {
    padding: 12px 14px;
    font-size: 14px;
  }

  .faq-question {
    font-size: 15px;
    padding: 14px 16px;
  }

  .faq-answer {
    padding: 0 16px 16px 16px;
  }

  .sidebar-box {
    padding: 20px 16px;
  }
}

/* =========================================================
   SHARED STICKY SITE HEADER — PHASE 2C-1 (z-index: 100)
   ========================================================= */

.site-sticky-shell {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--white);
  isolation: isolate;
}

/* =========================================================
   MOBILE NAVIGATION — PHASE 2C-2A / PHASE 3A-1 POLISH
   ========================================================= */

.mobile-nav-toggle {
  display: none;
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    color: var(--primary-navy);
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
  }

  .mobile-nav-toggle:hover {
    background-color: #F8FAFC;
    color: var(--accent-teal);
  }

  .mobile-nav-toggle:focus-visible {
    outline: 2px solid var(--accent-teal);
    outline-offset: 2px;
  }

  header {
    z-index: 2;
  }

  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px 16px;
    border-top: 1px solid var(--card-border);
    border-bottom: 2px solid var(--primary-navy);
    box-shadow: 0 12px 28px -4px rgba(0, 62, 142, 0.15);
    gap: 4px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 105;
  }

  nav.main-nav.is-open {
    display: flex;
  }

  nav.main-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    border-radius: 6px;
    transition: background-color 0.15s, color 0.15s;
  }

  nav.main-nav a:hover,
  nav.main-nav a.active {
    background-color: #EFF6FF;
    color: var(--primary-navy);
  }

  nav.main-nav .btn-whatsapp-header {
    justify-content: center;
    margin-top: 6px;
    min-height: 44px;
    border-radius: 6px;
  }
}

/* =========================================================
   RESPONSIVE WIDTH & OVERFLOW STABILIZATION — PHASE 2C-2B
   ========================================================= */

/* Tablet Breakpoint (991px and below) */
@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .steps-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .brief-grid {
    gap: 28px;
  }
}

/* Mobile Breakpoint (768px and below) */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .steps-flow-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.3;
  }

  .page-banner h1 {
    font-size: 26px;
    line-height: 1.3;
  }

  .section-title {
    font-size: 26px;
    line-height: 1.3;
  }

  .brief-text h2 {
    font-size: 25px;
    line-height: 1.3;
  }

  .final-cta-box h2 {
    font-size: 26px;
    line-height: 1.3;
  }
}

/* Small Mobile Breakpoint (640px and below) */
@media (max-width: 640px) {
  .inquiry-guide-box {
    padding: 24px 18px;
  }

  .directory-card {
    padding: 22px 18px;
    gap: 18px;
  }

  .task-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 35px;
  }

  .trust-item {
    justify-content: flex-start;
  }
}

/* Extra Small Viewports (480px and below: 320px, 360px, 375px, 390px, 430px) */
@media (max-width: 480px) {
  header {
    padding: 12px 0;
  }

  .logo {
    font-size: 17px;
    gap: 6px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .mobile-nav-toggle {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .top-bar {
    padding: 6px 0;
    font-size: 12px;
  }

  .top-flex {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 3px;
  }

  .hero {
    padding: 50px 0 40px 0;
  }

  .hero h1 {
    font-size: 24px;
    line-height: 1.25;
  }

  .hero p {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-buttons .btn-whatsapp,
  .hero-buttons .btn-call {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 14.5px;
  }

  .page-banner {
    padding: 40px 0 35px 0;
  }

  .page-banner h1 {
    font-size: 22px;
    line-height: 1.25;
  }

  .page-banner p {
    font-size: 14px;
  }

  .section-title {
    font-size: 22px;
    line-height: 1.3;
  }

  .section-desc {
    font-size: 14.5px;
  }

  .brief-text h2 {
    font-size: 22px;
    line-height: 1.3;
  }

  .service-card {
    padding: 24px 18px;
  }

  .service-card h3 {
    font-size: 18px;
  }

  .feature-item {
    padding: 22px 16px;
  }

  .stat-box {
    padding: 20px 16px;
  }

  .contact-card {
    padding: 25px 16px;
  }

  .contact-card h3 {
    font-size: 18px;
  }

  .contact-value {
    font-size: 17px;
  }

  .final-cta-box {
    padding: 32px 16px;
  }

  .final-cta-box h2 {
    font-size: 21px;
    line-height: 1.3;
  }

  .final-cta-box p {
    font-size: 14.5px;
    margin-bottom: 22px;
  }

  .detail-main h2 {
    font-size: 22px;
  }

  .bp-item {
    align-items: flex-start;
  }

  .bp-item i {
    margin-top: 4px;
    flex-shrink: 0;
  }

  .footer-info .logo {
    font-size: 18px;
  }
}

/* =========================================================
   SERVICE DETAIL — WHY CHOOSE CHEEMU
   ========================================================= */

.service-why-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 28px 0;
}

.service-why-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 16px;
  background: #F8FAFC;
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--accent-teal);
  border-radius: 4px;
}

.service-why-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(9, 121, 105, 0.1);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: 2px;
}

.service-why-content {
  flex: 1;
}

.service-why-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 3px;
  line-height: 1.35;
}

.service-why-content p {
  font-size: 13.5px;
  color: var(--text-main);
  line-height: 1.5;
  margin: 0;
}

/* =========================================================
   SERVICE DETAIL — CLOSING CTA (PHASE 2E-2)
   ========================================================= */

/* Service Closing CTA Section */
.service-closing-cta-section {
  padding: 0 0 60px 0;
  background-color: var(--white);
}

.service-closing-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #003E8E;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--accent-teal);
  border-radius: 8px;
  padding: 58px 40px;
  gap: 22px;
  box-shadow: 0 4px 24px rgba(0, 62, 142, 0.15);
}

.service-closing-copy {
  width: 100%;
  max-width: 850px;
  text-align: center;
}

.service-closing-copy h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-closing-copy p {
  font-size: 16px;
  color: #E2E8F0;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.6;
}

.service-closing-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.service-closing-actions .btn-whatsapp,
.service-closing-actions .btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.service-closing-actions .btn-whatsapp {
  background: var(--whatsapp-green);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.28);
}

.service-closing-actions .btn-whatsapp:hover {
  background: #166534;
}

.service-closing-actions .btn-call {
  background: #002244;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.service-closing-actions .btn-call:hover {
  background: #001730;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

@media (max-width: 768px) {
  .service-closing-cta-section {
    padding: 0 0 50px 0;
  }

  .service-closing-cta {
    padding: 40px 20px;
    gap: 20px;
  }

  .service-closing-copy h2 {
    font-size: 22px;
    line-height: 1.35;
  }

  .service-closing-copy p {
    font-size: 14.5px;
  }

  .service-closing-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .service-closing-actions .btn-whatsapp,
  .service-closing-actions .btn-call {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .service-closing-cta {
    padding: 34px 16px;
  }

  .service-closing-copy h2 {
    font-size: 20px;
  }
}

/* =========================================================
   PRODUCTION REFINEMENT — CONTENT, IMAGES, ACCESSIBILITY
   ========================================================= */

html {
  scroll-padding-top: calc(var(--sticky-shell-height, 96px) + 16px);
}

main#main-content {
  scroll-margin-top: calc(var(--sticky-shell-height, 96px) + 16px);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--primary-navy);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--accent-teal);
}

.brand-logo-img {
  display: block;
  width: clamp(150px, 17vw, 195px);
  height: auto;
}

.footer-brand-logo {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
  margin-bottom: 14px;
}

.service-card-image {
  position: relative;
  display: block;
  height: 205px;
  margin: 0 -24px 0;
  overflow: hidden;
  background: #EAF0F5;
}

.service-card-image::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 52px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #FFFFFF 90%);
  pointer-events: none;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.service-card:hover .card-icon {
  transform: translateY(-2px) rotate(-3deg);
  color: var(--accent-teal);
}

.card-link i,
.btn-learn-more i,
.btn-text-link i {
  transition: transform 0.2s ease;
}

.service-card:hover .card-link i,
.btn-learn-more:hover i,
.btn-text-link:hover i {
  transform: translateX(3px);
}

.services-page-banner {
  background-image:
    linear-gradient(90deg, rgba(0, 36, 82, 0.92), rgba(0, 62, 142, 0.72), rgba(0, 62, 142, 0.42)),
    url('../images/hero-services.webp');
  background-size: cover;
  background-position: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  text-align: left;
}

.services-page-banner h1,
.services-page-banner .sub-heading,
.services-page-banner p,
.service-page-banner h1,
.service-page-banner .sub-heading,
.service-page-banner p {
  color: var(--white);
}

.services-page-banner p,
.service-page-banner p {
  margin-left: 0;
  color: #E7EEF7;
}

.service-page-banner {
  background-image:
    linear-gradient(90deg, rgba(0, 36, 82, 0.94) 0%, rgba(0, 62, 142, 0.77) 52%, rgba(0, 62, 142, 0.30) 100%),
    var(--service-hero-image);
  background-size: cover;
  background-position: center;
  min-height: 315px;
  display: flex;
  align-items: center;
  text-align: left;
}

.service-page-banner .container,
.services-page-banner .container {
  position: relative;
  z-index: 2;
}

.directory-image {
  display: block;
  min-height: 235px;
  overflow: hidden;
  background: #EAF0F5;
}

.directory-image img {
  width: 100%;
  height: 100%;
  min-height: 235px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.directory-card:hover .directory-image img {
  transform: scale(1.02);
}

.about-team-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.review-placeholder {
  grid-column: 1 / -1;
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 28px;
  text-align: center;
  border: 1px solid var(--card-border);
  background: var(--bg-light);
  border-radius: 10px;
}

.review-placeholder i {
  color: var(--accent-teal);
  font-size: 26px;
  margin-bottom: 12px;
}

.review-placeholder h3 {
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.review-placeholder p {
  color: var(--text-main);
}

.areas-cta {
  max-width: 720px;
  margin: 30px auto 0;
  padding: 24px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--accent-teal);
  border-radius: 10px;
}

.areas-cta h3 {
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.areas-cta p {
  margin-bottom: 16px;
  color: var(--text-main);
}

.site-footer .footer-info p,
.site-footer .footer-links a,
.site-footer .footer-bottom {
  color: #435164;
}

.site-footer .footer-links a:hover,
.site-footer .footer-phone a:hover {
  color: var(--accent-teal);
}

@media (max-width: 991px) {
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-sidebar {
    position: static;
    top: auto;
  }

  .directory-card {
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    background-image:
      linear-gradient(90deg, rgba(0, 34, 78, 0.96) 0%, rgba(0, 62, 142, 0.84) 70%, rgba(0, 62, 142, 0.58) 100%),
      url('../images/hero-home.webp');
    background-position: 58% center;
    padding-top: 64px;
  }

  .hero h1 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .directory-card {
    grid-template-columns: 1fr;
  }

  .directory-image,
  .directory-image img {
    min-height: 210px;
    max-height: 270px;
  }

  .dir-content {
    padding: 24px 20px 26px;
  }

  .services-page-banner,
  .service-page-banner {
    min-height: 270px;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .brand-logo-img {
    width: 142px;
  }

  .hero {
    padding: 54px 0 42px;
  }

  .hero-tag {
    align-items: flex-start;
    border-radius: 10px;
    line-height: 1.35;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .service-card-image {
    height: 190px;
  }

  .service-closing-cta {
    padding: 40px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* Final mobile header refinement: preserve the call strip while reducing sticky-shell height. */
@media (max-width: 640px) {
  .top-timing {
    display: none;
  }

  .top-flex {
    flex-direction: row;
    min-height: 24px;
  }

  nav.main-nav {
    max-height: calc(100dvh - var(--sticky-shell-height, 104px));
  }
}

/* Critical mobile menu icon is CSS-drawn so navigation does not depend on the icon CDN. */
.nav-toggle-icon {
  width: 20px;
  height: 16px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-icon > span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav-toggle[aria-expanded="true"] .nav-toggle-icon > span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] .nav-toggle-icon > span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"] .nav-toggle-icon > span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 992px) {
  .why-us-section .features-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .why-us-section .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .why-us-section .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  body.mobile-nav-open .mobile-sticky-bar {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
  }
}

/* =========================================================
   SECOND-ROUND PRODUCTION REFINEMENT — 2026-09-18
   Consolidated authoritative rules for the reviewed build:
   brand consistency, hero art direction, interaction feedback,
   About-page alignment, stable sticky sidebar, footer completeness,
   responsive behavior and performance-safe image presentation.
   ========================================================= */

:root {
  --brand-teal-on-dark: #41C7AD;
  --brand-teal-on-dark-hover: #73D8C5;
  --cta-call-dark: #002244;
}

/* ---------- Brand shell ---------- */
.top-phone {
  color: var(--brand-teal-on-dark);
  font-weight: 800;
  transition: color 0.18s ease;
}

.top-phone:hover,
.top-phone:focus-visible {
  color: var(--brand-teal-on-dark-hover);
}

.brand-logo-img {
  width: auto;
  height: clamp(70px, 6vw, 76px);
  max-width: 92px;
  object-fit: contain;
}

.footer-brand-logo {
  width: 145px;
  max-width: 100%;
  height: auto;
  margin-bottom: 6px;
}

.footer-info > p:first-of-type {
  max-width: 470px;
  margin-top: 0;
  margin-bottom: 14px;
  color: #35475D;
  font-style: italic;
  line-height: 1.7;
}

/* ---------- Home hero: actual responsive image, reduced dead space ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0A376E !important;
  min-height: clamp(440px, 56vh, 540px);
  display: flex;
  align-items: flex-start;
  padding: clamp(24px, 2.6vw, 34px) 0 clamp(20px, 2vw, 26px);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgba(0, 34, 78, 0.94) 0%,
    rgba(0, 62, 142, 0.82) 48%,
    rgba(0, 62, 142, 0.30) 100%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-tag {
  padding: 6px 13px;
  margin-bottom: 10px;
  border-color: rgba(65, 199, 173, 0.70);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.hero-tag > i,
.hero-tag-separator {
  color: var(--brand-teal-on-dark);
}

.hero h1 {
  margin-bottom: 11px;
}

.hero h1 .highlight {
  color: var(--brand-teal-on-dark);
}

.hero p {
  line-height: 1.55;
  margin-bottom: 16px;
}

.trust-grid {
  margin-top: clamp(14px, 1.6vw, 18px);
  padding-top: clamp(10px, 1.1vw, 12px);
}

.trust-item {
  line-height: 1.35;
}

.trust-item i {
  color: var(--brand-teal-on-dark);
}

/* ---------- Persistent hover line + purposeful interactive feedback ---------- */
.service-card::after,
.directory-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--accent-teal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.20s ease;
  z-index: 5;
}

.directory-card {
  position: relative;
}

.service-card:focus-within::after,
.directory-card:focus-within::after {
  transform: scaleX(1);
}

.feature-icon,
.step-num {
  transition: transform 0.20s ease, color 0.20s ease, background-color 0.20s ease, box-shadow 0.20s ease;
}

/* ---------- Final CTAs: one visual system everywhere ---------- */
.final-cta-box {
  border-top: 3px solid var(--accent-teal);
}

.final-cta-box .hero-buttons {
  justify-content: center;
  align-items: center;
}

.final-cta-box .btn-whatsapp,
.final-cta-box .btn-call,
.service-closing-actions .btn-whatsapp,
.service-closing-actions .btn-call {
  min-height: 48px;
  border-radius: 7px;
  justify-content: center;
}

.final-cta-box .btn-call,
.service-closing-actions .btn-call {
  background: var(--cta-call-dark);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.final-cta-box .btn-call:hover,
.service-closing-actions .btn-call:hover {
  background: #001831;
  border-color: rgba(255, 255, 255, 0.48);
}

.final-cta-box .btn-whatsapp:hover,
.service-closing-actions .btn-whatsapp:hover {
  background: #166534;
}

.btn-text-link {
  transition: color 0.18s ease, gap 0.18s ease;
}

.btn-text-link:hover,
.btn-text-link:focus-visible {
  color: var(--accent-teal);
}

/* ---------- Floating desktop contact pair ---------- */
.floating-whatsapp,
.floating-call {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  position: fixed;
  right: 20px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.floating-whatsapp {
  bottom: 86px;
  font-size: 26px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.40), 0 0 0 5px rgba(37, 211, 102, 0.07);
}

.floating-call {
  bottom: 22px;
  background: var(--primary-navy);
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(0, 62, 142, 0.40), 0 0 0 5px rgba(0, 62, 142, 0.08);
}

.floating-call:hover,
.floating-call:focus-visible {
  background: #002D68;
}

/* ---------- Services main hero: real image + moderately taller composition ---------- */
.services-page-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0A376E !important;
  min-height: 390px;
  display: flex;
  align-items: center;
  text-align: left;
}

.page-banner-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

.page-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.services-page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgba(0, 34, 78, 0.91) 0%,
    rgba(0, 62, 142, 0.69) 50%,
    rgba(0, 62, 142, 0.34) 100%);
  pointer-events: none;
}

.services-page-banner .container {
  position: relative;
  z-index: 2;
}

.services-page-banner .sub-heading {
  color: #FFFFFF;
}

.services-page-banner h1 {
  color: var(--brand-teal-on-dark);
  max-width: 850px;
}

.services-page-banner p {
  color: #E7EEF7;
  margin-left: 0;
  max-width: 680px;
}

/* ---------- Individual service heroes: split desktop, overlay mobile ---------- */
.service-page-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(125deg, #062B5E 0%, #003E8E 58%, #0A5E72 100%) !important;
  min-height: clamp(340px, 38vh, 390px);
  display: flex;
  align-items: center;
  text-align: left;
}

@media (min-width: 769px) {
  .service-page-banner {
    padding: 0;
  }
}

.service-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(34px, 5vw, 58px);
  align-items: center;
  padding-block: clamp(24px, 2.6vw, 34px);
  position: relative;
  z-index: 2;
}

.service-hero-copy {
  min-width: 0;
  max-width: 680px;
}

.service-page-banner .sub-heading {
  color: #FFFFFF;
}

.service-page-banner h1 {
  color: var(--brand-teal-on-dark);
  font-size: clamp(36px, 4.2vw, 48px);
  line-height: 1.12;
  max-width: 760px;
  margin-top: 8px;
}

.service-page-banner p {
  color: #E7EEF7;
  margin-left: 0;
  max-width: 650px;
  font-size: 16.5px;
}

.service-hero-media {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.34);
  background: #EAF0F5;
  box-shadow: 0 18px 40px rgba(0, 18, 48, 0.28);
}

.service-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--service-hero-position-desktop, center);
}

/* Hero focal points are retained for small-screen overlay art direction. */
.service-hero--general { --service-hero-position-desktop: center; --service-hero-position-mobile: 52% center; }
.service-hero--electrical { --service-hero-position-desktop: center; --service-hero-position-mobile: 58% center; }
.service-hero--ac { --service-hero-position-desktop: center; --service-hero-position-mobile: 58% center; }
.service-hero--painting { --service-hero-position-desktop: center; --service-hero-position-mobile: 66% center; }
.service-hero--gypsum { --service-hero-position-desktop: center; --service-hero-position-mobile: 54% center; }
.service-hero--flooring { --service-hero-position-desktop: center; --service-hero-position-mobile: 50% center; }
.service-hero--carpentry { --service-hero-position-desktop: center; --service-hero-position-mobile: 50% center; }
.service-hero--wall-mounting { --service-hero-position-desktop: center; --service-hero-position-mobile: 60% center; }
.service-hero--plumbing { --service-hero-position-desktop: center; --service-hero-position-mobile: 52% center; }

/* ---------- Stable sticky service sidebar (Desktop >= 992px) ---------- */
@media (min-width: 992px) {
  /* Row 1: service content + sticky sidebar. Row 2: full-width FAQs.
     Keeping FAQ height out of row 1 prevents accordion toggles from changing
     the sticky sidebar's containing-block geometry. */
  .detail-main {
    grid-column: 1;
    grid-row: 1;
  }

  .service-faq-block {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: start;
  }

  .detail-sidebar {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    min-width: 0;
    align-self: stretch;
  }

  .detail-sidebar-sticky {
    position: sticky;
    top: calc(var(--sticky-shell-height, 96px) + 12px);
    display: flex;
    flex-direction: column;
    overflow: visible;
    overflow-anchor: none;
    width: 100%;
  }


  .detail-sidebar-sticky .cta-sidebar {
    flex: 0 0 auto;
    margin-bottom: 12px;
    padding: 18px 20px 16px;
  }

  .detail-sidebar-sticky .cta-sidebar h3 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .detail-sidebar-sticky .cta-sidebar p {
    font-size: 13.5px;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .detail-sidebar-sticky .cta-sidebar .btn-sidebar-wa {
    padding: 10px 16px;
    font-size: 14.5px;
    margin-bottom: 8px;
  }

  .detail-sidebar-sticky .cta-sidebar .btn-sidebar-call {
    padding: 9.5px 16px;
    font-size: 14px;
  }

  .detail-sidebar-sticky .sidebar-box:not(.cta-sidebar) {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    padding: 16px 20px 14px;
  }

  .detail-sidebar-sticky .sidebar-box:not(.cta-sidebar) h4 {
    flex: 0 0 auto;
    font-size: 16px;
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .detail-sidebar-sticky .sidebar-links {
    flex: 1 1 auto;
    min-height: 140px;
    max-height: 168px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
    padding-right: 4px;
  }

  .detail-sidebar-sticky .sidebar-links li a {
    padding: 8.5px 12px;
  }

  .detail-sidebar-sticky .sidebar-links::-webkit-scrollbar {
    width: 6px;
  }

  .detail-sidebar-sticky .sidebar-links::-webkit-scrollbar-track {
    background: transparent;
  }

  .detail-sidebar-sticky .sidebar-links::-webkit-scrollbar-thumb {
    background-color: #CBD5E1;
    border-radius: 999px;
  }

  .detail-sidebar-sticky .sidebar-links::-webkit-scrollbar-thumb:hover {
    background-color: #94A3B8;
  }
}

/* Short desktop viewports (height <= 650px) */
@media (min-width: 992px) and (max-height: 650px) {
  .detail-sidebar-sticky .cta-sidebar {
    padding: 14px 18px 12px;
    margin-bottom: 10px;
  }

  .detail-sidebar-sticky .cta-sidebar p {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.35;
  }

  .detail-sidebar-sticky .cta-sidebar .btn-sidebar-wa {
    padding: 8px 14px;
    margin-bottom: 6px;
    font-size: 14px;
  }

  .detail-sidebar-sticky .cta-sidebar .btn-sidebar-call {
    padding: 7.5px 14px;
    font-size: 13.5px;
  }

  .detail-sidebar-sticky .sidebar-box:not(.cta-sidebar) {
    padding: 12px 18px 12px;
  }

  .detail-sidebar-sticky .sidebar-box:not(.cta-sidebar) h4 {
    margin-bottom: 8px;
    padding-bottom: 6px;
  }

  .detail-sidebar-sticky .sidebar-links {
    min-height: 110px;
    max-height: 125px;
  }
}

/* ---------- Services-directory bullet alignment ---------- */
.task-list li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  column-gap: 9px;
  align-items: start;
  padding-left: 0;
  line-height: 1.55;
}

.task-list li::before {
  content: '';
  position: static;
  width: 6px;
  height: 6px;
  margin-top: 0.50em;
  border-radius: 50%;
  background: var(--accent-teal);
}

/* ---------- Reviews showcase ---------- */
.reviews-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 2fr);
  gap: 26px;
  align-items: stretch;
}

.reviews-visual {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: #EAF0F5;
  box-shadow: var(--shadow-sm);
}

.reviews-visual::after {
  content: '';
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to bottom, rgba(0, 34, 78, 0), rgba(0, 34, 78, 0.80));
  pointer-events: none;
}

.reviews-visual img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: 52% center;
}

.reviews-visual figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  color: var(--white);
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 600;
}

.reviews-showcase .reviews-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.reviews-showcase .review-card:last-child {
  grid-column: 1 / -1;
}

/* ---------- About team: top-aligned text + horizontal support cards ---------- */
.about-team-section {
  padding: 70px 0;
  background: var(--bg-light);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 42px;
  align-items: start;
}

.team-copy h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 8px 0 14px;
}

.team-copy > p {
  color: #3B4654;
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 18px;
}

.team-media-panel {
  min-width: 0;
}

.about-team-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.team-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.team-support-grid .stat-box {
  height: 100%;
}

/* ---------- Footer: all nine services without an over-tall column ---------- */
.footer-content {
  grid-template-columns: minmax(0, 1.7fr) minmax(150px, 0.65fr) minmax(320px, 1.35fr);
}

.footer-services-group > h4 {
  text-align: left;
}

.footer-services-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}

.footer-services-columns ul {
  min-width: 0;
}

/* ---------- Global interaction system ---------- */
.service-card,
.directory-card,
.feature-item,
.step-box,
.stat-box,
.review-card,
.contact-card,
.sidebar-box {
  transition: transform 0.20s ease, box-shadow 0.20s ease, border-color 0.20s ease, background-color 0.20s ease;
}

.btn-whatsapp,
.btn-call,
.btn-whatsapp-header,
.btn-view-all,
.btn-learn-more,
.btn-card-wa,
.btn-contact-action,
.btn-sidebar-wa,
.btn-sidebar-call,
.sticky-call,
.sticky-wa,
.card-link,
.btn-text-link {
  cursor: pointer;
}

.magnetic-cta {
  --mag-x: 0px;
  --mag-y: 0px;
  transform: translate3d(var(--mag-x), var(--mag-y), 0);
  transition: transform 0.16s ease-out, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover::after,
  .directory-card:hover::after {
    transform: scaleX(1);
  }

  .service-card:hover,
  .directory-card:hover,
  .feature-item:hover,
  .step-box:hover,
  .stat-box:hover,
  .review-card:hover,
  .contact-card:hover,
  .sidebar-box:hover {
    transform: translateY(-4px);
    border-color: #B8CBDD;
    box-shadow: 0 14px 30px -8px rgba(0, 62, 142, 0.18);
  }

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

  .directory-card:hover .directory-image img {
    transform: scale(1.035);
  }

  .service-card:hover .card-icon,
  .feature-item:hover .feature-icon,
  .feature-item:focus-within .feature-icon {
    color: var(--accent-teal);
    transform: translateY(-3px);
    background: rgba(9, 121, 105, 0.09);
  }

  .step-box:hover .step-num,
  .step-box:focus-within .step-num {
    color: var(--primary-navy);
    transform: translateY(-3px);
  }

  .step-box:hover h4,
  .step-box:focus-within h4 {
    color: var(--accent-teal);
  }

  .hero-tag:hover {
    transform: translateY(-2px);
    border-color: var(--brand-teal-on-dark);
    background: rgba(255,255,255,0.16);
  }

  .btn-whatsapp:not(.magnetic-cta):hover,
  .btn-call:not(.magnetic-cta):hover,
  .btn-view-all:hover,
  .btn-learn-more:hover,
  .btn-card-wa:hover,
  .btn-contact-action:hover,
  .btn-sidebar-wa:hover,
  .btn-sidebar-call:hover,
  .floating-whatsapp:hover,
  .floating-call:hover {
    transform: translateY(-2px);
  }

  .magnetic-cta:hover {
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.16);
  }

  .card-link:hover,
  .btn-text-link:hover {
    gap: 9px;
  }
}

/* ---------- Branded 404 ---------- */
.error-page {
  min-height: 100vh;
  background: var(--bg-light);
}

.error-hero {
  padding: clamp(70px, 10vw, 130px) 0;
  background:
    linear-gradient(90deg, rgba(0, 34, 78, 0.96), rgba(0, 62, 142, 0.77)),
    url('../images/hero-home.webp') center / cover no-repeat;
}

.error-card {
  max-width: 780px;
  color: var(--white);
}

.error-code {
  display: block;
  color: var(--brand-teal-on-dark);
  font-size: clamp(70px, 12vw, 128px);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -4px;
  margin-bottom: 20px;
}

.error-card .sub-heading { color: #BCECDF; }
.error-card h1 { color: var(--white); font-size: clamp(32px, 5vw, 52px); margin: 6px 0 14px; }
.error-card p { color: #E6EEF7; max-width: 650px; font-size: 17px; margin-bottom: 28px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Responsive refinements ---------- */
@media (max-width: 1100px) {
  .service-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
    gap: 30px;
  }

  .footer-content {
    grid-template-columns: 1.35fr 0.7fr 1.25fr;
  }
}

@media (max-width: 991px) {
  .reviews-showcase {
    grid-template-columns: 1fr;
  }

  .reviews-visual,
  .reviews-visual img {
    min-height: 320px;
  }

  .detail-sidebar,
  .detail-sidebar-sticky {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
  }

  .team-layout {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1.3fr 0.7fr;
  }

  .footer-services-group {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .floating-whatsapp,
  .floating-call {
    display: none !important;
  }

  .brand-logo-img {
    width: auto;
    height: clamp(62px, 17vw, 68px);
    max-width: 82px;
  }

  .hero {
    min-height: calc(100svh - var(--sticky-shell-height, 92px));
    align-items: center;
    padding: 28px 0 26px;
  }

  .hero-media img {
    object-position: center;
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(0, 34, 78, 0.91) 0%, rgba(0, 62, 142, 0.78) 68%, rgba(0, 62, 142, 0.62) 100%);
  }

  .hero-tag {
    margin-bottom: 12px;
    padding: 6px 10px;
    font-size: 11.5px;
    line-height: 1.35;
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: clamp(27px, 8.4vw, 38px);
    line-height: 1.14;
    letter-spacing: -0.45px;
    margin-bottom: 12px;
  }

  .hero p {
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.55;
    margin-bottom: 18px;
  }

  .hero .hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
  }

  .hero .hero-buttons .btn-whatsapp,
  .hero .hero-buttons .btn-call {
    width: 100%;
    min-height: 46px;
    padding: 10px 8px;
    font-size: 13px;
    white-space: nowrap;
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 14px;
    margin-top: 20px;
    padding-top: 14px;
  }

  .trust-item {
    align-items: flex-start;
    font-size: 11.8px;
    line-height: 1.35;
  }

  .trust-item i {
    font-size: 14px;
    margin-top: 1px;
  }

  .services-page-banner {
    min-height: clamp(340px, 38svh, 360px);
  }

  .page-banner-media img {
    object-position: center;
  }

  .services-page-banner::after {
    background: linear-gradient(90deg, rgba(0, 34, 78, 0.88), rgba(0, 62, 142, 0.63));
  }

  .services-page-banner h1 {
    font-size: clamp(27px, 8vw, 37px);
    line-height: 1.16;
  }

  .service-page-banner {
    min-height: 330px;
    background: #0A376E !important;
  }

  .service-page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,
      rgba(0, 34, 78, 0.88) 0%,
      rgba(0, 62, 142, 0.63) 100%);
    pointer-events: none;
  }

  .service-page-banner .service-hero-layout {
    display: flex;
    align-items: center;
    min-height: 330px;
    padding-block: 38px;
    position: static;
    /* Reset the desktop/shared container stacking layer on mobile so the
       image (z0), blue overlay (z1), and copy (z2) can stack correctly. */
    z-index: auto;
  }

  .service-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 100%;
  }

  .service-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .service-hero-media img {
    object-fit: cover;
    object-position: var(--service-hero-position-mobile, center);
    filter: brightness(0.88) saturate(0.95);
  }

  .service-page-banner h1 {
    font-size: clamp(27px, 8vw, 36px);
    line-height: 1.17;
  }

  .service-page-banner p {
    font-size: 15px;
  }

  .reviews-showcase .reviews-grid {
    grid-template-columns: 1fr;
  }

  .reviews-showcase .review-card:last-child {
    grid-column: auto;
  }

  .reviews-visual,
  .reviews-visual img {
    min-height: 260px;
    max-height: 360px;
  }

  .team-support-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-services-group {
    grid-column: auto;
  }

  .final-cta-box .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .final-cta-box .btn-whatsapp,
  .final-cta-box .btn-call {
    width: 100%;
  }

  .error-hero {
    min-height: calc(100svh - var(--sticky-shell-height, 92px));
    display: flex;
    align-items: center;
    padding: 50px 0 80px;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions a {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .team-support-grid,
  .footer-services-columns {
    grid-template-columns: 1fr;
  }

  .footer-services-columns {
    gap: 0;
  }
}

@media (max-width: 340px) {
  .hero .hero-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .hero .hero-buttons .btn-whatsapp,
  .hero .hero-buttons .btn-call {
    min-height: 44px;
    padding: 9px 5px;
    font-size: 11.5px;
    gap: 5px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 10px;
    margin-top: 16px;
    padding-top: 11px;
  }

  .trust-item {
    font-size: 10.7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .magnetic-cta,
  .service-card,
  .directory-card,
  .feature-item,
  .step-box,
  .hero-tag,
  .feature-icon,
  .step-num,
  .step-box h4,
  .service-card::after,
  .directory-card::after {
    transition: none !important;
    transform: none !important;
    will-change: auto;
  }
}
