/**
 * OnTime CMS - Modular UI Components & Luxury Engineering Cards
 */

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-surface-muted) 100%);
  color: var(--color-text-primary);
  padding: 72px 0 68px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border-default);
}
.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(4, 1, 84, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(4, 1, 84, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: 5%;
  right: 5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(255, 63, 63, 0.08) 0%, rgba(80, 93, 212, 0.05) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}
/* Hero Background Video */
.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.hero-video-element {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.28;
  filter: contrast(1.06) saturate(1.1);
  transition: opacity 0.4s ease;
}
.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.88) 52%,
    rgba(244, 243, 240, 0.82) 100%
  );
  pointer-events: none;
}
.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(4, 1, 84, 0.05);
  color: var(--color-surface-raised);
  border: 1px solid rgba(4, 1, 84, 0.12);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-surface-strong);
  box-shadow: 0 0 0 0 rgba(255, 63, 63, 0.7);
  animation: hero-pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
@keyframes hero-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 63, 63, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(255, 63, 63, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 63, 63, 0);
  }
}
@media (max-width: 768px) {
  .hero-video-element {
    display: none !important;
  }
  .hero-video-wrapper {
    background: url('../images/hero-plumbing-poster.webp') center/cover no-repeat;
    opacity: 0.16;
  }
  .hero-video-overlay {
    background: rgba(255, 255, 255, 0.92);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video-element {
    display: none;
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.28fr 0.92fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 768px) {
  .hero-section {
    padding: 32px 0 44px 0;
  }
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.18;
    margin-bottom: 14px;
  }
  .hero-lead {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 22px;
  }
  .hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 26px;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-trust-bar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 16px;
  }
  .hero-card {
    padding: 22px 18px;
    border-radius: 16px;
  }
}
.hero-content h1 {
  color: var(--color-surface-raised);
  font-size: 3.1rem;
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.hero-content h1 span {
  color: var(--color-surface-strong);
  background: none;
  -webkit-text-fill-color: initial;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-bottom: 34px;
  max-width: 640px;
  line-height: 1.68;
}
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}
.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-default);
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.hero-trust-item strong {
  color: var(--color-surface-raised);
}

/* Hero Quick Contact / Quote Card */
.hero-card {
  background: #ffffff;
  color: var(--color-text-primary);
  border-radius: var(--radius-md);
  padding: 34px;
  box-shadow: 0 14px 40px rgba(4, 1, 84, 0.08);
  border: 1.5px solid var(--color-border-default);
  position: relative;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 4px;
  background: linear-gradient(90deg, #dc2626 0%, #0f172a 100%);
  border-radius: 4px 4px 0 0;
}
.hero-card-header {
  margin-bottom: 22px;
}
.hero-card-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-surface-raised);
  margin-bottom: 6px;
}
.hero-card-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   SUBPAGE HERO (CHECKATRADE CORPORATE)
   ========================================================================== */
.subpage-hero {
  background-color: var(--color-surface-raised);
  color: #ffffff;
  padding: 56px 0 50px 0;
  border-bottom: 3px solid var(--color-surface-strong);
  position: relative;
}
.subpage-hero h1 {
  color: #ffffff;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.subpage-hero p.lead,
.subpage-hero .hero-subtitle,
.subpage-hero .section-subtitle {
  color: #e2e8f0;
  font-size: 1.08rem;
  max-width: 720px;
  line-height: 1.6;
}
.subpage-hero .section-tag {
  background: rgba(255, 63, 63, 0.18);
  color: #ff9999;
  border-color: rgba(255, 63, 63, 0.4);
}
.subpage-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 16px;
}
.subpage-hero .breadcrumb a {
  color: #cbd5e1;
}
.subpage-hero .breadcrumb a:hover {
  color: #ffffff;
}
.subpage-hero .breadcrumb span {
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   TRUST BADGES STRIP
   ========================================================================== */
.trust-strip {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
  box-shadow: 0 1px 4px rgba(4, 1, 84, 0.03);
}
.trust-strip-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.trust-badge-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 56px;
  color: inherit;
}
.trust-badge-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(4, 1, 84, 0.08);
}
.trust-badge-img {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.trust-badge-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.25;
}
.trust-badge-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.trust-badge-sub {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.trust-shield-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.badge-dot-yellow {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #eab308;
  display: inline-block;
  flex-shrink: 0;
}
.badge-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  display: inline-block;
  flex-shrink: 0;
}
.trust-badge-stars {
  color: #f59e0b;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

/* ==========================================================================
   SERVICE CARDS
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 30px;
}
@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
.service-card {
  background: #ffffff;
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 250ms cubic-bezier(0.16, 1, 0.3, 1), border-color 250ms ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-border-strong);
}
.service-card-media {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: #0f172a;
}
.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.service-card:hover .service-card-media img {
  transform: scale(1.04);
}
.service-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-family-headings);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-border-strong);
  letter-spacing: 0.04em;
  z-index: 2;
}
.service-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.service-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-surface-raised, #0f172a);
  margin-bottom: 10px;
  line-height: 1.32;
}
.service-card-desc {
  font-size: 0.925rem;
  color: var(--color-text-secondary, #333333);
  line-height: 1.62;
  margin-bottom: 22px;
  flex-grow: 1;
}
.service-card-footer {
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.service-card-link {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--color-surface-strong, #dc2626);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 200ms ease, color 200ms ease;
}
.service-card-link:hover {
  gap: 10px;
  color: var(--color-surface-raised, #0f172a);
}

/* ==========================================================================
   SERVICE DETAIL RESPONSIVE LAYOUT & CARDS
   ========================================================================== */
.service-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.service-hero-media img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  object-fit: cover;
}
.service-content-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: flex-start;
}
.service-main-col {
  min-width: 0;
}
.service-capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}
.capability-card {
  background: #ffffff;
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.capability-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}
.capability-card h4 {
  font-family: var(--font-family-headings);
  font-size: 15.5px;
  color: var(--color-surface-strong);
  margin-bottom: 6px;
  font-weight: 700;
  line-height: 1.35;
}
.capability-card p {
  font-size: 13.5px;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.55;
}
.service-sidebar-col {
  min-width: 0;
}
.service-sidebar-card {
  background: #ffffff;
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 110px;
}

