/* Commercial office cleaning — scoped to this service.
   Pricing cards reuse .home-check-card from style.css. */

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

.cc-home .section-header .section-desc {
  max-width: 68ch;
}

.cc-home .section-desc + .section-desc {
  margin-top: 14px;
}

.cc-home-schedule {
  margin: 22px auto 0;
  max-width: 42rem;
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.5;
}

.cc-home-actions {
  margin-top: 28px;
}

.cc-home {
  background:
    radial-gradient(ellipse 55% 45% at 12% 0%, rgba(196, 163, 90, 0.1), transparent 60%),
    var(--bg-primary);
}

.cc-plan-grid .home-check-card {
  overflow: visible;
  overflow-wrap: anywhere;
}

.cc-plan-grid .home-check-price.is-quote .home-check-price-amount,
.cc-service-grid .home-check-price.is-quote .home-check-price-amount {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.cc-service-grid .home-check-tagline {
  min-height: 0;
}

.cc-price-note {
  margin: 28px auto 0;
  max-width: 760px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.65;
  padding: 14px 18px;
  border: 1px dashed rgba(196, 163, 90, 0.35);
  border-radius: var(--radius);
  background: rgba(196, 163, 90, 0.06);
}

.cc-price-note strong {
  font-weight: 600;
  color: var(--text-primary);
}

.cc-hero {
  position: relative;
  overflow: hidden;
}

.cc-hero-glow {
  position: absolute;
  top: -80px;
  right: -40px;
  width: min(520px, 70vw);
  height: 320px;
  background: radial-gradient(circle, rgba(196, 163, 90, 0.18), transparent 68%);
  pointer-events: none;
}

.cc-hero .container {
  position: relative;
}

.cc-hero h1 {
  max-width: 16em;
}

.cc-hero .landing-lead + .landing-lead {
  margin-top: -8px;
}

.cc-benefit-grid,
.cc-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-benefit,
.cc-step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px 22px;
  overflow: hidden;
}

.cc-benefit::before,
.cc-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.cc-benefit h3,
.cc-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.35;
}

.cc-benefit p,
.cc-step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.cc-step-num {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.cc-scope-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

.cc-scope-list li {
  position: relative;
  padding: 12px 0 12px 22px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

.cc-scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.cc-aside {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  line-height: 1.65;
}

.cc-aside strong {
  color: var(--text-primary);
}

.cc-quote {
  background: var(--bg-secondary);
}

.cc-quote-form {
  max-width: 760px;
  margin: 0 auto;
}

.cc-page .form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.cc-page .form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.cc-page .form-group input[aria-invalid="true"],
.cc-page .form-group select[aria-invalid="true"],
.cc-page .form-group textarea[aria-invalid="true"] {
  border-color: #f87171;
}

.cc-home a:focus,
.cc-home .btn:focus,
.cc-page a:focus,
.cc-page .btn:focus,
.cc-page button:focus,
.cc-page summary:focus,
.cc-home a:focus-visible,
.cc-home .btn:focus-visible,
.cc-page a:focus-visible,
.cc-page .btn:focus-visible,
.cc-page button:focus-visible,
.cc-page summary:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

.cc-call-note {
  margin-top: 16px;
  text-align: center;
  color: var(--text-secondary);
}

.cc-calculator {
  background:
    radial-gradient(ellipse 50% 40% at 90% 0%, rgba(196, 163, 90, 0.1), transparent 60%),
    var(--bg-secondary);
}

.cc-calc {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
}

.cc-field-hint {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.cc-calc-result {
  margin-top: 4px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(196, 163, 90, 0.05);
}

.cc-calc-status {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.55;
}

.cc-calc-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin: 16px 0 0;
}

.cc-calc-figures div {
  min-width: 0;
}

.cc-calc-figures dt {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cc-calc-figures dd {
  margin: 4px 0 0;
  color: var(--text-primary);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.cc-calc-formula {
  margin: 16px 0 18px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.cc-form-preview {
  margin: -4px 0 20px;
  padding: 14px 16px;
  border: 1px dashed rgba(196, 163, 90, 0.35);
  border-radius: var(--radius);
  background: rgba(196, 163, 90, 0.06);
  color: var(--text-primary);
  line-height: 1.55;
  white-space: pre-line;
}

.cc-page .cc-calc input:focus,
.cc-page .cc-calc select:focus,
.cc-page .cc-quote-form input:focus,
.cc-page .cc-quote-form select:focus,
.cc-page .cc-quote-form textarea:focus,
.cc-page #cc-quote-title:focus {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .cc-benefit-grid,
  .cc-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .cc-benefit-grid,
  .cc-steps,
  .cc-scope-list,
  .cc-calc-figures {
    grid-template-columns: 1fr;
  }

  .cc-calc {
    padding: 20px 16px 18px;
  }

  .cc-hero-actions,
  .cc-hero .landing-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cc-hero .landing-hero-actions .btn {
    width: 100%;
  }
}

/* Informational cards stay visible unless motion is explicitly enabled.
   The rise is an animation so its delay does not linger and block tilt. */
.cc-page.cc-motion .cc-info {
  opacity: 0;
  transform: translateY(12px);
}

.cc-page.cc-motion .cc-info.is-in {
  animation: ccInfoIn 420ms ease both;
}

.cc-page.cc-motion .cc-info:nth-child(2).is-in { animation-delay: 70ms; }
.cc-page.cc-motion .cc-info:nth-child(3).is-in { animation-delay: 140ms; }
.cc-page.cc-motion .cc-info:nth-child(4).is-in { animation-delay: 210ms; }

.cc-page.cc-motion .cc-info.is-in.is-settled {
  animation: none;
  opacity: 1;
  transform: none;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

@keyframes ccInfoIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .cc-page .cc-info:hover,
  .cc-page.cc-motion .cc-info.is-in.is-settled:hover {
    transform: translateY(-4px);
    border-color: rgba(196, 163, 90, 0.55);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-plan-grid .home-check-card,
  .cc-plan-grid .home-check-card.is-featured,
  .cc-plan-grid .home-check-badge,
  .cc-page .cc-info,
  .cc-page.cc-motion .cc-info,
  .cc-page.cc-motion .cc-info.is-in,
  .cc-page.cc-motion .cc-info.is-in.is-settled {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .cc-benefit,
  .cc-step {
    transition: none;
  }
}
