/*
Theme Name: Jwansa Clinic
Theme URI: http://example.com/jwansa
Author: Jwansa
Author URI: http://example.com
Description: A custom theme for Jwansa Dental Clinic.
Version: 1.0
Text Domain: jwansa
*/

/* ======================================
   JWANSA DENTAL CLINIC — STYLESHEET
   RTL Arabic Layout
   ====================================== */

@font-face {
  font-family: 'Careem';
  src: url('fonts/CAREEM-REGULAR.DB5F2BCA26992ED25A89 (1).otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Careem';
  src: url('fonts/CAREEM-BOLD.4E85A226FB03BDDC2CB7.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Careem', sans-serif;
  direction: rtl;
  text-align: right;
  color: #1a1a2e;
  background: #ffffff;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

/* ---------- VARIABLES ---------- */
:root {
  --primary: rgba(33, 104, 148, 1);
  --primary-dark: rgba(23, 74, 108, 1);
  --primary-light: rgba(33, 104, 148, 0.1);
  --navy: #0d2137;
  --navy-2: #0a3d5c;
  --text-dark: #1a1a2e;
  --text-mid: #4a5568;
  --text-light: #718096;
  --white: #ffffff;
  --bg-light: #f7fafa;
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(33, 104, 148, 0.10);
  --shadow-md: 0 8px 32px rgba(33, 104, 148, 0.14);
  --shadow-lg: 0 16px 48px rgba(33, 104, 148, 0.18);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- LAYOUT ---------- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(10, 181, 176, 0.08);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 16px;
}

.section-icon {
  width: 18px;
  height: 18px;
}

.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  color: rgba(8, 61, 94, 1);
  line-height: 1.4;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;

  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(10, 181, 176, 0.35);
  transform: translateY(-2px);
}

.btn--hero {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  font-size: 16px;
  padding: 14px 36px;
  box-shadow: 0 8px 32px rgba(10, 181, 176, 0.4);
}

.btn--hero:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(10, 181, 176, 0.5);
}

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

.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--map {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  margin-top: 16px;
  width: fit-content;
}

.btn--map:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
  padding: 16px;
  font-size: 17px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

.navbar__logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.navbar__toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 8px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__links a {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 4px;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--primary);
  font-weight: 600;
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.navbar__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 400;
  color: var(--primary);
  direction: ltr;
}

.navbar__phone svg {
  flex-shrink: 0;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background-color: var(--bg-light);
  padding: 60px 0 40px;
  text-align: center;
}

.hero__top {
  margin-bottom: 32px;
}

.hero__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  color: rgba(8, 61, 94, 1);
  line-height: 1.4;
  margin-bottom: 8px;
}

.hero__sub {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.6;
}

.hero__media-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.hero__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-light);
  padding: 0 48px 36px 48px;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.hero__notch::before,
.hero__notch::after {
  content: '';
  position: absolute;
  top: 0;
  width: 24px;
  height: 24px;
  background-color: transparent;
  pointer-events: none;
}

.hero__notch::before {
  right: 100%;
  border-top-right-radius: 24px;
  box-shadow: 12px -12px 0 0 var(--bg-light);
}

.hero__notch::after {
  left: 100%;
  border-top-left-radius: 24px;
  box-shadow: -12px -12px 0 0 var(--bg-light);
}

.btn--hero-notch {
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  display: flex;
  align-items: center;
  font-weight: 400;
}

.hero__img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar-wrapper {
  padding: 0 24px;
  margin-top: -20px;
  position: relative;
  z-index: 10;
}

.stats-bar {
  background: var(--primary);
  border-radius: 16px;
  padding: 20px 32px;
  box-shadow: var(--shadow-sm);
}

.stats-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
  flex: 1;
  min-width: 250px;
}

.stat-item__icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.stat-item__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  flex-grow: 1;
}

.stat-item__text strong {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
}

.stat-item__text span {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.95;
}


/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services {
  background: var(--bg-light);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.08);
}

.service-card__body {
  padding: 24px 20px 20px 20px;
  text-align: right;
  flex-grow: 1;
}

.service-card__body h3 {
  font-size: 15px;
  font-weight: 600;
  color: rgba(8, 61, 94, 1);
  margin-bottom: 8px;
}

.service-card__body p {
  font-size: 13px;
  color: rgba(69, 69, 69, 1);
  line-height: 1.6;
  font-weight: 400;
}

.service-card__img-wrapper {
  padding: 0 16px 16px 16px;
}

.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease;
  display: block;
}

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

