/* Final responsive and readability fixes */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.reveal,
.stagger-item,
.reveal-visible,
.stagger-item.reveal-visible,
.reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

html {
  scroll-padding-top: calc(var(--header-height, 86px) + 16px);
}

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

img,
video,
iframe {
  max-width: 100%;
}

[id] {
  scroll-margin-top: calc(var(--header-height, 86px) + 16px);
}

html {
  scroll-padding-top: calc(var(--header-height, 86px) + 16px);
}

[id] {
  scroll-margin-top: calc(var(--header-height, 86px) + 16px);
}

.announcement-bar {
  position: relative !important;
  z-index: 20 !important;
  transition: opacity .25s ease, transform .25s ease, max-height .25s ease, padding .25s ease, margin .25s ease !important;
  max-height: 120px;
  overflow: hidden !important;
}

.site-header {
  position: sticky !important;
  top: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  background: rgba(248, 250, 252, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.site-header.is-scrolled,
.site-header.header-scrolled {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1) !important;
}

body{
  padding-top: 0;
}

body.scrolled .announcement-bar {
  opacity: 0 !important;
  transform: translateY(-100%) !important;
  pointer-events: none !important;
  max-height: 0 !important;
  overflow: hidden !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
}

.site-header .container,
.navbar,
.nav-links,
.nav-cta {
  min-width: 0;
}

main,
section,
.container,
.section-shell,
.service-detail,
.service-detail__body,
.article-layout,
.article-body,
.article-sidebar,
.contact-layout,
.about-layout,
.page-hero__inner,
.hero__inner {
  min-width: 0;
}

.service-card,
.service-overview-card,
.project-card,
.article-card,
.video-card,
.bento-card,
.trust-card,
.timeline-card,
.cblock,
.material-card,
.quality-item,
.contact-panel,
.contact-channel,
.sidebar-cta,
.sidebar-links,
.faq-item,
.team-card,
.kpi-card,
.stat-item {
  min-width: 0;
  max-width: 100%;
}

.service-card h3,
.service-card p,
.service-overview-card h3,
.service-overview-card p,
.project-card h3,
.project-card p,
.article-card h3,
.article-card p,
.video-card h3,
.video-card p,
.material-card h4,
.material-card p,
.cblock h3,
.cblock p,
.cblock li,
.sidebar-links a,
.sidebar-cta p,
.timeline-card h3,
.timeline-card p,
.team-card h3,
.team-card p,
.quality-item h4,
.quality-item p,
.contact-panel p,
.contact-channel__val,
.contact-channel__label {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.text-on-light,
.service-card,
.service-overview-card,
.project-card,
.article-card,
.bento-card,
.timeline-card,
.cblock--white,
.cblock--warm,
.cblock--slate,
.material-card,
.contact-form,
.contact-panel,
.team-card,
.kpi-card,
.stat-item {
  color: #0f3d35;
}

.text-on-light p,
.text-on-light li,
.service-card p,
.service-card li,
.service-overview-card p,
.project-card p,
.article-card p,
.bento-card p,
.timeline-card p,
.cblock--white p,
.cblock--white li,
.cblock--warm p,
.cblock--warm li,
.cblock--slate p,
.cblock--slate li,
.material-card p,
.contact-form p,
.contact-panel p,
.team-card p,
.kpi-card span,
.stat-item span,
.article-sidebar p,
.article-sidebar li {
  color: #34524c;
}

.text-on-dark,
.dark-section,
.quality-bg,
.videos-bg,
.bg-text-section,
.trust-strip,
.cta-band-final {
  color: #ffffff;
}

.dark-section p,
.dark-section li,
.quality-bg p,
.quality-bg li,
.videos-bg p,
.videos-bg li,
.bg-text-section p,
.bg-text-section li,
.cta-band-final p,
.trust-strip p {
  color: rgba(255, 255, 255, 0.92);
}

.hero .lead,
.hero__checklist li,
.hero__stat span,
.stats-band .stat-item span,
.videos-bg .section-head .desc,
.quality-bg .section-head .desc,
.articles-bg .section-head .desc,
.sidebar-cta p,
.cblock--dark p,
.cblock--dark li,
.cblock--teal p,
.cblock--teal li,
.cblock--cyan p,
.cblock--cyan li,
.cblock--slate p,
.cblock--slate li,
.footer-brand p,
.footer-bottom p,
.footer-col a {
  color: rgba(255, 255, 255, 0.94) !important;
}

.stats-band .stat-item strong {
  color: #7af3ca !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.stats-band .stat-item span,
.hero__stat span {
  font-weight: 700;
  line-height: 1.7;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
}

.lead,
.desc,
.muted-text {
  color: #5f6f6b;
}

.section-shell:not(.quality-bg):not(.videos-bg):not(.bg-text-section):not(.articles-bg) .section-head h2,
.section-shell:not(.quality-bg):not(.videos-bg):not(.bg-text-section):not(.articles-bg) .section-head h3,
.section-shell:not(.quality-bg):not(.videos-bg):not(.bg-text-section):not(.articles-bg) .section-head .desc,
.section-shell:not(.quality-bg):not(.videos-bg):not(.bg-text-section):not(.articles-bg) .section-head .eyebrow,
.about-layout .section-head h2,
.about-layout .section-head .desc,
.timeline + .section-head h2,
.timeline + .section-head .desc {
  color: #123f38 !important;
  text-shadow: none !important;
}

.timeline-card,
.team-card,
.service-overview-card,
.contact-panel,
.contact-channel,
.article-card,
.kpi-card,
.stat-item {
  color: #123f38 !important;
}

.timeline-card p,
.team-card p,
.service-overview-card p,
.contact-panel p,
.contact-channel p,
.article-card p,
.kpi-card span,
.stat-item span {
  color: #4a635e !important;
}

.articles-bg .article-card {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(15, 61, 53, 0.08) !important;
}

.articles-bg .article-card h3,
.articles-bg .article-card .eyebrow,
.articles-bg .article-card__link {
  color: #123f38 !important;
}

.articles-bg .article-card p {
  color: #4a635e !important;
}

.quality-bg .quality-item h4,
.quality-bg .quality-item p,
.quality-bg .quality-item li,
.stats-band .section-head h2,
.stats-band .section-head .desc,
.stats-band .section-head .eyebrow,
.bg-text-section .section-head h2,
.bg-text-section .section-head .desc,
.bg-text-section .section-head .eyebrow,
.videos-bg .section-head h2,
.videos-bg .section-head .desc,
.videos-bg .section-head .eyebrow {
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.26) !important;
}

.section-head .desc,
.lead,
.service-card p,
.service-overview-card p,
.article-card p,
.bento-card p,
.timeline-card p,
.material-card p,
.info-box p,
.info-box ul,
.info-box li,
.contact-copy p,
.contact-channel__label,
.cert-card p,
.faq-item details p,
.social-panel p,
.about-copy p,
.about-point p,
.cblock--white p,
.cblock--white li,
.cblock--warm p,
.cblock--warm li,
.step-item__content p,
.step-item__content ul,
.step-item__content li,
.trust-card__text,
.trust-card__loc {
  color: #36534d !important;
}

.hero__card-title,
.hero__card h3,
.hero__card .hero__card-title{
  color:#123f37 !important;
  text-shadow:none !important;
}

.hero__card p,
.hero__checklist li,
.hero__stat span,
.hero__card .hero__checklist li,
.hero__card .hero__stat span{
  color:#35524c !important;
  text-shadow:none !important;
}

.hero__card .badge{
  color:#0f4b40 !important;
  text-shadow:none !important;
}

.bg-text-section .bento-card,
.quality-grid .quality-item,
.quality-item{
  background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(248,252,250,.94)) !important;
}

.bg-text-section .bento-card h3,
.quality-item h4,
.quality-item h3{
  color:#123f37 !important;
  text-shadow:none !important;
}

.bg-text-section .bento-card p,
.quality-item p,
.quality-item li{
  color:#36534d !important;
  text-shadow:none !important;
}

.stats-band{
  position:relative;
  z-index:1;
}

.stats-band .stat-item,
.section-kpis .kpi-card{
  color:#ffffff !important;
}

.section-kpis .kpi-card strong{
  color:#11c5a0 !important;
}

.section-kpis .kpi-card span,
.stats-band .stat-item span{
  color:rgba(255,255,255,.96) !important;
  text-shadow:0 1px 8px rgba(0,0,0,.18) !important;
}

.service-card h3,
.service-overview-card h3,
.article-card h3,
.info-box h3,
.contact-copy h2,
.contact-form__title,
.cert-card h3,
.about-point h4,
.cblock--white h3,
.cblock--warm h3,
.sidebar-links h4,
.section-head h2 {
  color: #0f3d35 !important;
}

.page-hero .lead,
.hero .lead,
.videos-bg .desc,
.quality-bg .desc,
.bg-text-section .desc {
  color: rgba(255, 255, 255, 0.9) !important;
}

.services-grid,
.cards-grid,
.bento-grid,
.service-overview-grid,
.section-kpis,
.team-grid,
.articles-grid,
.projects-grid,
.trust-grid,
.quality-grid,
.process-grid,
.info-grid,
.cert-grid,
.materials-grid,
.contact-layout,
.about-layout,
.form-grid,
.footer-top {
  display: grid;
  gap: 22px;
}

.services-grid,
.cards-grid,
.bento-grid,
.service-overview-grid,
.articles-grid,
.projects-grid,
.trust-grid,
.quality-grid,
.process-grid,
.info-grid,
.cert-grid,
.materials-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.videos-grid,
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 20px !important;
}

