/* ============================================================
   NOOR PRIME — MAIN.CSS
   Component styles for header, footer, cards, pages.
   ============================================================ */

/* ════════════════════════════════════════════════════════════
   TOP CONTACT BAR
   ════════════════════════════════════════════════════════════ */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  font-size: .75rem;
  line-height: 1;
  display: none;
}
@media (min-width:768px) { .top-bar { display: block; } }
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  gap: 1rem;
}
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: color .15s;
}
.top-bar-item:hover { color: var(--accent); }
.top-bar-sep {
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,.2);
}
.top-bar-hours { display: none; }
@media (min-width:1200px) { .top-bar-hours { display: inline-flex; } }
.top-bar-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  transition: transform .15s;
}
.top-bar-wa:hover { transform: scale(1.15); color: #fff; }
.top-bar-social {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.top-bar-social a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .15s;
  display: inline-flex;
}
.top-bar-social a:hover { color: var(--accent); }
.top-bar-lang {
  display: flex;
  align-items: center;
  gap: .15rem;
  background: rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 2px;
  margin-left: .5rem;
}
.top-bar-lang ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.top-bar-lang a {
  display: block;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .7rem;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.top-bar-lang a:hover,
.top-bar-lang .current-lang a { background: var(--accent); color: #fff; }

/* ════════════════════════════════════════════════════════════
   MAIN HEADER
   ════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 0 var(--border-color);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}
@media (min-width:1024px) { .header-inner { height: 72px; } }

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img { height: 44px; width: auto; }
@media (min-width:1024px) { .site-logo img { height: 48px; } }
.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--primary);
}
.logo-text span {
  display: block;
  font-size: .6rem;
  font-weight: 500;
  color: var(--muted-fg);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════
   DESKTOP NAVIGATION + MEGA MENU
   ════════════════════════════════════════════════════════════ */
.primary-nav-wrapper { display: none; }
@media (min-width:1024px) { .primary-nav-wrapper { display: flex; align-items: center; } }

.primary-nav {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav > li { position: relative; }
.primary-nav > li > a {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem .8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .85rem;
  color: var(--foreground);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  white-space: nowrap;
  position: relative;
}
.primary-nav > li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .25s ease, left .25s ease;
  border-radius: 1px;
}
.primary-nav > li > a:hover::after,
.primary-nav > li.current-menu-item > a::after,
.primary-nav > li.current-menu-ancestor > a::after {
  width: calc(100% - 1.6rem);
  left: .8rem;
}
.primary-nav > li > a:hover,
.primary-nav > li.current-menu-item > a,
.primary-nav > li.current-menu-ancestor > a {
  color: var(--primary);
}

/* Chevron on parent items */
.primary-nav > li.menu-item-has-children > a .nav-chevron {
  display: inline-block;
  width: .4em;
  height: .4em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-.15em);
  transition: transform .2s;
  margin-left: .15rem;
}
.primary-nav > li.menu-item-has-children:hover > a .nav-chevron {
  transform: rotate(-135deg) translateY(-.1em);
}

/* Mega dropdown */
.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 560px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  border-top: 3px solid var(--accent);
  padding: 1.5rem;
  z-index: 1000;
  list-style: none;
  margin: 0;
  animation: megaIn .2s ease both;
  display: none;
}
@keyframes megaIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.primary-nav > li.menu-item-has-children:hover > .sub-menu,
.primary-nav > li.menu-item-has-children:focus-within > .sub-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .25rem;
}
@media (min-width:1200px) {
  .primary-nav .sub-menu { min-width: 640px; }
}

/* Mega menu items */
.primary-nav .sub-menu li { margin: 0; }
.primary-nav .sub-menu a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .85rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s, transform .15s;
}
.primary-nav .sub-menu a:hover {
  background: rgba(138,21,56,.04);
  color: var(--primary);
  transform: translateX(4px);
}
html[dir="rtl"] .primary-nav .sub-menu a:hover { transform: translateX(-4px); }