.services__footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 12px 16px 12px 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(8, 61, 94, 1);
  font-weight: 400;
  font-size: 15px;
}

.btn--cta {
  border-radius: 8px;
  padding: 8px 24px 8px 8px;
  font-weight: 400;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--white);
  border-radius: 50%;
}

/* ============================================================
   QUIZ / QUESTIONNAIRE SECTION
   ============================================================ */
.quiz {
  background: var(--white);
}

.quiz-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.quiz-features-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.quiz-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(8, 61, 94, 1);
  font-weight: 400;
  font-size: 16px;
}

.quiz-banner {
  border-radius: 16px;
  overflow: hidden;
}

.quiz-banner img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.quiz-action {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

/* ============================================================
   WHY CHOOSE US SECTION
   ============================================================ */
.why-us {
  background: var(--bg-light);
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.why-card:hover {
  border-color: rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.why-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.why-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition);
}

.why-card:hover .why-card__icon {
  transform: scale(1.05);
}

.why-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: rgba(8, 61, 94, 1);
  margin-bottom: 12px;
}

.why-card p {
  font-size: 13px;
  color: rgba(69, 69, 69, 1);
  line-height: 1.6;
}

/* ============================================================
   BOOKING SECTION
   ============================================================ */
.booking {
  background: var(--white);
}

.booking__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.booking__map {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  min-height: 400px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.booking__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.booking__map-cutout {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--white);
  padding: 24px;
  border-top-left-radius: 24px;
  z-index: 10;
}

.booking__submit-btn {
  box-shadow: 0 8px 24px rgba(33, 104, 148, 0.25);
}

.booking__form {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.form-group label {
  font-size: 15px;
  font-weight: 400;
  color: rgba(8, 61, 94, 1);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;

  font-size: 14px;
  color: rgba(69, 69, 69, 1);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-group textarea {
  resize: vertical;
}

.custom-select-wrapper {
  position: relative;
}

.custom-select-wrapper::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  border: none;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  padding-left: 36px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 181, 176, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a0aec0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--primary);
  color: var(--white);
  padding-top: 64px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr 1fr;
  gap: 24px;
  padding-bottom: 48px;
}

.footer__col {
  display: flex;
  flex-direction: column;
}

.footer__brand {
  align-items: flex-start;
}

.footer__logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  margin-bottom: 24px;
  filter: brightness(0) invert(1);
}

.footer__desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 250px;
}





.footer__socials {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

.social-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-icon:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.footer__links h4,
.footer__contact h4,
.footer__social h4 {
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 24px;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links ul li a {
  font-size: 14px;
  color: var(--white);
  transition: var(--transition);
  font-weight: 400;
}

.footer__links ul li a:hover {
  opacity: 0.8;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 14px;
}

.contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer__bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__bottom p {
  font-size: 12px;
  color: var(--white);
  font-weight: 400;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 {
  transition-delay: 0.1s;
}

.fade-up-delay-2 {
  transition-delay: 0.2s;
}

.fade-up-delay-3 {
  transition-delay: 0.3s;
}

.fade-up-delay-4 {
  transition-delay: 0.4s;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .booking__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .booking__map {
    height: 360px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .section-pad {
    padding: 60px 0;
  }

  /* Navbar */
  .navbar__toggle {
    display: flex;
    margin-right: auto;
  }

  .navbar__inner {
    flex-wrap: wrap;
    height: auto;
    padding: 16px 0;
  }

  .navbar__links,
  .navbar__actions {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 16px;
  }

  .navbar.is-open .navbar__links,
  .navbar.is-open .navbar__actions {
    display: flex;
  }

  .navbar__actions {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 24px;
  }

  /* Hero */
  .hero {
    min-height: 380px;
  }

  .hero__title {
    font-size: 22px;
  }

  /* Stats bar */
  .stats-bar__inner {
    justify-content: flex-start;
    gap: 12px;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    min-width: 140px;
    flex: 0 0 calc(50% - 8px);
  }

  /* Services */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Quiz */
  .quiz__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Why us */
  .why-us__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Booking form */
  .form-row {
    grid-template-columns: 1fr;
  }

  .booking__form {
    padding: 24px 20px;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__bottom .container {
    flex-direction: column;
    text-align: center;
  }
}

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

  .why-us__grid {
    grid-template-columns: 1fr;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__overlay {
    background: linear-gradient(to left,
        rgba(10, 30, 50, 0.75) 0%,
        rgba(10, 30, 50, 0.55) 100%);
  }
}