/* ═══════════════════════════════════════════
   BAYTAK THEME - MAIN CSS
   Main visual styles (header, footer, sections)
═══════════════════════════════════════════ */

/* ─── HEADER ─────────────────────────────── */
.site-header {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.08); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 20px;
}

/* Logo */
.site-logo, .footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-base); font-size: 1.5rem;
  font-weight: 900; color: var(--brand);
}
.logo-icon {
  width: 40px; height: 40px; background: var(--brand);
  border-radius: 10px; display: grid; place-items: center;
  flex-shrink: 0;
}

/* Custom logo image: fixed container so large images are constrained
   without distorting the image or breaking the header layout */
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}
.custom-logo-link .custom-logo,
.site-branding img.custom-logo {
  display: block;
  width: auto;
  height: 52px;          /* fixed height — the "defined space" for the logo */
  max-height: 52px;
  max-width: 220px;      /* prevents very wide logos from breaking the header */
  object-fit: contain;   /* preserves aspect ratio, never crops or distorts */
}

/* Navigation */
.nav-menu {
  display: flex; align-items: center; gap: 4px; list-style: none;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: 8px;
  font-size: .92rem; font-weight: 600; color: var(--muted);
  transition: all var(--transition);
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
  color: var(--brand); background: var(--brand-light);
}

/* Dropdown */
.nav-menu > li > ul {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 200px; background: white;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 8px; list-style: none;
  z-index: 200;
}
.nav-menu > li:hover > ul { display: block; animation: fadeInDown .2s ease; }
.nav-menu > li > ul > li > a {
  display: block; padding: 8px 14px; border-radius: 6px;
  font-size: .9rem; color: var(--text); transition: all var(--transition);
}
.nav-menu > li > ul > li > a:hover { background: var(--light); color: var(--brand); }

/* Multi-level dropdown (desktop) */
.nav-menu li{ position: relative; }
.nav-menu li:focus-within > ul{ display: block; }
.nav-menu li.menu-item-has-children > a{ padding-left: 18px; position: relative; }
.nav-menu li.menu-item-has-children > a::after{
  content: '▾';
  font-size: .72rem;
  color: var(--muted);
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}
.nav-menu > li > ul > li.menu-item-has-children > a::after{
  content: '◂';
}

.nav-menu > li > ul ul{
  display: none;
  position: absolute;
  top: 0;
  right: calc(100% + 8px);
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 220;
}
.nav-menu > li > ul li:hover > ul{ display: block; }
.nav-menu > li > ul ul a{ padding: 8px 14px; border-radius: 6px; }


/* Header Right */
.header-right { display: flex; align-items: center; gap: 12px; }
.header-phone { display: none; }
@media (min-width: 1024px) { .header-phone { display: inline-flex; } }

/* ─── SEARCH ──────────────────────────────── */
.search-toggle {
  width: 38px; height: 38px;
  background: var(--light); border: none; border-radius: 10px;
  color: var(--text); display: grid; place-items: center;
  cursor: pointer; transition: all var(--transition);
}
.search-toggle:hover, .search-toggle.active {
  background: var(--brand-light); color: var(--brand);
}

.header-search-form {
  display: none; position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%); width: min(480px, 90vw);
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 14px; z-index: 500;
}
.header-search-form.active { display: block; animation: fadeInDown .25s ease; }

.ajax-search-form {
  display: flex; gap: 8px;
}
.search-input {
  flex: 1; padding: 11px 16px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: .95rem;
}
.search-submit {
  width: 44px; height: 44px; background: var(--brand);
  border: none; border-radius: 10px; color: white;
  display: grid; place-items: center; cursor: pointer;
  transition: background var(--transition); flex-shrink: 0;
}
.search-submit:hover { background: var(--brand-dark); }

.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--light); }
.search-result-thumb {
  width: 46px; height: 46px; border-radius: 8px;
  object-fit: cover; background: var(--light); flex-shrink: 0;
}
.result-type {
  display: inline-block; font-size: .7rem; font-weight: 700;
  background: var(--brand-light); color: var(--brand);
  padding: 2px 8px; border-radius: 50px; margin-bottom: 4px;
}
.result-title { font-size: .88rem; font-weight: 600; color: var(--dark); }

/* ─── HAMBURGER ─────────────────────────────── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 6px; background: none; border: none;
  cursor: pointer;
}
.hamburger .bar {
  display: block; width: 24px; height: 2px;
  background: var(--brand); border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE MENU ────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2100; /* أعلى من الهيدر */
  background: #fff;
  width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  transform: translateX(110%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: calc(76px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge legacy */
}
.mobile-menu::-webkit-scrollbar { width: 0; height: 0; }
.mobile-menu.open { transform: translateX(0); }
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 2090; /* أسفل المينيو مباشرة */
  background: rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-overlay.active { opacity: 1; pointer-events: all; }
.mobile-menu-close {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  right: 16px;
  left: auto;
  width: 44px;
  height: 44px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.mobile-menu-close:hover { background: var(--brand-light); color: var(--brand); }
.mobile-logo { margin-bottom: 28px; }
.mobile-nav-list { display: flex; flex-direction: column; gap: 10px; }
/* Row wrapper (link + toggle) to keep toggle aligned with the opened item */
.mobile-nav-list .menu-row{ position: relative; }
.mobile-nav-list > li > a,
.mobile-nav-list > li > .menu-row > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  font-size: 1.08rem;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--light);
  color: var(--text);
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}
.mobile-nav-list > li > a:hover,
.mobile-nav-list > li > .menu-row > a:hover { background: var(--brand-light); border-color: var(--brand-light); color: var(--brand); transform: translateY(-1px); }

/* Mobile sub-menus */
.mobile-nav-list li.has-submenu > .menu-row > a{ padding-left: 56px; }
.mobile-nav-list .menu-row > .submenu-toggle{
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  display: grid;
  place-items: center;
  transition: all var(--transition);
}
.mobile-nav-list .menu-row > .submenu-toggle:hover{ background: var(--brand-light); border-color: var(--brand-light); color: var(--brand); }
.mobile-nav-list .submenu-chevron{ font-size: 1.15rem; transform: translateY(-1px); transition: transform var(--transition); }
.mobile-nav-list li.open > .menu-row > .submenu-toggle .submenu-chevron{ transform: rotate(180deg); }

.mobile-nav-list .sub-menu{
  display: none;
  margin: 6px 0 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 8px 10px;
}
.mobile-nav-list li.open > .sub-menu{ display: block; }
.mobile-nav-list .sub-menu a{
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  padding: 12px 10px;
  border-bottom: 1px solid rgba(216,232,222,.75);
}
.mobile-nav-list .sub-menu li:last-child > a{ border-bottom: none; }

.mobile-cta { display: grid; gap: 12px; margin-top: 28px; }