/* View All Services link */
.primary-nav .sub-menu .menu-view-all {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: .5rem;
  padding-bottom: .5rem;
}
.primary-nav .sub-menu .menu-view-all a {
  color: var(--primary);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* RTL mega menu */
html[dir="rtl"] .primary-nav .sub-menu {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

/* ════════════════════════════════════════════════════════════
   HEADER ACTIONS
   ════════════════════════════════════════════════════════════ */
.header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.header-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  color: var(--foreground);
  transition: border-color .15s, color .15s, background .15s;
}
.header-search-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(138,21,56,.04);
}
.header-cta {
  display: none;
  align-items: center;
  gap: .4rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .8rem;
  padding: .55rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
@media (min-width:1024px) { .header-cta { display: inline-flex; } }
.header-cta:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212,175,55,.3);
}

/* Hamburger */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
@media (min-width:1024px) { .menu-toggle { display: none; } }
.hamburger-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.hamburger-lines span {
  display: block;
  height: 2px;
  background: var(--foreground);
  border-radius: 1px;
  transition: transform .25s ease, opacity .2s ease, width .2s ease;
}
.hamburger-lines span:nth-child(2) { width: 16px; }
.menu-toggle[aria-expanded="true"] .hamburger-lines span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger-lines span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .hamburger-lines span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ════════════════════════════════════════════════════════════
   MOBILE DRAWER
   ════════════════════════════════════════════════════════════ */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  visibility: hidden;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  z-index: 2000;
  box-shadow: -8px 0 30px rgba(0,0,0,.15);
  transition: right .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  overscroll-behavior: contain;
}
html[dir="rtl"] .mobile-drawer { right: auto; left: -100%; transition-property: left; }
.mobile-drawer.open { right: 0; visibility: visible; }
html[dir="rtl"] .mobile-drawer.open { left: 0; visibility: visible; }
.mobile-drawer-inner { padding: 4.5rem 0 2rem; }
.body-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease;
}
.body-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }

/* Mobile search */
.mobile-search { padding: 0 1.25rem 1rem; }
.mobile-search-field {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: .6rem .75rem;
}
.mobile-search-field svg { flex-shrink: 0; color: var(--muted-fg); }
.mobile-search-field input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--foreground);
  outline: none;
}

/* Mobile nav links */
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .9rem;
  color: var(--foreground);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  transition: color .15s, background .15s;
}
.mobile-nav a:hover,
.mobile-nav .current-menu-item > a { color: var(--primary); background: rgba(138,21,56,.03); }

/* Mobile sub-menu accordion */
.mobile-nav .menu-item-has-children > a .mobile-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--background);
  flex-shrink: 0;
  transition: transform .25s, background .2s, color .2s;
}
.mobile-nav .menu-item-has-children.open > a .mobile-arrow {
  transform: rotate(180deg);
  background: var(--primary);
  color: #fff;
}
.mobile-nav .sub-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--background);
  border-left: 3px solid var(--accent);
}
.mobile-nav .sub-menu.open { display: block; }
.mobile-nav .sub-menu a {
  padding: .65rem 1.25rem .65rem 2rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted-fg);
}
html[dir="rtl"] .mobile-nav .sub-menu a {
  padding-left: 1.25rem;
  padding-right: 2rem;
}
html[dir="rtl"] .mobile-nav .sub-menu { border-left: none; border-right: 3px solid var(--accent); }

