/* ============================================================
   مركز الحسين للجلدية والتجميل — Shared Stylesheet
   Design Direction: Islamic-Luxury · Gold + Ivory + Deep Charcoal
   ============================================================ */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Tajawal:wght@300;400;500;700;800&display=swap');

/* === CSS VARIABLES === */
:root {
  --gold:         #B8965A;
  --gold-light:   #D4B483;
  --gold-lighter: #EDD9B4;
  --gold-dark:    #8A6E3A;
  --gold-glow:    rgba(184,150,90,0.22);
  --ivory:        #F9F5EE;
  --ivory-dark:   #F0E9DC;
  --cream:        #EDE4D3;
  --charcoal:     #0F0D0A;
  --charcoal-2:   #1A1710;
  --charcoal-3:   #262318;
  --charcoal-4:   #332E22;
  --white:        #FFFFFF;
  --text:         #1E1B14;
  --text-muted:   #7A7060;
  --text-light:   #A89880;
  --border:       rgba(184,150,90,0.18);
  --border-dark:  rgba(184,150,90,0.08);
  --shadow-sm:    0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.1);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.15);
  --shadow-gold:  0 8px 32px rgba(184,150,90,0.25);
  --r-sm:         8px;
  --r-md:         14px;
  --r-lg:         24px;
  --r-xl:         36px;
  --font-body:    'Tajawal', sans-serif;
  --font-display: 'Cormorant Garamond', serif;
  --transition:   all 0.35s 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; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font-body); }
::selection { background: var(--gold-glow); color: var(--gold-dark); }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--charcoal-2); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* === LAYOUT === */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 6rem 0; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; }
.display-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}
.section-heading {
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 1rem;
}
.section-heading.light { color: var(--white); }
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 600px;
}
.section-sub.light { color: rgba(255,255,255,0.55); }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* === ORNAMENT DIVIDER === */
.ornament {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 1.5rem;
}
.ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, var(--gold), transparent);
  max-width: 80px;
}
.ornament-line.right {
  background: linear-gradient(to right, var(--gold), transparent);
}
.ornament-gem {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.ornament-text {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.25rem;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  color: var(--charcoal);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(184,150,90,0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid rgba(184,150,90,0.5);
}
.btn-secondary:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
}
.btn-dark {
  background: var(--charcoal);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-dark:hover {
  background: var(--charcoal-2);
  border-color: var(--gold);
  color: var(--gold-light);
}
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37,211,102,0.45);
}
.btn-lg { padding: 1.1rem 2.75rem; font-size: 1rem; }
.btn-sm { padding: 0.65rem 1.5rem; font-size: 0.83rem; }
.btn-full { width: 100%; }

/* === NAVIGATION === */
.site-nav {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: var(--transition);
}
.site-nav.nav-scrolled {
  background: rgba(249,245,238,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
  padding: 0.7rem 0;
}
.site-nav.nav-dark {
  background: transparent;
}
.site-nav.nav-dark.nav-scrolled {
  background: rgba(15,13,10,0.96);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}
.nav-logo-mark {
  position: relative;
  width: 44px;
  height: 44px;
}
.nav-logo-mark svg { width: 44px; height: 44px; }
.nav-logo-text { line-height: 1.25; }
.nav-logo-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  display: block;
}
.nav-logo-name.light { color: var(--white); }
.nav-logo-sub {
  font-size: 0.68rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.05em;
  display: block;
}
/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--r-sm);
  transition: var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background: var(--gold-glow);
}
.nav-link.light { color: rgba(255,255,255,0.65); }
.nav-link.light:hover { color: var(--gold-light); background: rgba(184,150,90,0.12); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px; right: 0.9rem; left: 0.9rem;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}
/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.light span { background: var(--white); }
/* Mobile menu */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ivory);
  z-index: 2000;
  flex-direction: column;
  padding: 2rem 1.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.mobile-nav-close {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ivory-dark);
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}
.mobile-nav-link {
  padding: 1rem 1.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--r-md);
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}
.mobile-nav-link:hover, .mobile-nav-link.active { color: var(--gold); background: var(--gold-glow); }
.mobile-nav-footer { margin-top: 2rem; }

/* === PAGE HERO (inner pages) === */
.page-hero {
  padding: 9rem 0 4rem;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(184,150,90,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 10% 80%, rgba(184,150,90,0.08) 0%, transparent 50%);
}
.page-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23B8965A' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 0.75rem;
}
.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.5);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.25); }

