/*
 * Mahdis Dentistry — Premium Clinical Luxury Redesign
 * Code-native visual layer. Business logic stays in js/app.js.
 */

:root {
  --rd-teal: #087f73;
  --rd-teal-dark: #075f59;
  --rd-navy: #102235;
  --rd-aqua: #ddf7f3;
  --rd-mint: #f3fcfa;
  --rd-white: #fcfdfd;
  --rd-slate: #667784;
  --rd-line: rgba(8, 127, 115, 0.16);
  --rd-shadow: 0 22px 60px rgba(16, 34, 53, 0.09);
  --rd-shadow-soft: 0 10px 32px rgba(16, 34, 53, 0.07);
  --rd-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  background: var(--rd-mint) !important;
}

body {
  background:
    radial-gradient(circle at 86% 5%, rgba(67, 200, 183, 0.11), transparent 28rem),
    radial-gradient(circle at 8% 34%, rgba(85, 163, 216, 0.06), transparent 24rem),
    linear-gradient(180deg, #f3fcfa 0%, #fcfdfd 42%, #f3fcfa 100%) !important;
  color: var(--rd-navy) !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(8, 127, 115, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 127, 115, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

.ambient-bg {
  display: block !important;
  background: transparent !important;
  z-index: -1 !important;
}

.ambient-orb {
  display: block !important;
  position: absolute !important;
  width: min(42vw, 620px) !important;
  height: min(42vw, 620px) !important;
  border-radius: 42% 58% 62% 38% / 38% 42% 58% 62% !important;
  filter: blur(7px) !important;
  opacity: 0.36 !important;
  background: radial-gradient(circle at 40% 40%, rgba(55, 190, 174, 0.17), transparent 68%) !important;
  animation: rdFloat 18s var(--rd-ease) infinite alternate !important;
}

.orb-1 { top: -16%; right: -12%; }
.orb-2 { top: 32%; left: -22%; animation-delay: -6s !important; opacity: 0.2 !important; }
.orb-3 { bottom: -20%; right: 22%; animation-delay: -11s !important; opacity: 0.16 !important; }

@keyframes rdFloat {
  from { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  to { transform: translate3d(20px, -14px, 0) rotate(4deg) scale(1.04); }
}

.app-wrapper {
  max-width: 1460px !important;
  padding: 1rem 1.35rem 4rem !important;
  gap: 1.25rem !important;
}

.main-header {
  position: sticky !important;
  top: 0.75rem !important;
  z-index: 40 !important;
  min-height: 68px;
  border-radius: 18px !important;
  margin: 0 0 1.25rem !important;
  padding: 0.62rem 1.25rem !important;
  background: rgba(252, 253, 253, 0.82) !important;
  border: 1px solid rgba(8, 127, 115, 0.15) !important;
  box-shadow: 0 14px 40px rgba(16, 34, 53, 0.08) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
}

.main-header::after {
  content: "";
  position: absolute;
  inset: auto 10% -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(8, 127, 115, 0.35), transparent);
  pointer-events: none;
}

.brand-logo-img {
  width: 46px !important;
  height: 46px !important;
  filter: drop-shadow(0 5px 12px rgba(8, 127, 115, 0.22)) !important;
}

.brand-name {
  color: var(--rd-teal) !important;
  letter-spacing: -0.03em !important;
}

.header-nav .nav-link {
  border-radius: 10px !important;
  color: var(--rd-slate) !important;
  padding: 0.52rem 0.85rem !important;
}

.header-nav .nav-link::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  left: 0.85rem;
  bottom: 0.22rem;
  height: 2px;
  border-radius: 2px;
  background: var(--rd-teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms var(--rd-ease);
}

.header-nav .nav-link:hover::after,
.header-nav .nav-link.active::after {
  transform: scaleX(1);
}

.header-nav .nav-link.active {
  background: rgba(8, 127, 115, 0.07) !important;
  color: var(--rd-teal-dark) !important;
  box-shadow: none !important;
}

.phone-pill,
.btn-primary-pill {
  border-radius: 12px !important;
}

.phone-pill {
  background: rgba(221, 247, 243, 0.65) !important;
  border-color: rgba(8, 127, 115, 0.2) !important;
  color: var(--rd-teal-dark) !important;
}

.btn-primary-pill,
.btn-hero-cta {
  background: linear-gradient(135deg, var(--rd-teal), var(--rd-teal-dark)) !important;
  box-shadow: 0 10px 24px rgba(8, 127, 115, 0.22) !important;
}

.btn-primary-pill:hover,
.btn-hero-cta:hover {
  box-shadow: 0 14px 28px rgba(8, 127, 115, 0.3) !important;
}

/* Hero: image-led, precision-lab framing, restrained annotations. */
.hero-editorial-grid {
  min-height: 560px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) !important;
  gap: clamp(1.5rem, 3vw, 3.8rem) !important;
  padding: clamp(2rem, 4vw, 4.4rem) clamp(1.25rem, 4vw, 4.2rem) !important;
  border-radius: 34px !important;
  border: 1px solid rgba(8, 127, 115, 0.14) !important;
  background:
    radial-gradient(circle at 18% 44%, rgba(11, 67, 92, 0.18), transparent 34%),
    radial-gradient(circle at 94% 8%, rgba(77, 216, 194, 0.18), transparent 33%),
    linear-gradient(108deg, rgba(16, 34, 53, 0.98) 0%, rgba(16, 48, 61, 0.97) 43%, rgba(243, 252, 250, 0.94) 79%, rgba(252, 253, 253, 0.97) 100%) !important;
  box-shadow: 0 30px 80px rgba(16, 34, 53, 0.16) !important;
}

.hero-editorial-grid::before {
  inset: 0 auto 0 0 !important;
  width: 62% !important;
  height: auto !important;
  border-radius: 0 !important;
  opacity: 0.75;
  background:
    linear-gradient(rgba(150, 241, 226, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 241, 226, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 48% 42%, rgba(72, 218, 199, 0.2), transparent 34%) !important;
  background-size: 54px 54px, 54px 54px, auto !important;
  mask-image: linear-gradient(90deg, black 0%, rgba(0,0,0,.7) 72%, transparent 100%);
}

.hero-editorial-grid::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18%;
  opacity: 0.75;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.22));
  pointer-events: none;
}