/* Mobile drawer contact section */
.mobile-drawer-contact { padding: 1.25rem; }
.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: .75rem;
}
.mobile-contact-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .75rem;
  font-size: .85rem;
  color: var(--foreground);
  text-decoration: none;
  background: var(--background);
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.mobile-contact-link:hover { background: rgba(138,21,56,.06); color: var(--primary); }
.mobile-contact-link--wa { background: rgba(37,211,102,.08); color: #128C7E; }
.mobile-contact-link--wa:hover { background: rgba(37,211,102,.15); }

/* ════════════════════════════════════════════════════════════
   SEARCH OVERLAY
   ════════════════════════════════════════════════════════════ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease;
}
.search-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.search-overlay-inner {
  width: 100%;
  max-width: 580px;
  padding: 0 1.5rem;
  transform: translateY(-20px);
  transition: transform .25s ease;
}
.search-overlay.open .search-overlay-inner { transform: translateY(0); }
.search-overlay-form {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
.search-overlay-form svg { flex-shrink: 0; color: var(--muted-fg); }
.search-overlay-form input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--foreground);
  outline: none;
}
.search-overlay-form input::placeholder { color: var(--muted-fg); }
.search-overlay-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--background);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted-fg);
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.search-overlay-close:hover { background: var(--primary); color: #fff; }
.search-hint {
  text-align: center;
  margin-top: .75rem;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* ════════════════════════════════════════════════════════════
   WHATSAPP FAB
   ════════════════════════════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #25D366;
  color: #fff;
  padding: .75rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .85rem;
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
  z-index: 999;
  transition: background .2s, transform .2s, box-shadow .2s;
  animation: fabPulse 2s ease-in-out infinite;
}
html[dir="rtl"] .whatsapp-fab { right: auto; left: 1.5rem; }
.whatsapp-fab:hover {
  background: #1da851;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  animation: none;
}
.whatsapp-fab svg { flex-shrink: 0; }
.fab-label { display: none; }
@media (min-width:768px) { .fab-label { display: inline; } }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,.35); }
  50%      { box-shadow: 0 4px 24px rgba(37,211,102,.55); }
}

/* ── SITE FOOTER ─────────────────────────────────────────── */
.site-footer {
  background-color: var(--foreground);
  color: rgba(255,255,255,0.8);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.footer-col p,
.footer-col li,
.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  text-decoration: none;
  transition: color 0.2s;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-logo span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ── FLOATING WHATSAPP BUTTON ────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background-color: #25D366;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: var(--transition);
  max-width: 56px;
  overflow: hidden;
}

html[dir="rtl"] .whatsapp-fab {
  right: auto;
  left: 2rem;
}

.whatsapp-fab:hover {
  max-width: 200px;
  padding: 0.75rem 1.25rem;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-fab svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.whatsapp-fab .fab-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}

.whatsapp-fab:hover .fab-label {
  opacity: 1;
}

/* ── HOMEPAGE HERO ───────────────────────────────────────── */
.home-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-color: var(--primary-dark);
  overflow: hidden;
}

.home-hero .hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.home-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(138,21,56,0.92) 0%, rgba(47,47,47,0.75) 100%);
}

.home-hero .npt-container {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.home-hero h1 {
  color: #ffffff;
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.home-hero .hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.home-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Trust bar */
.trust-bar {
  background-color: var(--foreground);
  color: rgba(255,255,255,0.9);
  padding: 0.75rem 0;
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.3px;
}

.trust-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ── SERVICE CARDS ───────────────────────────────────────── */
.service-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--accent);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(138,21,56,0.08), rgba(212,175,55,0.12));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
}

.service-card h3 {
  font-size: 1.1rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.service-card:hover h3 {
  color: var(--primary);
}

.service-card p {
  font-size: 0.875rem;
  color: var(--muted-fg);
  flex: 1;
  margin-bottom: 1.25rem;
}

.service-card .card-link {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap 0.2s;
}

.service-card:hover .card-link {
  gap: 0.625rem;
  color: var(--accent);
}

/* ── PROJECT CARDS ───────────────────────────────────────── */
.project-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}

.project-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.project-card .project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.project-card .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-card .project-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.project-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.project-card p {
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-bottom: 1rem;
}

/* ── TESTIMONIAL CARDS ───────────────────────────────────── */
.testimonial-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
  border-left: 4px solid var(--accent);
  position: relative;
}

html[dir="rtl"] .testimonial-card {
  border-left: none;
  border-right: 4px solid var(--accent);
}

.testimonial-card .quote-icon {
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.15;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
  font-family: Georgia, serif;
}

html[dir="rtl"] .testimonial-card .quote-icon {
  right: auto;
  left: 1.5rem;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--foreground);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-author-info strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--foreground);
}

.testimonial-author-info span {
  font-size: 0.8rem;
  color: var(--muted-fg);
}

/* ── CTA SECTION ─────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.cta-section .cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ── SINGLE SERVICE PAGE ─────────────────────────────────── */
.service-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 1024px) {
  .service-layout {
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    padding-top: 4rem;
    padding-bottom: 5rem;
  }
}

html[dir="rtl"] .service-layout {
  direction: rtl;
}

.service-content section {
  margin-bottom: 3rem;
}

.service-content h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
}

@media (min-width: 640px) {
  .features-list { grid-template-columns: repeat(2, 1fr); }
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: var(--foreground);
  line-height: 1.5;
}

.features-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  background-color: var(--success);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

/* Service sidebar */
.service-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-form-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-medium);
  border-top: 4px solid var(--accent);
}

