/* ================================================================
   DR. ATEF BEAUTY CENTER — Main Stylesheet
   Rose Gold & White | Medical Luxury
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');
@font-face {
  font-family: 'YekanBakh';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
/* Fallback to Noto Naskh for display headings for a more refined look */

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
  --rose-gold:        #C9956A;
  --rose-gold-light:  #E8C5A8;
  --rose-gold-dark:   #A07040;
  --rose-gold-pale:   #F9F0E8;
  --white:            #FFFFFF;
  --off-white:        #FBF8F5;
  --cream:            #F5EDE3;
  --charcoal:         #2C2420;
  --mid-brown:        #5C4A3A;
  --light-brown:      #9C7E6A;
  --border:           #E8D9CC;
  --shadow-rose:      rgba(201,149,106,0.18);
  --shadow-dark:      rgba(44,36,32,0.12);

  --font-display:     'Noto Naskh Arabic', 'YekanBakh', serif;
  --font-body:        'YekanBakh', 'Noto Naskh Arabic', sans-serif;

  --radius-sm:        6px;
  --radius-md:        14px;
  --radius-lg:        28px;
  --radius-full:      9999px;

  --transition:       all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:  all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--charcoal);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ── Typography ────────────────────────────────────────────────── */
.display-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.3;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--light-brown);
  max-width: 580px;
  line-height: 1.8;
}

/* ── Layout ─────────────────────────────────────────────────────── */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

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

/* ── Divider ─────────────────────────────────────────────────────── */
.gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--rose-gold), var(--rose-gold-light));
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-dark));
  color: var(--white);
  box-shadow: 0 4px 20px var(--shadow-rose);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--shadow-rose);
}

.btn-outline {
  background: transparent;
  color: var(--rose-gold);
  border: 2px solid var(--rose-gold);
}

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

/* ── Navigation ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 999;
  padding: 1rem 0;
  background: rgba(251,248,245,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.65rem 0;
  box-shadow: 0 2px 20px var(--shadow-dark);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo span {
  font-size: 0.65rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--rose-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mid-brown);
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; right: 0;
  width: 0; height: 2px;
  background: var(--rose-gold);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--rose-gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  margin-right: 1rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Page Hero (shared) ──────────────────────────────────────────── */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--rose-gold-pale) 50%, var(--white) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--rose-gold-light) 0%, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}

/* ── Cards ───────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px var(--shadow-rose);
  border-color: var(--rose-gold-light);
}

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--rose-gold-light); }

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

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

.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ── Scroll Animation ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .section-pad { padding: 60px 0; }

  /* ── Mobile Menu Overlay ── */
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; left: 0; bottom: 0;
    background: #ffffff;
    justify-content: center;
    align-items: center;
    gap: 0;
    z-index: 9998;
    padding: 80px 0 40px;
    list-style: none;
    margin: 0;
    overflow-y: auto;
  }

  .nav-links.open li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #f0e8e0;
  }

  .nav-links.open li:first-child {
    border-top: 1px solid #f0e8e0;
  }

  .nav-links.open li a {
    display: block;
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2C2420;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .nav-links.open li a:hover,
  .nav-links.open li a.active {
    background: #F9F0E8;
    color: #C9956A;
  }

  /* ── Close Button ── */
  .mobile-menu-close {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    background: #F9F0E8;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #2C2420;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  }

  .mobile-menu-close.visible {
    display: flex;
  }

  /* ── Hamburger animation ── */
  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

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

/* ── WhatsApp Floating Button ─────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  width: 62px;
  height: 62px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease;
  animation: wa-pulse 2.5s infinite;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 36px rgba(37,211,102,0.6), 0 4px 12px rgba(0,0,0,0.2);
  animation: none;
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: white;
}

.whatsapp-float-tooltip {
  position: absolute;
  left: 70px;
  white-space: nowrap;
  background: var(--charcoal);
  color: white;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateX(-6px);
}

.whatsapp-float:hover .whatsapp-float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 6px 28px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 6px 28px rgba(37,211,102,0.45), 0 0 0 12px rgba(37,211,102,0); }
}