.video-card--large {
  grid-column: auto !important;
}

.video-card,
.video-card video,
.video-card iframe {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.video-card {
  padding: 16px;
}

.video-card video {
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 18px;
}

.video-caption {
  padding-top: 12px;
}

.video-caption p,
.video-caption strong {
  display: block;
  line-height: 1.8;
}

.project-card img,
.article-card__img img,
.service-overview-card img,
.about-photos__main img,
.about-photos__sub img,
.gallery-masonry img,
.gitem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-masonry {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  columns: auto !important;
}

.service-detail__body > div[style*="grid-template-columns:1fr 1fr"],
.service-detail__body > div[style*="grid-template-columns:1fr 1fr;"],
.service-detail__body > div[style*="grid-template-columns:1fr 1fr;gap"],
.service-detail__body > div[style*="display:grid;grid-template-columns:1fr 1fr"],
.service-detail__body .materials-grid[style],
.projects-filter,
.announcement-bar .container {
  min-width: 0;
}

.service-detail__body > div[style*="grid-template-columns:1fr 1fr"],
.service-detail__body > div[style*="display:grid;grid-template-columns:1fr 1fr"] {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

.service-detail__body .materials-grid[style] {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}

.projects-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.projects-filter .filter-btn {
  white-space: normal;
}

.gallery-masonry .gitem {
  margin-bottom: 0 !important;
}

.article-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.article-sidebar {
  min-width: 0;
}

.compare-table,
.thickness-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  min-width: 760px;
}

.compare-table th,
.compare-table td,
.thickness-table th,
.thickness-table td {
  white-space: normal;
  line-height: 1.7;
  vertical-align: middle;
}

.table-scroll,
.comparison-table-wrap,
.responsive-table-wrap,
.cblock div[style*="overflow-x:auto"],
.service-detail div[style*="overflow-x:auto"],
.bg-text-section__content div[style*="overflow-x:auto"] {
  width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.table-scroll table,
.comparison-table-wrap table,
.responsive-table-wrap table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: auto;
}

.timeline {
  gap: 20px;
}

.timeline-card {
  background: #ffffff;
  color: #0f3d35;
  box-shadow: 0 10px 24px rgba(2, 29, 29, 0.08);
  padding: 22px;
}

.timeline-card span {
  opacity: 1;
  color: #0b7b66;
}

.wa-float {
  bottom: 18px !important;
  left: 18px !important;
}

main {
  padding-bottom: 0;
}

footer,
.site-footer,
.cta-band-final,
.cta-banner,
.contact-form,
.contact-panel {
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .article-layout,
  .contact-layout,
  .about-layout {
    grid-template-columns: 1fr;
  }

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

  .services-grid,
  .cards-grid,
  .bento-grid,
  .service-overview-grid,
  .articles-grid,
  .projects-grid,
  .trust-grid,
  .quality-grid,
  .process-grid,
  .info-grid,
  .cert-grid,
  .materials-grid,
  .section-kpis,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 767px) {
  .services-grid,
  .cards-grid,
  .bento-grid,
  .service-overview-grid,
  .articles-grid,
  .projects-grid,
  .trust-grid,
  .quality-grid,
  .process-grid,
  .info-grid,
  .cert-grid,
  .materials-grid,
  .section-kpis,
  .team-grid,
  .about-layout,
  .contact-layout,
  .form-grid,
  .footer-top {
    grid-template-columns: 1fr !important;
  }

  .videos-grid,
  .video-grid {
    grid-template-columns: 1fr !important;
  }

  .gallery-masonry {
    grid-template-columns: 1fr;
  }

  .service-detail__body > div[style*="grid-template-columns:1fr 1fr"],
  .service-detail__body > div[style*="display:grid;grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .service-detail__body .materials-grid[style] {
    grid-template-columns: 1fr !important;
  }

  .compare-table,
  .thickness-table {
    display: table !important;
    width: 100% !important;
    min-width: 760px !important;
    white-space: normal !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
  }

  .compare-table thead,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td,
  .thickness-table thead,
  .thickness-table tbody,
  .thickness-table tr,
  .thickness-table th,
  .thickness-table td {
    display: revert !important;
    width: auto !important;
  }

  .compare-table td,
  .compare-table th,
  .thickness-table td,
  .thickness-table th {
    padding: 11px 12px !important;
    text-align: right !important;
    white-space: normal !important;
    overflow-wrap: break-word;
  }

  .thickness-table td::before {
    content: none !important;
    display: none !important;
  }

  .timeline {
    padding-right: 0;
  }

  .timeline::before,
  .timeline-item::before {
    display: none;
  }

  .timeline-item {
    padding-right: 0 !important;
  }

  .timeline-card {
    padding: 18px;
  }

  .wa-float {
    width: 50px !important;
    height: 50px !important;
    bottom: 14px !important;
    left: 14px !important;
  }

  .contact-channels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  main,
  .site-footer {
    padding-bottom: 74px;
  }

  section[style*="position:sticky"] {
    top: calc(var(--header-height, 76px) + 8px) !important;
  }
}

@media (max-width: 480px) {
  .container,
  .container--narrow {
    width: min(100% - 24px, 1240px);
  }

  .service-card,
  .service-overview-card,
  .project-card,
  .article-card,
  .video-card,
  .bento-card,
  .trust-card,
  .timeline-card,
  .cblock,
  .material-card,
  .quality-item,
  .contact-form,
  .contact-panel,
  .team-card,
  .kpi-card,
  .stat-item {
    padding: 16px !important;
  }

  .hero__actions,
  .cta-banner__actions,
  .cta-band-final__inner,
  .hero__chips,
  .projects-filter {
    gap: 10px;
  }

  .announcement-bar .container {
    justify-content: center;
  }

  .announcement-bar__links {
    justify-content: center;
  }

  .video-card {
    padding: 12px;
  }

  .video-caption p,
  .article-card p,
  .service-card p,
  .timeline-card p,
  .cblock p,
  .cblock li {
    font-size: 0.92rem;
  }
}

/* Final contrast fixes for dark overlays and hero glass card */

.articles-bg .section-head h2,
.videos-bg .section-head h2,
.quality-bg .section-head h2,
.bg-text-section .section-head h2,
.bg-text-section h2,
.trust-bg .section-head h2,
.faq-bg .section-head h2,
.page-hero h1,
.page-hero.page-hero--dark h1,
.page-hero.page-hero--overlay h1 {
  color: #ffffff !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42) !important;
}

.articles-bg .section-head .desc,
.videos-bg .section-head .desc,
.quality-bg .section-head .desc,
.bg-text-section .section-head .desc,
.trust-bg .section-head .desc,
.faq-bg .section-head .desc,
.page-hero .lead,
.page-hero.page-hero--dark .lead,
.page-hero.page-hero--overlay .lead {
  color: rgba(255, 255, 255, 0.96) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32) !important;
}