.sidebar-form-card h3 {
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.sidebar-form-card p {
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-bottom: 1.25rem;
}

.sidebar-whatsapp {
  background: #25D366;
  color: #ffffff;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  margin-top: 1rem;
}

.sidebar-whatsapp:hover {
  background: #1da851;
  color: #ffffff;
}

/* Service page FAQs */
.faq-list h3 {
  font-size: 1.05rem;
  color: var(--foreground);
  margin-bottom: 0.375rem;
  font-family: var(--font-heading);
}

.faq-list p {
  font-size: 0.9rem;
  color: var(--muted-fg);
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

html[dir="rtl"] .faq-list p {
  padding-left: 0;
  padding-right: 1rem;
  border-left: none;
  border-right: 3px solid var(--accent);
}

/* ── BLOG ────────────────────────────────────────────────── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

@media (min-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr 300px;
    gap: 3rem;
  }
}

.blog-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.blog-card .post-thumbnail {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.blog-card .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .post-thumbnail img {
  transform: scale(1.04);
}

.blog-card .card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card .post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted-fg);
  margin-bottom: 0.75rem;
}

.blog-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.625rem;
}

.blog-card h2 a {
  color: var(--foreground);
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: var(--primary);
}

.blog-card .excerpt {
  font-size: 0.875rem;
  color: var(--muted-fg);
  flex: 1;
  margin-bottom: 1.25rem;
}

/* Single post */
.post-content {
  max-width: 720px;
}

.post-content h2 { font-size: 1.75rem; color: var(--primary); margin: 2rem 0 1rem; }
.post-content h3 { font-size: 1.35rem; color: var(--foreground); margin: 1.5rem 0 0.75rem; }
.post-content p  { color: var(--foreground); line-height: 1.8; margin-bottom: 1.25rem; }
.post-content ul,
.post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { margin-bottom: 0.375rem; line-height: 1.7; }
.post-content blockquote {
  border-left: 4px solid var(--accent);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: rgba(212,175,55,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--foreground);
}

html[dir="rtl"] .post-content blockquote {
  border-left: none;
  border-right: 4px solid var(--accent);
  border-radius: var(--radius) 0 0 var(--radius);
}

.post-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.post-content a {
  color: var(--primary);
  text-decoration: underline;
}

/* Post meta header */
.post-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

.post-header-meta .author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* ── PROJECTS ARCHIVE ────────────────────────────────────── */
.projects-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--border-color);
  background: transparent;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-fg);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* ── CONTACT PAGE ────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.3fr;
  }
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(138,21,56,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-info-text strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.contact-info-text p,
.contact-info-text a {
  font-size: 0.9rem;
  color: var(--muted-fg);
  margin: 0;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  margin-top: 2rem;
}

.contact-map iframe {
  width: 100%;
  height: 280px;
  border: none;
  display: block;
}

/* ── ABOUT PAGE ──────────────────────────────────────────── */
.about-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-story { grid-template-columns: 1fr 1fr; }
}

.about-story img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  width: 100%;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.value-card .value-icon {
  width: 56px;
  height: 56px;
  background: rgba(138,21,56,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
}

.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.value-card p {
  font-size: 0.875rem;
  color: var(--muted-fg);
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .trust-badges { grid-template-columns: repeat(4, 1fr); }
}

.trust-badge {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
  border: 2px solid var(--border-color);
  transition: var(--transition);
}

.trust-badge:hover {
  border-color: var(--accent);
}

.trust-badge .badge-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.trust-badge strong {
  display: block;
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
}

/* ── 404 PAGE ────────────────────────────────────────────── */
.error-404 {
  text-align: center;
  padding: 6rem 0;
}

.error-404 .error-code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.12;
  line-height: 1;
  margin-bottom: -2rem;
  font-family: var(--font-heading);
}