.hero-lead-col {
  order: 2;
  color: var(--rd-navy);
  padding-inline: clamp(0rem, 1vw, 0.75rem);
}

.hero-visual-col {
  order: 1;
}

.hero-kicker-badge {
  background: rgba(221, 247, 243, 0.14) !important;
  border-color: rgba(221, 247, 243, 0.36) !important;
  color: #e7fffb !important;
  border-radius: 10px !important;
}

.hero-kicker-badge i { color: #8ce9dc !important; }

.hero-main-title {
  max-width: 650px;
  color: #ffffff !important;
  font-size: clamp(2.2rem, 4.6vw, 4.35rem) !important;
  line-height: 1.17 !important;
  text-wrap: balance;
}

.hero-highlight-teal {
  background: linear-gradient(120deg, #a6fff1 0%, #45d4c0 60%, #dcfff9 100%);
  -webkit-background-clip: text;
}

.hero-lead-text {
  max-width: 610px;
  color: rgba(242, 253, 251, 0.82) !important;
  font-size: clamp(0.94rem, 1.2vw, 1.08rem) !important;
}

.hero-actions-group {
  gap: 0.7rem !important;
}

.btn-hero-secondary {
  background: rgba(252, 253, 253, 0.12) !important;
  border-color: rgba(221, 247, 243, 0.42) !important;
  color: #ffffff !important;
  backdrop-filter: blur(10px);
}

.hero-actions-group > .nav-link:last-child {
  color: #b8fff4 !important;
}

.hero-trust-chips {
  border-top-color: rgba(221, 247, 243, 0.2) !important;
  color: rgba(242, 253, 251, 0.73) !important;
}

.hero-trust-item i { color: #8ce9dc !important; }

.hero-showcase-container {
  padding: 0.8rem !important;
  border-radius: 28px !important;
  background: rgba(252, 253, 253, 0.12) !important;
  border-color: rgba(221, 247, 243, 0.26) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.23) !important;
  backdrop-filter: blur(8px);
}

.showcase-tabs-bar {
  background: rgba(16, 34, 53, 0.55) !important;
  border-color: rgba(221, 247, 243, 0.18) !important;
}

.showcase-tab-btn {
  color: rgba(242, 253, 251, 0.72) !important;
}

.showcase-tab-btn.active {
  color: var(--rd-navy) !important;
  background: var(--rd-white) !important;
}

.showcase-image-frame {
  border-radius: 22px !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2) !important;
}

.showcase-img {
  height: clamp(300px, 30vw, 430px) !important;
  object-position: center 36% !important;
}

.showcase-specs-strip {
  background: rgba(252, 253, 253, 0.86) !important;
  border-color: rgba(221, 247, 243, 0.2) !important;
}

/* Trust ribbon: editorial proof, not dashboard widgets. */
.hero-bottom-ribbon {
  margin-top: -1.8rem !important;
  position: relative;
  z-index: 3;
  width: calc(100% - 4rem);
  margin-inline: auto;
  padding: 1.15rem 1.35rem !important;
  border-radius: 20px !important;
  background: rgba(252, 253, 253, 0.93) !important;
  border-color: rgba(8, 127, 115, 0.13) !important;
  box-shadow: var(--rd-shadow-soft) !important;
  backdrop-filter: blur(12px);
}

.ribbon-stat-item {
  border-left-color: rgba(8, 127, 115, 0.12) !important;
}

.stat-icon-circle {
  background: var(--rd-aqua) !important;
  color: var(--rd-teal) !important;
}

.stat-value-num { color: var(--rd-navy) !important; }

/* Section rhythm. */
.section-services-block,
.section-technician-standards,
.section-process-steps,
.home-promo-grid,
.section-final-cta-banner {
  position: relative;
  margin-top: 3.7rem !important;
}

.section-services-block {
  margin-inline: -0.5rem;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2.5rem);
  border-radius: 32px;
  background: rgba(252, 253, 253, 0.92);
  border: 1px solid rgba(8, 127, 115, 0.1);
  box-shadow: var(--rd-shadow-soft);
}

