/* ================================
   إعدادات عامة
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

:root {
  --section-padding: 60px;
  --section-padding-mobile: 36px;
}

body {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  color: #333;
  overflow-x: hidden;
  scroll-behavior: smooth;
  min-height: 100vh;
}

/* Prevent any horizontal page scroll artifacts so full-bleed elements reach edges */
html {
  overflow-x: hidden;
}

/* ================================
   شريط التنقل — يُستدعى مباشرة في كل صفحة عبر <link rel="stylesheet" href="css/navbar.css">
================================ */

/* ================================
   الهيدر — Editorial Luxury
   ================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #0c0a08;
}

/* ── Background ── */
.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.04);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.04) translate(0, 0); }
  to   { transform: scale(1.10) translate(-0.8%, -0.4%); }
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(12,10,8,0.72) 0%, rgba(12,10,8,0.15) 50%, rgba(12,10,8,0.45) 100%),
    radial-gradient(ellipse 50% 60% at 30% 50%, rgba(195,158,49,0.04) 0%, transparent 100%);
  z-index: 1;
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* ── Layout: Brand + Divider + Copy ── */
.hero__layout {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 52px;
  padding: 0 8vw;
  width: 100%;
  max-width: 1400px;
}

.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(24px);
}

.hero__logo-text {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(160deg, #f0d978 0%, #C39E31 40%, #a88225 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__logo-sub {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(0.6rem, 1.2vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.55em;
  color: rgba(195,158,49,0.55);
  margin-top: 6px;
}

.hero__divider {
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, transparent, rgba(195,158,49,0.45), rgba(195,158,49,0.15), transparent);
  flex-shrink: 0;
  align-self: stretch;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
}

.hero__headline {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero__tagline {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  line-height: 1.9;
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(16px);
}

.hero__hours {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(195,158,49,0.85);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(16px);
  background: rgba(195,158,49,0.08);
  border: 1px solid rgba(195,158,49,0.15);
  border-radius: 50px;
  padding: 6px 18px 6px 14px;
  display: inline-flex;
  width: fit-content;
}

.hero__hours-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C39E31;
  display: inline-block;
  animation: pulseDot 2.5s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(195,158,49,0.4); }
  50%      { opacity: 0.6; box-shadow: 0 0 0 6px rgba(195,158,49,0); }
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
}

/* ── Buttons ── */
.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: 100px;
  padding: 15px 38px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s ease,
    background 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease;
}

.hero__cta--primary {
  background: linear-gradient(135deg, #C39E31, #dab64a, #C39E31);
  background-size: 200% 100%;
  color: #fff;
  border: none;
  box-shadow: 0 6px 24px rgba(195,158,49,0.25);
  animation: shimmerBtn 4s ease-in-out infinite;
}

@keyframes shimmerBtn {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}

.hero__cta--primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 38px rgba(195,158,49,0.35);
}

.hero__cta--primary:active {
  transform: translateY(-1px) scale(1.01);
}

.hero__cta--ghost {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1.5px solid rgba(255,255,255,0.2);
}

.hero__cta--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(195,158,49,0.45);
  color: #C39E31;
  transform: translateY(-3px);
}

/* ── Scroll Indicator ── */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 2.8s forwards;
}

.hero__scroll span {
  font-family: 'Cairo', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(195,158,49,0.45);
  letter-spacing: 0.1em;
}

.hero__scroll-diamond {
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(195,158,49,0.4);
  transform: rotate(45deg);
  animation: scrollDiamond 2.5s ease-in-out infinite;
}

@keyframes scrollDiamond {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.7; }
  50%      { transform: rotate(45deg) translateY(6px); opacity: 0.3; }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Blend to next section ── */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(to bottom, transparent, #fff);
  z-index: 5;
  pointer-events: none;
}

/* ================================
   قسم عن العيادة
   ================================ */
.about-section {
  padding: var(--section-padding) 8%;
  text-align: center;
  background: #fff;
}

.about-section h2 {
  font-size: 2.2rem;
  color: #C39E31;
  margin-bottom: 20px;
}

.about-section p {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.9;
  color: #555;
  font-size: 1.1rem;
}

/* ================================
   قسم المميزات
================================ */
/* (Removed duplicate hero + sections block to avoid overrides) */
/* ================================
   قسم المميزات
================================ */
.features-section {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 100px 10%;
  background-color: #faf9f6;
}

.feature {
  display: flex;
  align-items: center;
  gap: 40px;
}

.feature.reverse {
  flex-direction: row-reverse;
}

.feature img {
  width: 45%;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.feature img:hover {
  transform: scale(1.05);
}

.feature-text {
  flex: 1;
}

.feature-text h3 {
  font-size: 1.6rem;
  color: #C39E31;
  margin-bottom: 10px;
}

.feature-text p {
  color: #444;
  font-size: 1rem;
  line-height: 1.8;
}

/* ================================
   قسم الخدمات
================================ */
.services-link {
  text-align: center;
  background: #fff;
  padding: 100px 10%;
}

.services-link h2 {
  color: #C39E31;
  font-size: 2rem;
  margin-bottom: 20px;
}

.btn-secondary {
  background-color: transparent;
  color: #C39E31;
  border: 2px solid #C39E31;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #C39E31;
  color: #fff;
  transform: translateY(-3px);
}

/* ================================
   قسم الحجز
================================ */
.booking-section {
  padding: 100px 10%;
  background-color: #fefdfb;
  text-align: center;
}

.booking-section h2 {
  font-size: 2rem;
  color: #C39E31;
  margin-bottom: 15px;
}

.booking-section p {
  color: #555;
  margin-bottom: 40px;
}

/* طبقة الشفافية فوق الخلفية */
.booking-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  /* ← قلل أو زوّد الشفافية */
  z-index: 1;
}