/* ─── MOBILE MENU (Professional list style like screenshot) ─── */
@media (max-width: 1024px) {
  /* Keep header visible; menu opens under it */
  .mobile-menu{
    top: calc(72px + var(--wp-admin--admin-bar--height, 0px));
    height: calc(100dvh - (72px + var(--wp-admin--admin-bar--height, 0px)));
    max-height: calc(100dvh - (72px + var(--wp-admin--admin-bar--height, 0px)));
    padding: 0;
    overflow: hidden; /* body area will scroll */
    border-top: 1px solid var(--border);
  }
  .mobile-overlay{ top: calc(72px + var(--wp-admin--admin-bar--height, 0px)); }

  /* Hide close button + duplicate logo inside menu (header already has them) */
  .mobile-menu-close{ display: none !important; }
  .mobile-logo{ display: none; }

  /* Layout: list scroll + sticky CTA bottom */
  .mobile-menu .mobile-nav-list{
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .mobile-menu .mobile-nav-list::-webkit-scrollbar{ width: 0; height: 0; }

  .mobile-menu .mobile-cta{
    margin-top: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: #fff;
    position: sticky;
    bottom: 0;
  }

  /* Menu list rows */
  .mobile-nav-list{ gap: 0; margin: 0; padding: 0; }
  .mobile-nav-list > li{ border-bottom: 1px solid var(--border); }
  .mobile-nav-list > li > a,
  .mobile-nav-list > li > .menu-row > a{
    display: block;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    padding: 18px 16px;
    font-size: 1.08rem;
    font-weight: 800;
    transform: none;
  }
  .mobile-nav-list > li > a:hover,
  .mobile-nav-list > li > .menu-row > a:hover{
    background: rgba(0,0,0,.03);
    border-color: transparent;
    color: var(--brand);
  }

  /* Submenu chevron on the LEFT (RTL) */
  .mobile-nav-list li.has-submenu > .menu-row > a{ padding-left: 62px; }
  .mobile-nav-list .menu-row > .submenu-toggle{
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    border-radius: 12px;
    color: var(--muted);
  }
  .mobile-nav-list .menu-row > .submenu-toggle:hover{ background: rgba(0,0,0,.05); color: var(--brand); }
  .mobile-nav-list .submenu-chevron{ font-size: 1.2rem; }

  /* Submenu block */
  .mobile-nav-list .sub-menu{
    border: none;
    border-radius: 0;
    background: var(--light);
    padding: 0;
    margin: 0;
  }
  .mobile-nav-list .sub-menu a{
    padding: 16px 22px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-weight: 700;
  }
  .mobile-nav-list .sub-menu li:last-child > a{ border-bottom: none; }
}

/* ─── FLOATING CONTACT BUTTONS ─────────────────── */
.contact-floats{
  position: fixed; bottom: 28px; right: 28px; left: auto; z-index: 920;
  display: flex; flex-direction: column; gap: 12px;
}
.contact-floats a{
  position: relative;
  width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.14);
  transition: all var(--transition);
  outline: none;
}
.contact-floats a:hover{ transform: translateY(-3px) scale(1.03); }
.contact-floats a:focus-visible{
  box-shadow: 0 0 0 4px rgba(245,166,35,.22), var(--shadow);
}

.contact-floats .float-icon{
  width: 100%; height: 100%;
  display: grid; place-items: center;
}
.contact-floats .float-label{
  position: absolute;
  right: 72px; top: 50%;
  transform: translateY(-50%) translateX(10px);
  opacity: 0; pointer-events: none;
  background: #fff; color: var(--dark);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .82rem; font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.contact-floats a:hover .float-label{
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.call-float{
  background: var(--brand);
  color: #fff;
}
.call-float:hover{ background: var(--brand-dark); }

.whatsapp-float{
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  animation: float 3s ease-in-out infinite;
}
.whatsapp-float:hover{
  box-shadow: 0 8px 30px rgba(37,211,102,.45);
}

@media (max-width: 480px){
  .contact-floats{ bottom: 18px; right: 18px; left: auto; }
  .contact-floats a{ width: 52px; height: 52px; border-radius: 16px; }
  .contact-floats .float-label{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  .whatsapp-float{ animation: none; }
}

/* ─── BACK TO TOP ────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 28px; left: 28px; right: auto; z-index: 900;
  width: 48px; height: 48px; background: var(--brand);
  border: none; border-radius: 50%; color: white;
  display: grid; place-items: center;
  box-shadow: var(--shadow); cursor: pointer;
  opacity: 0; transform: translateY(10px) scale(.8);
  transition: all var(--transition); pointer-events: none;
}
.back-to-top.visible {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: all;
}
.back-to-top:hover { background: var(--brand-dark); transform: translateY(-2px); }

/* ─── HERO SECTION ────────────────────────────── */
.hero-section {
  padding: 130px 0 80px;
  background: linear-gradient(135deg, #f7faf8 0%, #e8f5ee 50%, #d4ede0 100%);
  position: relative; overflow: hidden;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; }
.shape-1 { width:600px;height:600px;background:radial-gradient(circle,rgba(26,107,60,.06) 0%,transparent 70%);top:-200px;left:-200px; }
.shape-2 { width:400px;height:400px;background:radial-gradient(circle,rgba(245,166,35,.05) 0%,transparent 70%);bottom:-100px;right:-100px; }
.shape-3 { width:200px;height:200px;background:rgba(26,107,60,.03);top:40%;left:40%;border-radius:30px;transform:rotate(25deg); }

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 1px solid var(--border);
  border-radius: 50px; padding: 6px 16px;
  font-size: .85rem; font-weight: 600; color: var(--text);
  margin-bottom: 20px; box-shadow: var(--shadow);
  animation: fadeInDown .6s ease both;
}
.pulse-dot {
  width: 8px; height: 8px; background: #22c55e;
  border-radius: 50%; animation: pulse-dot 2s infinite;
}

.hero-company {
  /* H1: Company name should sit under the availability badge */
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 900;
  color: var(--brand);
  margin-bottom: 12px;
  /* Block-level so it doesn't sit next to the badge */
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-title {
  /* H2: Slightly smaller for better visual balance */
  font-size: clamp(2.0rem, 4.2vw, 3.5rem);
  font-weight: 900; line-height: 1.25;
  margin-bottom: 20px;
  animation: fadeInUp .7s .1s ease both;
}
.hero-title .highlight {
  color: var(--brand); position: relative; display: inline-block;
}
.hero-title .highlight::after {
  content: ''; position: absolute; bottom: 4px; right: 0;
  width: 100%; height: 8px;
  background: rgba(26,107,60,.15); border-radius: 4px; z-index: -1;
}

.hero-desc {
  font-size: 1.05rem; color: var(--muted);
  margin-bottom: 36px; line-height: 1.8;
  animation: fadeInUp .7s .2s ease both;
}

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeInUp .7s .3s ease both;
}

.hero-stats {
  display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap;
  animation: fadeInUp .7s .4s ease both;
}
.hero-stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-base);
  font-size: 2rem; font-weight: 900; color: var(--brand);
}
.stat-label { font-size: .82rem; color: var(--muted); font-weight: 500; }