.error-404 h1 {
  font-size: 2rem;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.error-404 p {
  color: var(--muted-fg);
  max-width: 400px;
  margin: 0 auto 2rem;
}

/* ── PAGINATION ──────────────────────────────────────────── */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links .current {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* ── SEARCH FORM ─────────────────────────────────────────── */
.search-form {
  display: flex;
  gap: 0;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  color: var(--foreground);
  background: var(--input-bg);
}

html[dir="rtl"] .search-form input[type="search"] {
  border-right: 1px solid var(--border-color);
  border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.search-form button {
  padding: 0.625rem 1rem;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  transition: background 0.2s;
}

html[dir="rtl"] .search-form button {
  border-radius: var(--radius) 0 0 var(--radius);
}

.search-form button:hover {
  background: var(--primary-dark);
}

/* ── ELEMENTOR COMPATIBILITY ─────────────────────────────── */
.elementor-section .npt-container { max-width: 100%; }

body.elementor-page header.site-header { position: relative; }

.e-con-inner > .elementor-widget:last-child { margin-bottom: 0; }


/* Social icons in footer
   ========================================================= */
.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  flex-shrink: 0;
}
.footer-social-link:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
}
.footer-social-link--wa {
  border-color: rgba(37,211,102,.4);
  color: #25D366;
}
.footer-social-link--wa:hover {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}


/* =============================================================
   LEGAL PAGES (Privacy Policy, Terms & Conditions)
   ============================================================= */
.legal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .legal-layout {
    grid-template-columns: 260px 1fr;
    gap: 3rem;
  }
}
.legal-toc { display: none; }
@media (min-width: 1024px) { .legal-toc { display: block; } }
.legal-toc-card { position: sticky; top: 6rem; }
.legal-toc-list { list-style: none; margin: 0; padding: 0; }
.legal-toc-list li { margin: 0; }
.legal-toc-list a {
  display: block;
  padding: .45rem .75rem;
  font-size: .85rem;
  color: var(--foreground);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .15s, color .15s;
  border-left: 2px solid transparent;
}
.legal-toc-list a:hover {
  background: var(--background);
  color: var(--primary);
  border-left-color: var(--accent);
}
.legal-intro {
  background: var(--card-bg);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-subtle);
}
.legal-intro p { margin: 0; line-height: 1.7; }
.legal-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
}
.legal-section:last-of-type { border-bottom: none; }
.legal-section h2 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.legal-section h3 {
  font-size: 1rem;
  color: var(--foreground);
  margin: 1.25rem 0 .6rem;
}
.legal-list {
  list-style: none;
  margin: .75rem 0 1rem;
  padding: 0;
}
.legal-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .5rem;
  font-size: .95rem;
  line-height: 1.6;
}
.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.legal-note {
  background: rgba(212,175,55,.08);
  border-left: 3px solid var(--accent);
  padding: .75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .9rem;
  margin-top: 1rem;
}
.legal-contact-box {
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}
.legal-contact-box p { margin-bottom: .5rem; }
.legal-contact-box p:last-child { margin-bottom: 0; }
.legal-footer-links { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }

/* =============================================================
   SITEMAP PAGE
   ============================================================= */
.sitemap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) { .sitemap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sitemap-grid { grid-template-columns: repeat(4, 1fr); } }
.sitemap-section {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
  border-top: 3px solid var(--accent);
}
.sitemap-section-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border-color);
}
.sitemap-section-header svg { color: var(--primary); flex-shrink: 0; }
.sitemap-section-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}
.sitemap-list { list-style: none; margin: 0; padding: 0; }
.sitemap-list li { margin-bottom: .35rem; }
.sitemap-list a {
  font-size: .9rem;
  color: var(--foreground);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: color .15s, padding-left .15s;
}
.sitemap-list a::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.sitemap-list a:hover { color: var(--primary); padding-left: .35rem; }

/* =============================================================
   THANK YOU PAGE
   ============================================================= */