.articles-bg .eyebrow,
.videos-bg .eyebrow,
.quality-bg .eyebrow,
.bg-text-section .eyebrow,
.process-bg .eyebrow,
.trust-bg .eyebrow,
.faq-bg .eyebrow,
.page-hero .eyebrow,
.page-hero.page-hero--dark .eyebrow,
.page-hero.page-hero--overlay .eyebrow {
  color: #7ef2d0 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.hero__card {
  background: linear-gradient(180deg, rgba(232, 243, 239, 0.9), rgba(213, 229, 223, 0.84)) !important;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.2) !important;
}

.hero__card .badge {
  color: #0f4f45 !important;
  background: rgba(223, 255, 245, 0.72) !important;
  border: 1px solid rgba(94, 234, 212, 0.48) !important;
  text-shadow: none !important;
}

.hero__card-title {
  color: #0f3d35 !important;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.26) !important;
}

.hero__checklist li,
.hero__checklist strong,
.hero__checklist span,
.hero__card p {
  color: #34524c !important;
  text-shadow: none !important;
}

.hero__stat span {
  color: #34524c !important;
  text-shadow: none !important;
}

.hero__stat strong {
  color: #10b981 !important;
  text-shadow: none !important;
}

.stats-band .section-head h2,
.stats-band .section-head .desc {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28) !important;
}