/* Hero Card */
.hero-visual { position: relative; animation: fadeInUp .8s .3s ease both; }
.hero-card {
  background: white; border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-lg);
}
.hero-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.hero-card-icon {
  width: 50px; height: 50px; background: var(--brand-light);
  border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem;
}
.hero-card-header h3 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.hero-card-header p  { font-size: .85rem; color: var(--muted); margin: 0; }

.service-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-service-item {
  background: var(--light); border-radius: 10px; padding: 12px;
  display: flex; align-items: center; gap: 9px;
  transition: all var(--transition);
}
.quick-service-item:hover { background: var(--brand-light); transform: translateY(-2px); }
.qs-icon {
  font-size: 1.3rem;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.qs-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.qs-name { font-size: .88rem; font-weight: 600; color: var(--text); }

.floating-badge {
  position: absolute; background: white;
  border-radius: 12px; padding: 10px 14px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  font-size: .82rem;
}
.badge-top    { top: -20px; left: -20px; animation: float 3s ease-in-out infinite; }
.badge-bottom { bottom: -20px; right: -20px; animation: float 3s ease-in-out infinite reverse; }
.fb-name   { font-size: .82rem; font-weight: 700; }
.fb-rating { font-size: .82rem; font-weight: 700; color: var(--brand); }
.fb-text   { font-size: .72rem; color: var(--muted); }

/* ─── TRUST BAR ───────────────────────────────── */
.trust-bar {
  background: white; border-bottom: 1px solid var(--border);
  padding: 18px 0; box-shadow: 0 2px 20px rgba(0,0,0,.04);
}
.trust-items {
  display: flex; gap: 32px; flex-wrap: wrap;
  justify-content: center; align-items: center;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 600; color: var(--text);
  white-space: nowrap;
}
.trust-icon { font-size: 1.1rem; }

/* ─── SERVICES SECTION ────────────────────────── */
.fp-services { background: var(--light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: white; border-radius: var(--radius);
  padding: 32px 28px; border: 1px solid var(--border);
  cursor: pointer; position: relative; overflow: hidden;
  transition: all var(--transition);
}
.service-card::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 0; height: 4px; background: var(--brand);
  transition: width var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { width: 100%; }

.service-icon-wrap {
  width: 64px; height: 64px; background: var(--brand-light);
  border-radius: 16px; display: grid; place-items: center;
  font-size: 1.8rem; margin-bottom: 20px;
  transition: all var(--transition);
}

.service-icon-wrap img.service-icon-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}
.service-card:hover .service-icon-wrap {
  background: var(--brand); transform: rotate(-5deg) scale(1.05);
  box-shadow: 0 8px 20px rgba(26,107,60,.25);
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.service-card p  { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand); font-size: .9rem; font-weight: 700;
  transition: gap var(--transition);
}
.service-card:hover .service-link { gap: 12px; }

/* ─── HOW IT WORKS ────────────────────────────── */
.fp-how{ background: var(--how-bg, transparent); }
.steps-grid {
  display: grid; grid-template-columns: repeat(var(--steps-cols, 3), 1fr);
  gap: 40px; position: relative;
}
.steps-grid::before {
  content: ''; position: absolute; top: 38px; right: 10%; left: 10%;
  height: 2px;
  background: linear-gradient(to left, transparent, var(--border) 20%, var(--border) 80%, transparent);
  pointer-events: none;
}
.steps-grid.steps-line-off::before{ display: none; }
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 76px; height: 76px; background: var(--how-circle-bg, white);
  border: 3px solid var(--how-circle-border, var(--brand)); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-base); font-size: 1.5rem; font-weight: 900;
  color: var(--how-circle-text, var(--brand, #1a6b3c)); margin: 0 auto 20px; position: relative; z-index: 1;
  transition: all var(--transition);
}
.step:hover .step-num {
  background: var(--how-circle-hover-bg, var(--brand, #1a6b3c));
  color: var(--how-circle-hover-text, white);
  box-shadow: 0 0 0 8px rgba(26,107,60,.1);
}
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p   { font-size: .88rem; color: var(--muted); }

/* ─── WHY US SECTION ──────────────────────────── */
.fp-why { background: var(--dark); color: white; }
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.why-content .section-tag { background: rgba(255,255,255,.1); color: var(--accent); }
.why-content .section-title { color: white; }
.why-content .section-sub   { color: rgba(255,255,255,.6); text-align: right; }

.why-features { display: grid; gap: 16px; margin-top: 32px; }
.why-feature {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 18px;
  transition: all var(--transition);
}
.why-feature:hover { background: rgba(255,255,255,.08); transform: translateX(-4px); }
.why-feature-icon {
  width: 46px; height: 46px; background: rgba(26,107,60,.35);
  border-radius: 12px; display: grid; place-items: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.why-feature-icon img{width:22px;height:22px;object-fit:contain;display:block;}

.why-feature h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: white; }
.why-feature p  { font-size: .88rem; color: rgba(255,255,255,.55); margin: 0; }

.why-rating-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px; padding: 36px;
}
.ratings-display { text-align: center; margin-bottom: 28px; }
.big-rating {
  font-family: var(--font-base); font-size: 5rem;
  font-weight: 900; color: var(--accent); line-height: 1;
}
.big-stars { font-size: 1.5rem; margin: 8px 0; }
.rating-count { color: rgba(255,255,255,.45); font-size: .88rem; }
.review-bars  { display: grid; gap: 10px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-label { font-size: .85rem; color: rgba(255,255,255,.5); width: 16px; text-align: center; flex-shrink: 0; }
.bar-bg    { flex: 1; height: 8px; background: rgba(255,255,255,.1); border-radius: 50px; }
.bar-fill  { height: 100%; background: var(--accent); border-radius: 50px; transition: width .6s ease; }
.bar-pct   { font-size: .8rem; color: rgba(255,255,255,.45); width: 32px; flex-shrink: 0; }

/* ─── TESTIMONIALS ────────────────────────────── */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: all var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.t-stars  { color: var(--accent); margin-bottom: 14px; font-size: .95rem; }
.t-text   { font-size: .93rem; color: var(--text); line-height: 1.8; margin-bottom: 20px; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: white;
  display: grid; place-items: center;
  font-family: var(--font-base); font-size: 1.1rem;
  font-weight: 700; flex-shrink: 0;
}
.t-avatar-img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.t-name { font-weight: 700; font-size: .92rem; }
.t-meta  { font-size: .78rem; color: var(--muted); }

/* ─── PRICING ─────────────────────────────────── */
.fp-pricing { background: var(--light); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; align-items: start;
}
.pricing-card {
  background: white; border: 2px solid var(--border);
  border-radius: 20px; padding: 36px 28px;
  position: relative; overflow: hidden;
  transition: all var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-featured {
  border-color: var(--brand); transform: scale(1.04);
  box-shadow: var(--shadow-lg);
}
.popular-badge {
  position: absolute; top: 22px; left: -28px;
  background: var(--brand); color: white;
  font-size: .75rem; font-weight: 700; padding: 5px 40px;
  transform: rotate(45deg);
}
.plan-name  { font-size: .95rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.plan-price {
  font-family: var(--font-base); font-size: 3rem;
  font-weight: 900; color: var(--dark); line-height: 1.1;
}
.plan-price sup { font-size: 1.1rem; vertical-align: super; }
.plan-price sub { font-size: .88rem; font-weight: 400; color: var(--muted); }
.plan-desc  { font-size: .88rem; color: var(--muted); margin: 12px 0 24px; }
.plan-features { display: grid; gap: 12px; margin-bottom: 28px; list-style: none; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.check-icon {
  width: 22px; height: 22px; background: var(--brand-light);
  border-radius: 50%; display: grid; place-items: center;
  color: var(--brand); font-size: .75rem; flex-shrink: 0; font-weight: 900;
}

/* ─── CTA SECTION ─────────────────────────────── */
.fp-cta {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  padding: 80px 0; color: white; text-align: center; position: relative; overflow: hidden;
}
.fp-cta::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.fp-cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 16px; color: white; }
.fp-cta p  { font-size: 1.05rem; opacity: .85; max-width: 520px; margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ──────────────────────────────────── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.65); }
.footer-top  { padding: 64px 0 48px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo { color: white; margin-bottom: 14px; }
.footer-desc { font-size: .9rem; line-height: 1.8; max-width: 280px; }

.footer-socials { display: flex; gap: 8px; margin-top: 20px; }
.social-btn {
  width: 38px; height: 38px; background: rgba(255,255,255,.06);
  border-radius: 10px; display: grid; place-items: center;
  font-size: .9rem; text-decoration: none; color: rgba(255,255,255,.92);
  transition: all var(--transition);
}
.social-btn:hover { background: var(--brand); transform: translateY(-2px); }

/* SVG brand icons */
.social-btn svg{ width: 18px; height: 18px; display: block; fill: currentColor; }

.footer-col-title {
  font-family: var(--font-base); font-weight: 700; color: white;
  margin-bottom: 18px; font-size: 1rem;
}
.footer-links { display: grid; gap: 10px; }
.footer-links a {
  font-size: .88rem; transition: color var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.footer-links a::before { content: '←'; font-size: .7rem; color: var(--brand); }
.footer-links a:hover { color: var(--accent); }

.footer-contact { display: grid; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.contact-icon {
  width: 32px; height: 32px; background: rgba(255,255,255,.06);
  border-radius: 8px; display: grid; place-items: center; flex-shrink: 0;
}

.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); }
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; flex-wrap: wrap; gap: 12px;
}
.copyright { font-size: .84rem; }
.copyright a {
  color: var(--accent);
  /* Accessibility: don't rely on color only to identify links */
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
  font-size: .84rem;
  transition: color var(--transition);
  /* Accessibility: links should be distinguishable beyond color */
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.footer-bottom-links a:hover { color: var(--accent); }

/* ─── BLOG POST CARDS ─────────────────────────── */
.posts-grid{
  display: grid;
  gap: 28px;
  /* Center the grid tracks so 1–2 cards appear perfectly centered (RTL/LTR). */
  justify-content: center;
  /* Keep card width consistent and prevent giant stretched cards. */
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 380px));
}

/* Used in homepage/search/archive: same centered behavior, but we keep the same track sizing. */
.posts-grid.grid-3{
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 380px));
}

/* ─── HOME POSTS SLIDER (horizontal) ─────────────────────────── */
.posts-slider{
  position: relative;
  /* Prevent any overflow from slider buttons from creating page scrollbars */
  overflow: hidden;
}

.posts-slider-track{
  width: 100%;
  overscroll-behavior-x: contain;
  display: flex;
  gap: 28px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 2px 18px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbars but keep scrolling */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge legacy */
  cursor: grab;
  /* Allow native swipe on touch devices; desktop drag is handled via JS */
  touch-action: auto;
}

.posts-slider-track:focus{ outline: 2px solid rgba(26,107,60,.22); outline-offset: 8px; border-radius: 14px; }

.posts-slider-track::-webkit-scrollbar{ width: 0 !important; height: 0 !important; display: none !important; }

.posts-slider-track .post-card{
  flex: 0 0 380px;
  max-width: 380px;
  scroll-snap-align: start;
}

.posts-slider-btn{
  position: absolute;
  top: 46%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: transform var(--transition), opacity var(--transition);
}

.posts-slider-btn:hover{ transform: translateY(-50%) scale(1.05); }
.posts-slider-btn:active{ transform: translateY(-50%) scale(.98); }

/* RTL/LTR safe positioning */
.posts-slider-btn.prev{ inset-inline-end: 10px; }
.posts-slider-btn.next{ inset-inline-start: 10px; }

.posts-slider:not(.is-scrollable) .posts-slider-btn{ display: none; }
.posts-slider:not(.is-scrollable) .posts-slider-track{
  width: 100%;
  overscroll-behavior-x: contain; justify-content: center; }

.posts-slider-track.dragging{
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

/* Prevent selecting text/images while dragging */
.posts-slider-track.dragging *{
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 1024px){
  .posts-slider-track .post-card{ flex-basis: 340px; max-width: 340px; }
  .posts-slider-btn.prev{ inset-inline-end: 8px; }
  .posts-slider-btn.next{ inset-inline-start: 8px; }
}

@media (max-width: 640px){
  .posts-slider-track{
  width: 100%;
  overscroll-behavior-x: contain; padding-inline: 0; }
  .posts-slider-track .post-card{ flex-basis: 84vw; max-width: 84vw; }
}

/* On small screens we rely on swipe/drag and hide arrows to prevent covering titles/content */
@media (max-width: 768px){
  .posts-slider-btn{ display: none !important; }
}

@media (max-width: 1024px){
  .posts-grid,
  .posts-grid.grid-3{
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 360px));
  }
}
@media (max-width: 640px){
  .posts-grid,
  .posts-grid.grid-3{
    grid-template-columns: 1fr;
  }
}



