/* Swaply — نفس أماكن الصور كـ Dating.com، ألوان أساسية أسود وأبيض. عدّل الصور لاحقاً. */
:root {
  --primary: #000000;
  --primary-dark: #333333;
  --text: #1a1a1a;
  --text-muted: #555555;
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --border: #e0e0e0;
  --footer-bg: #1a1a1a;
  --footer-text: #e5e5e5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header — Dating.com style */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.logo:hover {
  text-decoration: none;
  opacity: 0.9;
  color: var(--primary-dark);
}

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

.nav-link {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--primary-dark);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-dropdown {
  position: relative;
}

.lang-trigger {
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}

.lang-trigger:hover,
.lang-dropdown.open .lang-trigger {
  border-color: var(--primary);
  color: var(--primary);
}
.lang-dropdown.open .lang-trigger { color: var(--primary); }

.lang-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 4px 0 0;
  padding: 0.5rem 0;
  min-width: 160px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  list-style: none;
}

.lang-menu li {
  margin: 0;
}

.lang-menu button {
  width: 100%;
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.lang-menu button:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.btn-login {
  padding: 0.5rem 1.25rem;
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none !important;
}
.btn-login:hover {
  background: var(--primary-dark);
  text-decoration: none !important;
}

/* Hero — نفس تخطيط Dating.com: صورة خلفية كاملة + كرت على اليسار */
.hero-wrap {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #888;
  background-image: url('/images/hero.jpg');
  background-size: cover;
  background-position: center;
}

.hero-disclaimer {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  margin: 0;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.hero-card {
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin: 4rem 3rem 4rem 5%;
  padding: 2.5rem;
  background: var(--bg);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.cta-primary {
  display: block;
  text-align: center;
  padding: 0.9rem 2rem;
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 8px;
  text-decoration: none !important;
  margin-bottom: 0.75rem;
}

.cta-primary:hover {
  background: var(--primary-dark);
  text-decoration: none !important;
}

.cta-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg);
  color: var(--text) !important;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none !important;
  margin-bottom: 1.25rem;
}

.cta-secondary:hover {
  background: var(--bg-alt);
  text-decoration: none !important;
}

.hero-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.hero-legal a {
  color: var(--primary);
}

/* استخدام زر CTA في الأقسام الأخرى */
.content-section .cta-primary,
.cta-section .cta-primary {
  display: inline-block;
  margin-top: 0.5rem;
}

/* Icon blocks row */
.icons-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  background: var(--bg-alt);
}

.icon-block {
  text-align: center;
  padding: 1.5rem 1rem;
}

.icon-block-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-block-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1);
}

.icon-block h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.icon-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Content sections */
.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
}

.content-section.alt {
  background: var(--bg-alt);
}

.section-h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.section-p {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.sub-links {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.sub-links a {
  font-weight: 500;
}

/* Reviews */
.reviews-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  background: var(--bg-alt);
}

.reviews-section .section-h2 {
  margin-bottom: 0.5rem;
}

.reviews-section .section-p {
  margin-bottom: 2rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.review-card {
  margin: 0;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  text-align: left;
}

.review-card p {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 1rem;
  line-height: 1.6;
}

.review-card footer {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.review-card cite {
  font-style: normal;
  display: block;
  margin-top: 0.25rem;
}

/* Featured */
.content-section.featured {
  padding: 2rem 1.5rem;
}

.featured-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

/* CTA section */
.cta-section {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-alt);
}

.cta-section .section-p {
  margin-bottom: 1.5rem;
}

/* Experts */
.experts-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.experts-section .section-p {
  margin-bottom: 2rem;
}

.experts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.expert-card {
  text-align: center;
}

.expert-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--border) 0%, var(--bg-alt) 100%);
}

.expert-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.expert-title {
  font-size: 0.85rem;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.expert-card p:last-of-type {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Success section */
.success-section {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-alt);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

/* Footer — Dating.com style */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--footer-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-col a {
  display: block;
  color: var(--footer-text);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.footer-col a:hover {
  opacity: 1;
  color: #fff;
}

.footer-lang {
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.footer-lang span {
  margin-right: 0.5rem;
  opacity: 0.8;
}

.footer-lang a {
  color: var(--footer-text);
  opacity: 0.85;
}

.footer-lang a:hover {
  opacity: 1;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.7;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Mobile */
@media (max-width: 768px) {
  .hero-wrap {
    min-height: 70vh;
  }

  .hero-card {
    margin: 2rem 1rem;
    max-width: none;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .header-right {
    margin-left: auto;
  }

  .icons-row {
    grid-template-columns: 1fr;
  }

  .experts-grid {
    grid-template-columns: 1fr;
  }
}
