/* ============================================
   د. وفاء الخيال — Dr. Wafa Alkhayal
   Brown × Beige × Pink editorial theme
   ============================================ */

:root {
  --color-cream: #f8f1e4;
  --color-cream-light: #fbf6ec;
  --color-beige-warm: #efe2cc;
  --color-pink: #f5d6dc;
  --color-pink-soft: #fbe7eb;
  --color-brown: #4e3823;
  --color-brown-warm: #6b4d33;
  --color-brown-light: #8a6b4d;
  --color-ink: #2a201a;
  --color-blue: #5b7da3;
  --color-gold: #b9924a;
  --color-card: #ffffff;
  --shadow-soft: 0 10px 30px -10px rgba(78, 56, 35, 0.18);
  --shadow-card: 0 4px 20px -6px rgba(78, 56, 35, 0.12);
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', 'Inter', sans-serif;
  background: var(--color-cream);
  color: var(--color-ink);
  line-height: 1.6;
  overflow-x: hidden;
}

body[dir="ltr"] {
  font-family: 'Inter', 'Tajawal', sans-serif;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(248, 241, 228, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(78, 56, 35, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-brown);
}

.brand-ar {
  font-family: 'Amiri', serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
}

.brand-divider {
  color: var(--color-brown-light);
  opacity: 0.5;
}

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

.nav-links a {
  color: var(--color-brown);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--color-blue); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: transparent;
  border: 1px solid rgba(78, 56, 35, 0.2);
  border-radius: 999px;
  color: var(--color-brown);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}

.lang-toggle:hover {
  background: rgba(78, 56, 35, 0.05);
  border-color: var(--color-brown);
}

.menu-btn {
  background: transparent;
  border: none;
  color: var(--color-brown);
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
}

.nav-links.open {
  display: flex;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--color-cream);
  flex-direction: column;
  padding: 1.5rem;
  gap: 1.25rem;
  border-bottom: 1px solid rgba(78, 56, 35, 0.08);
  box-shadow: var(--shadow-soft);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 7rem 0 4rem;
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-pink-soft) 100%);
  overflow: hidden;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  top: -10rem;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-beige-warm) 0%, transparent 70%);
  opacity: 0.5;
}

.orb-2 {
  bottom: -10rem;
  left: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--color-pink) 0%, transparent 70%);
  opacity: 0.55;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
}

.hero-portrait {
  position: relative;
  width: 300px;
  flex-shrink: 0;
}

.portrait-glow {
  position: absolute;
  inset: -1.5rem;
  background: radial-gradient(ellipse at center, var(--color-pink) 0%, transparent 70%);
  filter: blur(30px);
  opacity: 0.35;
  z-index: -1;
}

.portrait-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(80, 55, 35, 0.18));
}

.hero-text { max-width: 620px; }

.kicker-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.kicker-row.center { justify-content: center; }

.kicker-line {
  height: 1px;
  width: 2.5rem;
  background: rgba(91, 125, 163, 0.4);
}

.kicker {
  color: var(--color-blue);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

body[dir="rtl"] .kicker {
  font-family: 'Tajawal', sans-serif;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.9rem;
}

.hero-name {
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.name-primary {
  display: block;
  font-family: 'Amiri', serif;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-brown);
}

body[dir="ltr"] .name-primary {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.name-secondary {
  display: block;
  margin-top: 0.6rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 500;
  color: var(--color-brown-warm);
}

body[dir="ltr"] .name-secondary {
  font-family: 'Amiri', serif;
  font-style: normal;
  font-weight: 700;
}

.creds {
  margin-top: 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--color-brown-warm);
  letter-spacing: 0.02em;
}

.hero-tag {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(42, 32, 26, 0.85);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .hero { padding: 9rem 0 6rem; }
  .hero-grid {
    flex-direction: row-reverse;
    text-align: start;
    gap: 4rem;
    align-items: center;
  }
  body[dir="ltr"] .hero-grid { flex-direction: row; }
  .hero-portrait { width: 380px; }
  .kicker-row { justify-content: flex-start; }
  body[dir="ltr"] .kicker-row { justify-content: flex-start; }
  .hero-tag { margin-left: 0; margin-right: 0; }
}

/* ===== Sections ===== */
.section {
  padding: 4.5rem 0;
}

@media (min-width: 768px) {
  .section { padding: 6.5rem 0; }
}

.section-cream {
  background: var(--color-cream-light);
}

.section-title {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--color-brown);
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  line-height: 1.3;
}

body[dir="ltr"] .section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

.section-title.center { text-align: center; }
.kicker-row.center { justify-content: center; }

/* ===== About ===== */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

.about-img-wrap {
  width: 100%;
  max-width: 380px;
}

.about-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(80, 55, 35, 0.15));
}

.about-text { width: 100%; max-width: 560px; }

.prose {
  font-size: 1.05rem;
  line-height: 2;
  color: rgba(42, 32, 26, 0.88);
}

@media (min-width: 1024px) {
  .about-grid {
    flex-direction: row;
    gap: 5rem;
    align-items: center;
  }
  .about-img-wrap { flex-shrink: 0; max-width: 420px; }
}

/* ===== Credentials ===== */
.cred-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (min-width: 700px) {
  .cred-grid { grid-template-columns: repeat(3, 1fr); }
}

.cred-card {
  background: var(--color-card);
  border: 1px solid rgba(78, 56, 35, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.cred-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -10px rgba(78, 56, 35, 0.18);
}

.cred-badge {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-blue);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.cred-title {
  font-family: 'Amiri', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-brown);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

body[dir="ltr"] .cred-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

.cred-desc {
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(42, 32, 26, 0.78);
}

/* ===== Social ===== */
.social-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-card);
  border-radius: 50%;
  color: var(--color-brown);
  text-decoration: none;
  border: 1px solid rgba(78, 56, 35, 0.1);
  box-shadow: var(--shadow-card);
  transition: all 0.25s;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--color-brown);
  color: var(--color-cream);
  border-color: var(--color-brown);
  box-shadow: 0 12px 28px -8px rgba(78, 56, 35, 0.3);
}

@media (min-width: 768px) {
  .social-grid { gap: 1.5rem; }
  .social-icon { width: 72px; height: 72px; }
}

/* ===== Footer ===== */
.footer {
  background: var(--color-brown);
  color: var(--color-cream);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-name {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-name .brand-ar,
.footer-name .brand-en {
  color: var(--color-cream);
}

.footer-meta {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(248, 241, 228, 0.7);
  letter-spacing: 0.05em;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(248, 241, 228, 0.55);
}
