/*
 * Aljawad Cleaning — architectural visual system 2026
 * Deep navy, glass blue, warm brass. Shared by all public pages.
 */

:root {
  --primary: #0b3557;
  --primary-light: #155f8d;
  --primary-dark: #061a2b;
  --secondary: #0b9aa7;
  --secondary-light: #38bbc3;
  --secondary-dark: #087782;
  --accent: #e6b858;
  --accent-light: #f2cf82;
  --accent-dark: #bd8b2e;
  --white: #ffffff;
  --gray-50: #f6f9fb;
  --gray-100: #edf3f6;
  --gray-200: #dce6eb;
  --gray-300: #c3d1d9;
  --gray-400: #8fa3af;
  --gray-500: #647985;
  --gray-600: #4d626e;
  --gray-700: #354b57;
  --gray-800: #1e3441;
  --gray-900: #0b1f2c;
  --surface: #ffffff;
  --surface-muted: #f3f7f9;
  --surface-dark: #071d2d;
  --line: rgba(10, 52, 82, .12);
  --shadow-sm: 0 2px 8px rgba(4, 27, 43, .06);
  --shadow-md: 0 12px 32px rgba(4, 27, 43, .09);
  --shadow-lg: 0 24px 60px rgba(4, 27, 43, .14);
  --shadow-card: 0 8px 28px rgba(4, 27, 43, .07);
  --shadow-card-hover: 0 20px 44px rgba(4, 27, 43, .13);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --header-height: 84px;
  --top-bar-height: 40px;
  --container-max: 1240px;
}

html {
  color-scheme: light;
  scroll-padding-top: calc(var(--header-height) + var(--top-bar-height) + 20px);
}

body.site-body {
  background:
    radial-gradient(circle at 8% 14%, rgba(11, 154, 167, .05), transparent 28rem),
    var(--white);
  color: var(--gray-800);
  font-weight: 400;
  letter-spacing: -.01em;
}

.skip-link {
  position: fixed;
  top: 8px;
  right: 12px;
  z-index: 9999;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

.content-anchor {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

::selection {
  background: rgba(11, 154, 167, .22);
  color: var(--primary-dark);
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid rgba(11, 154, 167, .4);
  outline-offset: 3px;
}

.container { max-width: var(--container-max); }

section { position: relative; }

.section-title {
  max-width: 760px;
  margin-inline: auto;
}

.section-title h2 {
  color: var(--primary-dark) !important;
  font-weight: 900;
  letter-spacing: -.035em;
}

.section-title h2::after {
  width: 42px;
  height: 3px;
  bottom: -12px;
  background: var(--accent);
}

.section-title p {
  color: var(--gray-600) !important;
  line-height: 1.9;
}

/* ===== TOP BAR ===== */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 1001;
  height: var(--top-bar-height);
  background: linear-gradient(90deg, var(--primary-dark) 0%, #0a2d46 50%, var(--primary) 100%);
  color: rgba(255,255,255,.9);
  font-size: .8rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.75);
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-light);
  font-weight: 800;
}

.top-bar-badge .fa-star { color: #fbbf24; }

.top-bar-sep {
  opacity: .25;
}

.top-bar-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.top-bar-text .fa-clock { color: var(--secondary-light); }

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background .2s ease, color .2s ease;
}

.top-bar-link:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.top-bar-link .fa-phone-alt { color: var(--secondary-light); }

.top-bar-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #087e64;
  color: #fff;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 800;
  transition: background .2s ease, transform .2s ease;
}

.top-bar-wa:hover {
  background: #065c49;
  transform: translateY(-1px);
}

.top-bar-wa .fa-whatsapp { font-size: 1rem; }

@media (max-width: 640px) {
  .top-bar-right { display: none; }
  .top-bar-inner { justify-content: center; }
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: var(--top-bar-height);
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, .92) !important;
  border-bottom: 1px solid rgba(7, 40, 63, .08) !important;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: height .3s ease, box-shadow .3s ease;
}

.header.scrolled {
  height: 70px;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: 0 8px 30px rgba(5, 31, 48, .10) !important;
}

.logo { gap: 11px; }

.logo-image {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 7px 20px rgba(7, 38, 59, .18);
}

.logo-copy {
  display: grid;
  gap: 1px;
  line-height: 1.2;
}

