/* Responsive rules and consolidated mobile fixes from the original static website. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1040px) {
  .brand img {
    width: 176px;
  }

  .nav-link,
  .dropdown-toggle {
    padding-inline: var(--space-md);
  }

  .hero-grid,
  .page-hero-grid,
  .split,
  .split.reverse,
  .cta-box,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media,
  .split.reverse .split-copy {
    order: initial;
  }

  .hero-visual {
    min-height: 400px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-card {
    position: static;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 70px;
  }

  body {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(2.15rem, 10vw, 2.75rem);
    line-height: 1.04;
  }

  h2 {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
    line-height: 1.06;
  }

  h3 {
    font-size: 1.35rem;
  }

  .container {
    width: min(100% - 32px, var(--container));
  }

  .site-header {
    backdrop-filter: blur(12px);
  }

  .brand {
    min-width: auto;
  }

  .brand img {
    width: 158px;
  }

  .mobile-toggle {
    display: inline-flex;
    z-index: 105;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: block;
    padding: calc(var(--header-height) + 24px) 20px 30px;
    background: rgba(254, 254, 254, .98);
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
    overflow-y: auto;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .nav-list {
    display: grid;
    gap: var(--space-sm);
  }

  .nav-link,
  .dropdown-toggle {
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 16px;
  }

  .header-cta {
    width: 100%;
    margin: var(--space-md) 0 0;
  }

  .header-cta .btn {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    max-height: 0;
    padding: 0 var(--space-xs);
    border: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    overflow: hidden;
  }

  .dropdown.is-open .dropdown-menu {
    max-height: 420px;
    padding: var(--space-xs);
  }

  .dropdown-menu a {
    padding: var(--space-md) var(--space-lg);
    background: var(--soft);
  }

  .hero {
    padding: var(--space-3xl) 0;
  }

  .hero-stat-grid,
  .grid-3,
  .grid-4,
  .grid-2,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 340px;
  }

  .floating-panel {
    right: var(--space-lg);
    bottom: var(--space-lg);
    padding: var(--space-lg);
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .section-tight {
    padding: var(--space-2xl) 0;
  }

  .split {
    gap: var(--space-2xl);
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 144px;
  }

  .button-row .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 300px;
  }

  .floating-panel {
    width: calc(100% - 32px);
  }

  .cta-box {
    padding: var(--space-xl);
  }

  .page-hero {
    padding-top: var(--space-3xl);
  }

  .footer-bottom {
    display: grid;
  }
}


/* --- CleanXpert generated photography and responsive refinements --- */
.hero-card img,
.media-card img,
.service-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card {
  aspect-ratio: 4 / 3;
}

.service-hero-img {
  min-height: 340px;
  background: var(--soft);
}

.hero-photo-wide {
  max-width: 560px;
  justify-self: end;
}

.about-hero-photo {
  max-width: 420px;
  min-height: 0;
  aspect-ratio: 4 / 5;
  justify-self: end;
}

.about-hero-photo img {
  aspect-ratio: 4 / 5;
}

.icon-graphic {
  padding: 0;
}

.icon-graphic svg {
  width: 24px;
  height: 24px;
  color: var(--deep);
}

@media (max-width: 1040px) {
  .hero-photo-wide,
  .about-hero-photo {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 860px) {
  .site-header {
    z-index: 300;
  }

  .nav-wrap {
    position: relative;
    z-index: 310;
  }

  .main-nav {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    padding: calc(var(--header-height) + 18px) 20px 32px;
    background: #FEFEFE;
    pointer-events: none;
  }

  .main-nav.is-open {
    pointer-events: auto;
  }

  .nav-list {
    position: relative;
    z-index: 1;
    align-content: start;
  }

  .dropdown-menu a {
    border: 1px solid rgba(3, 64, 79, .08);
  }

  .service-hero-img,
  .about-hero-photo {
    min-height: 280px;
  }
}

@media (max-width: 560px) {
  .service-hero-img,
  .about-hero-photo {
    min-height: 250px;
  }
}


/* --- CleanXpert final polish v4 --- */
body {
  overflow-x: hidden;
}

.hero,
.page-hero {
  overflow: clip;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.92fr);
  gap: clamp(32px, 4vw, 56px);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-visual {
  min-height: 520px;
}

.hero-card,
.media-card,
.service-hero-img {
  border-radius: 18px;
}

.hero-card {
  border: 1px solid rgba(3, 64, 79, 0.08);
}

.floating-panel {
  width: min(340px, 84%);
  border-radius: 18px;
}

.service-section .split,
.page-hero-grid {
  gap: clamp(28px, 4vw, 56px);
}

.page-hero {
  padding: 56px 0 48px;
}

.page-hero-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.82fr);
  align-items: center;
}

.service-hero-img {
  min-height: 360px;
  aspect-ratio: 6 / 5;
  background: var(--soft);
}

.service-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-wide {
  max-width: 560px;
  width: 100%;
  justify-self: end;
}

.page-hero-about .page-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
}

.about-hero-photo {
  max-width: 520px;
  min-height: 0;
  aspect-ratio: 5 / 4;
  justify-self: end;
}

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

.icon-box.icon-graphic {
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(12, 191, 197, .16), rgba(149, 189, 38, .12));
  box-shadow: inset 0 0 0 1px rgba(3, 64, 79, .06);
}

.icon-box.icon-graphic svg {
  width: 26px;
  height: 26px;
}

.testimonial-card {
  gap: 20px;
}

.testimonial-card blockquote {
  font-size: 17px;
  line-height: 1.6;
}