.thank-you-hero {
  background: linear-gradient(135deg, var(--background) 0%, #fff 100%);
  padding: 5rem 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.thank-you-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.thank-you-icon {
  width: 6rem;
  height: 6rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(138,21,56,.25);
  animation: ty-pop .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes ty-pop {
  from { opacity: 0; transform: scale(.5); }
  to   { opacity: 1; transform: scale(1); }
}
.thank-you-inner h1 {
  font-size: clamp(2rem,5vw,3rem);
  color: var(--primary);
  margin-bottom: 1rem;
}
.thank-you-lead {
  font-size: 1.1rem;
  color: var(--muted-fg);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.thank-you-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  margin-bottom: 2.5rem;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
}
@media (min-width: 640px) {
  .thank-you-steps { flex-direction: row; }
  .ty-step { flex: 1; }
}
.ty-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.ty-step-num {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .875rem;
  font-family: var(--font-heading);
}
.ty-step strong { display: block; font-size: .95rem; margin-bottom: .25rem; color: var(--foreground); }
.ty-step p { font-size: .85rem; color: var(--muted-fg); margin: 0; }
.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.btn-whatsapp-ty {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #25D366;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .875rem;
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .2s;
}
.btn-whatsapp-ty:hover { background: #1da851; color: #fff; }
.thank-you-browse {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}
.ty-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}
.ty-quick-link {
  display: inline-block;
  padding: .4rem .9rem;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--foreground);
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.ty-quick-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* =============================================================
   404 PAGE
   ============================================================= */
.error-404-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
}
.error-404-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.error-404-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.error-404-num {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  opacity: .15;
}
.error-404-icon {
  width: clamp(4rem,10vw,6rem);
  height: clamp(4rem,10vw,6rem);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(138,21,56,.25);
}
.error-404-icon svg { width: 45%; height: 45%; }
.error-404-inner h1 { font-size: clamp(1.5rem,4vw,2.5rem); color: var(--primary); margin-bottom: 1rem; }
.error-404-lead { font-size: 1.05rem; color: var(--muted-fg); max-width: 480px; margin: 0 auto 2rem; line-height: 1.7; }
.error-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.error-404-search {
  max-width: 420px;
  margin: 0 auto 2.5rem;
}
.error-404-services { padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.error-404-service-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-top: .75rem;
}
.error-404-service-chip {
  display: inline-block;
  padding: .4rem .9rem;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--foreground);
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.error-404-service-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* =============================================================
   FOOTER LEGAL LINKS
   ============================================================= */
.footer-legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8rem;
}
.footer-legal-links a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .15s;
}
.footer-legal-links a:hover { color: var(--accent); }
.footer-legal-links span { color: rgba(255,255,255,.3); }


/* =============================================================
   TRUST METRICS BAR
   ============================================================= */
.trust-metrics {
  padding: 3rem 0;
  background: #fff;
}
@media (min-width: 768px) { .trust-metrics { padding: 4rem 0; } }
.trust-metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .trust-metrics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trust-metrics-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-color);
  transition: box-shadow .2s, transform .2s;
}
.trust-metric-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.trust-metric-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.trust-metric-body { flex: 1; }
.trust-metric-big {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.trust-metric-label {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 600;
  color: var(--foreground);
  margin: .25rem 0;
}
.trust-metric-desc {
  font-size: .8rem;
  color: var(--muted-fg);
  line-height: 1.5;
  margin: 0;
}
.trust-metric-link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-top: .5rem;
  transition: color .15s;
}
.trust-metric-link:hover { color: var(--accent); }

/* Google stars */
.google-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  margin-bottom: .25rem;
}
.google-rating {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--foreground);
  margin-left: .5rem;
}

/* QR Code */
.qr-code-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: .5rem;
  border: 2px solid var(--border-color);
  margin-bottom: .75rem;
  display: inline-block;
  line-height: 0;
}
.qr-code-wrap img { border-radius: var(--radius-sm); }

/* =============================================================
   SERVICE GUARANTEE SECTION
   ============================================================= */
.service-guarantee {
  background: linear-gradient(180deg, var(--background) 0%, #fff 100%);
}
.guarantee-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .guarantee-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .guarantee-grid { grid-template-columns: repeat(3, 1fr); } }
.guarantee-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.guarantee-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .3s ease;
  transform-origin: left;
}
.guarantee-card:hover::before { transform: scaleX(1); }
.guarantee-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(212,175,55,.3);
}
.guarantee-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(138,21,56,.06);
  border-radius: 50%;
  color: var(--primary);
  transition: background .2s, color .2s;
}
.guarantee-card:hover .guarantee-icon {
  background: var(--primary);
  color: #fff;
}
.guarantee-card h3 {
  font-size: 1rem;
  color: var(--foreground);
  margin-bottom: .5rem;
}
.guarantee-card p {
  font-size: .875rem;
  color: var(--muted-fg);
  line-height: 1.6;
  margin: 0;
}


/* =============================================================
   BLOG — cards, single post, related
   ============================================================= */

/* Post card extends .project-card; only differences below */
.post-card .post-card-meta {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  color: var(--muted-fg);
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: .75rem;
  letter-spacing: .02em;
}
/* Blog card logo fallback (no featured image) */
.post-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  width: 100%;
  background:
    radial-gradient(circle at 50% 40%, rgba(244,163,0,.06), transparent 70%),
    linear-gradient(135deg, #ffffff 0%, var(--background) 100%);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  padding: 1.5rem;
}
.post-card-fallback-logo {
  max-width: 62%;
  max-height: 78%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: .92;
  transition: transform .3s ease, opacity .3s ease;
}
.post-card:hover .post-card-fallback-logo {
  transform: scale(1.04);
  opacity: 1;
}