:root{
  --post-card-thumb-h: 190px;
}

.post-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.post-card-thumb{
  display: block;
  height: var(--post-card-thumb-h);
  overflow: hidden;
  position: relative;
}

.post-card-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.post-card:hover .post-card-thumb img{ transform: scale(1.03); }

.post-card-body{
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-top{ margin-bottom: 10px; }

.post-card-title{
  margin: 0 0 12px;
  font-family: var(--font-base);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.7;
}
.post-card-title a{ color: var(--dark); text-decoration: none; }
.post-card-title a:hover{ color: var(--brand); }

.post-card-title{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-excerpt{
  color: var(--muted);
  line-height: 1.9;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer{
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

/* Put the CTA button on the left side visually (RTL-friendly) */
.post-card-footer .btn{ margin-right: auto; }

.post-card-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: .9rem;
  color: var(--muted);
}
.post-card-meta .meta-item{ display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 576px){
  :root{ --post-card-thumb-h: 165px; }
  .post-card-body{ padding: 18px; }
}

/* ─── SINGLE POST ─────────────────────────────── */
.single-layout{
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 0;
  /* RTL: show article on the right and sidebar on the left */
  flex-direction: row-reverse;
}

.single-layout .article-main{
  flex: 1;
  min-width: 0;
  display: flex;
  /* With row-reverse, flex-start is visually on the right */
  justify-content: flex-start;
}

.single-layout .sidebar{
  flex: 0 0 340px;
  width: 340px;
  position: sticky;
  top: 90px;
}

.single-article{ width: 100%; max-width: 860px; margin: 0; }
.article-header,
.article-hero-img,
.article-rating-wrap,
.article-content{
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.article-hero-img{ margin: 18px auto 26px; }
.article-content{ padding-top: 10px; }
/* Content safety for long posts (prevents layout break on desktop) */
.article-content{
  overflow-wrap: anywhere;
  word-break: break-word;
}
.article-content img,
.article-content video,
.article-content iframe{
  max-width: 100%;
  height: auto;
}
.article-content table{
  display: block;
  max-width: 100%;
  overflow-x: auto;
}


.single-mobile-related{ margin-top: 26px; }
@media (min-width: 769px){
  .single-mobile-related{ display:none; }
}
@media (max-width: 768px){
  .single-layout{ flex-direction: column; }
  .single-layout .article-main{ justify-content: center; }
  .single-layout .sidebar{ position: static; top: auto; width: 100%; flex-basis: auto; }
}
.article-content {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem; line-height: 1.9;
}
.article-content h2, .article-content h3 { margin: 2rem 0 1rem; }
.article-content img { border-radius: var(--radius-sm); margin: 1.5rem 0; }

/* -----------------------------------------------------
   Article media (images, captions, alignment)
   - Keeps images visually consistent inside the article
   - Prevents wp-caption inline widths from breaking layout
   - Supports left/right/center alignment (Classic + Blocks)
   ----------------------------------------------------- */
:root{
  /* A bit narrower than the article column for nicer rhythm */
  --article-media-max: 760px;
}

/* Default media blocks centered with a consistent max width */
.article-content figure,
.article-content .wp-block-image,
.article-content .wp-caption,
.article-content img.alignnone,
.article-content img.aligncenter,
.article-content img.alignleft,
.article-content img.alignright{
  max-width: min(100%, var(--article-media-max));
}

/* WordPress classic caption wrapper often has inline width; override safely */
.article-content .wp-caption{
  width: auto !important;
  margin: 1.25rem auto;
}

/* Block editor figure */
.article-content figure,
.article-content .wp-block-image{
  margin: 1.25rem auto;
}

/* Ensure images fill their media wrapper without overflowing */
.article-content figure img,
.article-content .wp-caption img,
.article-content .wp-block-image img{
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

/* A subtle on-brand frame around in-article images */
.article-content figure,
.article-content .wp-caption{
  border: 1px solid rgba(107,124,112,.18);
  border-radius: 18px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(26,107,60,.06);
}

/* Captions (Classic + Blocks) */
.article-content figcaption,
.article-content .wp-caption-text{
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(107,124,112,.18);
  border-radius: 14px;
  background: rgba(26,107,60,.04);
  color: var(--text);
  font-size: .92rem;
  line-height: 1.7;
  text-align: center;
}

/* Alignment: allow left/right/center like the editor */
.article-content .aligncenter{ margin-left: auto !important; margin-right: auto !important; display:block; clear: both; }

@media (min-width: 769px){
  .article-content .alignleft,
  .article-content .alignright,
  .article-content figure.alignleft,
  .article-content figure.alignright,
  .article-content .wp-caption.alignleft,
  .article-content .wp-caption.alignright{
    max-width: 46%;
  }

  .article-content .alignleft,
  .article-content figure.alignleft,
  .article-content .wp-caption.alignleft{
    float: left;
    margin: 0 0 1rem 1.25rem !important;
  }
  .article-content .alignright,
  .article-content figure.alignright,
  .article-content .wp-caption.alignright{
    float: right;
    margin: 0 1.25rem 1rem 0 !important;
  }
}

/* Clear floats after media to keep spacing stable */
.article-content::after{
  content: "";
  display: block;
  clear: both;
}
.article-content blockquote {
  border-right: 4px solid var(--brand); padding: 16px 20px;
  background: var(--brand-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0; font-style: italic; color: var(--brand-dark);
}
.article-content a { color: var(--brand); text-decoration: underline; }
/* Content lists (restore markers after global reset) */
.article-content ul,
.article-content ol{
  margin: 1rem 0;
  padding-inline-start: 1.5rem;
  list-style-position: outside;
}
.article-content ul{ list-style-type: disc; }
.article-content ol{ list-style-type: decimal; }
.article-content ul ul{ list-style-type: circle; margin-top: .5rem; }
.article-content ul ul ul{ list-style-type: square; }
.article-content ol ol{ list-style-type: lower-alpha; margin-top: .5rem; }
.article-content ol ol ol{ list-style-type: lower-roman; }
.article-content li{ margin: .35rem 0; }
.article-content li > p{ margin: .5rem 0; }
.article-content ::marker{ color: var(--brand); font-weight: 700; }

/* Featured image: full width, no cropping, and no inner whitespace */
.article-hero-img{
  position: relative;
  overflow: hidden;
  background: #fff;
  /* pull the hero to the card edges while keeping content padding */
  margin: calc(var(--single-pad, 32px) * -1) calc(var(--single-pad, 32px) * -1) 22px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.article-hero-img::after{
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(107,124,112,.25);
  border-radius: inherit;
  pointer-events: none;
}
.article-hero-img img{
  width: 100%;
  height: auto;
  display: block;
  max-height: none;
}

/* Single hero image: edge-to-edge inside the card (no gaps) */
.single-card .article-hero-img{
  margin: calc(var(--single-pad, 32px) * -1) calc(var(--single-pad, 32px) * -1) 22px !important;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: transparent;
}
.single-card .article-hero-img img{
  width: 100% !important;
  height: auto !important;
  display: block;
}
.single-card .article-hero-img::after{
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(107,124,112,.22);
  border-radius: inherit;
  pointer-events: none;
}

.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.article-tag {
  background: var(--light); color: var(--muted);
  padding: 4px 12px; border-radius: 50px; font-size: .82rem;
  transition: all var(--transition);
}
.article-tag:hover { background: var(--brand-light); color: var(--brand); }

.author-box {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--light); border-radius: var(--radius);
  padding: 24px; margin-top: 36px; border: 1px solid var(--border);
}
.author-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--brand); color: white;
  display: grid; place-items: center;
  font-family: var(--font-base); font-size: 1.5rem; font-weight: 700;
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.author-bio  { font-size: .9rem; color: var(--muted); }

/* ─── SIDEBAR ─────────────────────────────────── */
/* Default behavior for sidebars site-wide */
.sidebar { position: sticky; top: 90px; }

/* ─── 404 ─────────────────────────────────────── */
.error-404-wrap {
  min-height: 70vh; display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 60px 20px;
}
.error-code {
  font-family: var(--font-base); font-size: 10rem;
  font-weight: 900; color: var(--brand);
  opacity: .08; line-height: 1; margin-bottom: -70px;
  position: relative; z-index: 0;
}
.error-icon { font-size: 5rem; position: relative; z-index: 1; margin-bottom: 16px; }
.error-content h1 { position: relative; z-index: 1; font-size: 2rem; margin-bottom: 12px; }
.error-content p  { color: var(--muted); margin-bottom: 32px; position: relative; z-index: 1; }
.error-search { max-width: 420px; margin: 0 auto 24px; }

/* ─── ARCHIVE ─────────────────────────────────── */
.archive-layout { padding: 60px 0; }
.archive-header { margin-bottom: 48px; }
.archive-header .archive-desc { color: var(--muted); margin-top: 10px; font-size: .95rem; }

/* ─── CONTACT PAGE ────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info-items { display: grid; gap: 20px; margin-top: 28px; }
.contact-info-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--light); border-radius: var(--radius-sm);
  padding: 18px; border: 1px solid var(--border);
}
.ci-icon {
  width: 48px; height: 48px; background: var(--brand-light);
  border-radius: 12px; display: grid; place-items: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.ci-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.ci-value { font-weight: 700; font-size: .95rem; margin-top: 2px; }

/* ─── SERVICES PAGE ────────────────────────────── */
.service-detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; }
.service-features { display: grid; gap: 12px; margin-top: 24px; }
.service-feature-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--light);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.sf-icon { color: var(--brand); font-size: 1rem; flex-shrink: 0; }

/* ─── SITEMAP ─────────────────────────────────── */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.sitemap-section h3 { margin-bottom: 14px; font-size: 1rem; color: var(--brand); }
.sitemap-section ul { display: grid; gap: 8px; }
.sitemap-section ul li a { font-size: .9rem; color: var(--text); transition: color var(--transition); }
.sitemap-section ul li a:hover { color: var(--brand); }

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  nav.site-nav { display: none; }
  .hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { max-width: 500px; margin: 0 auto; }
  .badge-top { top: -16px; left: 10px; }
  .badge-bottom { bottom: -16px; right: 10px; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
}
@media (max-width: 768px) {
  .hero-section { padding: 110px 0 60px; }
  /* Prevent the floating testimonials from overlapping the hero card on mobiles */
  .badge-top { top: -28px; left: 12px; }
  .badge-bottom { bottom: -28px; right: 12px; }
  .trust-items { gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .pricing-featured { transform: none; }
  .steps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-actions  { flex-direction: column; align-items: stretch; }
  .cta-actions   { flex-direction: column; align-items: center; }
  .hero-stats    { gap: 16px; }
  .service-quick-grid { grid-template-columns: 1fr; }
}


/* ─── BREADCRUMBS ───────────────────────────── */
.breadcrumbs{
  padding: 96px 0 14px;
  /* Improve contrast on top of hero/background images */
  color: var(--dark);
}
.breadcrumbs nav{ width: 100%; }
.breadcrumbs ol{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  /* Give breadcrumbs a readable pill background without changing layout */
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(216, 232, 222, .9);
  border-radius: 999px;
  padding: 8px 14px;
  backdrop-filter: blur(6px);
}
.breadcrumbs li{
  display: flex;
  align-items: center;
  font-size: .92rem;
  color: var(--dark);
  font-weight: 700;
}
.breadcrumbs li+li::before{
  content: '-';
  margin: 0 10px;
  color: rgba(15,31,21,.6);
}
.breadcrumbs a{
  color: var(--brand-dark);
  font-weight: 800;
}
.breadcrumbs a:hover{ color: var(--brand-dark); }
.breadcrumbs li:last-child,
.breadcrumbs li:last-child span{
  color: var(--text);
}

/* ─── ARTICLE TYPOGRAPHY (H2/H3 COLORS) ─────── */
.article-content h2{
  color: var(--brand);
  padding-right: 14px;
  position: relative;
}
.article-content h2::before{
  content: '';
  position: absolute;
  right: 0;
  top: .25em;
  width: 5px;
  height: 1.15em;
  background: var(--brand);
  border-radius: 6px;
}
.article-content h3{
  color: var(--accent-dark);
  position: relative;
  padding-right: 12px;
}
.article-content h3::before{
  content: '';
  position: absolute;
  right: 0;
  top: .6em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ─── RATING WIDGET ─────────────────────────── */
.rating-widget{
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 10px 35px rgba(26,107,60,.10);
}
.article-rating-wrap{ margin: 18px 0 26px; }
.rating-summary{ display:flex; align-items:center; justify-content: space-between; gap: 12px; }
.rating-avg{ display:flex; align-items:center; gap: 12px; flex-wrap: wrap; }
.rating-num{ font-size: 1.6rem; font-weight: 900; color: var(--brand); font-family: var(--font-base); }
.rating-stars-display .star{ color: var(--accent); font-size: 1.1rem; margin-inline: 1px; }
.rating-stars-display .star-empty{ opacity: .25; }
.rating-count{ color: var(--muted); font-weight: 700; font-size: .9rem; }
.rating-form-wrap{ display:flex; align-items:center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.rating-prompt{ margin: 0; color: var(--text); font-weight: 800; }
.star-rating-input{ display:flex; flex-direction: row; justify-content: flex-end; gap: 6px; }
.star-rating-input input{ display:none; }
.star-rating-input label{
  font-size: 1.5rem;
  color: rgba(107,124,112,.35);
  cursor: pointer;
  transition: transform var(--transition), color var(--transition);
}
.star-rating-input label:hover,
.star-rating-input label:hover ~ label{ color: var(--accent); transform: translateY(-1px); }
.star-rating-input input:checked ~ label{ color: var(--accent); }
.rating-submit{ white-space: nowrap; }
.rating-message{ font-weight: 800; color: var(--brand); min-height: 18px; }
.already-rated{ margin-top: 10px; color: var(--muted); font-weight: 800; }

/* ─── SINGLE ARTICLE CARD LOOK ─────────────── */
.single-article{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  --single-pad: 32px;
  padding: var(--single-pad);
  overflow: clip;  /* clip keeps border-radius on hero image without creating a new scroll container */
  box-shadow: 0 16px 55px rgba(26,107,60,.12);
}
@media (max-width: 768px){
  .single-article{ --single-pad: 22px; }
}
.post-meta{ flex-wrap: wrap; }

/* ─── Single title/meta spacing ───────────────────────────── */
.article-title{ margin: 0 0 14px; line-height: 1.35; }
.article-meta{ margin-top: 6px; }

/* ─── Single: layout width ─────────────────────────────────── */
.single-layout.container{ max-width: var(--container); }
.single-top-grid{ display:flex; gap: 26px; align-items: flex-start; }
.single-aside-col{ flex: 0 0 320px; width: 320px; order: 1; }
.single-main-col{ flex: 1; min-width: 0; order: 2; }

@media (max-width: 768px){
  .single-top-grid{ flex-direction: column; }
  .single-aside-col{ width: 100%; flex-basis: auto; order: 3; }
  .single-main-col{ order: 1; }
}

.single-box{ background:#fff; border:1px solid var(--border); border-radius: 16px; overflow:hidden; box-shadow: 0 12px 34px rgba(26,107,60,.10); margin-bottom: 16px; }
.single-box .box-head{ padding: 12px 14px; border-bottom: 1px solid var(--border); display:flex; align-items:center; justify-content: space-between; gap:10px; }
.single-box .box-title{ margin:0; font-size: 1rem; font-weight: 900; color: var(--text); }

/* Mini cards inside single boxes (works in sidebar + mobile block) */
.single-box .mini-posts{
  list-style:none;
  margin:0;
  padding: 10px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.single-box .mini-post a{
  display:flex;
  flex-direction: row;
  align-items:center;
  text-align: right;
  gap: 12px;
  text-decoration:none;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(26,107,60,.03);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.single-box .mini-post a:hover{
  background: rgba(26,107,60,.06);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(26,107,60,.10);
}
.single-box .mini-thumb{
  flex: 0 0 64px;
  width: 64px;
  height: 48px;
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid var(--border);
  background: rgba(26,107,60,.04);
}
.single-box .mini-thumb img{ width:100%; height:100%; object-fit: cover; display:block; }
.single-box .mini-info{ width:100%; min-width: 0; }
.single-box .mini-title{
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
  font-weight: 900;
  color: var(--text);
  font-size: .95rem;
  line-height: 1.3;
}
.single-box .mini-meta{ display:none; }
.post-meta .meta-item{ display:inline-flex; align-items:center; gap:6px; }

/* ─── Single related sections sizing ───────────────────────────────────────
   Desktop: compact boxes (fit content) inside the left sidebar.
   Mobile: full-width boxes for readability.
*/
.single-related-sections{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Desktop (sidebar left): compact */
@media (min-width: 769px){
  .sidebar--desktop .single-related-sections{
    /* Keep both sections consistent in width */
    align-items: stretch;
  }
  .sidebar--desktop .single-related-sections .single-box{
    width: 100%;
    max-width: 100%;
  }

  /* Make each mini card fill the sidebar width (consistent background), regardless of title length */
  .sidebar--desktop .single-related-sections .mini-posts{ align-items: stretch; }
  .sidebar--desktop .single-related-sections .mini-post{ width: 100%; max-width: 100%; }
  .sidebar--desktop .single-related-sections .mini-post a{
    display: flex;
    width: 100%;
    max-width: 100%;
  }
  .sidebar--desktop .single-related-sections .mini-info{ flex: 1 1 auto; min-width: 0; }
  .sidebar--desktop .single-related-sections .mini-title{ max-width: 100%; }
}

 /* Mobile: full width */
@media (max-width: 768px){
  .sidebar--mobile .single-related-sections{
    width: 100%;
    max-width: 100%;
    direction: rtl;
    align-items: stretch; /* keep cards aligned to the container edges */
  }
  .sidebar--mobile .single-related-sections .single-box{
    width: 100%;
    max-width: 100%;
  }

  /* Full-width mini cards so the background stays consistent */
  .sidebar--mobile .single-related-sections .mini-posts{ align-items: stretch; }
  .sidebar--mobile .single-related-sections .mini-post{ width: 100%; max-width: 100%; }
  .sidebar--mobile .single-related-sections .mini-post a{
    display:flex;
    width: 100%;
    max-width: 100%;
  }
  .sidebar--mobile .single-related-sections .mini-info{ flex: 1 1 auto; min-width: 0; }
}

@media (max-width: 480px){
  .back-to-top{ bottom: 18px; left: 18px; right: auto; }
}


/* Lock scroll when mobile menu is open */

/* ─────────────────────────────────────────────────────────────
   Single: force desktop sidebar layout + split desktop/mobile blocks
   (prevents the sidebar from dropping under the article on desktop)
───────────────────────────────────────────────────────────── */

/* Default: hide the mobile variant on larger screens */
.single-related--mobile{ display:none; }

/* Spacing for the split blocks */
.single-related-block{ margin-top: 22px; }
@media (min-width: 769px){
  .single-layout .sidebar .single-related-block{ margin-top: 0; }
}

@media (min-width: 769px){
  /* Force a 2-column layout regardless of other CSS overrides */
  .single-layout{
    display: grid !important;
    grid-template-columns: 340px minmax(0, 1fr) !important;
    gap: 28px !important;
    align-items: start !important;
  }

  .single-layout .sidebar{
    grid-column: 1 !important;
    width: 340px !important;
    flex: none !important;
    align-self: start !important;
  }

  .single-layout .article-main{
    grid-column: 2 !important;
    min-width: 0 !important;
  }

  /* Desktop variant visible */
  .single-related--desktop{ display:block; }
  .single-related--mobile{ display:none !important; }
}

@media (max-width: 768px){
  /* Mobile: hide desktop variant and show mobile block under the article */
  .single-related--desktop{ display:none !important; }
  .single-related--mobile{ display:block; }
}
html.baytak-mobile-menu-open, body.baytak-mobile-menu-open{ overflow: hidden; }

/* =====================================================
   Single layout (v17) — desktop sidebar beside hero image
   ===================================================== */

.single-page{ padding: 60px 0; }

/* Keep sticky sidebar reliable (avoid ancestor overflow clipping) */
.single-page,
.single-grid{ overflow: visible; }

/* Grid: header above card, sidebar beside the featured image (desktop) */
.single-grid{
  display: grid;
  /* Force physical LTR grid so the first track is ALWAYS the LEFT side (regardless of site RTL/LTR) */
  direction: ltr;
  /* LEFT: sidebar (flexible) | RIGHT: article (up to 860px) */
  grid-template-columns: clamp(240px, 26vw, 320px) minmax(0, 860px);
  justify-content: center;
  column-gap: 28px;
  row-gap: 18px;
  align-items: start;
}

/* Main column wrapper (header + article + mobile sidebar) */
.single-main{
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  direction: rtl;
}

/* (reserved) .single-main is not used in the current single template */

/* Keep sidebar content RTL */
.single-grid .sidebar{ direction: rtl; }

@media (max-width: 1200px) and (min-width: 769px){
  .single-grid{
    grid-template-columns: clamp(220px, 28vw, 290px) minmax(0, 1fr);
    column-gap: 22px;
  }
}
@media (max-width: 980px) and (min-width: 769px){
  .single-grid{
    grid-template-columns: clamp(200px, 32vw, 260px) minmax(0, 1fr);
    column-gap: 16px;
  }
}
/* Keep schema wrapper but make its children participate in grid */
.single-article-wrap{ display: contents; }

/* Prevent long content from forcing the grid wider (keeps layout stable) */
.single-head,
.single-card,
.single-grid .sidebar{ min-width: 0; }

/* Header inside the main column */
.single-main .single-head{
  max-width: none;
  margin: 0;
  text-align: center;
}
/* Center category badges + meta under breadcrumbs (single) */
.single-head .post-cats{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.single-head .post-cats .badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Title frame (single) — subtle, on-brand */
.single-head .article-title{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0 auto 14px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(26,107,60,.08), rgba(26,107,60,.02));
  box-shadow: 0 14px 40px rgba(26,107,60,.10);
  position: relative;
}
.single-head .article-title::after{
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -2px;
  height: 3px;
  background: var(--accent);
  border-radius: 999px;
  opacity: .9;
}

.single-head .article-meta{
  margin-top: 10px;
  line-height: 1.9;
  /* Improve contrast for meta items on top of hero/background images */
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(216, 232, 222, .9);
  border-radius: 999px;
  padding: 8px 14px;
  backdrop-filter: blur(6px);
  color: var(--dark);
  font-weight: 800;
}
.single-head .article-meta .meta-item{
  margin-inline: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dark);
  font-weight: 800;
}

.single-head .article-meta a{
  color: var(--brand-dark);
  font-weight: 900;
}
.single-head .article-meta a:hover{
  color: var(--brand-dark);
  text-decoration: underline;
}

@media (max-width: 768px){
  .single-head .article-title{
    padding: 12px 14px;
    border-radius: 16px;
  }
  .single-head .article-title::after{
    left: 14px;
    right: 14px;
  }
}

/* Article card inside the main column */
.single-main .single-card{
  max-width: none;
  margin: 0;
}
/* Sidebars (single):
   - Desktop sidebar is sticky beside the hero image.
   - Mobile sidebar is a normal block under the article.
   Having two separate DOM blocks prevents layout shifts when comments exist.
*/

/* Desktop sidebar: LEFT column, starts beside the featured image (row 2) */
.single-grid .sidebar--desktop{
  grid-column: 1;
  grid-row: 1;        /* align with the top of the main column (hero image is inside it) */
  width: 100%;
  max-width: 100%;
  align-self: start;  /* required for position:sticky to work in a grid */
  position: sticky;
  top: 90px;
}

/* Mobile sidebar: hidden by default (prevents double render on desktop) */
.single-grid .sidebar--mobile{ display: none !important; position: static !important; top: auto !important; }

/* (kept for safety) Hide the mobile sidebar on desktop */
@media (min-width: 769px){
  .single-grid .sidebar--mobile{ display: none !important; }
}
/* Make the card fill its column (no extra centering that can cause layout drift) */
.single-grid .single-article{
  width: 100%;
  max-width: none;
}

/* Remove width constraints inside the grid without killing the hero negative margins */
.single-grid .article-header,
.single-grid .article-rating-wrap,
.single-grid .article-content{
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.single-grid .article-hero-img{ max-width: none; }

/* Responsive: stack header -> article -> sidebar */
/* Stack ONLY on mobile. Keeps desktop layout stable even on smaller laptops. */
@media (max-width: 768px){
  .single-page{ padding: 28px 0 44px; }

  .single-grid{
    grid-template-columns: minmax(0, 860px);
    justify-content: center;
    column-gap: 0;
  }

  .single-article-wrap{ display: block; }

  .single-main{
    grid-column: 1;
    grid-row: 1;
  }

  /* On mobile we hide the sticky desktop sidebar and show the mobile block */
  .single-grid .sidebar--desktop{ display: none !important; }

  /* Mobile sidebar lives inside .single-main under the article */
  .single-grid .sidebar--mobile{
    display: block !important;
    width: 100%;
    max-width: 860px;
    margin: 18px auto 0;
    position: static !important;
    top: auto !important;
  }
}



/* Desktop: keep spacing consistent without forcing a fixed sidebar width */
@media (min-width: 769px){
  .single-grid{
    padding-left: 16px;
    padding-right: 16px;
  }
}
/* ─────────────────────────────────────────────────────────
   Global copy / right-click deterrence
   Note: This does not fully prevent copying.
   ───────────────────────────────────────────────────────── */
.baytak-no-copy {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.baytak-no-copy img {
  -webkit-user-drag: none;
  user-drag: none;
}
.baytak-no-copy input,
.baytak-no-copy textarea,
.baytak-no-copy select,
.baytak-no-copy button,
.baytak-no-copy [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

/* =====================================================
   Comments: prevent overflow that can break the single grid
   (keeps sidebar fixed beside the article on desktop)
   ===================================================== */
.comments-area,
.comment-list,
.comment-item,
.comment-body,
.comment-text{ max-width: 100%; }
.comment-text{ overflow-wrap: anywhere; word-break: break-word; }
.comment-text img,
.comment-text iframe,
.comment-text video{ max-width: 100%; height: auto; }

/* =====================================================
   Comments UI — blocks like the design screenshot
   ===================================================== */
.comment-block{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(26,107,60,.10);
  margin-top: 18px;
}
.comment-block__head{
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: right;
}
.comment-block__title{
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text);
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
}
.comment-block__title::after{
  content: '';
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 999px;
  opacity: .9;
}
.comment-block__body{
  padding: 16px;
}

/* List item styling */
.comment-block--list .comment-item{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 14px;
  background: rgba(26,107,60,.03);
  margin-bottom: 12px;
}
.comment-block--list .comment-item:last-child{ margin-bottom: 0; }

.comment-meta{
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}
.comment-avatar{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  border: 1px solid var(--border);
  background: rgba(26,107,60,.06);
  color: var(--brand);
  flex: 0 0 34px;
}
.comment-meta-text{ min-width: 0; }
.comment-author-name{ font-weight: 900; }
.comment-date{ display: block; font-size: .85rem; color: var(--muted); margin-top: 2px; }

.comment-text{ margin-top: 10px; line-height: 1.9; }

.comment-reply{ margin-top: 10px; }
.comment-reply a.reply-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
  font-weight: 800;
}

/* Form styling inside the block */
.comment-block--form form{ margin: 0; }
.comment-block--form .comment-notes{ margin: 0 0 14px; color: var(--muted); }
.comment-block--form .form-group{ margin-bottom: 12px; }
.comment-block--form .form-label{ font-weight: 900; }
.comment-block--form .form-control{
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
}
.comment-block--form textarea.form-control{ resize: vertical; }
.comment-block--form .form-submit{ margin-top: 12px; text-align: left; }
.comment-block--form .form-submit .btn{ border-radius: 999px; padding: 10px 16px; font-weight: 900; }

/* Reply title + cancel link alignment */
.comment-block--form .comment-reply-title{ margin: 0; }
.comment-block--form .comment-reply-title small a{ font-weight: 800; }

@media (max-width: 480px){
  .comment-block__body{ padding: 14px; }
  .comment-block--list .comment-item{ padding: 12px; }
}


/* ─── ACCESSIBILITY: CONTRAST FIX (PageSpeed) ─────────────────────────────── */
/* Ensure rating widget text meets WCAG contrast on light backgrounds */
.rating-widget{
  color: #1f2a25;
}
.rating-widget .rating-count{
  color: #4a5a50 !important;
  font-weight: 700;
}
/* In case some templates use .rating-count outside the widget */
.rating-count{
  color: #4a5a50;
}
