/*
Theme Name: Dr. Sameh El-Taher
Theme URI: https://dr-sameh-eltaher.com
Author: أ.د سامح الطاهر
Author URI: https://dr-sameh-eltaher.com
Description: ثيم احترافي لعيادة أ.د سامح الطاهر - استشاري جراحات تنسيق الوجه والقوام والليزر
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dr-sameh-theme
Tags: rtl-language, medical, arabic, dark, gold, one-page
*/

/* ===========================
   CSS VARIABLES
=========================== */
:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark: #A8893A;
  --dark: #0A0A0A;
  --dark2: #111111;
  --dark3: #1A1A1A;
  --white: #FAFAF7;
  --gray: #888888;
  --gray-light: #CCCCCC;
  --font-ar: 'Cairo', sans-serif;
  --font-display: 'Playfair Display', serif;
  --transition: all 0.35s ease;
  --shadow: 0 10px 40px rgba(0,0,0,0.4);
  --shadow-gold: 0 8px 30px rgba(201,168,76,0.25);
}

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

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

body {
  font-family: var(--font-ar);
  background-color: var(--dark);
  color: var(--white);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.25;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font-ar); cursor: pointer; border: none; outline: none; }
input, textarea, select { font-family: var(--font-ar); outline: none; }

/* ===========================
   TYPOGRAPHY
=========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
}

.gold-text { color: var(--gold); }

/* ===========================
   UTILITY CLASSES
=========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 15px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 35px;
  height: 1px;
  background: var(--gold);
}

.section-label.center { justify-content: center; }
.section-label.center::before { display: none; }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 15px;
}

.gold-divider {
  width: 55px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 25px;
}

.gold-divider.center { margin: 15px auto 25px; }

.text-center { text-align: center; }
.text-right { text-align: right; }

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-block;
  padding: 14px 38px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
  border: 2px solid var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  color: var(--dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(250,250,247,0.35);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ===========================
   NAVIGATION
=========================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
  background: linear-gradient(to bottom, rgba(10,10,10,0.97) 0%, transparent 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.12);
}

.site-header.scrolled {
  background: rgba(10,10,10,0.97);
  padding: 12px 0;
  border-bottom-color: rgba(201,168,76,0.2);
}

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

.site-logo {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-title {
  font-size: 0.65rem;
  color: var(--gray);
  letter-spacing: 1px;
}

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

.main-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--white);
  position: relative;
  padding-bottom: 3px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

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

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

.nav-book-btn {
  background: var(--gold);
  color: var(--dark) !important;
  padding: 10px 24px;
  font-weight: 700;
  transition: var(--transition);
}

.nav-book-btn::after { display: none !important; }

.nav-book-btn:hover {
  background: var(--gold-light) !important;
  color: var(--dark) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.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); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 10px 0 20px;
  border-top: 1px solid rgba(201,168,76,0.1);
  margin-top: 15px;
}

.mobile-nav a {
  padding: 12px 0;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-nav a:hover { color: var(--gold); padding-right: 10px; }

/* ===========================
   HERO SECTION
=========================== */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 75% 55%, rgba(201,168,76,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 35% 50% at 20% 85%, rgba(201,168,76,0.05) 0%, transparent 55%);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.035) 1px, transparent 1px);
  background-size: 65px 65px;
}

.hero-content {
  padding: 140px 60px 80px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 8px 20px;
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.6); }
}

.hero-name {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 15px;
}