.logo-copy strong {
  max-width: 220px;
  overflow: hidden;
  color: var(--primary-dark);
  font-size: .98rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo-copy small {
  color: var(--secondary-dark);
  font-size: .69rem;
  font-weight: 700;
}

.nav-links { gap: clamp(12px, 1.4vw, 22px); }

.nav-links a {
  color: var(--gray-700);
  font-size: .88rem;
  font-weight: 700;
  padding: 10px 0;
}

.nav-links a::after {
  right: 50%;
  bottom: 3px;
  height: 3px;
  border-radius: 8px;
  background: var(--accent);
  transform: translateX(50%);
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary); }

.header-phone {
  color: var(--primary-dark);
  font-size: .84rem;
}

.header-phone i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-muted);
  color: var(--secondary-dark);
}

.header-booking { min-height: 44px; }

.menu-toggle {
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-muted);
}

.menu-toggle span { background: var(--primary-dark); }

/* Buttons */
.btn {
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 13px;
  font-weight: 800;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 13px 30px rgba(11, 53, 87, .22);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: var(--primary-dark);
  box-shadow: 0 10px 24px rgba(190, 139, 46, .2);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #f8da95, var(--accent));
  color: var(--primary-dark);
  box-shadow: 0 15px 34px rgba(190, 139, 46, .26);
}

.btn-whatsapp {
  background: #087e64;
  box-shadow: 0 10px 24px rgba(8, 126, 100, .18);
}

.btn-whatsapp:hover { background: #076b56; }

.btn-outline {
  border-color: rgba(11, 53, 87, .22);
  background: rgba(255, 255, 255, .7);
  color: var(--primary);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary);
}

/* ===== ANIMATIONS ===== */
@keyframes hero-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 184, 88, .45); }
  50% { box-shadow: 0 0 0 14px rgba(230, 184, 88, 0); }
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes hero-fadein {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Homepage hero ===== */
.hero-modern {
  min-height: auto !important;
  height: auto !important;
  margin-top: 0 !important;
  padding: calc(var(--header-height) + var(--top-bar-height) + 44px) 0 80px !important;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(11, 154, 167, .22), transparent 40%),
    radial-gradient(ellipse at 90% 85%, rgba(230, 184, 88, .18), transparent 35%),
    radial-gradient(ellipse at 60% 0%,  rgba(255,255,255,.03), transparent 30%),
    linear-gradient(145deg, #040e18 0%, #071d2d 40%, #0a2d46 70%, #0d3a5c 100%) !important;
  contain: none;
  isolation: isolate;
  overflow: hidden;
}

.hero-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .07;
  background-image:
    linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 30%, transparent 70%);
  mask-image: radial-gradient(ellipse at 30% 50%, #000 30%, transparent 70%);
}

/* Animated orb decorations */
.hero-modern::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11,154,167,.12), transparent 65%);
  z-index: 0;
  pointer-events: none;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, .72fr);
  gap: clamp(44px, 7vw, 94px);
  align-items: center;
}

/* Override for new overlay style hero */
.hero-overlay-style {
  background-size: cover !important;
  background-position: center 20% !important;
  background-attachment: scroll !important;
}

.hero-overlay-style .hero-overlay-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, rgba(6, 25, 39, 0.9) 0%, rgba(10, 45, 70, 0.75) 50%, rgba(11, 60, 89, 0.6) 100%);
}

.hero-overlay-style .hero-shell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 550px;
}

.hero-overlay-style .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 860px;
}

.hero-shell { position: relative; z-index: 1; }

.hero-modern .hero-content {
  max-width: 720px;
  min-height: 0;
  padding: 0;
  animation: hero-fadein .7s ease both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 6px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 100px;
  color: var(--accent-light);
  font-size: .85rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.hero-eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: hero-pulse 2.5s infinite;
}

.hero-modern .hero-content h1 {
  max-width: 760px;
  margin-bottom: 24px;
  color: #fff;
  font-size: clamp(2.5rem, 4.8vw, 4.7rem) !important;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.055em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0,0,0,.3);
}

.hero-modern .hero-content p {
  max-width: 640px;
  margin-bottom: 32px;
  color: rgba(220, 238, 245, .80);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 2;
}

.hero-modern .hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* Pulse effect on primary CTA */
.hero-modern .hero-buttons .btn-accent {
  animation: hero-pulse 2.5s 1s infinite;
  box-shadow: 0 10px 30px rgba(230, 184, 88, .28);
}

.hero-assurances {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  margin-top: 28px;
  color: rgba(239, 248, 250, .72);
  font-size: .82rem;
  font-weight: 700;
}

