/* ═══════════════════════════════════════════════════════════
   SITE POLISH — All pages: colour, layout, mobile + desktop
   ═══════════════════════════════════════════════════════════ */

/* ─── Inner page section tints (override calm.css flattening) ─── */
body.page-inner .section-tint-teal,
.page-inner .contact-section {
  background:
    radial-gradient(ellipse 55% 45% at 0% 0%, rgba(61, 184, 191, 0.1), transparent 55%),
    var(--bg-primary) !important;
}

body.page-inner .section-tint-warm,
.page-inner .about-story {
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(201, 169, 98, 0.1), transparent 55%),
    var(--bg-primary) !important;
}

body.page-inner .services-hero-cards,
.page-inner .service-detail-grid {
  background: transparent;
}

/* ─── Page heroes ─── */
.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero-bg img {
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.page-hero:hover .page-hero-bg img {
  transform: scale(1.08);
}

.page-hero-overlay {
  background:
    linear-gradient(180deg, rgba(5, 10, 18, 0.55) 0%, rgba(5, 10, 18, 0.88) 100%),
    linear-gradient(90deg, rgba(5, 10, 18, 0.92) 0%, rgba(5, 10, 18, 0.6) 55%, rgba(5, 10, 18, 0.75) 100%) !important;
}

.page-hero-content {
  padding: 0.5rem 0 1rem;
}

.page-hero-content h1 {
  margin-bottom: 0.85rem;
}

.page-hero-content .lead {
  max-width: 34rem;
}

/* ─── Service detail cards ─── */
.service-detail {
  border-radius: var(--radius-lg) !important;
  transition: transform 0.35s ease, border-color 0.35s, box-shadow 0.35s !important;
}

.service-detail:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(61, 184, 191, 0.35) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28) !important;
}

.service-detail:nth-child(1) { border-top: 3px solid rgba(61, 184, 191, 0.6); }
.service-detail:nth-child(2) { border-top: 3px solid rgba(201, 169, 98, 0.6); }
.service-detail:nth-child(3) { border-top: 3px solid rgba(139, 92, 246, 0.6); }
.service-detail:nth-child(4) { border-top: 3px solid rgba(52, 211, 153, 0.6); }
.service-detail:nth-child(5) { border-top: 3px solid rgba(244, 114, 182, 0.6); }

.service-detail-img {
  position: relative;
  overflow: hidden;
}

.service-detail-img img {
  object-fit: cover;
  object-position: center 35%;
}

.service-detail-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 10, 18, 0.4) 100%);
  pointer-events: none;
}

/* ─── Work items ─── */
.work-item {
  border-radius: var(--radius-lg) !important;
  transition: transform 0.35s, box-shadow 0.35s !important;
}

.work-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.work-item-tag {
  color: var(--teal) !important;
  border-color: rgba(61, 184, 191, 0.3) !important;
}

/* ─── Contact page ─── */
.contact-form-wrap {
  border-radius: var(--radius-lg) !important;
  border: 1px solid rgba(61, 184, 191, 0.15) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

.contact-method {
  transition: border-color 0.25s, background 0.25s;
  border-radius: var(--radius);
}

.contact-method:hover {
  border-color: rgba(61, 184, 191, 0.3) !important;
  background: rgba(61, 184, 191, 0.04);
}

.contact-method-icon {
  color: var(--teal) !important;
  background: rgba(61, 184, 191, 0.1) !important;
  border-radius: 8px;
}

.contact-method--phone strong {
  color: var(--text-primary);
}

.contact-method--phone a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

.contact-method--phone a:hover {
  text-decoration: underline;
}

/* ─── CTA banners (inner pages) ─── */
.cta-banner-inner {
  border-radius: var(--radius-lg) !important;
  border: 1px solid rgba(61, 184, 191, 0.15) !important;
}

/* ─── Section headers site-wide ─── */
.section-header--center h2::after {
  background: linear-gradient(90deg, #3db8bf, #8b5cf6) !important;
  opacity: 1 !important;
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid rgba(61, 184, 191, 0.1) !important;
}

/* ─── Sticky CTA ─── */
.sticky-cta {
  border-top: 1px solid rgba(61, 184, 191, 0.2) !important;
  backdrop-filter: blur(12px);
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .page-hero-content {
    text-align: center;
  }

  .page-hero-content .lead {
    margin-inline: auto;
  }

  .page-hero .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .page-hero .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .contact-grid {
    gap: 2rem !important;
  }

  .contact-info {
    position: static !important;
  }

  .service-detail-grid {
    grid-template-columns: 1fr !important;
  }

  .work-item {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .work-item:nth-child(even) {
    direction: ltr !important;
  }

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

  .btn-full {
    min-height: 48px;
  }
}

/* ─── Desktop ─── */
@media (min-width: 1024px) {
  body.page-inner main > section:not(.page-hero) {
    padding-top: clamp(56px, 5vw, 80px);
    padding-bottom: clamp(56px, 5vw, 80px);
  }

  .service-detail-grid {
    gap: 1.75rem !important;
  }

  .contact-grid {
    gap: 3.5rem !important;
  }

  .page-hero-content h1 {
    font-size: clamp(2.25rem, 2.8vw, 2.75rem) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-bg img,
  .service-detail:hover,
  .work-item:hover {
    transform: none !important;
    transition: none !important;
  }
}