.hero-specialty {
  font-size: 1rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

.hero-desc {
  font-size: 0.95rem;
  color: rgba(250,250,247,0.68);
  line-height: 1.85;
  max-width: 470px;
  margin-bottom: 45px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.hero-photo-frame {
  width: 390px;
  height: 530px;
  background: linear-gradient(145deg, rgba(201,168,76,0.12), rgba(201,168,76,0.02));
  border: 1px solid rgba(201,168,76,0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-placeholder {
  font-size: 9rem;
  opacity: 0.6;
}

.hero-photo-frame::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.hero-stats-col {
  position: absolute;
  bottom: 60px;
  left: -15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-chip {
  background: rgba(17,17,17,0.92);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 14px 22px;
  backdrop-filter: blur(20px);
}

.stat-chip .num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: 700;
  display: block;
  line-height: 1;
}

.stat-chip .lbl {
  font-size: 0.68rem;
  color: var(--gray);
  letter-spacing: 1px;
}

/* Hero animated line */
.hero-corner-deco {
  position: absolute;
  top: 30px; right: 30px;
  width: 60px; height: 60px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  opacity: 0.4;
}

/* ===========================
   ABOUT SECTION
=========================== */
.about-section {
  background: var(--dark2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  color: rgba(250,250,247,0.7);
  line-height: 1.9;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 35px;
}

.credential-box {
  border-right: 2px solid var(--gold);
  padding-right: 14px;
}

.cred-label {
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.cred-value {
  font-size: 0.88rem;
  color: var(--white);
  font-weight: 600;
}

.about-visual-wrap {
  position: relative;
}

.about-img-box {
  background: linear-gradient(145deg, var(--dark3), var(--dark));
  border: 1px solid rgba(201,168,76,0.18);
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  position: relative;
  overflow: hidden;
}

.about-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-box::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.exp-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--gold);
  color: var(--dark);
  padding: 18px 22px;
  text-align: center;
}

.exp-badge .n {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  display: block;
  line-height: 1;
}

.exp-badge .t {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
}

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

.services-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 65px;
}

.services-header p {
  color: var(--gray);
  font-size: 0.93rem;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(201,168,76,0.08);
}

.service-card {
  background: var(--dark);
  padding: 48px 33px;
  text-align: right;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
  cursor: pointer;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.4s;
}

.service-card:hover {
  background: var(--dark3);
  transform: translateY(-2px);
}

.service-card:hover::after { width: 100%; }
.service-card:hover .srv-title { color: var(--gold); }

.srv-num {
  position: absolute;
  top: 18px; left: 22px;
  font-family: var(--font-display);
  font-size: 3rem;
  color: rgba(201,168,76,0.07);
  font-weight: 900;
  line-height: 1;
}

.srv-icon {
  font-size: 2.3rem;
  margin-bottom: 18px;
  display: block;
}

.srv-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.srv-desc {
  font-size: 0.83rem;
  color: var(--gray);
  line-height: 1.75;
}

/* ===========================
   WHY US SECTION
=========================== */
.why-section {
  background: var(--dark2);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(201,168,76,0.09);
  transition: var(--transition);
}

.feature-box:hover {
  border-color: rgba(201,168,76,0.35);
  background: rgba(201,168,76,0.03);
}

.feat-icon { font-size: 1.7rem; flex-shrink: 0; margin-top: 2px; }

.feat-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: var(--font-ar);
}

.feat-desc {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.65;
}

.why-text p {
  color: var(--gray);
  line-height: 1.85;
  font-size: 0.93rem;
}

/* ===========================
   PROCEDURES SECTION
=========================== */
.procedures-section {
  background: var(--dark);
}

.procedures-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 55px;
  flex-wrap: wrap;
  gap: 20px;
}

.procedures-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.proc-card {
  background: var(--dark3);
  border: 1px solid rgba(201,168,76,0.09);
  padding: 32px 22px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.proc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.35s;
}

.proc-card:hover {
  border-color: rgba(201,168,76,0.28);
  background: rgba(201,168,76,0.04);
  transform: translateY(-3px);
}

.proc-card:hover::before { transform: scaleX(1); }

.proc-emoji { font-size: 1.9rem; margin-bottom: 10px; display: block; }

.proc-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
}

/* ===========================
   TESTIMONIALS
=========================== */
.testimonials-section {
  background: var(--dark2);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 60px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.testimonial-card {
  background: var(--dark);
  border: 1px solid rgba(201,168,76,0.1);
  padding: 33px;
  position: relative;
  transition: border-color 0.3s;
  text-align: right;
}

.testimonial-card:hover { border-color: rgba(201,168,76,0.3); }

.quote-mark {
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: rgba(201,168,76,0.13);
  line-height: 0.8;
  margin-bottom: 12px;
  display: block;
}

.testimonial-stars { color: var(--gold); font-size: 0.78rem; margin-bottom: 12px; }

.testimonial-text {
  font-size: 0.88rem;
  color: rgba(250,250,247,0.72);
  line-height: 1.8;
  margin-bottom: 22px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(201,168,76,0.1);
  padding-top: 18px;
}

.author-av {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  flex-shrink: 0;
}

.author-n {
  font-weight: 700;
  font-size: 0.88rem;
  display: block;
}

.author-p {
  font-size: 0.72rem;
  color: var(--gold);
}

/* ===========================
   CONTACT SECTION
=========================== */
.contact-section {
  background: var(--dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info-col p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.85;
  margin-bottom: 35px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(201,168,76,0.08);
}

.contact-item:last-child { border-bottom: none; }

.contact-ico {
  width: 46px; height: 46px;
  background: rgba(201,168,76,0.09);
  border: 1px solid rgba(201,168,76,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-lbl {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.contact-val {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Contact Form */
.contact-form-box {
  background: var(--dark3);
  border: 1px solid rgba(201,168,76,0.14);
  padding: 42px;
}

.form-heading {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--gold);
  margin-bottom: 28px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--gray-light);
  margin-bottom: 7px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--dark);
  border: 1px solid rgba(201,168,76,0.18);
  color: var(--white);
  padding: 13px 16px;
  font-size: 0.9rem;
  transition: border-color 0.3s;
  direction: rtl;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold);
}

.form-field textarea {
  resize: vertical;
  min-height: 95px;
}

.form-field select option { background: var(--dark); }

.form-submit-btn {
  width: 100%;
  background: var(--gold);
  color: var(--dark);
  padding: 15px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: var(--transition);
  margin-top: 8px;
}

.form-submit-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: var(--dark2);
  border-top: 1px solid rgba(201,168,76,0.13);
  padding: 35px 0;
}

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

.footer-logo-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--gray);
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--gray);
}

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

/* ===========================
   WHATSAPP FLOAT BUTTON
=========================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  background: #25D366;
  color: #fff;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  text-decoration: none;
  box-shadow: 0 5px 22px rgba(37,211,102,0.42);
  z-index: 998;
  transition: transform 0.3s;
}

.whatsapp-float:hover { transform: scale(1.12); }

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

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

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .hero-section { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content { padding: 130px 40px 80px; }
  .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .procedures-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 22px; }
  .section-pad { padding: 70px 0; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .procedures-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .credentials-grid { grid-template-columns: 1fr; }
  .procedures-header { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; text-align: center; }
  .contact-form-box { padding: 28px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
  .procedures-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
