/*
 * Aljawad Cleaning — unified mobile-first experience layer
 * Loaded after the visual theme to normalize every public template.
 */

:root {
  --ux-pad: 16px;
  --ux-section: 52px;
  --ux-content: 1180px;
  --ux-reading: 820px;
  --ux-card-radius: 18px;
  --ux-control: 52px;
  --ux-bottom-bar: 70px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.site-body {
  min-width: 320px;
  padding-bottom: calc(var(--ux-bottom-bar) + env(safe-area-inset-bottom));
  overflow-x: clip;
  background: #f7fafb;
  color: var(--gray-800);
  font-family: Tajawal, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

body.nav-open {
  touch-action: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100%, calc(var(--ux-content) + (var(--ux-pad) * 2))) !important;
  margin-inline: auto !important;
  padding-inline: var(--ux-pad) !important;
}

.site-body section {
  padding-block: var(--ux-section);
}

.site-body section + section {
  border-top-color: rgba(7, 40, 63, .07);
}

.site-body h1,
.site-body h2,
.site-body h3,
.site-body h4 {
  color: var(--primary-dark);
  line-height: 1.35;
  text-wrap: balance;
}

.site-body h1 {
  font-size: clamp(2rem, 10vw, 3.3rem);
  letter-spacing: -.045em;
}

.site-body h2 {
  font-size: clamp(1.55rem, 7vw, 2.35rem);
  letter-spacing: -.035em;
}

.site-body h3 {
  font-size: clamp(1.08rem, 4.8vw, 1.35rem);
}

.site-body p,
.site-body li {
  overflow-wrap: anywhere;
}

.section-title {
  margin-bottom: 30px !important;
  text-align: right !important;
}

.section-title h2::after {
  right: 0 !important;
  left: auto !important;
  transform: none !important;
}

.section-title p {
  margin-top: 20px !important;
  font-size: 1rem !important;
}

/* Mobile header and drawer */
.header {
  height: 70px !important;
  padding: 0 !important;
  z-index: 1010 !important;
}

.header-inner {
  min-height: 70px;
  gap: 10px;
}

.logo {
  min-width: 0;
  gap: 9px !important;
}

.logo-image {
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px;
  border-radius: 12px !important;
}

.logo-copy {
  min-width: 0;
}

.logo-copy strong {
  max-width: 178px !important;
  font-size: .86rem !important;
}

.logo-copy small {
  display: none;
}

.header-cta {
  display: none !important;
}

.menu-toggle {
  position: relative;
  z-index: 3;
  display: flex !important;
  width: 46px !important;
  height: 46px !important;
  flex: 0 0 46px;
}

.menu-toggle span {
  position: absolute;
  width: 21px;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle span:nth-child(1) { transform: translateY(-7px); }
.menu-toggle span:nth-child(3) { transform: translateY(7px); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg); }

.nav-links {
  position: fixed !important;
  inset: 0 0 0 auto !important;
  z-index: 2 !important;
  display: flex !important;
  width: min(88vw, 370px) !important;
  height: 100dvh !important;
  padding: 88px 18px calc(24px + env(safe-area-inset-bottom)) !important;
  overflow-y: auto;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 4px !important;
  border: 0 !important;
  border-left: 1px solid var(--line) !important;
  background: rgba(255, 255, 255, .985) !important;
  box-shadow: -24px 0 70px rgba(3, 24, 39, .2) !important;
  transform: translateX(105%) !important;
  transition: transform .28s ease !important;
}

.nav-links.mobile-open {
  transform: translateX(0) !important;
}

.nav-links > a {
  display: flex !important;
  min-height: 50px;
  align-items: center;
  padding: 11px 14px !important;
  border-radius: 12px;
  color: var(--gray-700) !important;
  font-size: .98rem !important;
  font-weight: 800 !important;
}

.nav-links > a.active {
  background: rgba(11, 154, 167, .1) !important;
  color: var(--primary) !important;
}

.nav-links > a::after {
  display: none !important;
}

.mobile-nav-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.mobile-nav-actions a {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 13px;
  font-size: .9rem;
  font-weight: 900;
  text-decoration: none;
}

.mobile-nav-call {
  background: var(--primary);
  color: #fff !important;
}

.mobile-nav-whatsapp {
  background: #087e64;
  color: #fff !important;
}

.mobile-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1005 !important;
  visibility: hidden;
  background: rgba(2, 18, 30, .48) !important;
  opacity: 0;
  backdrop-filter: blur(3px);
  transition: opacity .25s ease, visibility .25s ease;
}

.mobile-overlay.active {
  visibility: visible;
  opacity: 1;
}