/* Single post logo fallback (no featured image) */
.single-post-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 960px;
  margin: 0 auto 3rem;
  aspect-ratio: 16 / 6;
  background:
    radial-gradient(circle at 50% 45%, rgba(244,163,0,.07), transparent 70%),
    linear-gradient(135deg, #ffffff 0%, var(--background) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  padding: 2rem;
}
.single-post-fallback-logo {
  max-width: 320px;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (max-width: 600px) {
  .single-post-fallback { aspect-ratio: 16 / 8; padding: 1.5rem; }
  .single-post-fallback-logo { max-width: 200px; }
  .post-card-fallback-logo { max-width: 70%; }
}

/* ── Single post layout ───────────────────────────────────── */
.single-post-article {
  max-width: 760px;
  margin: 0 auto;
}

.entry-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--foreground);
  word-wrap: break-word;
}
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content p { margin-bottom: 1.25rem; line-height: 1.8; }
.entry-content h2 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.entry-content h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: .75rem;
}
.entry-content h4 {
  font-size: 1.1rem;
  color: var(--foreground);
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}
.entry-content ul, .entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  list-style: revert;
}
.entry-content li { margin-bottom: .5rem; line-height: 1.7; }
.entry-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s;
}
.entry-content a:hover { color: var(--accent); }
.entry-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--background);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--muted-fg);
  font-size: 1.05rem;
}
html[dir="rtl"] .entry-content blockquote {
  border-left: none;
  border-right: 4px solid var(--accent);
  border-radius: var(--radius) 0 0 var(--radius);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  margin: 1.5rem auto;
}
.entry-content pre {
  background: var(--sidebar-bg);
  color: #f0f0f0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: .875rem;
}
.entry-content code {
  background: var(--background);
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .9em;
  color: var(--primary);
}
.entry-content pre code { background: transparent; padding: 0; color: inherit; }
.entry-content hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2.5rem 0;
}
.entry-content strong { color: var(--foreground); font-weight: 700; }

/* Tags row */
.post-tags {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.post-tags strong {
  font-family: var(--font-heading);
  font-size: .85rem;
  color: var(--primary);
  margin-right: .25rem;
}
.post-tags .badge {
  text-decoration: none;
  transition: background .15s, color .15s;
}
.post-tags .badge:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Author bio card */
.post-author-card {
  margin-top: 2.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* CTA card under article */
.post-cta-card {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--background) 100%);
  border: 1px solid var(--border-color);
}
.post-cta-buttons {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* Post navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}
.post-nav-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.post-nav-card--next { text-align: right; }
html[dir="rtl"] .post-nav-card--next { text-align: left; }
.post-nav-label {
  font-family: var(--font-heading);
  font-size: .7rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.post-nav-card a { text-decoration: none; }
.post-nav-title {
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.4;
  transition: color .15s;
}
.post-nav-card:hover .post-nav-title { color: var(--primary); }

/* Filter buttons used on blog archive (reuses .filter-btn from projects but anchor-styled) */
a.filter-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* Pagination */
.pagination .nav-links,
.navigation.pagination .nav-links,
.wp-pagenavi {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  justify-content: center;
}
.pagination .page-numbers,
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 .75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .85rem;
  color: var(--foreground);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pagination .page-numbers.dots {
  background: transparent;
  border-color: transparent;
}


/* =============================================================
   CARD IMAGE CROP FIX — guarantees any featured image fits the tile
   (.project-image is an <a> = inline by default; aspect-ratio is
    ignored on inline elements, so force block-level cropping)
   ============================================================= */
.project-card .project-image,
.post-card .project-image,
.project-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  line-height: 0;
}
.project-image img,
.post-card .project-image img,
.project-card .project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}
.project-card:hover .project-image img,
.post-card:hover .project-image img {
  transform: scale(1.05);
}
/* Keep the body always visible below the cropped image */
.project-card, .post-card {
  display: flex;
  flex-direction: column;
}
.project-card .project-body,
.post-card .project-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card .project-body .btn-corporate-outline {
  margin-top: auto;
  align-self: flex-start;
}
