/*
Theme Name: Clean Step Services
Theme URI: https://cleanstepsa.com
Author: Clean Step Design
Description: Custom WordPress theme for Clean Step residential and commercial cleaning services in Madinah.
Version: 1.0.0
Text Domain: cleanstep
Domain Path: /languages
*/

:root {
  --color-primary: #00628a;
  --color-primary-container: #007dad;
  --color-secondary: #00696e;
  --color-secondary-fixed: #78f5fd;
  --color-brand-gold: #D4A843;
  --color-brand-navy: #1B3A5C;
  --color-background: #f6fafe;
  --color-surface: #f6fafe;
  --color-surface-container: #ebeef3;
  --color-surface-container-low: #f0f4f8;
  --color-surface-container-high: #e5e8ed;
  --color-surface-container-lowest: #ffffff;
  --color-on-surface: #181c1f;
  --color-on-surface-variant: #3f484f;
  --color-outline-variant: #bec8d0;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Tajawal', sans-serif;
  background-color: var(--color-background);
  color: var(--color-on-surface);
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  display: none;
}

* {
  box-sizing: border-box;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
}

@keyframes subtleZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}

@keyframes fade-in-up {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Elementor page design system */
.cs-page {
  --cs-blue: #1a8fc4;
  --cs-blue-deep: #00628a;
  --cs-teal: #0eadb5;
  --cs-navy: #163a55;
  --cs-muted: #557084;
  --cs-gold: #d4a843;
  --cs-mist: #f3f9fc;
  --cs-line: #dbeaf1;
  direction: rtl;
  color: var(--cs-navy);
  font-family: 'Tajawal', sans-serif;
  text-align: right;
  background: #fff;
}

.cs-page *, .cs-page *::before, .cs-page *::after { box-sizing: border-box; }
.cs-page a { color: inherit; text-decoration: none; }
.cs-page-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.cs-page-section { padding: 88px 0; }
.cs-page-soft { background: linear-gradient(180deg, #f7fbfd, #edf7fa); }
.cs-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; background: #e9f7fa; color: var(--cs-blue-deep); font-size: 14px; font-weight: 800; }
.cs-page-title { margin: 18px 0 16px; color: var(--cs-navy); font-size: clamp(38px, 5vw, 64px); font-weight: 900; line-height: 1.16; letter-spacing: -1px; }
.cs-page-title span { color: var(--cs-blue); }
.cs-page-lead { max-width: 690px; margin: 0; color: var(--cs-muted); font-size: 18px; line-height: 1.9; }
.cs-section-head { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.cs-section-head h2 { margin: 14px 0 9px; color: var(--cs-navy); font-size: clamp(30px, 3.5vw, 43px); line-height: 1.3; font-weight: 900; }
.cs-section-head p { margin: 0; color: var(--cs-muted); font-size: 17px; line-height: 1.8; }
.cs-page-hero { position: relative; display: flex; min-height: 470px; align-items: center; overflow: hidden; border-radius: 0 0 56px 56px; background: linear-gradient(135deg, #f4fafc 35%, #e4f5f9); }
.cs-page-hero::before { position: absolute; width: 440px; height: 440px; top: -150px; left: -80px; border: 1px solid rgba(14, 173, 181, .2); border-radius: 50%; content: ''; }
.cs-page-hero::after { position: absolute; width: 360px; height: 360px; right: -160px; bottom: -190px; border-radius: 50%; background: rgba(26, 143, 196, .1); content: ''; }
.cs-page-hero .cs-page-shell { position: relative; z-index: 1; padding-block: 80px; }
.cs-btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cs-page-btn { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 9px; padding: 13px 23px; border: 1px solid transparent; border-radius: 14px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.cs-page-btn:hover { transform: translateY(-3px); }
.cs-page-btn:active { transform: translateY(0) scale(.98); }
.cs-page-btn:focus-visible { outline: 3px solid rgba(14, 173, 181, .42); outline-offset: 4px; }
.cs-page-btn--primary { color: #fff !important; background: linear-gradient(135deg, var(--cs-blue-deep), var(--cs-blue)); box-shadow: 0 13px 26px rgba(0, 98, 138, .23); }
.cs-page-btn--ghost { border-color: #bedfe9; color: var(--cs-blue-deep); background: rgba(255, 255, 255, .8); }
.cs-grid { display: grid; gap: 18px; }
.cs-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cs-card { padding: 28px; border: 1px solid #deedf2; border-radius: 22px; background: #fff; box-shadow: 0 12px 28px rgba(16, 80, 110, .055); }
.cs-card-icon { display: flex; width: 58px; height: 58px; align-items: center; justify-content: center; margin-bottom: 16px; border-radius: 17px; color: var(--cs-blue-deep); background: linear-gradient(135deg, #e8f7fa, #e5f2fb); font-size: 27px; }
.cs-card-icon .material-symbols-outlined { font-size: 27px; }
.cs-card h3 { margin: 0 0 8px; color: var(--cs-navy); font-size: 21px; line-height: 1.35; font-weight: 900; }
.cs-card p { margin: 0; color: var(--cs-muted); font-size: 15px; line-height: 1.8; }
.cs-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; overflow: hidden; border: 1px solid var(--cs-line); border-radius: 30px; background: #eef8fa; }
.cs-split-copy { padding: 50px; }
.cs-split-copy h2 { margin: 14px 0 14px; font-size: clamp(30px, 4vw, 44px); line-height: 1.3; font-weight: 900; }
.cs-split-copy p { color: var(--cs-muted); font-size: 17px; line-height: 1.9; }
.cs-split-media { min-height: 440px; background-position: center; background-size: cover; }
.cs-checks { display: grid; gap: 12px; margin-top: 20px; }
.cs-check { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 13px; background: rgba(255, 255, 255, .78); font-weight: 800; }
.cs-check b { display: flex; width: 27px; height: 27px; flex: 0 0 27px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: var(--cs-teal); }
.cs-banner { position: relative; overflow: hidden; padding: 55px; border-radius: 30px; color: #fff; background: linear-gradient(135deg, #064f74, #087d9f 58%, #0d9ba6); box-shadow: 0 22px 50px rgba(0, 93, 132, .18); }
.cs-banner::after { position: absolute; width: 330px; height: 330px; left: -130px; bottom: -210px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; content: ''; }
.cs-banner h2 { position: relative; z-index: 1; margin: 0 0 12px; color: #fff; font-size: clamp(31px, 4vw, 45px); line-height: 1.3; font-weight: 900; }
.cs-banner p { position: relative; z-index: 1; max-width: 720px; margin: 0; color: #e9f8fb; font-size: 17px; line-height: 1.8; }
.cs-banner .cs-btn-row { position: relative; z-index: 1; }
.cs-banner .cs-page-btn { color: var(--cs-blue-deep); background: #fff; }
.cs-stat { text-align: center; }
.cs-stat strong { display: block; margin-bottom: 6px; color: var(--cs-blue-deep); font-size: 36px; font-weight: 900; }
.cs-stat span { color: var(--cs-muted); font-weight: 700; }
.cs-contact-link { display: flex; min-height: 170px; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.cs-contact-link:hover { transform: translateY(-5px); box-shadow: 0 20px 38px rgba(16, 80, 110, .1); }
.cs-contact-link .cs-card-icon { margin-inline: auto; }
.cs-contact-link small { color: var(--cs-muted); font-size: 14px; }
.cs-contact-link strong { display: block; margin-top: 5px; color: var(--cs-navy); font-size: 20px; direction: ltr; }
.cs-steps { counter-reset: cs-step; }
.cs-step { position: relative; padding-top: 62px; text-align: center; }
.cs-step::before { counter-increment: cs-step; content: counter(cs-step); position: absolute; top: 0; right: 50%; display: flex; width: 46px; height: 46px; align-items: center; justify-content: center; transform: translateX(50%); border-radius: 50%; color: #fff; background: var(--cs-blue); font-size: 19px; font-weight: 900; }
.cs-step h3 { margin-bottom: 7px; }
.cs-page-note { padding: 24px 28px; border-right: 4px solid var(--cs-gold); border-radius: 18px; background: #fff9e9; color: #634b12; font-size: 17px; line-height: 1.8; }
.cs-business-note { display: flex; align-items: flex-start; gap: 14px; padding: 24px 28px; border-radius: 18px; background: #eaf7fa; color: var(--cs-navy); line-height: 1.8; }
.cs-business-note .material-symbols-outlined { flex: 0 0 auto; margin-top: 2px; color: var(--cs-blue-deep); }
.cs-home .cs-whatsapp { display: none !important; }
.cs-home .cs-hero .cs-btn-primary,
.cs-home .cs-cta .cs-btn-primary { color: #fff; }

@media (max-width: 800px) {
  .cs-page-shell { width: min(100% - 34px, 1180px); }
  .cs-page-section { padding: 64px 0; }
  .cs-page-hero { min-height: 420px; border-radius: 0 0 36px 36px; }
  .cs-page-hero .cs-page-shell { padding-block: 64px; }
  .cs-page-title { font-size: 39px; }
  .cs-page-lead { font-size: 16px; }
  .cs-grid-4, .cs-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-grid-2, .cs-split { grid-template-columns: 1fr; }
  .cs-card { padding: 22px 18px; }
  .cs-split-copy { padding: 36px 24px; }
  .cs-split-media { min-height: 300px; order: -1; }
  .cs-banner { padding: 38px 24px; }
}

@media (max-width: 500px) {
  .cs-grid-4, .cs-grid-3 { grid-template-columns: 1fr; }
  .cs-btn-row { display: grid; }
  .cs-page-btn { width: 100%; }
}
/* Minimal Font Awesome brand mappings used by the theme. */
.fa-instagram::before { content: "\f16d"; }
.fa-snapchat-ghost::before { content: "\f2ac"; }
.fa-whatsapp::before { content: "\f232"; }

/* HubSpot lead form on the Arabic contact page. */
.cs-form-card {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid rgba(0, 98, 138, 0.14);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(27, 58, 92, 0.09);
}

.cs-form-card .cs-section-head {
  margin-bottom: 28px;
}

.cs-hubspot-form {
  min-height: 360px;
  text-align: start;
}

.cs-hubspot-form .hs-form-frame {
  width: 100%;
}

.cs-form-fallback {
  margin-top: 18px;
  text-align: center;
  color: #3f484f;
}

.cs-form-fallback a {
  color: #00628a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .cs-form-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .cs-hubspot-form {
    min-height: 440px;
  }
}

/* Blog Article Typography & Content */
.cs-article-body h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--color-on-surface);
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  line-height: 1.35;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e8ed;
}

.cs-article-body h3 {
  font-size: clamp(20px, 2.5vw, 25px);
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.cs-article-body h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-on-surface);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.cs-article-body p {
  margin-bottom: 1.5rem;
  line-height: 2.1;
  color: var(--color-on-surface-variant);
  font-size: 17px;
}

.cs-article-body blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: #f0f8fb;
  border-right: 5px solid var(--color-primary);
  border-radius: 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-brand-navy);
  line-height: 1.9;
}

.cs-article-body ul {
  list-style-type: none;
  padding-right: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cs-article-body ul li {
  position: relative;
  padding-right: 1.75rem;
  line-height: 1.8;
  color: var(--color-on-surface-variant);
}

.cs-article-body ul li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
}

.cs-article-body ol {
  list-style-type: decimal;
  padding-right: 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cs-article-body ol li {
  line-height: 1.8;
  color: var(--color-on-surface-variant);
}

.cs-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  margin: 2rem auto;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.cs-article-body figure {
  margin: 2rem 0;
}

.cs-article-body figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--color-on-surface-variant);
  margin-top: 0.75rem;
  font-weight: 500;
}

/* Pagination styles */
.cs-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.cs-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border-radius: 9999px;
  background: #f6fafe;
  border: 1px solid rgba(111, 120, 128, 0.2);
  color: var(--color-on-surface);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cs-pagination .page-numbers:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 98, 138, 0.2);
}

.cs-pagination .page-numbers.current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 98, 138, 0.3);
}

.cs-pagination .page-numbers.dots {
  background: transparent;
  border: none;
  cursor: default;
}