.hero-assurances span { display: inline-flex; align-items: center; gap: 7px; }
.hero-assurances i { color: var(--accent); }

.hero-visual {
  position: relative;
  min-height: 540px;
}

.hero-image-frame {
  position: absolute;
  inset: 0 30px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 180px 28px 28px 28px;
  background: #0d3550;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}

.hero-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(4, 23, 36, .52));
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  filter: saturate(.88) contrast(1.04);
}

.hero-floating-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 196px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  color: var(--primary-dark);
  box-shadow: 0 20px 50px rgba(3, 24, 39, .22), 0 2px 8px rgba(0,0,0,.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-card-service {
  top: 12%;
  right: 0;
  animation: hero-float 5s ease-in-out infinite;
}

.hero-card-location {
  bottom: 8%;
  left: -16px;
  animation: hero-float 5s ease-in-out 2s infinite;
}

.hero-floating-card i {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--accent);
  font-size: 1.1rem;
}

.hero-floating-card span {
  display: grid;
  color: var(--primary-dark);
  font-size: .9rem;
  font-weight: 900;
  line-height: 1.4;
}

.hero-floating-card small {
  color: var(--gray-500);
  font-size: .66rem;
  font-weight: 700;
}

/* Intro and trust */
.intro-section {
  padding: 54px 0 24px !important;
  background: #fff !important;
}