.section-header-editorial {
  text-align: right !important;
  max-width: 740px;
  margin-inline: 0 auto;
  margin-bottom: 2rem !important;
}

.section-tag-pill {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--rd-teal) !important;
  border-radius: 0 !important;
}

.section-tag-pill::before {
  content: "";
  width: 30px;
  height: 2px;
  display: inline-block;
  background: var(--rd-teal);
  border-radius: 2px;
}

.section-title-large {
  color: var(--rd-navy) !important;
  font-size: clamp(1.8rem, 3vw, 2.8rem) !important;
  line-height: 1.25 !important;
}

.section-subtitle-text {
  color: var(--rd-slate) !important;
  font-size: 0.98rem !important;
}

.premium-services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}

.premium-service-card {
  min-height: 285px;
  padding: 1.45rem 1.35rem 1.25rem !important;
  border-radius: 22px !important;
  background: linear-gradient(160deg, #ffffff 0%, #f3fcfa 100%) !important;
  border-color: rgba(8, 127, 115, 0.13) !important;
  box-shadow: 0 12px 28px rgba(16, 34, 53, 0.05) !important;
}

.premium-service-card:nth-child(2) { transform: translateY(14px); }
.premium-service-card:nth-child(2):hover { transform: translateY(8px); }
.premium-service-card:nth-child(3) { background: linear-gradient(160deg, #ffffff 0%, #f5f9ff 100%) !important; }
.premium-service-card:nth-child(4) { background: linear-gradient(160deg, #ffffff 0%, #fffaf3 100%) !important; }

.premium-service-card:hover {
  transform: translateY(-7px) !important;
  box-shadow: 0 22px 42px rgba(16, 34, 53, 0.11) !important;
}

.service-card-icon-box {
  width: 52px !important;
  height: 52px !important;
  border-radius: 16px !important;
  background: var(--rd-aqua) !important;
  color: var(--rd-teal) !important;
}

.service-card-content h3,
.service-card-footer { color: var(--rd-navy) !important; }

.service-card-content p {
  color: var(--rd-slate) !important;
  line-height: 1.8 !important;
}

.service-card-footer {
  border-top-color: rgba(8, 127, 115, 0.12) !important;
}

/* Expertise band: the strongest contrast moment in the home flow. */
.section-technician-standards {
  margin-inline: -0.5rem;
  padding: clamp(2rem, 4vw, 3.75rem) clamp(1rem, 4vw, 3rem) !important;
  border-radius: 32px !important;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr) !important;
  background:
    radial-gradient(circle at 8% 16%, rgba(81, 215, 195, 0.19), transparent 28%),
    linear-gradient(120deg, #102235, #0e4d55) !important;
  border-color: rgba(149, 242, 226, 0.18) !important;
  box-shadow: 0 26px 70px rgba(16, 34, 53, 0.2) !important;
}

.tech-profile-side {
  border-left-color: rgba(149, 242, 226, 0.22) !important;
}

.tech-titles h3,
.tech-bio-p { color: #ffffff !important; }

.tech-titles p,
.tech-pill-membership { color: #9ff1e5 !important; }

.tech-pill-membership {
  align-self: flex-start;
  background: rgba(221, 247, 243, 0.09) !important;
  border-color: rgba(221, 247, 243, 0.25) !important;
}

.standard-feature-box {
  background: rgba(252, 253, 253, 0.09) !important;
  border-color: rgba(221, 247, 243, 0.16) !important;
  box-shadow: none !important;
  border-radius: 18px !important;
}

.standard-feature-box h4,
.standard-feature-box p { color: #ffffff !important; }
.standard-feature-box p { color: rgba(242, 253, 251, 0.72) !important; }
.standard-feature-box i { color: #8ce9dc !important; }

/* Process band: thin precision line and open timeline feel. */
.section-process-steps {
  margin-inline: -1.35rem;
  padding: clamp(2rem, 4vw, 3.6rem) clamp(1rem, 5vw, 4rem);
  background:
    linear-gradient(rgba(8, 127, 115, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 127, 115, 0.04) 1px, transparent 1px),
    #f3fcfa;
  background-size: 58px 58px;
  border-top: 1px solid rgba(8, 127, 115, 0.1);
  border-bottom: 1px solid rgba(8, 127, 115, 0.1);
}

.process-steps-row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}

.process-steps-row::before {
  content: "";
  position: absolute;
  top: 2.35rem;
  right: 10%;
  left: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(8, 127, 115, 0.4), transparent);
}

.process-step-pill-card {
  z-index: 1;
  min-height: 210px;
  background: rgba(252, 253, 253, 0.84) !important;
  border-color: rgba(8, 127, 115, 0.14) !important;
  border-radius: 22px !important;
  box-shadow: 0 10px 26px rgba(16, 34, 53, 0.05) !important;
}

.step-num-badge {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: var(--rd-teal) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 7px var(--rd-aqua);
}

/* Lower homepage surfaces. */
.home-promo-grid {
  gap: 1rem !important;
}

.home-ai-banner,
.home-repair-banner {
  border-radius: 24px !important;
  box-shadow: var(--rd-shadow-soft) !important;
  border-color: rgba(8, 127, 115, 0.15) !important;
}

.home-ai-banner {
  background: linear-gradient(135deg, #f3fcfa, #ddf7f3) !important;
}

.home-repair-banner {
  background: linear-gradient(135deg, #fffdf9, #f9f1e7) !important;
  border-color: rgba(173, 115, 34, 0.18) !important;
}

.section-final-cta-banner {
  margin-inline: -0.5rem;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 5vw, 4rem) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 86% 22%, rgba(114, 234, 212, 0.2), transparent 28%),
    linear-gradient(115deg, #102235, #087f73) !important;
  box-shadow: 0 24px 70px rgba(8, 127, 115, 0.2) !important;
}

.final-cta-content h3 {
  font-size: clamp(1.5rem, 3vw, 2.35rem) !important;
}

/* Other views share the same brand rhythm without flattening their tools. */
.page-view:not(#view-home) {
  padding: clamp(1rem, 2vw, 2.5rem) clamp(0rem, 1vw, 0.75rem) 2rem;
}

.page-view:not(#view-home) > .glass-panel,
.page-view:not(#view-home) .materials-hero-banner,
.page-view:not(#view-home) .reline-hero-grid > .glass-panel,
.page-view:not(#view-home) .contact-main-grid > .glass-panel {
  border-radius: 24px !important;
  border-color: rgba(8, 127, 115, 0.12) !important;
  box-shadow: var(--rd-shadow-soft) !important;
}

.services-catalog-grid,
.materials-grid,
.care-cards-grid,
.tools-showcase-grid,
.contact-main-grid {
  gap: 1.15rem !important;
}

.service-card-lux,
.brand-showcase-card,
.care-cards-grid .glass-panel,
.calc-box-panel,
.tracking-box-panel {
  border-radius: 22px !important;
  border-color: rgba(8, 127, 115, 0.13) !important;
  box-shadow: 0 12px 30px rgba(16, 34, 53, 0.06) !important;
  transition: transform 300ms var(--rd-ease), box-shadow 300ms var(--rd-ease), border-color 300ms var(--rd-ease);
}

.service-card-lux:hover,
.brand-showcase-card:hover,
.care-cards-grid .glass-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(16, 34, 53, 0.1) !important;
}

/* Form polish without touching fields or handlers. */
.contact-main-grid input,
.contact-main-grid select,
.contact-main-grid textarea {
  border-radius: 12px !important;
  border-color: rgba(8, 127, 115, 0.18) !important;
  background: #fcfdfd !important;
  font-family: inherit !important;
}

.contact-main-grid input:focus,
.contact-main-grid select:focus,
.contact-main-grid textarea:focus {
  outline: 3px solid rgba(8, 127, 115, 0.12) !important;
  border-color: var(--rd-teal) !important;
}

/* Footer becomes a real trust/navigation zone. */
.app-wrapper > footer {
  margin-top: 1.2rem !important;
  padding: 2rem 2.2rem !important;
  border-radius: 24px !important;
  background: var(--rd-navy) !important;
  border-color: rgba(221, 247, 243, 0.15) !important;
  color: rgba(242, 253, 251, 0.74) !important;
  box-shadow: 0 22px 60px rgba(16, 34, 53, 0.2) !important;
}

.app-wrapper > footer strong,
.app-wrapper > footer span {
  color: inherit !important;
}

.app-wrapper > footer img {
  filter: brightness(0) invert(1) opacity(0.9) !important;
}

.site-footer {
  display: block !important;
  padding: 2.4rem clamp(1rem, 3vw, 2.4rem) 1rem !important;
  color: #d8efec;
  background: linear-gradient(145deg, #102235 0%, #0b3941 100%) !important;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(140px, 0.7fr) minmax(0, 1fr);
  gap: clamp(1.3rem, 4vw, 3rem);
  align-items: start;
}

.footer-brand,
.footer-contact a,
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand { align-items: flex-start; }

.footer-brand-mark {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(221, 247, 243, 0.12);
  border: 1px solid rgba(221, 247, 243, 0.22);
}

.footer-brand-mark img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(142, 235, 221, 0.2));
}

.footer-brand strong,
.footer-nav strong,
.footer-contact strong {
  display: block;
  margin-bottom: 0.55rem;
  color: #ffffff;
  font-size: 0.98rem;
}

.footer-brand p {
  max-width: 31rem;
  margin: 0;
  color: rgba(216, 239, 236, 0.76);
  font-size: 0.82rem;
  line-height: 1.95;
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  font-size: 0.8rem;
}

.footer-nav a,
.footer-contact a,
.footer-contact span {
  color: rgba(216, 239, 236, 0.78);
  transition: color 180ms ease, transform 180ms ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: #ffffff;
  transform: translateX(-3px);
}

.footer-contact svg {
  width: 15px;
  height: 15px;
  color: #8eebdd;
  flex: 0 0 auto;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(216, 239, 236, 0.13);
  color: rgba(216, 239, 236, 0.56);
  font-size: 0.72rem;
  line-height: 1.8;
}

/* Keep reveals gentle and GPU-friendly. */
.premium-service-card,
.process-step-pill-card,
.standard-feature-box {
  will-change: transform, opacity;
}

@media (max-width: 1100px) {
  .hero-editorial-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.25rem !important;
  }

  .hero-main-title {
    font-size: clamp(2rem, 4vw, 3.2rem) !important;
  }

  .premium-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .premium-service-card:nth-child(2) { transform: none; }
  .premium-service-card:nth-child(2):hover { transform: translateY(-7px); }
}

@media (max-width: 820px) {
  .app-wrapper {
    padding-inline: 0.8rem !important;
  }

  .main-header {
    top: 0.45rem !important;
  }

  .hero-editorial-grid {
    grid-template-columns: 1fr !important;
    min-height: auto;
    padding: 1.5rem 1rem 1.1rem !important;
    background:
      radial-gradient(circle at 18% 66%, rgba(72, 218, 199, 0.18), transparent 42%),
      linear-gradient(155deg, #102235 0%, #0f4e56 60%, #f3fcfa 150%) !important;
  }

  .hero-lead-col,
  .hero-visual-col {
    order: initial;
  }

  .hero-lead-col {
    padding: 0.35rem 0.2rem;
  }

  .hero-editorial-grid::before {
    width: 100% !important;
    mask-image: linear-gradient(180deg, black, transparent 82%);
  }

  .hero-main-title {
    font-size: clamp(2rem, 9vw, 3rem) !important;
  }

  .hero-showcase-container {
    padding: 0.6rem !important;
  }

  .hero-bottom-ribbon {
    width: calc(100% - 1rem);
    margin-top: -0.7rem !important;
  }

  .section-services-block,
  .section-technician-standards,
  .section-final-cta-banner {
    margin-inline: 0;
  }

  .section-technician-standards {
    grid-template-columns: 1fr !important;
  }

  .tech-profile-side {
    padding-left: 0;
    padding-bottom: 1.35rem;
    border-left: 0;
    border-bottom: 1px solid rgba(149, 242, 226, 0.22);
  }

  .process-steps-row {
    grid-template-columns: 1fr 1fr !important;
  }

  .process-steps-row::before {
    display: none;
  }

  .section-process-steps {
    margin-inline: -0.8rem;
    padding-inline: 1rem;
  }
}

@media (max-width: 560px) {
  .app-wrapper {
    padding-inline: 0.58rem !important;
  }

  .main-header {
    border-radius: 15px !important;
    padding-inline: 0.7rem !important;
  }

  .header-left .btn-primary-pill {
    padding-inline: 0.7rem !important;
    border-radius: 10px !important;
  }

  .hero-kicker-badge {
    max-width: 100%;
    line-height: 1.45;
  }

  .hero-actions-group {
    align-items: stretch !important;
  }

  .btn-hero-cta,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-trust-chips {
    gap: 0.48rem !important;
  }

  .hero-trust-item {
    white-space: normal;
    font-size: 0.72rem !important;
  }

  .showcase-img {
    height: 240px !important;
  }

  .showcase-tabs-bar {
    overflow-x: auto;
  }

  .showcase-tab-btn {
    min-width: 150px;
    font-size: 0.74rem !important;
  }

  .hero-bottom-ribbon {
    grid-template-columns: 1fr 1fr !important;
    padding: 0.8rem 0.65rem !important;
  }

  .ribbon-stat-item {
    gap: 0.45rem !important;
  }

  .stat-icon-circle {
    width: 36px !important;
    height: 36px !important;
  }

  .stat-value-num {
    font-size: 1.02rem !important;
  }

  .stat-label-title {
    font-size: 0.66rem !important;
    line-height: 1.45 !important;
  }

  .section-services-block,
  .section-technician-standards,
  .section-final-cta-banner {
    padding: 1.45rem 0.85rem !important;
    border-radius: 24px !important;
  }

  .premium-services-grid,
  .process-steps-row {
    grid-template-columns: 1fr !important;
  }

  .premium-service-card {
    min-height: 0;
  }

  .process-step-pill-card {
    min-height: 0;
  }

  .app-wrapper > footer {
    padding: 1.4rem 1rem !important;
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .site-footer {
    padding: 1.6rem 1rem 0.9rem !important;
  }

  .site-footer-inner {
    grid-template-columns: 1fr !important;
    gap: 1.35rem !important;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-orb {
    animation: none !important;
  }

  .premium-service-card,
  .service-card-lux,
  .brand-showcase-card,
  .care-cards-grid .glass-panel {
    transition: none !important;
  }
}