/* Touch-friendly controls */
.site-body :where(.btn, .btn-whatsapp, .btn-white, .btn-accent-link, .btn-primary-link) {
  display: inline-flex;
  min-height: var(--ux-control);
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 19px !important;
  border-radius: 14px !important;
  font-size: .94rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.site-body .btn-whatsapp {
  background: #087e64 !important;
  color: #fff !important;
}

.cta-buttons,
.hero-buttons,
.offer-buttons,
.error-actions,
.section-footer {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

.cta-buttons > *,
.hero-buttons > *,
.offer-buttons > *,
.error-actions > *,
.section-footer > * {
  width: 100%;
}

/* Shared page heading */
body.site-body .hero.hero-modern {
  min-height: auto !important;
  padding: calc(var(--header-height) + 34px) 0 48px !important;
}

body.site-body .page-hero {
  min-height: 236px !important;
  padding: 112px 0 48px !important;
  text-align: right !important;
}

.page-hero .container {
  max-width: var(--ux-content) !important;
}

.page-hero h1 {
  margin-bottom: 13px !important;
  color: #fff !important;
  font-size: clamp(1.9rem, 9vw, 3rem) !important;
}

.page-hero p {
  max-width: 760px;
  margin: 0 !important;
  color: rgba(244, 250, 251, .82) !important;
  font-size: 1rem !important;
  line-height: 1.85 !important;
}

.breadcrumb-nav,
.visible-breadcrumb {
  display: flex;
  margin-bottom: 14px !important;
  overflow-x: auto;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, .7) !important;
  font-size: .78rem !important;
  scrollbar-width: none;
  white-space: nowrap;
}

.breadcrumb-nav::-webkit-scrollbar,
.visible-breadcrumb::-webkit-scrollbar {
  display: none;
}

.breadcrumb-nav a,
.visible-breadcrumb a {
  color: rgba(255, 255, 255, .88) !important;
}

/* Landing panels used by services, cities and neighborhoods */
.service-hero,
.city-hero,
.neighborhood-hero,
.services-intro,
.offers-header,
.about-mission,
.pro-tips,
.info-card,
.work-hours-card {
  margin: 0 0 22px !important;
  padding: 24px 20px !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--ux-card-radius) !important;
  background: #fff !important;
  color: var(--gray-700) !important;
  box-shadow: var(--shadow-card) !important;
}

.service-hero h2,
.city-hero h2,
.neighborhood-hero h2,
.services-intro h2,
.offers-header h2,
.about-mission h2,
.pro-tips h2,
.info-card h2,
.work-hours-card h2 {
  color: var(--primary-dark) !important;
}

.service-hero p,
.city-hero p,
.neighborhood-hero p,
.services-intro p,
.offers-header p,
.about-mission p,
.pro-tips p,
.info-card p,
.work-hours-card p {
  color: var(--gray-600) !important;
}

.service-highlight,
.contact-banner,
.cta-offer,
.final-cta,
.faq-hero,
.cta-box {
  margin-block: 28px !important;
  padding: 30px 20px !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 8% 18%, rgba(11, 154, 167, .28), transparent 19rem),
    linear-gradient(135deg, var(--primary-dark), #0b3c59) !important;
  color: #fff !important;
  box-shadow: var(--shadow-lg) !important;
  text-align: right !important;
}

.service-highlight :where(h1,h2,h3,h4,p),
.contact-banner :where(h1,h2,h3,h4,p),
.cta-offer :where(h1,h2,h3,h4,p),
.final-cta :where(h1,h2,h3,h4,p),
.faq-hero :where(h1,h2,h3,h4,p),
.cta-box :where(h1,h2,h3,h4,p) {
  color: #fff !important;
}

/* Cards and grids */
.services-grid,
.projects-grid,
.posts-grid,
.reviews-grid,
.offers-grid,
.contact-cards,
.about-stats,
.about-values,
.work-gallery,
.equipment-grid,
.checklist-grid,
.benefits-grid,
.related-projects-grid,
.related-posts-grid,
.projects-mini-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px !important;
}

.service-stats,
.city-stats,
.neighborhood-stats,
.stats-container,
.stats-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-block: 22px !important;
}

.service-card,
.project-card,
.post-card,
.blog-card,
.review-card,
.offer-card,
.contact-card,
.value-card,
.work-card,
.equipment-card,
.benefit-card,
.related-card,
.project-mini-card,
.stat,
.stat-card,
.stat-box,
.before-after-card,
.author-box,
.project-detail,
.form-container {
  min-width: 0 !important;
  overflow: hidden;
  border: 1px solid var(--line) !important;
  border-radius: var(--ux-card-radius) !important;
  background: #fff !important;
  box-shadow: var(--shadow-card) !important;
}

.service-card,
.project-card,
.post-card,
.blog-card,
.review-card,
.offer-card,
.contact-card,
.value-card,
.equipment-card,
.benefit-card,
.related-card,
.project-mini-card,
.stat,
.stat-card,
.stat-box {
  padding: 18px !important;
}

.service-card-img,
.project-card > img,
.post-card > img,
.blog-card-img,
.offer-image,
.work-card > img,
.related-card > img,
.project-mini-card > img {
  display: block;
  width: 100% !important;
  height: 210px !important;
  margin: 0 0 17px !important;
  overflow: hidden;
  border-radius: 14px !important;
  object-fit: cover !important;
}

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

.service-card h3,
.project-card h3,
.post-card h3,
.blog-card h3,
.offer-card h3,
.related-card h3 {
  margin-bottom: 8px !important;
  color: var(--primary-dark) !important;
  font-weight: 900 !important;
}

.service-card p,
.project-card p,
.post-card p,
.blog-card p,
.offer-card p,
.related-card p {
  color: var(--gray-600) !important;
  font-size: .93rem !important;
  line-height: 1.85 !important;
}