.stats-band .stat-item strong {
  color: #7af3ca !important;
}

.stats-band .stat-item span,
.stats-band .stat-item p,
.stats-band .stat-item small {
  color: rgba(255, 255, 255, 0.97) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.22) !important;
}

.video-caption strong,
.video-caption h3,
.article-card__body h3,
.service-card h3,
.service-overview-card h3,
.project-card h3 {
  color: #0f3d35 !important;
}

.video-caption p,
.article-card__body p,
.service-card p,
.service-overview-card p,
.project-card p {
  color: #36534d !important;
}

/* Final pass: light sections and cards must stay dark and readable */

.process-bg .section-head h2,
.process-bg .section-head .desc,
.process-bg .section-head .eyebrow,
.process-bg .section-head p,
.process-bg .section-head span,
.process-step h3,
.process-step p,
.process-step li,
.section-kpis .kpi-card,
.section-kpis .kpi-card h3,
.section-kpis .kpi-card p,
.section-kpis .kpi-card span,
.bg-text-section .bento-card h3,
.bg-text-section .bento-card p,
.bg-text-section .bento-card li {
  text-shadow: none !important;
}

.process-bg .section-head h2 {
  color: #0f3d35 !important;
}

.process-bg .section-head .desc,
.process-bg .section-head p {
  color: #4a635e !important;
}