.intro-panel {
  position: relative;
  padding: 28px 32px 28px 34px;
  border: 1px solid var(--line);
  border-right: 4px solid var(--secondary);
  border-radius: 18px;
  background: linear-gradient(110deg, rgba(238,247,249,.9), #fff 65%);
  box-shadow: var(--shadow-sm);
  line-height: 1.95;
}

.intro-panel h2 {
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 900;
}

.intro-panel p { margin-bottom: 8px; }
.intro-panel a { color: var(--secondary-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.trust-bar {
  padding: 24px 0 !important;
  border: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.trust-items {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px !important;
}

.trust-item {
  min-height: 86px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface-muted);
}

.trust-item > i {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  background: #fff;
  color: var(--secondary-dark) !important;
  font-size: 1.25rem !important;
  box-shadow: var(--shadow-sm);
}

.trust-item:first-child > i { color: #c88c1e !important; }
.trust-number { color: var(--primary-dark) !important; font-size: 1.55rem; }
.trust-label { color: var(--gray-600) !important; }

/* Shared content cards */
.services-section,
.projects-section,
.reviews-section { background: #fff !important; }

.why-us,
.articles-section,
.coverage-section,
.popular-services-section { background: var(--surface-muted) !important; }

.services-grid { gap: 20px; }

.service-card,
.project-card,
.project-card-scroll,
.review-card,
.blog-card,
.offer-card,
.contact-card,
.value-card,
.work-card,
.faq-card,
.stat-card,
.before-after-card {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  background: #fff !important;
  box-shadow: var(--shadow-card) !important;
}

.service-card {
  padding: 22px !important;
  text-align: right;
}

.service-card::before {
  right: 22px;
  left: auto;
  width: 42px;
  height: 3px;
  background: var(--accent);
  transform: none;
}

.service-card > div:first-child {
  width: 100% !important;
  height: 176px !important;
  margin: 0 0 20px !important;
  border: 0 !important;
  border-radius: 15px !important;
  box-shadow: none !important;
}

.service-card > div:first-child img { transition: transform .5s ease; }
.service-card:hover > div:first-child img { transform: scale(1.045); }

.service-card:hover,
.project-card:hover,
.project-card-scroll:hover,
.review-card:hover,
.blog-card:hover,
.contact-card:hover,
.value-card:hover,
.work-card:hover {
  border-color: rgba(11,154,167,.34) !important;
  box-shadow: var(--shadow-card-hover) !important;
  transform: translateY(-5px);
}

.service-card h3,
.project-card h3,
.blog-card h3 { color: var(--primary-dark); font-weight: 900; }

.service-link {
  opacity: 1;
  transform: none;
  color: var(--secondary-dark);
}

.why-grid { max-width: 1040px; gap: 18px; }

.why-item {
  align-items: center;
  border: 1px solid var(--line) !important;
  border-radius: 19px !important;
  box-shadow: var(--shadow-sm);
}

.why-icon,
.value-icon,
.contact-card-icon,
.question-icon {
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--primary), var(--secondary-dark)) !important;
  color: #fff !important;
}

.projects-scroll-container { scrollbar-color: var(--gray-300) transparent; }

.project-card-scroll { width: 356px; }
.project-image-fixed { height: 238px; }
.before-after-badge { background: var(--accent) !important; color: var(--primary-dark) !important; }
.project-overlay-scroll { background: rgba(6, 26, 43, .72) !important; }
.project-overlay-scroll a { background: var(--accent) !important; color: var(--primary-dark) !important; }

.review-avatar { background: linear-gradient(135deg, var(--primary), var(--secondary-dark)); }
.review-project { background: rgba(11,154,167,.08); color: var(--secondary-dark); }

/* Homepage utility sections */
.popular-services-section,
.articles-section,
.coverage-section,
.faq-section-home { padding: 72px 0 !important; }

.popular-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.popular-service-card,
.article-card {
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.popular-service-card:hover,
.article-card:hover {
  border-color: rgba(11,154,167,.34);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-5px);
}

.popular-service-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 15px;
  background: rgba(11,154,167,.1);
  color: var(--secondary-dark);
  font-size: 1.35rem;
}

.popular-service-card h3 { margin-bottom: 7px; color: var(--primary-dark); font-size: 1.08rem; }
.popular-service-card p { min-height: 52px; color: var(--gray-600); font-size: .88rem; }
.popular-service-link { color: var(--secondary-dark); font-size: .86rem; font-weight: 800; }

.faq-section-home { background: #fff !important; }

.faq-home-grid { gap: 14px; }

.faq-home-item {
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: var(--shadow-sm);
}

.faq-home-item summary {
  min-height: 74px;
  padding: 16px 18px;
  color: var(--primary-dark) !important;
  font-size: .96rem !important;
}

.faq-home-item summary::after {
  content: '+';
  margin-right: auto;
  color: var(--secondary-dark);
  font-size: 1.45rem;
  font-weight: 500;
}

.faq-home-item[open] summary::after { content: '−'; }

.faq-home-icon {
  display: inline-grid !important;
  width: 36px !important;
  height: 36px !important;
  place-items: center;
  border-radius: 11px !important;
  background: rgba(11,154,167,.1) !important;
  color: var(--secondary-dark) !important;
}

.faq-home-answer {
  margin: 0 18px 18px !important;
  padding: 16px 0 0 !important;
  border-top: 1px solid var(--line) !important;
  color: var(--gray-600) !important;
  font-size: .92rem !important;
  line-height: 1.9 !important;
}

.internal-links-section {
  padding: 24px !important;
  border: 1px solid var(--line);
  border-radius: 20px !important;
  background: rgba(255,255,255,.72) !important;
  box-shadow: var(--shadow-sm);
}

.internal-links-section h3 { margin-bottom: 16px; color: var(--primary-dark); font-size: 1.05rem; }

.internal-link {
  padding: 8px 14px !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--primary) !important;
  font-size: .82rem !important;
}

.internal-link:hover {
  border-color: var(--secondary) !important;
  background: rgba(11,154,167,.08) !important;
  color: var(--secondary-dark) !important;
}

.article-card { padding: 0; }
.article-card img { width: 100%; height: 210px; object-fit: cover; }
.article-card-content { padding: 22px; }
.article-card-content a { color: var(--secondary-dark) !important; font-weight: 800; }

/* Inner page heroes */
.page-hero {
  min-height: 310px;
  margin-top: 0 !important;
  padding: calc(var(--header-height) + 70px) 0 70px !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(11,154,167,.25), transparent 20rem),
    linear-gradient(135deg, var(--primary-dark), #0b3c59) !important;
  color: #fff;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .1;
  background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff !important; font-weight: 900; letter-spacing: -.04em; }
.page-hero p { color: rgba(244,250,251,.78) !important; }

/* Forms, tables and filters */
.form-control,
input:not([type='checkbox']):not([type='radio']),
textarea,
select {
  min-height: 50px;
  border: 1px solid var(--gray-200) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--gray-900);
}

textarea { min-height: 130px; }

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

.filter-btn {
  border: 1px solid var(--line) !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: var(--gray-700) !important;
}

.filter-btn.active,
.filter-btn:hover { background: var(--primary) !important; color: #fff !important; }

/* Page-specific surfaces */
.about-mission,
.service-highlight,
.contact-banner,
.cta-offer,
.faq-hero,
.author-box {
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 10% 20%, rgba(11,154,167,.24), transparent 18rem),
    linear-gradient(135deg, var(--primary-dark), #0b3c59) !important;
  box-shadow: var(--shadow-md);
}

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

.rating-summary,
.form-container,
.info-card,
.work-hours-card,
.services-intro,
.offers-header,
.projects-showcase,
.comparison-table {
  border: 1px solid var(--line) !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: var(--shadow-card) !important;
}

.stats-row,
.stats-container,
.about-stats { gap: 16px !important; }

.stat-number,
.rating-number { color: var(--primary-dark) !important; }

.rating-stars-big,
.review-stars,
.offer-price,
.price-badge { color: #c78b1f !important; }

.category-btn {
  border: 1px solid var(--line) !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: var(--gray-700) !important;
}

.category-btn.active,
.category-btn:hover {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  color: #fff !important;
}

.btn-submit,
.btn-offer,
.btn-call {
  min-height: 48px;
  border-radius: 13px !important;
  font-weight: 800 !important;
}

.btn-submit,
.btn-offer { background: var(--primary) !important; color: #fff !important; }
.btn-call { background: var(--secondary-dark) !important; color: #fff !important; }

.offer-badge,
.stats-badge {
  border-radius: 9px !important;
  background: var(--accent) !important;
  color: var(--primary-dark) !important;
}

.price-table,
.comparison-table { overflow: hidden; }

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

.faq-section,
.faq-section-about,
.faq-section-blog,
.faq-section-contact,
.faq-section-offers {
  border-radius: 24px !important;
  background: var(--surface-muted) !important;
}

.faq-section :where(summary,.faq-question),
.faq-section-about summary,
.faq-section-blog summary,
.faq-section-contact summary,
.faq-section-offers summary { color: var(--primary-dark) !important; }

.faq-section details,
.faq-section-about details,
.faq-section-blog details,
.faq-section-contact details,
.faq-section-offers details {
  border: 1px solid var(--line) !important;
  border-radius: 15px !important;
  background: #fff !important;
}

.review-reply {
  border-right-color: var(--secondary) !important;
  background: rgba(11,154,167,.07) !important;
}

.pagination a,
.pagination span {
  border-color: var(--line) !important;
  border-radius: 10px !important;
}

.pagination .active,
.pagination a:hover { background: var(--primary) !important; color: #fff !important; }

/* Harmonize legacy inline color declarations without altering content. */
.site-body [style*="color:#0D3B66"],
.site-body [style*="color: #0D3B66"] { color: var(--primary) !important; }

.site-body [style*="color:#FF6F3C"],
.site-body [style*="color: #FF6F3C"] { color: var(--secondary-dark) !important; }

.site-body [style*="background:#0D3B66"],
.site-body [style*="background: #0D3B66"] { background: var(--primary) !important; }

.site-body [style*="background:#FF6F3C"],
.site-body [style*="background: #FF6F3C"] { background: var(--secondary-dark) !important; }

.site-body [style*="border:1px solid #0D3B66"],
.site-body [style*="border: 1px solid #0D3B66"] { border-color: var(--primary) !important; }

/* Map and footer */
.map-wrapper,
.map-container {
  overflow: hidden;
  border-radius: 22px !important;
  box-shadow: var(--shadow-md);
}



.footer-social a {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
  background: rgba(255,255,255,.06);
}

.footer-social a:hover { background: var(--accent); color: var(--primary-dark); }

.cta-banner {
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 50%, rgba(11,154,167,.26), transparent 24rem),
    linear-gradient(135deg, var(--primary-dark), #0b3c59) !important;
}

.cta-banner h2 { font-weight: 900; }
.cta-banner p { color: rgba(242,248,250,.78); }
.cta-banner .btn:not(.btn-whatsapp) { background: var(--accent); color: var(--primary-dark); }

/* Floating actions: quiet, useful, non-distracting */
.call-float,
.whatsapp-float,
.back-to-top,
.floating-back-btn {
  border: 1px solid rgba(255,255,255,.34) !important;
  box-shadow: 0 12px 32px rgba(4,27,43,.2) !important;
  animation: none !important;
}

.call-float {
  width: 56px !important;
  height: 56px !important;
  background: var(--primary) !important;
  font-size: 1.35rem !important;
}

.whatsapp-float { width: 56px !important; height: 56px !important; font-size: 1.4rem !important; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1180px) {
  .header-phone { display: none; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: .82rem; }
  .popular-services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  :root { --header-height: 74px; }

  .header-booking { display: none; }
  .menu-toggle { display: flex; }

  .nav-links {
    top: 0 !important;
    right: auto !important;
    left: 0;
    width: min(86vw, 360px) !important;
    height: 100dvh !important;
    padding: 90px 24px 28px !important;
    gap: 5px !important;
    border-right: 1px solid var(--line);
    background: rgba(255,255,255,.98) !important;
    box-shadow: 18px 0 55px rgba(4,27,43,.18);
    transform: translateX(-105%) !important;
  }

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

  .nav-links a {
    width: 100%;
    padding: 13px 14px;
    border-radius: 11px;
    font-size: .95rem;
  }

  .nav-links a.active { background: var(--surface-muted); }
  .nav-links a::after { display: none; }

  .hero-shell { grid-template-columns: 1fr; gap: 42px; }
  .hero-modern { padding-bottom: 62px !important; }
  .hero-modern .hero-content { max-width: 780px; }
  .hero-visual { min-height: 460px; max-width: 620px; width: 100%; margin-inline: auto; }
  .hero-image-frame { inset: 0 24px; border-radius: 140px 26px 26px 26px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  :root { --container-padding: 1rem; }

  section { padding: 56px 0; }
  .logo-copy strong { max-width: 190px; font-size: .9rem; }
  .logo-copy small { font-size: .64rem; }
  .logo-image { width: 44px; height: 44px; border-radius: 13px; }

  .hero-modern { padding: calc(var(--header-height) + 38px) 0 48px !important; }
  .hero-modern .hero-content h1 { font-size: clamp(2.15rem, 11vw, 3.15rem) !important; }
  .hero-modern .hero-content p { font-size: 1rem; }
  .hero-modern .hero-buttons { display: grid; grid-template-columns: 1fr; }
  .hero-modern .hero-buttons .btn { width: 100%; }
  .hero-assurances { display: grid; gap: 10px; }
  .hero-visual { min-height: 390px; }
  .hero-image-frame { inset: 0 12px; border-radius: 105px 22px 22px 22px; }
  .hero-floating-card { min-width: 165px; padding: 10px 12px; }
  .hero-floating-card i { width: 36px; height: 36px; flex-basis: 36px; }
  .hero-card-service { right: 0; top: 9%; }
  .hero-card-location { left: 0; bottom: 7%; }

  .intro-section { padding-top: 32px !important; }
  .intro-panel { padding: 23px 20px; }

  .trust-items { grid-template-columns: 1fr !important; }
  .trust-item { min-height: 76px; }

  .services-grid,
  .popular-services-grid,
  .why-grid { grid-template-columns: 1fr; }

  .service-card > div:first-child { height: 205px !important; }
  .project-card-scroll { width: min(82vw, 330px); }
  .review-card { min-width: min(86vw, 340px); }

  .page-hero {
    min-height: 260px;
    padding: calc(var(--header-height) + 54px) 0 54px !important;
  }

  .internal-links-section { padding: 20px 16px !important; }

  .call-float,
  .whatsapp-float { width: 50px !important; height: 50px !important; left: 12px !important; }
}

@media (max-width: 430px) {
  .logo-copy strong { max-width: 154px; }
  .hero-visual { min-height: 340px; }
  .hero-floating-card { min-width: 148px; }
  .hero-floating-card span { font-size: .8rem; }
}

/* ===== TOP BAR OVERRIDE (must be last to win) ===== */
/* Ensures top bar is always above header regardless of ux-2026 z-index */
.top-bar {
  position: sticky !important;
  top: 0 !important;
  z-index: 1100 !important;
}

.header {
  position: sticky !important;
  top: var(--top-bar-height) !important;
  z-index: 1050 !important;
}

/* Correct hero-modern padding to include top bar height */
body.site-body .hero.hero-modern {
  padding-top: calc(var(--header-height) + var(--top-bar-height) + 34px) !important;
}

@media (max-width: 700px) {
  .hero-modern {
    padding-top: calc(var(--header-height) + var(--top-bar-height) + 28px) !important;
  }
  /* Hide top bar text on very small screens but keep links */
  .top-bar-sep { display: none; }
}

/* ===== DESKTOP: header-cta show above 992px ===== */
@media (min-width: 993px) {
  .header-cta {
    display: flex !important;
    align-items: center;
    gap: 12px;
  }
}