.service-link,
.card-link,
.read-more {
  display: inline-flex !important;
  min-height: 44px;
  margin-top: 8px !important;
  align-items: center;
  gap: 6px;
  color: var(--secondary-dark) !important;
  font-size: .9rem !important;
  font-weight: 900 !important;
}

.contact-card {
  text-align: right !important;
}

.contact-card-icon,
.value-icon,
.equipment-card > i,
.benefit-card > i {
  width: 54px !important;
  height: 54px !important;
  margin: 0 0 16px !important;
  border-radius: 15px !important;
  font-size: 1.35rem !important;
}

.rating-summary {
  padding: 28px 20px !important;
  border: 1px solid var(--line) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #fff, var(--surface-muted)) !important;
  box-shadow: var(--shadow-card) !important;
}

.rating-number {
  color: var(--primary-dark) !important;
  font-size: clamp(3rem, 17vw, 5rem) !important;
}

.review-header {
  align-items: flex-start !important;
}

.review-avatar {
  flex: 0 0 50px;
}

.review-text {
  color: var(--gray-700) !important;
  font-size: .95rem !important;
  line-height: 1.9 !important;
}

/* Process, lists and sitewide links */
.process-steps {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

.process-step {
  position: relative;
  min-height: 0 !important;
  padding: 20px 72px 20px 18px !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: var(--shadow-sm) !important;
  text-align: right !important;
}

.step-number {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  place-items: center;
  border-radius: 12px !important;
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 900;
}

.internal-links,
.internal-links-section {
  margin-block: 22px !important;
  padding: 18px 16px !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: var(--shadow-sm) !important;
}

.internal-links-title,
.internal-links-section h3 {
  display: block;
  margin-bottom: 12px !important;
  color: var(--primary-dark) !important;
  font-size: .96rem !important;
  font-weight: 900 !important;
}

.internal-links-grid,
.internal-links {
  gap: 8px !important;
}

.internal-link {
  display: inline-flex !important;
  min-height: 42px;
  align-items: center;
  margin: 3px 2px !important;
  padding: 8px 12px !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--primary) !important;
  font-size: .82rem !important;
  font-weight: 800;
}

/* Scrollable comparison and price tables */
.comparison-table,
.comparison-table-wrapper,
.comparison-table-scroll,
.price-table,
.price-table-wrapper,
.price-table-scroll,
.work-hours-table {
  max-width: 100% !important;
}

.comparison-table-wrapper,
.comparison-table-scroll,
.price-table-wrapper,
.price-table-scroll {
  margin-block: 20px !important;
  overflow-x: auto !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  background: #fff;
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

table.comparison-table,
table.price-table,
.comparison-table table,
.price-table table,
.work-hours-table {
  width: 100% !important;
  min-width: 620px;
  border-collapse: collapse !important;
}

.comparison-table th,
.comparison-table td,
.price-table th,
.price-table td,
.work-hours-table th,
.work-hours-table td {
  padding: 13px 14px !important;
  border-bottom: 1px solid var(--line) !important;
  font-size: .88rem !important;
  text-align: right !important;
  white-space: normal;
}

.comparison-table th,
.price-table th {
  background: var(--primary-dark) !important;
  color: #fff !important;
}

/* Forms */
.contact-form-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px !important;
}

.form-container {
  padding: 22px 18px !important;
}

.form-container h2 {
  margin-bottom: 22px !important;
  border-right-color: var(--accent) !important;
  color: var(--primary-dark) !important;
}

.form-group {
  margin-bottom: 18px !important;
}

.form-group label {
  margin-bottom: 7px !important;
  color: var(--gray-800);
  font-size: .92rem !important;
  font-weight: 800 !important;
}

.form-control,
.site-body input:not([type='checkbox']):not([type='radio']),
.site-body textarea,
.site-body select {
  width: 100%;
  min-height: 54px !important;
  padding: 12px 14px !important;
  border: 1px solid var(--gray-300) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--gray-900) !important;
  font: inherit;
  font-size: 16px !important;
}

.site-body textarea {
  min-height: 138px !important;
  resize: vertical;
}

.form-control:focus,
.site-body input:focus,
.site-body textarea:focus,
.site-body select:focus {
  border-color: var(--secondary) !important;
  outline: none;
  box-shadow: 0 0 0 4px rgba(11, 154, 167, .12) !important;
}

.success-message,
.error-message {
  padding: 14px 15px !important;
  border-radius: 12px !important;
  font-weight: 700;
}

/* Articles and detailed content */
.post-content,
.service-content,
.project-detail {
  color: var(--gray-700) !important;
  font-size: 1rem !important;
  line-height: 2 !important;
}

.post-content :where(h2,h3,h4),
.service-content :where(h2,h3,h4),
.project-detail :where(h2,h3,h4) {
  margin-top: 1.8em !important;
  margin-bottom: .65em !important;
}