/* عشان المحتوى يظهر فوق الـ overlay */
.booking-section * {
  position: relative;
  z-index: 2;
}

/* ================================
   الفوتر (جديد — مظهر أنيق وواضح)
================================ */
footer {
  color: #eaeaea;
  text-align: center;
  padding: 30px 16px;
  font-size: 0.95rem;
}

footer .container {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}

footer .contact-info {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

footer p,
footer a,
footer span,
footer i,
footer div {
  color: #e6c98a;
  /* soft gold accent */
}

footer small {
  display: block;
  color: #bfc6c8;
  margin-top: 8px;
}

/* ================================
   للموبايل (Responsive)
================================ */
@media (max-width: 992px) {
  .feature {
    flex-direction: column;
    text-align: center;
  }

  .feature.reverse {
    flex-direction: column;
  }

  .feature img {
    width: 100%;
  }
}

footer p,
footer .contact-info span,
footer .contact-info i {
  color: #0e0e1a !important;
}

/* Navbar styles moved to css/navbar.css */


/* ================================
   Global refinements (typography, spacing, buttons, subtle cards)
   These override selectively to modernize look while preserving layout
================================ */
:root {
  --bg: #faf9f6;
  --muted: #6b6b6b;
  --accent: #C39E31;
  --accent-2: #E6BC57;
  --glass: rgba(255, 255, 255, 0.06);
  --card-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

body {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  color: #222;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section paddings controlled by variables for consistent spacing */
.about-section,
.features-section,
.services-link,
.booking-section {
  position: relative;
  padding: var(--section-padding) 0;
  background-color: #fefdfb;
  text-align: center;
  width: 100vw;
  /* full-bleed */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background-size: cover;
  background-position: center;

  /* Buttons: soft gradient, lift on hover */
  .btn-primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: transform .22s ease, box-shadow .22s ease;
    box-shadow: 0 8px 22px rgba(195, 158, 49, 0.12);
  }

  .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(195, 158, 49, 0.14);
  }

  /* Responsive adjustments */
  @media (max-width: 900px) {
    :root {
      --section-padding: var(--section-padding-mobile);
    }

    .feature img {
      width: 100%;
      border-radius: 12px;
    }

    .feature {
      gap: 20px;
      flex-direction: column;
    }
  }

  .btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 10px 24px;
    border-radius: 28px;
    transition: all .22s ease;
  }

  .btn-secondary:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
  }

  /* Features cards: subtle card feeling without changing markup */
  .feature {
    align-items: center;
    gap: 34px;
    padding: 18px;
    border-radius: 12px;
    transition: transform .28s ease, box-shadow .28s ease;
  }

  .feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow);
  }

  /* Improve typography for headings */
  h1,
  h2,
  h3 {
    line-height: 1.15;
  }

  /* Footer subtle separation */
  footer {
    border-top: 1px solid rgba(195, 158, 49, 0.06);
    padding: 26px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(250, 249, 246, 0.02));
    margin-bottom: -100px;
  }

  /* Small responsive tweak for large images */
  @media (max-width: 992px) {
    .feature img {
      border-radius: 12px;
    }
  }

  /* Keep form inputs readable inside booking section without changing booking CSS file */
  .booking-section input,
  .booking-section select,
  .booking-section textarea {
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
  }

  /* Subtle entrance animation for key sections (works with AOS too) */
  .fade-in-smooth {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .6s ease, transform .6s ease;
  }

  .fade-in-smooth.in {
    opacity: 1;
    transform: translateY(0);
  }

  /* ================================
   Desktop subtle overall scale (does NOT affect mobile)
   Adjust `--desktop-scale` to 0.98 (2% smaller) or 0.99 (1% smaller)
================================ */
  :root {
    --desktop-scale: 0.98;
    /* change to 0.99 for a smaller adjustment */
  }

  @media (min-width: 993px) {

    /* primary: use zoom where supported (Chrome, Edge). */
    html {
      zoom: var(--desktop-scale);
    }

    /* fallback for browsers without zoom support (Firefox): apply transform on body */
    @supports (transform: scale(1)) {
      body {
        transform: scale(var(--desktop-scale));
        transform-origin: top center;
      }
    }
  }

}

/* ================================
   Hero Responsive — Tablet
   ================================ */
@media (max-width: 900px) {
  .hero__layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 0 6vw;
  }

  .hero__brand {
    align-items: flex-start;
  }

  .hero__divider {
    width: 60px;
    height: 1px;
    align-self: flex-start;
    background: linear-gradient(90deg, rgba(195,158,49,0.45), transparent);
  }

  .hero__copy {
    max-width: 100%;
  }
}

/* ================================
   Hero Responsive — Mobile
   ================================ */
@media (max-width: 600px) {
  .hero {
    min-height: 100svh;
  }

  .hero__layout {
    gap: 18px;
    padding: 0 5vw;
    padding-top: 100px;
  }

  .hero__brand {
    align-items: flex-start;
  }

  .hero__logo-text {
    font-size: 2.6rem;
  }

  .hero__logo-sub {
    font-size: 0.55rem;
    letter-spacing: 0.4em;
  }

  .hero__headline {
    font-size: 1.3rem;
  }

  .hero__tagline {
    font-size: 0.88rem;
  }

  .hero__hours {
    font-size: 0.8rem;
    margin-bottom: 24px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta {
    width: 100%;
    padding: 13px 28px;
    font-size: 0.95rem;
  }

  .hero__scroll {
    bottom: 20px;
  }

  .hero__scroll span {
    font-size: 0.6rem;
  }
}