.process-bg .section-head .eyebrow,
.process-bg .section-head span.eyebrow {
  color: #0fb58f !important;
}

.process-step,
.process-step h3,
.process-step p,
.process-step li {
  color: #123f37 !important;
}

.process-step p,
.process-step li {
  color: #4a635e !important;
}

.trust-bg .section-head h2,
.trust-bg .section-head h3,
.trust-bg .section-head .desc,
.trust-bg .section-head .eyebrow,
.trust-card,
.trust-card h3,
.trust-card p,
.trust-card li,
.trust-card__name,
.trust-card__loc,
.trust-card__text {
  text-shadow: none !important;
}

.trust-bg .section-head h2,
.trust-bg .section-head h3,
.trust-card__name,
.trust-card h3 {
  color: #123f37 !important;
}

.trust-bg .section-head .desc,
.trust-card p,
.trust-card li,
.trust-card__loc,
.trust-card__text {
  color: #4a635e !important;
}

.trust-bg .section-head .eyebrow {
  color: #0fb58f !important;
}

.trust-card {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,249,.95)) !important;
}

.trust-grid,
.testimonials-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  align-items: stretch !important;
}

.trust-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 280px !important;
  padding: 28px 26px !important;
  border: 1px solid rgba(15, 75, 66, 0.08) !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08) !important;
}

.trust-card__stars {
  color: #10b981 !important;
  font-size: 1rem !important;
  letter-spacing: .08em !important;
}

.trust-card__text,
.trust-card p {
  color: #264a44 !important;
  font-size: 1rem !important;
  line-height: 1.9 !important;
}

.trust-card__author,
.trust-card__name {
  color: #123f37 !important;
}

.trust-card__loc {
  color: #5c716d !important;
}

