@font-face {
  font-family: "Saudi";
  src: url("/assets/fonts/saudi-medium.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Hacen";
  src: url("/assets/fonts/hacen-saudi.woff2") format("woff2");
  font-display: swap;
}

:root {
  /* Wareed brand palette (Elementor globals on wareed.com.sa) */
  --primary: #95389e;        /* global primary */
  --primary-dark: #5e3296;   /* headings / outline buttons */
  --purple-deep: #621469;    /* extra deep purple */
  --secondary: #43d8c9;      /* global secondary (teal) */
  --accent: #1bbbac;         /* global accent (teal) */
  --whatsapp: #128c7e;       /* floating contact buttons */
  --primary-light: #f6ecf8;
  --lilac-border: #d9c9ea;
  --ink: #2b2138;
  --muted: #717171;          /* global text */
  --bg: #ffffff;
  --bg-soft: #faf7fc;
  --radius-lg: 28px;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(94, 50, 150, 0.12);
  --font-head: "Saudi", "Hacen", "Rubik", sans-serif;
  --font-body: "Rubik", "Segoe UI", Tahoma, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.5;
}

/* ── Top bar ──────────────────────────────── */
.topbar {
  background: #3b2058;
  color: #fff;
  padding: 10px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.topbar .socials {
  display: flex;
  gap: 18px;
  align-items: center;
}

.topbar .socials svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.topbar .branches-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.topbar .branches-link svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* ── Header ───────────────────────────────── */
header.site-header {
  background: #fff;
  box-shadow: 0 6px 24px rgba(59, 32, 88, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo img {
  height: 62px;
  width: auto;
}

nav.main-nav {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  align-items: center;
}

nav.main-nav a {
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--ink);
  transition: 0.15s;
}

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

/* ── Buttons (Wareed style) ───────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: 0.15s;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: #fff;
  color: var(--primary-dark);
  border: 1.5px solid var(--primary-dark);
}

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

.btn-pill {
  border-radius: 30px;
  background: var(--primary-dark);
  color: #fff;
  padding: 12px 36px;
}

.btn-pill:hover {
  background: var(--primary);
}

.btn-pill svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* ── Hero carousel ────────────────────────── */
.hero-wrap {
  padding: 28px 0 8px;
}

.hero-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-carousel .slide {
  display: none;
}

.hero-carousel .slide.active {
  display: block;
}

.hero-carousel .slide img {
  width: 100%;
  height: auto;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 4px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--lilac-border);
  cursor: pointer;
  transition: 0.2s;
}

.hero-dots button.active {
  background: var(--primary-dark);
  transform: scale(1.2);
}

/* ── About cards (وريد كير + وريد لاب, side by side after hero) ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-card {
  border: 2px solid var(--primary-dark);
  border-radius: 24px;
  padding: 28px 32px;
  display: flex;
  flex-direction: row-reverse; /* text at inline-start (right), logo at inline-end (left) */
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  background: #fff;
  box-shadow: 0 6px 24px rgba(59, 32, 88, 0.06);
}

.about-card .logo-box {
  border-radius: 16px;
  padding: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #fff;
}

.about-card .logo-box img {
  width: 170px;
}

.about-card .about-text {
  max-width: 52ch;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 1.15rem;
}

.link-arrow:hover {
  color: var(--primary);
}

.link-arrow svg {
  width: 20px;
  height: 20px;
  fill: var(--primary-dark);
}

.about-card h2 {
  color: var(--primary-dark);
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* ── Sections ─────────────────────────────── */
section {
  padding: 48px 0;
}

section.soft {
  background: var(--bg-soft);
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: 2.1rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.section-head p {
  color: var(--muted);
  font-family: var(--font-body);
}

.section-cta {
  text-align: center;
  margin-top: 32px;
}

/* ── Cards ────────────────────────────────── */
.grid {
  display: grid;
  gap: 24px;
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 6px 30px rgba(59, 32, 88, 0.08);
  overflow: hidden;
  transition: 0.2s;
}

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

.category-card {
  text-align: center;
  padding: 32px 24px;
  border: 1.5px solid var(--lilac-border);
  box-shadow: none;
}

.category-card .icon-circle {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--primary-light);
  display: grid;
  place-items: center;
}

.category-card .icon-circle svg {
  width: 38px;
  height: 38px;
  stroke: var(--primary-dark);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-card h3 {
  color: var(--primary-dark);
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.category-card p {
  color: var(--muted);
  font-size: 0.9rem;
  font-family: var(--font-body);
}

/* Service card — image panel + stacked buttons like wareed offer cards */
.service-card {
  display: flex;
  flex-direction: column;
}

.service-card .panel {
  background:
    radial-gradient(140% 160% at 15% 0%, #b565bd 0%, var(--primary) 40%, var(--primary-dark) 100%);
  color: #fff;
  padding: 26px 24px 22px;
  position: relative;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card .panel svg.service-icon {
  width: 44px;
  height: 44px;
  stroke: rgba(255, 255, 255, 0.95);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 10px;
}

.service-card .panel .watermark {
  position: absolute;
  inset-inline-start: 16px;
  top: 14px;
  width: 74px;
  opacity: 0.35;
  filter: brightness(0) invert(1);
}

.service-card .panel h3 {
  font-size: 1.25rem;
  line-height: 1.5;
}

.service-card .panel .price-tag {
  position: absolute;
  inset-inline-end: 16px;
  top: 14px;
  background: #fff;
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 4px 16px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.service-card .body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card .short {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
  margin-bottom: 18px;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-actions .btn {
  width: 100%;
}

/* Offer cards — real promo art, buttons below like wareed */
.service-card .offer-img {
  width: 100%;
  height: auto;
  display: block;
}

.service-card .card-title {
  font-size: 1.15rem;
  color: var(--ink);
  text-align: center;
  margin-bottom: 4px;
}

.service-card .card-price {
  text-align: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.detail-img {
  border-radius: 24px;
  margin-bottom: 24px;
  max-width: 480px;
  box-shadow: var(--shadow);
}

/* ── Stats ────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat {
  background: #fff;
  border: 1.5px solid var(--lilac-border);
  border-radius: 24px;
  padding: 36px 20px;
}

.stat h3 {
  font-size: 2.6rem;
  color: var(--primary);
}

.stat p {
  color: var(--muted);
}

/* ── Testimonials (accent bars like wareed) ── */
.testimonial {
  position: relative;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 6px 30px rgba(59, 32, 88, 0.07);
  padding: 32px 28px 28px;
  font-size: 0.98rem;
  margin-top: 14px;
}

.testimonial::before,
.testimonial::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 16px;
  background: var(--primary);
  border-radius: 4px;
}

.testimonial::before {
  top: -8px;
  inset-inline-start: 48px;
}

.testimonial::after {
  bottom: -8px;
  inset-inline-end: 48px;
}

.testimonial .who {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* ── Partners ─────────────────────────────── */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  align-items: center;
}

.partners-grid .partner {
  background: #fff;
  border: 1.5px solid var(--lilac-border);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  place-items: center;
  height: 110px;
}

.partners-grid img {
  max-height: 70px;
  width: auto;
  max-width: 100%;
}

/* ── Branches / map ───────────────────────── */
.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-card img {
  width: 100%;
}

/* ── FAQ ──────────────────────────────────── */
.faq-item {
  background: #fff;
  border: 1.5px solid var(--lilac-border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-dark);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--primary);
  font-size: 1.4rem;
  line-height: 1;
}

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

.faq-item .answer {
  padding: 0 20px 16px;
  color: var(--muted);
}

/* ── Service detail page ──────────────────── */
.breadcrumb {
  padding: 24px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--primary);
}

.detail {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 36px;
  align-items: start;
  padding: 28px 0 56px;
}

.detail h1 {
  color: var(--primary-dark);
  font-size: 2rem;
  margin-bottom: 14px;
}

.detail .desc {
  color: var(--muted);
  margin-bottom: 26px;
}

.detail h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.detail ul {
  margin: 0 0 26px;
  padding-right: 22px;
  color: var(--muted);
}

.detail ul li {
  margin-bottom: 6px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.chip {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.87rem;
}

.booking-box {
  background: #fff;
  border: 1.5px solid var(--lilac-border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 110px;
  text-align: center;
}

.booking-box .price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-head);
}

.booking-box .price small {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 400;
}

.booking-box .duration {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 4px 0 20px;
}

.booking-box .btn {
  width: 100%;
  margin-bottom: 10px;
}

.booking-box .hint {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Category page hero ───────────────────── */
.page-hero {
  background: radial-gradient(130% 190% at 85% 0%, #7c47a8 0%, var(--primary-dark) 55%, var(--purple-deep) 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.page-hero p {
  opacity: 0.9;
}

/* ── Agent navigation transition ──────────── */
.agent-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(94, 50, 150, 0.96), rgba(149, 56, 158, 0.96));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.agent-nav-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.agent-nav-overlay .nav-card {
  text-align: center;
  color: #fff;
  transform: translateY(8px);
  transition: transform 0.45s ease;
}

.agent-nav-overlay.visible .nav-card {
  transform: translateY(0);
}

.agent-nav-overlay .nav-logo {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  background: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  animation: agent-nav-pulse 1.1s ease-in-out infinite;
}

.agent-nav-overlay .nav-logo img {
  width: 58px;
}

.agent-nav-overlay .nav-text {
  font-family: var(--font-head);
  font-size: 1.15rem;
}

.agent-nav-overlay .nav-dots span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 10px 3px 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  animation: agent-nav-dot 1s infinite;
}

.agent-nav-overlay .nav-dots span:nth-child(2) { animation-delay: 0.15s; }
.agent-nav-overlay .nav-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes agent-nav-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes agent-nav-dot {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

/* ── Floating contact buttons ─────────────── */
.floaters {
  /* opposite corner from the tkana chat widget (which mounts bottom-right) */
  position: fixed;
  inset-inline-end: 22px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 60;
}

.floaters a {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: 0.15s;
}

.floaters a:hover {
  transform: scale(1.07);
}

.floaters svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

/* ── Footer ───────────────────────────────── */
footer {
  background: #3b2058;
  color: #fff;
  padding: 56px 0 24px;
  margin-top: 48px;
}

footer .footer-logo {
  height: 74px;
  width: auto;
  margin-bottom: 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

footer h4 {
  margin-bottom: 14px;
  font-size: 1.05rem;
  font-family: var(--font-head);
}

footer p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

footer a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  margin-bottom: 9px;
}

footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 960px) {
  nav.main-nav {
    display: none;
  }

  .about-card {
    padding: 20px;
    gap: 20px;
  }

  .about-card .logo-box img {
    width: 110px;
  }

  .detail {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-head h2 {
    font-size: 1.7rem;
  }
}