@media (max-width: 1040px) {
  .hero-grid,
  .page-hero-grid,
  .page-hero-about .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo-wide,
  .about-hero-photo {
    max-width: none;
    justify-self: stretch;
  }

  .hero-visual,
  .service-hero-img {
    min-height: 420px;
  }
}

@media (max-width: 860px) {
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 240;
    background: rgba(3, 64, 79, .18);
    backdrop-filter: blur(2px);
  }

  .site-header {
    z-index: 300;
  }

  .nav-wrap {
    position: relative;
    z-index: 320;
  }

  .mobile-toggle {
    z-index: 330;
  }

  .main-nav {
    position: fixed;
    top: calc(var(--header-height) + 10px);
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
    height: auto;
    padding: 18px;
    border: 1px solid rgba(3, 64, 79, .10);
    border-radius: 22px;
    box-shadow: 0 24px 72px rgba(3, 64, 79, .18);
    background: rgba(254, 254, 254, .98);
    transform: translateY(-8px) scale(.98);
    transform-origin: top center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    z-index: 310;
  }

  .main-nav.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .dropdown-menu {
    margin-top: 4px;
  }

  .dropdown-menu a {
    border: 1px solid rgba(3, 64, 79, .06);
    background: rgba(12, 191, 197, .05);
  }

  .hero {
    padding: 44px 0 48px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .service-hero-img,
  .about-hero-photo {
    min-height: 300px;
    aspect-ratio: 4 / 3;
  }

  .floating-panel {
    right: 16px;
    bottom: 16px;
    width: min(320px, calc(100% - 32px));
  }

  .page-hero {
    padding-top: 40px;
  }

  .breadcrumbs {
    margin-bottom: 16px;
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .hero-visual,
  .service-hero-img,
  .about-hero-photo {
    min-height: 280px;
  }

  .floating-panel {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  .hero-card {
    position: relative;
    min-height: 280px;
  }

  .hero-visual {
    display: grid;
  }
}


/* --- CleanXpert final micro-adjustments v5 --- */
.hero-visual:not(:has(.floating-panel)) .hero-card::after {
  background: linear-gradient(135deg, rgba(3, 64, 79, .28), rgba(4, 92, 108, .08) 55%, rgba(12, 191, 197, .08));
}

.hero-visual:not(:has(.floating-panel)) {
  min-height: 430px;
}

.contact-card .check-list {
  margin-top: 24px;
}

.contact-card {
  min-height: auto;
}

@media (max-width: 1040px) {
  .hero-visual:not(:has(.floating-panel)) {
    min-height: 380px;
  }
}

@media (max-width: 560px) {
  .hero-visual:not(:has(.floating-panel)) {
    min-height: 280px;
  }
}

.hero-no-panel .hero-card::after {
  background: linear-gradient(135deg, rgba(3, 64, 79, .28), rgba(4, 92, 108, .08) 55%, rgba(12, 191, 197, .08));
}

.hero-no-panel {
  min-height: 430px;
}

@media (max-width: 1040px) {
  .hero-no-panel { min-height: 380px; }
}

@media (max-width: 560px) {
  .hero-no-panel { min-height: 280px; }
}

/* --- CleanXpert mobile menu fix v6 --- */
@media (max-width: 860px) {
  body.nav-open::before {
    content: none !important;
    display: none !important;
  }

  body.nav-open {
    overflow: hidden;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000 !important;
    background: #FEFEFE;
  }

  .nav-wrap {
    position: relative;
    z-index: 1002 !important;
  }

  .mobile-toggle {
    z-index: 1003 !important;
  }

  .main-nav {
    position: fixed !important;
    top: var(--header-height) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: calc(100dvh - var(--header-height)) !important;
    padding: 16px 20px 22px !important;
    border: 0 !important;
    border-top: 1px solid rgba(3, 64, 79, .10) !important;
    border-radius: 0 0 22px 22px !important;
    background: #FEFEFE !important;
    box-shadow: 0 18px 45px rgba(3, 64, 79, .16) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-12px) !important;
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease !important;
    pointer-events: none !important;
    overflow-y: auto !important;
    backdrop-filter: none !important;
    filter: none !important;
    z-index: 1001 !important;
  }

  .main-nav.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  .nav-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .nav-list > li {
    width: 100% !important;
  }

  .nav-link,
  .dropdown-toggle {
    display: flex !important;
    width: 100% !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    color: var(--deep) !important;
    background: rgba(12, 191, 197, .07) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 24px !important;
    text-align: left !important;
  }

  .nav-link.is-active,
  .dropdown-toggle[aria-expanded="true"] {
    background: rgba(12, 191, 197, .14) !important;
  }

  .dropdown-menu {
    position: static !important;
    display: grid !important;
    gap: 8px !important;
    min-width: 0 !important;
    max-height: none !important;
    width: 100% !important;
    margin: 8px 0 0 !important;
    padding: 0 0 0 10px !important;
    border: 0 !important;
    border-left: 2px solid rgba(12, 191, 197, .28) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    overflow: visible !important;
  }

  .dropdown-menu a {
    display: block !important;
    padding: 12px 14px !important;
    border: 1px solid rgba(3, 64, 79, .10) !important;
    border-radius: 12px !important;
    color: var(--deep) !important;
    background: #FEFEFE !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
  }

  .dropdown-menu a span {
    display: block !important;
    margin-top: 4px !important;
    color: var(--muted) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
  }

  .header-cta {
    width: 100% !important;
    margin: 8px 0 0 !important;
  }

  .header-cta .btn {
    width: 100% !important;
    min-height: 52px !important;
    color: var(--deep) !important;
    background: var(--turquoise) !important;
    border-color: var(--turquoise) !important;
  }
}