.trust-card__av {
  background: linear-gradient(135deg, #0f766e, #34d399) !important;
  color: #fff !important;
}

.testimonials-section .testimonials-viewport,
.testimonials-section .testimonials-track,
.testimonials-section .testimonials-controls,
.testimonials-section .testimonial-dots,
.testimonials-section .testimonial-btn {
  display: none !important;
}

.bg-text-section .bento-card,
.section-kpis .kpi-card,
.quality-item {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,249,.95)) !important;
}

.bg-text-section .bento-card h3,
.section-kpis .kpi-card h3,
.section-kpis .kpi-card strong,
.quality-item h3,
.quality-item h4 {
  color: #123f37 !important;
}

.bg-text-section .bento-card p,
.bg-text-section .bento-card li,
.section-kpis .kpi-card p,
.section-kpis .kpi-card span,
.quality-item p,
.quality-item li {
  color: #4a635e !important;
}

.section-kpis .kpi-card strong {
  color: #10b981 !important;
}

/* Projects gallery: replace uneven masonry with balanced grid */

.projects-section,
.portfolio-section {
  width: 100%;
  overflow: hidden;
  padding: 80px 0;
}

.projects-section .container,
.portfolio-section .container {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

.projects-grid.phase2-masonry,
.projects-grid,
.portfolio-grid,
.gallery-grid,
.gallery-masonry {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
  columns: unset !important;
  column-gap: 0 !important;
}

.projects-grid.phase2-masonry .project-card,
.projects-grid .project-card,
.portfolio-grid .project-card,
.gallery-grid .gallery-item,
.gallery-masonry .gitem {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  break-inside: auto !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,0.06) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.18) !important;
  aspect-ratio: auto !important;
}

.projects-grid.phase2-masonry .project-card img,
.projects-grid.phase2-masonry .project-card video,
.projects-grid .project-card img,
.projects-grid .project-card video,
.gallery-grid img,
.gallery-grid video,
.portfolio-grid img,
.portfolio-grid video,
.gallery-masonry .gitem img,
.gallery-masonry .gitem video {
  display: block !important;
  width: 100% !important;
  height: 260px !important;
  max-width: 100% !important;
  max-height: 320px !important;
  min-height: 260px !important;
  object-fit: cover !important;
  position: static !important;
  transform: none !important;
  border-radius: inherit !important;
}

.gallery-masonry .gitem::after {
  inset: auto 0 0 0 !important;
}

.projects-grid.phase2-masonry .project-card__overlay {
  opacity: 1 !important;
  background: linear-gradient(180deg, transparent 34%, rgba(4,47,46,.20) 58%, rgba(4,47,46,.92) 100%) !important;
}

.projects-grid.phase2-masonry + .bg-text-section .gallery-masonry,
.projects-grid.phase2-masonry + .bg-text-section .gallery-grid {
  margin-top: 0 !important;
}