.post-content a,
.service-content a,
.project-detail a {
  color: var(--secondary-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.post-content img,
.service-content img,
.project-detail img {
  margin-block: 20px;
  border-radius: 16px;
}

.table-of-contents,
.author-box {
  margin-block: 22px !important;
  padding: 20px !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  background: var(--surface-muted) !important;
}

.share-buttons {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 9px !important;
}

.share-btn {
  display: flex !important;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px !important;
  font-weight: 800;
}

/* FAQs */
.faq-grid,
.faq-grid-blog,
.faq-grid-contact,
.faq-grid-offers,
.faq-container-new {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

.faq-card,
.faq-card-new,
.faq-section details,
.faq-section-about details,
.faq-section-blog details,
.faq-section-contact details,
.faq-section-offers details {
  overflow: hidden;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: var(--shadow-sm) !important;
}

.faq-question,
.faq-question-new,
.faq-section summary,
.faq-section-about summary,
.faq-section-blog summary,
.faq-section-contact summary,
.faq-section-offers summary {
  width: 100%;
  min-height: 64px;
  padding: 14px !important;
  color: var(--primary-dark) !important;
  font-size: .94rem !important;
  font-weight: 900 !important;
  line-height: 1.6;
  text-align: right;
}

.faq-answer,
.faq-answer-new {
  color: var(--gray-600) !important;
  font-size: .92rem !important;
  line-height: 1.9 !important;
}

.categories-wrapper,
.filter-btns,
.star-filter-btns {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.faq-categories,
.filter-btns,
.star-filter-btns {
  display: flex !important;
  width: max-content;
  min-width: 100%;
  gap: 8px !important;
  padding-bottom: 8px;
}

.category-btn,
.filter-btn,
.star-filter-btn {
  min-height: 44px;
  padding: 9px 14px !important;
  border-radius: 11px !important;
  white-space: nowrap;
}

/* Pagination and 404 */
.pagination {
  display: flex !important;
  max-width: 100%;
  margin-block: 28px !important;
  overflow-x: auto;
  justify-content: flex-start !important;
  gap: 7px !important;
  scrollbar-width: none;
}

.page-link {
  display: grid !important;
  min-width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 11px !important;
}

.page-404 {
  min-height: calc(100dvh - 70px - var(--ux-bottom-bar));
  padding: 120px 0 56px !important;
}

.error-code {
  font-size: clamp(4rem, 28vw, 8rem) !important;
}

.suggestions-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
}

/* Footer: lighter on mobile, expanded on larger screens */
.site-body:not(.page-home):not(.page-contact) .global-map-section {
  display: none;
}

.global-map-section {
  padding-block: 42px !important;
}

.map-container {
  height: 320px !important;
  border-radius: 18px !important;
}



.footer-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 28px !important;
}

.footer-col {
  min-width: 0;
}

.footer-col h3 {
  margin-bottom: 13px !important;
  color: #fff !important;
  font-size: 1rem !important;
}

.footer-about,
.footer-links a,
.footer-contact-item,
.footer-contact-item a {
  color: rgba(238, 247, 250, .75) !important;
  font-size: .9rem !important;
  line-height: 1.8;
}

.footer-links a {
  display: flex;
  min-height: 42px;
  align-items: center;
}

.footer-grid + div {
  display: none;
}

.footer-bottom {
  margin-top: 34px !important;
  padding-top: 22px !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 10px !important;
  font-size: .78rem;
}

/* Global fixed conversion bar */
.mobile-action-bar {
  position: fixed;
  right: 10px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 10px;
  z-index: 9999;
  display: grid;
  grid-template-columns: .9fr 1fr 1fr;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 40px rgba(3, 24, 39, .25);
  backdrop-filter: blur(16px) saturate(160%);
  max-width: 450px;
  margin-inline: auto;
  transition: transform 0.3s ease;
}

.mobile-action-bar a {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 12px;
  font-size: .82rem;
  font-weight: 900;
  text-decoration: none;
}

.mobile-action-call {
  background: var(--primary);
  color: #fff;
}

.mobile-action-whatsapp {
  background: #087e64;
  color: #fff;
}

.mobile-action-quote {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: var(--primary-dark);
}

.call-float,
.whatsapp-float,
.floating-back-btn,
.back-to-top {
  display: none !important;
}

/* Tablet */
@media (min-width: 640px) {
  :root {
    --ux-pad: 24px;
    --ux-section: 64px;
  }

  .logo-copy strong {
    max-width: 250px !important;
    font-size: .95rem !important;
  }

  .logo-copy small {
    display: block;
  }

  .cta-buttons,
  .hero-buttons,
  .offer-buttons,
  .error-actions,
  .section-footer,
  .share-buttons {
    display: flex !important;
    flex-wrap: wrap;
  }

  .cta-buttons > *,
  .hero-buttons > *,
  .offer-buttons > *,
  .error-actions > *,
  .section-footer > *,
  .share-buttons > * {
    width: auto;
  }

  .services-grid,
  .projects-grid,
  .posts-grid,
  .reviews-grid,
  .offers-grid,
  .contact-cards,
  .about-values,
  .work-gallery,
  .equipment-grid,
  .checklist-grid,
  .benefits-grid,
  .related-projects-grid,
  .related-posts-grid,
  .projects-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .about-stats,
  .service-stats,
  .city-stats,
  .neighborhood-stats,
  .stats-container,
  .stats-row {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

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

  .faq-grid,
  .faq-grid-blog,
  .faq-grid-contact,
  .faq-grid-offers,
  .faq-container-new {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .suggestions-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Desktop */
@media (min-width: 993px) {
  :root {
    --ux-pad: 28px;
    --ux-section: 82px;
  }

  body.site-body {
    padding-bottom: 0;
  }

  .header {
    height: 84px !important;
  }

  .header-inner {
    min-height: 84px;
  }

  .logo-image {
    width: 48px !important;
    height: 48px !important;
    flex-basis: 48px;
  }

  .menu-toggle,
  .mobile-overlay,
  .mobile-nav-actions {
    display: none !important;
  }

  .nav-links {
    position: static !important;
    display: flex !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    overflow: visible;
    flex-direction: row !important;
    align-items: center !important;
    gap: clamp(10px, 1.2vw, 19px) !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .nav-links > a {
    display: inline-flex !important;
    min-height: 44px;
    width: auto;
    padding: 9px 0 !important;
    border-radius: 0;
    font-size: clamp(.78rem, .8vw, .88rem) !important;
  }

  .nav-links > a.active {
    background: transparent !important;
  }

  .nav-links > a::after {
    display: block !important;
  }

  .header-cta {
    display: flex !important;
  }

  body.site-body .page-hero {
    min-height: 315px !important;
    padding: 154px 0 72px !important;
  }

  body.site-body .hero.hero-modern {
    padding: 138px 0 72px !important;
  }

  .section-title {
    margin-bottom: 42px !important;
    text-align: center !important;
  }

  .section-title h2::after {
    right: 50% !important;
    transform: translateX(50%) !important;
  }

  .service-hero,
  .city-hero,
  .neighborhood-hero,
  .services-intro,
  .offers-header,
  .about-mission,
  .pro-tips,
  .info-card,
  .work-hours-card {
    padding: 34px 36px !important;
    border-radius: 22px !important;
  }

  .service-highlight,
  .contact-banner,
  .cta-offer,
  .final-cta,
  .faq-hero,
  .cta-box {
    padding: 46px 48px !important;
    border-radius: 28px !important;
  }

  .services-grid,
  .projects-grid,
  .posts-grid,
  .reviews-grid,
  .offers-grid,
  .work-gallery,
  .related-projects-grid,
  .related-posts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }

  .contact-cards,
  .equipment-grid,
  .benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .about-values,
  .checklist-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

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

  .contact-form-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr) !important;
    gap: 26px !important;
  }

  .form-container {
    padding: 32px !important;
  }

  .footer-grid {
    grid-template-columns: 1.25fr .8fr 1fr 1fr !important;
    gap: 34px !important;
  }

  .footer-grid + div {
    display: block;
  }

  .footer-bottom {
    flex-direction: row !important;
    align-items: center !important;
  }

  .call-float,
  .whatsapp-float,
  .floating-back-btn,
  .back-to-top {
    display: flex !important;
    animation: none !important;
  }

  .call-float {
    top: auto !important;
    bottom: 92px !important;
  }

  .whatsapp-float {
    top: auto !important;
    bottom: 24px !important;
  }

  .floating-back-btn {
    top: auto !important;
    bottom: 160px !important;
  }

  .back-to-top {
    top: auto !important;
    right: 20px !important;
    bottom: 24px !important;
    left: auto !important;
  }
}

@media (min-width: 1180px) {
  .services-grid,
  .posts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .projects-mini-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================
   Premium detail pages — services, projects and articles
   ========================================================== */

body.site-body .detail-hero {
  position: relative;
  isolation: isolate;
  min-height: 0 !important;
  padding: 118px 0 46px !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(23, 184, 176, .18), transparent 32%),
    radial-gradient(circle at 86% 78%, rgba(215, 166, 55, .15), transparent 28%),
    linear-gradient(145deg, #061b2b 0%, #0a3149 58%, #0a4651 100%) !important;
  text-align: right !important;
}

.detail-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 38px 38px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent);
}

.detail-hero-inner {
  position: relative;
  max-width: 1040px !important;
}

.detail-breadcrumb {
  display: flex !important;
  width: 100%;
  margin: 0 0 20px !important;
  padding: 0 0 12px !important;
  overflow-x: auto;
  align-items: center;
  gap: 8px;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
  color: rgba(255, 255, 255, .67) !important;
  font-size: .78rem !important;
  white-space: nowrap;
  scrollbar-width: none;
}

.detail-breadcrumb::-webkit-scrollbar {
  display: none;
}

.detail-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8fe8e2 !important;
  font-weight: 700;
  text-decoration: none !important;
}

.detail-breadcrumb [aria-current="page"] {
  max-width: 54vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-kicker {
  display: inline-flex;
  min-height: 34px;
  margin-bottom: 14px;
  padding: 6px 12px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(143, 232, 226, .3);
  border-radius: 999px;
  background: rgba(12, 121, 127, .22);
  color: #baf5ef;
  font-size: .78rem;
  font-weight: 900;
}

.detail-hero h1 {
  max-width: 900px;
  margin: 0 0 14px !important;
  color: #fff !important;
  font-size: clamp(2rem, 9vw, 3.5rem) !important;
  letter-spacing: -.045em;
}

.detail-hero > .container > p,
.detail-hero-inner > p {
  max-width: 760px;
  margin: 0 !important;
  color: rgba(255, 255, 255, .82) !important;
  font-size: clamp(.98rem, 4vw, 1.16rem) !important;
  line-height: 1.9;
}

.detail-hero-facts {
  display: flex;
  margin-top: 22px;
  padding-bottom: 2px;
  overflow-x: auto;
  gap: 9px;
  scrollbar-width: none;
}

.detail-hero-facts::-webkit-scrollbar {
  display: none;
}

.detail-hero-facts span {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 12px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.detail-hero-facts i {
  color: #e7c66f;
}

.detail-hero-actions,
.detail-bottom-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* People-first content blocks used by service and project case-study pages */
.detail-quality-list,
.detail-steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.detail-quality-list li,
.detail-steps-list li {
  position: relative;
  padding: 0.85rem 3rem 0.85rem 1rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  background: #fff;
  color: #334155;
  line-height: 1.75;
}

.detail-quality-list li::before,
.detail-steps-list li::before {
  position: absolute;
  inset-inline-start: 1rem;
  top: 0.85rem;
  width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf7f2;
  color: #087f5b;
  font-weight: 800;
}

.detail-quality-list li::before { content: "✓"; }
.detail-steps-list { counter-reset: detail-step; }
.detail-steps-list li { counter-increment: detail-step; }
.detail-steps-list li::before {
  content: counter(detail-step);
  background: #e9f2fb;
  color: #0d3b66;
}

.project-facts-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.project-facts-list > div,
.project-story-grid > div {
  padding: 1rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  background: #f8fafc;
}

.project-facts-list dt { color: #64748b; font-size: 0.8rem; }
.project-facts-list dd { margin: 0.2rem 0 0; color: #0d3b66; font-weight: 800; }

.project-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.project-story-grid i { color: #ff6f3c; font-size: 1.25rem; }
.project-story-grid h3 { margin: 0.65rem 0 0.35rem; color: #0d3b66; font-size: 1.05rem; }
.project-story-grid p { margin: 0; color: #475569; line-height: 1.8; }

.article-sources ul { margin: 0; padding-inline-start: 1.2rem; }
.article-sources li + li { margin-top: 0.55rem; }
.article-sources a { color: #0d3b66; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

@media (max-width: 700px) {
  .project-facts-list,
  .project-story-grid { grid-template-columns: 1fr; }
}

.detail-hero-actions {
  max-width: 540px;
  margin-top: 24px;
}

.detail-hero-actions .btn,
.detail-bottom-actions .btn {
  width: 100%;
  min-height: 50px;
  justify-content: center;
  border-radius: 13px !important;
  font-weight: 900;
}

.detail-secondary-action {
  border: 1px solid rgba(255, 255, 255, .32) !important;
  background: rgba(255, 255, 255, .09) !important;
  color: #fff !important;
  backdrop-filter: blur(8px);
}

.detail-section {
  padding: 28px 0 58px !important;
  background:
    linear-gradient(180deg, rgba(226, 242, 243, .7), transparent 220px),
    #f7fafb;
}

.detail-container {
  max-width: 1040px !important;
}

.detail-card {
  overflow: hidden;
  border: 1px solid rgba(7, 40, 63, .1) !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 18px 55px rgba(7, 40, 63, .08) !important;
}

.detail-card.project-detail {
  padding: 0 !important;
}

.detail-cover {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #dfeaed;
}

.detail-cover::after,
.detail-gallery .before-after-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(to top, rgba(2, 20, 33, .66), transparent);
  content: "";
  pointer-events: none;
}

.detail-cover img {
  width: 100%;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  object-fit: cover;
}

.detail-cover figcaption {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  min-height: 38px;
  padding: 8px 12px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 10px;
  background: rgba(5, 34, 50, .76);
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.detail-card-body {
  padding: 20px;
}

.detail-intro {
  display: grid;
  margin-bottom: 22px;
  gap: 10px;
}

.detail-intro h2 {
  margin: 8px 0 0 !important;
  font-size: clamp(1.45rem, 6vw, 2rem) !important;
}

.detail-intro p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.9;
}

.detail-reading-time {
  display: inline-flex;
  min-height: 32px;
  padding: 5px 10px;
  align-items: center;
  gap: 6px;
  border-radius: 9px;
  background: #eaf6f5;
  color: #08737a;
  font-size: .76rem;
  font-weight: 800;
}

.detail-trust-grid {
  display: grid;
  margin: 24px 0 30px;
  grid-template-columns: 1fr;
  gap: 10px;
}

.detail-trust-grid > div {
  display: grid;
  min-height: 86px;
  padding: 15px;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 11px;
  border: 1px solid #dbe8ea;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #f6fbfb);
}

.detail-trust-grid i {
  display: grid;
  width: 42px;
  height: 42px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 12px;
  background: #e4f5f3;
  color: #087b81;
  font-size: 1.05rem;
}

.detail-trust-grid strong {
  color: var(--primary-dark);
  font-size: .92rem;
}

.detail-trust-grid span {
  color: var(--gray-500);
  font-size: .76rem;
}

.detail-prose {
  color: var(--gray-700) !important;
  font-size: 1rem !important;
  line-height: 2.05 !important;
}

.detail-prose > :first-child {
  margin-top: 0 !important;
}

.detail-prose :where(h2, h3) {
  position: relative;
  padding-right: 17px;
  scroll-margin-top: 110px;
}

.detail-prose :where(h2, h3)::before {
  position: absolute;
  top: .22em;
  right: 0;
  width: 5px;
  height: 1.15em;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--secondary), #d7a637);
  content: "";
}

.detail-prose :where(ul, ol) {
  padding-right: 1.3rem;
}

.detail-prose li::marker {
  color: var(--secondary-dark);
  font-weight: 900;
}

.detail-comparison,
.article-detail-card .comparison-table {
  margin: 28px 0 !important;
  overflow-x: auto;
  border: 1px solid #dce8ea !important;
  border-radius: 15px !important;
  box-shadow: none !important;
}

.detail-comparison table,
.article-detail-card .comparison-table table {
  min-width: 540px;
}

.detail-comparison th,
.article-detail-card .comparison-table th {
  background: #092c42 !important;
  color: #fff !important;
}

.detail-panel,
.detail-related-section {
  margin: 28px 0 !important;
  padding: 18px !important;
  border: 1px solid #dce8ea !important;
  border-radius: 17px !important;
  background: #f5f9fa !important;
}

.detail-section-heading {
  display: flex;
  margin: 0 0 16px !important;
  padding: 0 !important;
  align-items: center;
  gap: 9px;
  border: 0 !important;
  color: var(--primary-dark) !important;
  font-size: 1.08rem !important;
}

.detail-section-heading i {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: #dff3f1;
  color: #08777d;
}

.detail-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-chip-list + .detail-chip-list {
  margin-top: 9px;
}

.detail-chip-list a {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 12px;
  align-items: center;
  gap: 7px;
  border: 1px solid #d7e4e6;
  border-radius: 10px;
  background: #fff;
  color: var(--primary-dark) !important;
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none !important;
}

.detail-chip-list a i {
  color: var(--secondary-dark);
}

.detail-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
}

.detail-related-card {
  display: grid !important;
  overflow: hidden;
  min-width: 0;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid #dce7e9 !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--primary-dark) !important;
  text-decoration: none !important;
  box-shadow: 0 5px 18px rgba(7, 40, 63, .045) !important;
}

.detail-related-media {
  display: grid;
  min-height: 100px;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #0b3a50, #087b81);
  color: #fff;
  font-size: 1.45rem;
}

.detail-related-media img,
.article-related-card > img {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  object-fit: cover;
}

.detail-related-copy {
  display: flex;
  min-width: 0;
  padding: 13px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.detail-related-copy strong,
.detail-related-copy h4 {
  display: -webkit-box;
  margin: 0 !important;
  overflow: hidden;
  color: var(--primary-dark) !important;
  font-size: .88rem !important;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.detail-related-copy small,
.detail-related-copy .read-more {
  color: #087b81 !important;
  font-size: .74rem !important;
  font-weight: 900;
  text-decoration: none !important;
}

.detail-related-card--text {
  min-height: 94px;
  grid-template-columns: 56px minmax(0, 1fr);
}

.detail-related-icon {
  display: grid;
  margin: 12px 0 12px 12px;
  place-items: center;
  border-radius: 12px;
  background: #e4f5f3;
  color: #087b81;
}

.detail-expert-card {
  display: grid !important;
  margin: 30px 0 !important;
  padding: 19px !important;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(143, 232, 226, .18) !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, #071f31, #0a4651) !important;
  color: #fff !important;
  box-shadow: 0 15px 35px rgba(7, 40, 63, .15) !important;
}

.detail-expert-icon {
  display: grid !important;
  width: 52px !important;
  height: 52px !important;
  margin: 0 !important;
  place-items: center;
  border-radius: 14px !important;
  background: linear-gradient(145deg, #d7a637, #f2cf73) !important;
  color: #092c42 !important;
  font-size: 1.18rem !important;
}

.detail-expert-copy {
  min-width: 0;
}

.detail-expert-copy small {
  display: block;
  margin-bottom: 2px;
  color: #8fe8e2;
  font-size: .7rem;
  font-weight: 800;
}

.detail-expert-copy h4 {
  margin: 0 0 3px !important;
  color: #fff !important;
  font-size: .98rem !important;
}

.detail-expert-copy p {
  margin: 0 !important;
  color: rgba(255, 255, 255, .72) !important;
  font-size: .74rem !important;
}

.detail-expert-card > .btn {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 48px;
  justify-content: center;
  border-radius: 12px !important;
}

.detail-bottom-actions {
  margin-top: 26px;
}

/* Project details */
.detail-gallery {
  display: grid !important;
  margin: 0 0 26px !important;
  grid-template-columns: 1fr;
  gap: 12px !important;
}

.detail-gallery .before-after-card {
  position: relative;
  min-width: 0 !important;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid #dce8ea;
  border-radius: 15px !important;
  background: #e5edef;
}

.detail-gallery .before-after-card img {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  border-radius: 0 !important;
  object-fit: cover;
}

.detail-gallery .before-after-label {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  width: auto;
  min-height: 38px;
  padding: 8px 12px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 10px;
  background: rgba(5, 34, 50, .8) !important;
  color: #fff !important;
  font-size: .78rem;
  backdrop-filter: blur(8px);
}

.project-description {
  margin-bottom: 26px;
}

/* Article details */
.article-detail-container {
  max-width: 980px !important;
}

.article-detail-card .article-cover {
  display: block;
  width: 100% !important;
  height: clamp(230px, 58vw, 480px) !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  object-fit: cover;
}

.article-meta-strip {
  display: flex;
  margin-bottom: 24px;
  padding-bottom: 16px;
  overflow-x: auto;
  gap: 8px;
  border-bottom: 1px solid #e4ecee;
  scrollbar-width: none;
}

.article-meta-strip::-webkit-scrollbar {
  display: none;
}

.article-meta-strip span {
  display: inline-flex;
  min-height: 36px;
  padding: 7px 10px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  border-radius: 9px;
  background: #f0f6f7;
  color: #536a73;
  font-size: .75rem;
  font-weight: 700;
}

.article-meta-strip i {
  color: #087b81;
}

.article-detail-card .table-of-contents {
  margin: 0 0 28px !important;
  padding: 18px !important;
  border: 1px solid #d6e7e8 !important;
  border-right: 4px solid #0b9aa7 !important;
  border-radius: 14px !important;
  background: #f3f9f9 !important;
}

.article-detail-card .table-of-contents h4 {
  display: flex;
  margin: 0 0 12px !important;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark) !important;
}

.article-detail-card .table-of-contents ul {
  display: grid !important;
  margin: 0 !important;
  grid-template-columns: 1fr;
  gap: 7px !important;
}

.article-detail-card .table-of-contents a {
  display: block;
  min-height: 42px;
  padding: 9px 11px !important;
  border: 1px solid #dce8ea !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #16455b !important;
  font-size: .8rem !important;
  font-weight: 800;
  text-decoration: none !important;
}

.article-prose {
  font-size: clamp(1rem, 3.8vw, 1.08rem) !important;
  line-height: 2.12 !important;
}

.article-prose p {
  margin-bottom: 1.15em !important;
}

.article-author-card {
  margin-block: 32px !important;
}

.article-related-section {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.article-related-section .related-projects-grid,
.article-related-section .related-posts-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 11px !important;
}

.article-related-card {
  grid-template-columns: 116px minmax(0, 1fr);
}

.article-related-card > img,
.article-related-card > div:first-child:not(.detail-related-copy) {
  min-height: 112px;
}

.article-share-section {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid #e0eaec;
}

.article-share-section > p {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-weight: 900;
}

.article-share-section .share-buttons {
  margin: 0 !important;
}

.article-cta-box {
  margin: 32px 0 0 !important;
  padding: 24px 19px !important;
  border: 1px solid rgba(143, 232, 226, .16) !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, #071f31, #0a4651) !important;
  text-align: right !important;
}

.article-cta-box h4 {
  margin: 0 0 8px !important;
  color: #fff !important;
  font-size: clamp(1.25rem, 5vw, 1.7rem) !important;
}

.article-cta-box > p {
  margin: 0 !important;
  color: rgba(255, 255, 255, .78) !important;
}

.article-whatsapp-action {
  border: 1px solid rgba(255, 255, 255, .22) !important;
  background: #138d55 !important;
  color: #fff !important;
}

.detail-back-link {
  margin-top: 18px;
  text-align: center;
}

.detail-back-link a {
  display: inline-flex;
  min-height: 46px;
  padding: 9px 16px;
  align-items: center;
  gap: 8px;
  border: 1px solid #bed0d4;
  border-radius: 12px;
  background: #fff;
  color: var(--primary-dark);
  font-size: .84rem;
  font-weight: 900;
  text-decoration: none;
}

@media (min-width: 640px) {
  .detail-hero-actions,
  .detail-bottom-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .detail-hero-actions .btn,
  .detail-bottom-actions .btn {
    width: auto;
  }

  .detail-card-body {
    padding: 30px;
  }

  .detail-intro {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
    align-items: end;
    gap: 24px;
  }

  .detail-trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-related-grid,
  .article-related-section .related-projects-grid,
  .article-related-section .related-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .detail-related-card,
  .article-related-card {
    grid-template-columns: 1fr;
    grid-template-rows: 145px auto;
  }

  .detail-related-card--text {
    grid-template-columns: 60px minmax(0, 1fr);
    grid-template-rows: auto;
  }

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

  .detail-expert-card {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    padding: 22px !important;
  }

  .detail-expert-card > .btn {
    grid-column: auto;
    width: auto;
  }

  .article-detail-card .table-of-contents ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 993px) {
  body.site-body .detail-hero {
    min-height: 0 !important;
    padding: 152px 0 70px !important;
  }

  .detail-card {
    border-radius: 28px !important;
  }

  .detail-card-body {
    padding: 42px 48px;
  }

  .detail-cover {
    aspect-ratio: 16 / 7;
  }

  .detail-panel,
  .detail-related-section {
    padding: 24px !important;
  }

  .detail-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-related-section .related-projects-grid,
  .article-related-section .related-posts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .article-card-body {
    padding-inline: 64px;
  }

  .article-prose {
    font-size: 1.08rem !important;
  }
}