/* === CARDS === */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}
.card-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, rgba(184,150,90,0.12), rgba(184,150,90,0.04));
  border: 1px solid rgba(184,150,90,0.25);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.card:hover .card-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: transparent;
}
.card-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.card-desc { font-size: 0.87rem; color: var(--text-muted); line-height: 1.75; }

/* === STAT COUNTER === */
.stat-block { text-align: center; }
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* === FORM === */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.form-label .required { color: var(--gold); margin-right: 2px; }
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid #E5DDD0;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--ivory);
  transition: var(--transition);
  direction: rtl;
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(184,150,90,0.12);
}
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 120px; line-height: 1.6; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-error { font-size: 0.78rem; color: #d32f2f; margin-top: 0.3rem; display: none; }
.form-success {
  background: linear-gradient(135deg, rgba(37,211,102,0.1), rgba(18,140,126,0.05));
  border: 1px solid rgba(37,211,102,0.3);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: #1a6b3a;
  display: none;
  text-align: center;
}
.char-counter { font-size: 0.75rem; color: var(--text-light); text-align: left; margin-top: 0.3rem; }

/* === WHATSAPP FLOAT === */
.wa-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 900;
}
.wa-float-btn {
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.5);
  transition: var(--transition);
  animation: wa-pulse 3s infinite;
}
.wa-float-btn:hover { transform: scale(1.1); }
.wa-float-btn svg { width: 32px; height: 32px; fill: white; }
.wa-tooltip {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.72rem;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(-50%) translateY(-4px); }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(37,211,102,0.5); }
  50%       { box-shadow: 0 4px 40px rgba(37,211,102,0.75); }
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === FOOTER === */
.site-footer {
  background: var(--charcoal-2);
  color: rgba(255,255,255,0.6);
}
.footer-main {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand-logo { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.25rem; }
.footer-brand-logo svg { width: 44px; height: 44px; }
.footer-brand-name { font-size: 1rem; font-weight: 800; color: var(--white); display: block; }
.footer-brand-sub { font-size: 0.68rem; color: var(--gold); display: block; }
.footer-desc { font-size: 0.84rem; line-height: 1.85; color: rgba(255,255,255,0.4); margin-bottom: 1.5rem; }
.footer-socials { display: flex; gap: 0.65rem; }
.footer-social {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  transition: var(--transition);
}
.footer-social:hover { border-color: var(--gold); color: var(--gold); background: rgba(184,150,90,0.1); }
.footer-col-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 28px; height: 2px;
  background: var(--gold);
}
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-link {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}
.footer-link:hover { color: var(--gold); transform: translateX(-4px); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}
.footer-contact-icon { color: var(--gold); font-size: 0.9rem; flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: rgba(255,255,255,0.4); }
.footer-contact-item a:hover { color: var(--gold); }
/* Legal bar */
.footer-legal {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.76rem;
  color: rgba(255,255,255,0.2);
  line-height: 1.8;
}
.footer-legal strong { color: rgba(255,255,255,0.3); }
/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.25); }
.footer-bottom-links a:hover { color: var(--gold); }

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.73rem;
  font-weight: 600;
}
.badge-gold { background: rgba(184,150,90,0.12); color: var(--gold); border: 1px solid rgba(184,150,90,0.25); }
.badge-green { background: rgba(37,211,102,0.1); color: #1a7a3c; border: 1px solid rgba(37,211,102,0.25); }
.badge-dark { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.1); }

/* === UTILITY === */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* === IMAGE PLACEHOLDER === */
.img-placeholder {
  background: linear-gradient(135deg, var(--cream), var(--ivory-dark));
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--text-light);
  font-size: 0.82rem;
  text-align: center;
  padding: 1.5rem;
  border: 1px dashed var(--border);
  position: relative;
  overflow: hidden;
}
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(184,150,90,0.08) 0%, transparent 60%);
}
.img-placeholder .ph-icon { font-size: 2.5rem; opacity: 0.4; }
.img-placeholder .ph-label { font-size: 0.75rem; color: var(--text-light); opacity: 0.7; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .page-hero { padding: 8rem 0 3rem; }
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .btn-lg { padding: 0.95rem 1.75rem; font-size: 0.92rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .wa-float { bottom: 1.25rem; left: 1.25rem; }
}