@media (max-width: 767px) {
  .hero__card {
    background: linear-gradient(180deg, rgba(231, 241, 238, 0.94), rgba(210, 226, 220, 0.9)) !important;
  }

  .hero__card-title {
    font-size: clamp(1.8rem, 8vw, 2.45rem);
    line-height: 1.28;
  }

  .hero__checklist li,
  .stats-band .stat-item span {
    font-size: 0.98rem;
  }

  .announcement-bar .container {
    min-height: auto;
  }

  .projects-grid.phase2-masonry,
  .projects-grid,
  .portfolio-grid,
  .gallery-grid,
  .gallery-masonry {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .projects-grid.phase2-masonry .project-card img,
  .projects-grid.phase2-masonry .project-card video,
  .projects-grid .project-card img,
  .projects-grid .project-card video,
  .gallery-grid img,
  .gallery-grid video,
  .portfolio-grid img,
  .portfolio-grid video,
  .gallery-masonry .gitem img,
  .gallery-masonry .gitem video {
    height: 230px !important;
    min-height: 230px !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .projects-grid.phase2-masonry,
  .projects-grid,
  .portfolio-grid,
  .gallery-grid,
  .gallery-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }

  .projects-grid.phase2-masonry .project-card img,
  .projects-grid.phase2-masonry .project-card video,
  .projects-grid .project-card img,
  .projects-grid .project-card video,
  .gallery-grid img,
  .gallery-grid video,
  .portfolio-grid img,
  .portfolio-grid video,
  .gallery-masonry .gitem img,
  .gallery-masonry .gitem video {
    height: 220px !important;
    min-height: 220px !important;
  }
}

@media (min-width: 1025px) and (max-width: 1600px) {
  .projects-grid.phase2-masonry,
  .projects-grid,
  .portfolio-grid,
  .gallery-grid,
  .gallery-masonry {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Final header behavior: top bar only at page top, main header sticky on all devices */

.announcement-bar {
  position: relative !important;
  top: auto !important;
  z-index: 10 !important;
  will-change: transform, opacity, max-height !important;
  transition: transform .25s ease, opacity .25s ease, max-height .25s ease, padding .25s ease !important;
}

.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 99999 !important;
  background: rgba(248, 250, 252, 0.97) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.site-header .container,
.site-header .navbar {
  overflow: visible !important;
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  backdrop-filter: none !important;
}

body.scrolled .announcement-bar {
  opacity: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  transform: translateY(-100%) !important;
  pointer-events: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

body.scrolled .site-header {
  box-shadow: 0 8px 25px rgba(0,0,0,.12) !important;
}

/* Final projects grid: primary projects section only */

.projects-section .projects-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
  align-items: stretch !important;
}

@media (min-width: 901px) and (max-width: 1600px) {
  .projects-section .projects-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

.projects-section .project-card {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  min-height: 0 !important;
  max-width: 100% !important;
  background: rgba(255,255,255,.06) !important;
}

.projects-section .project-card img,
.projects-section .project-card video {
  width: 100% !important;
  height: 260px !important;
  max-height: 320px !important;
  object-fit: cover !important;
  display: block !important;
  position: static !important;
  transform: none !important;
}

@media (max-width: 900px) {
  .projects-section .projects-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 560px) {
  .projects-section .projects-grid {
    grid-template-columns: 1fr !important;
  }

  .projects-section .project-card img,
  .projects-section .project-card video {
    height: 230px !important;
  }
}

/* Urgent readability fix: "ما يجعلنا مختلفين" cards only */
.quality-bg .quality-item {
  background: #f8fffd !important;
}

.quality-bg .quality-item h3,
.quality-bg .quality-item h4 {
  color: #064e3b !important;
  text-shadow: none !important;
}

.quality-bg .quality-item p,
.quality-bg .quality-item li {
  color: #1f2937 !important;
  text-shadow: none !important;
}

/* Final mobile stacking fix: cards and videos must not collapse into narrow columns */
@media (max-width: 768px) {
  .projects-grid,
  .services-grid,
  .features-grid,
  .gallery-grid,
  .media-grid,
  .videos-grid,
  .video-grid,
  .cards-grid,
  .stats-grid,
  .testimonials-grid,
  .trust-grid,
  .articles-grid,
  .service-overview-grid,
  .quality-grid,
  .process-grid,
  .info-grid,
  .cert-grid,
  .materials-grid,
  .team-grid,
  .section-kpis {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .video-grid[style],
  .videos-grid[style],
  .projects-grid[style],
  .gallery-grid[style],
  .service-detail__body > div[style*="grid-template-columns"],
  .service-detail__body > div[style*="display:grid"],
  .service-detail__body .materials-grid[style] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .project-card,
  .service-card,
  .service-overview-card,
  .feature-card,
  .video-card,
  .gallery-item,
  .gitem,
  .media-card,
  .testimonial-card,
  .trust-card,
  .stat-card,
  .stat-item,
  .article-card,
  .quality-item,
  .team-card,
  .cert-card,
  .material-card,
  .card {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: auto !important;
    transform: none !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: block !important;
    inset: auto !important;
  }

  .project-card img,
  .project-card video,
  .service-card img,
  .service-card video,
  .service-overview-card img,
  .service-overview-card video,
  .feature-card img,
  .feature-card video,
  .video-card img,
  .video-card video,
  .gallery-item img,
  .gallery-item video,
  .gitem img,
  .gitem video,
  .media-card img,
  .media-card video,
  .article-card__img img,
  .cert-card__img img,
  .about-photos__main img,
  .about-photos__sub img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    object-fit: cover !important;
    position: static !important;
    transform: none !important;
    display: block !important;
  }

  .video-card video,
  .project-card video,
  .gallery-item video,
  .gitem video,
  .media-card video {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    border-radius: 18px !important;
  }

  .video-card,
  .video-card--large {
    grid-column: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .video-caption,
  .article-card__body,
  .service-overview-card__body,
  .cert-card__body,
  .project-card__overlay,
  .trust-card__author {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .video-caption p,
  .video-caption strong,
  .article-card p,
  .service-card p,
  .service-overview-card p,
  .trust-card__text,
  .quality-item p,
  .team-card p,
  .cert-card p,
  .material-card p {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .projects-section .project-card img,
  .projects-section .project-card video {
    height: 230px !important;
    max-height: none !important;
  }

  section,
  .section,
  .container,
  .section-shell,
  .page-hero,
  main {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
}

@media (min-width: 480px) and (max-width: 768px) {
  .videos-grid.two-up-mobile,
  .video-grid.two-up-mobile,
  .cards-grid.two-up-mobile,
  .services-grid.two-up-mobile,
  .projects-grid.two-up-mobile {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Final hard stop for mobile stacking issues */
@media (max-width: 768px) {
  .projects-grid,
  .services-grid,
  .features-grid,
  .gallery-grid,
  .gallery-masonry,
  .media-grid,
  .videos-grid,
  .video-grid,
  .cards-grid,
  .stats-grid,
  .testimonials-grid,
  .trust-grid,
  .articles-grid,
  .service-overview-grid,
  .quality-grid,
  .process-grid,
  .info-grid,
  .cert-grid,
  .materials-grid,
  .team-grid,
  .section-kpis {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .video-grid[style],
  .videos-grid[style],
  .trust-grid[style],
  .articles-grid[style],
  .gallery-grid[style],
  .gallery-masonry[style],
  .service-detail__body > div[style*="display:grid"],
  .service-detail__body > div[style*="grid-template-columns"],
  .service-detail__body .materials-grid[style] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .project-card,
  .service-card,
  .service-overview-card,
  .feature-card,
  .video-card,
  .gallery-item,
  .gitem,
  .media-card,
  .testimonial-card,
  .trust-card,
  .stat-card,
  .stat-item,
  .article-card,
  .quality-item,
  .process-step,
  .team-card,
  .cert-card,
  .material-card,
  .card {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: auto !important;
    transform: none !important;
    margin: 0 !important;
    inset: auto !important;
    overflow: hidden !important;
    display: block !important;
  }

  .project-card img,
  .project-card video,
  .service-card img,
  .service-card video,
  .service-overview-card img,
  .service-overview-card video,
  .feature-card img,
  .feature-card video,
  .video-card img,
  .video-card video,
  .gallery-item img,
  .gallery-item video,
  .gitem img,
  .gitem video,
  .media-card img,
  .media-card video,
  .article-card__img img,
  .cert-card__img img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    object-fit: cover !important;
    position: static !important;
    transform: none !important;
    display: block !important;
  }

  .video-card video,
  .project-card video,
  .gallery-item video,
  .gitem video,
  .media-card video {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    border-radius: 18px !important;
  }

  .video-card--large,
  .project-card,
  .trust-card,
  .article-card,
  .service-card,
  .service-overview-card,
  .material-card,
  .quality-item,
  .process-step {
    grid-column: auto !important;
  }

  section,
  .section,
  .container,
  .section-shell,
  main {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
}

/* Final sticky header patch: black bar at top only, white header sticky everywhere */
.announcement-bar {
  position: relative !important;
  top: auto !important;
  z-index: 20 !important;
  display: block !important;
  max-height: 120px !important;
  overflow: hidden !important;
  transform: none !important;
  transition: opacity .25s ease, transform .25s ease, max-height .25s ease, padding .25s ease, margin .25s ease !important;
}

.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 99999 !important;
  width: 100% !important;
  background: rgba(248, 250, 252, .97) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.08) !important;
}

.site-header .container,
.site-header .navbar {
  overflow: visible !important;
  transform: none !important;
  filter: none !important;
  perspective: none !important;
}

body.scrolled .announcement-bar {
  opacity: 0 !important;
  transform: translateY(-100%) !important;
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  pointer-events: none !important;
}

body.scrolled .site-header {
  box-shadow: 0 8px 25px rgba(0,0,0,.12) !important;
}