@media (max-width: 991px) {
  .service-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .service-content-layout {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  .service-sidebar-card {
    position: static !important;
    margin-top: 10px !important;
  }
}

@media (max-width: 640px) {
  .service-capabilities-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .capability-card {
    padding: 16px !important;
  }
  .service-sidebar-card {
    padding: 22px 18px !important;
  }
}

/* Universal Safeguard for any inline 2-column grids on tablets/mobiles */
@media (max-width: 991px) {
  div[style*="grid-template-columns: 2fr 1fr"],
  div[style*="grid-template-columns: 2.2fr 1fr"],
  div[style*="grid-template-columns: 1.2fr 0.8fr"],
  div[style*="grid-template-columns: 1.25fr 0.75fr"],
  div[style*="grid-template-columns: 1.1fr 1.3fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 640px) {
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

/* ==========================================================================
   INDEPENDENT HEATING & ACCREDITED STANDARDS BANNER
   ========================================================================== */
.independent-banner {
  background: #f8fafc;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 44px 0;
}
.independent-banner-card {
  background: #000000;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #ffffff;
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}
.independent-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(154, 138, 120, 0.15);
  color: #d8cec4;
  border: 1px solid var(--color-border-strong);
  padding: 5px 14px;
  border-radius: var(--radius-xs);
  font-family: var(--font-family-headings);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.independent-banner-title {
  font-family: var(--font-family-headings);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
  line-height: 1.3;
}
.independent-banner-desc {
  color: #cbd5e1;
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
}
.independent-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.independent-feature-card {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.independent-feature-card:hover {
  background: #1a1a1a;
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
}
.independent-feature-card .feat-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.independent-feature-card strong {
  font-size: 15px;
  color: #ffffff;
  font-weight: 700;
}
.independent-feature-card span.feat-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .independent-banner-card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 28px;
  }
  .independent-banner-title {
    font-size: 22px;
  }
}
@media (max-width: 540px) {
  .independent-features-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   REVIEWS & CHECKATRADE VERIFICATION
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 26px;
}
.review-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.review-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}
.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.review-stars {
  color: var(--color-amber-gold);
  font-size: 13px;
  letter-spacing: 1px;
}
.review-source-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.tag-checkatrade {
  background: #e8f5e9;
  color: #008542;
}
.tag-google {
  background: #e0f2fe;
  color: #0284c7;
}
.review-quote {
  font-size: 14px;
  color: var(--color-text-body);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 18px;
  flex-grow: 1;
}
.review-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
}
.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.review-meta h5 {
  font-size: 14px;
  font-weight: 800;
}
.review-meta p {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   AREA COVERAGE GRID
   ========================================================================== */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.area-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 200ms ease;
}
.area-card:hover {
  border-color: var(--color-accent-flame);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}
.area-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.area-name {
  font-size: 15px;
  font-weight: 800;
}
.area-postcode {
  background: #f1f5f9;
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}
.area-desc {
  font-size: 12.5px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 200ms ease;
}
.faq-item.active {
  border-color: var(--color-accent-flame);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.06);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 800;
  color: var(--color-text-main);
  cursor: pointer;
}
.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 200ms ease;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 22px 20px 22px;
  font-size: 14px;
  color: var(--color-text-body);
  line-height: 1.7;
  display: none;
}
.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  color: var(--color-text-main);
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-text-main);
  background: #ffffff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-accent-flame);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

/* ==========================================================================
   POPUP MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 250ms ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform 250ms ease;
}
.modal-overlay.open .modal-content {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-text-muted);
}

/* Mobile layout audit, 2 November 2026: allow long controls and grid items to fit. */
@media (max-width: 768px) {
  .btn {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.4;
  }
  .btn > span { min-width: 0; }
  .btn > svg { flex-shrink: 0; }
  .hero-grid > *,
  .service-hero-grid > *,
  .service-content-layout > *,
  .services-grid > *,
  .reviews-grid > *,
  .area-grid > *,
  .footer-top > *,
  .footer-badges > * { min-width: 0; }
  .form-control { min-width: 0; max-width: 100%; }
}
