/* ═══════════════════════════════════════════════════════════════
   YMN Meraachly — Premium Design Brand
   Mobile-First · Minimalist · Luxury
═══════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --gold:        #C4A07A;
  --gold-light:  #D4B896;
  --gold-dark:   #A8845A;
  --gold-pale:   #F0E8DC;
  --ivory:       #FAFAF7;
  --ivory-2:     #F4F0EA;
  --text:        #1A1A1A;
  --text-mid:    #4A4A4A;
  --text-soft:   #8A8278;
  --white:       #FFFFFF;
  --black:       #0A0A0A;

  --font:        'Cairo', sans-serif;
  --radius:      4px;
  --radius-lg:   12px;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow:      0 8px 40px rgba(196,160,122,0.12);
  --shadow-lg:   0 20px 60px rgba(196,160,122,0.18);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--ivory);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font); }

/* ── Typography ─────────────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}
.section-desc {
  font-size: 1rem;
  color: var(--text-mid);
  margin-top: 0.75rem;
  line-height: 1.8;
}
.section-header { text-align: center; margin-bottom: 3.5rem; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.4rem;
  background: var(--gold);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(168,132,90,0.35);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.4rem;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Scroll Animations ──────────────────────────────────────── */
.fade-up, .fade-left, .fade-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up    { transform: translateY(36px); }
.fade-left  { transform: translateX(-36px); }
.fade-right { transform: translateX(36px); }
.fade-up.visible,
.fade-left.visible,
.fade-right.visible {
  opacity: 1;
  transform: none;
}

/* ════════════════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 1.5rem;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(250,250,247,0.96);
  backdrop-filter: blur(12px);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 1px 0 rgba(196,160,122,0.15);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(1);
  transition: height var(--transition);
}
.navbar.scrolled .nav-logo img { height: 38px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; right: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  padding: 0.55rem 1.4rem;
  background: var(--gold);
  color: var(--white) !important;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold-dark) !important; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text);
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url('https://images.unsplash.com/photo-1558769132-cb1aea458c5e?w=1800&q=80') center/cover no-repeat,
    linear-gradient(135deg, #1a1410 0%, #2d2218 50%, #1a1a1a 100%);
  background-blend-mode: multiply;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,8,6,0.55) 0%,
    rgba(10,8,6,0.45) 50%,
    rgba(10,8,6,0.72) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 780px;
}
.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 900;
  color: var(--white);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 40px rgba(0,0,0,0.3);
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.04em;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  display: block;
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, var(--gold-light));
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50%       { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

/* ════════════════════════════════════════════════════════════
   SERVICES
════════════════════════════════════════════════════════════ */
.services {
  padding: 7rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(196,160,122,0.15);
  border: 1.5px solid rgba(196,160,122,0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  background: var(--black);
}
.service-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), filter 0.7s ease;
  filter: brightness(0.55) saturate(0.8);
}
.service-card:hover .service-card-img {
  transform: scale(1.06);
  filter: brightness(0.35) saturate(0.6);
}
.service-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.75rem;
  z-index: 2;
}
.service-card-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
  z-index: -1;
}
.service-num {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}
.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.service-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 1.1rem;
}
.service-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.service-card:hover .service-options {
  opacity: 1;
  transform: none;
}
.service-option {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(196,160,122,0.6);
  color: var(--gold-light);
  border-radius: 50px;
  background: rgba(196,160,122,0.1);
  transition: background var(--transition), color var(--transition);
}
.service-option:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.service-arrow {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  font-size: 0.85rem;
}
.service-card:hover .service-arrow {
  opacity: 1;
  transform: none;
  border-color: var(--gold);
  color: var(--gold);
}

/* ════════════════════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════════════════════ */
.about {
  background: var(--ivory-2);
  padding: 7rem 1.5rem;
}
.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img-frame {
  position: relative;
  aspect-ratio: 4/5;
}
.about-img-placeholder {
  width: 100%; height: 100%;
  background:
    url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=900&q=80') center/cover no-repeat;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-accent-box {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  width: 50%;
  height: 40%;
  border: 2px solid var(--gold-light);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.5;
}
.about-text { padding-right: 1rem; }
.about-desc {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 2;
  margin-bottom: 1.25rem;
}
.about-text .section-title { margin-bottom: 1.5rem; }
.about-text .btn-outline { margin-top: 1rem; }

/* ════════════════════════════════════════════════════════════
   REQUEST FORM
════════════════════════════════════════════════════════════ */
.request-section {
  padding: 7rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 3rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(196,160,122,0.12);
}
.request-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group--full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.04em;
}
.req { color: var(--gold); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(196,160,122,0.22);
  border-radius: var(--radius);
  background: var(--ivory);
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  direction: rtl;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196,160,122,0.12);
  background: var(--white);
}
.form-group input.invalid,
.form-group select.invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-soft); font-size: 0.88rem; }
.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

/* Form Success */
.form-success {
  text-align: center;
  padding: 3rem 1rem;
}
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gold-pale);
  color: var(--gold);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.form-success h3 { font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--text); }
.form-success p  { color: var(--text-mid); }

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
.footer {
  background: var(--black);
  padding: 4rem 1.5rem 2.5rem;
}
.footer-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.footer-logo img {
  height: 52px;
  width: auto;
  margin: 0 auto 1rem;
  filter: brightness(0) invert(1) sepia(1) saturate(0.5) brightness(1.8);
  opacity: 0.85;
}
.footer-tagline {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.social-link {
  width: 44px; height: 44px;
  border: 1px solid rgba(196,160,122,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  transition: all var(--transition);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover {
  border-color: var(--gold);
  background: rgba(196,160,122,0.12);
  transform: translateY(-3px);
}
.footer-divider {
  height: 1px;
  background: rgba(196,160,122,0.12);
  margin-bottom: 1.5rem;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.05em;
}

/* ════════════════════════════════════════════════════════════
   WHATSAPP FLOAT
════════════════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 90;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float svg { width: 26px; height: 26px; position: relative; z-index: 1; }
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 32px rgba(37,211,102,0.5);
}
.pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.6);
  animation: pulseRing 2.2s ease-out infinite;
}
.pulse-ring--delay { animation-delay: 1.1s; }
@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.7); opacity: 0;   }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    background: none;
    border: none;
    gap: 1.5rem;
  }
  .service-card { aspect-ratio: 16/9; border-radius: var(--radius-lg); }
  .service-options { opacity: 1; transform: none; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-img-frame { aspect-ratio: 16/9; max-height: 340px; }
  .about-text { padding-right: 0; }

  .form-row { grid-template-columns: 1fr; }
  .form-wrapper { padding: 2rem 1.5rem; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(80vw, 300px);
    height: 100vh;
    background: rgba(250,250,247,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    gap: 2rem;
    box-shadow: -8px 0 32px rgba(0,0,0,0.08);
    transition: right var(--transition);
    z-index: 99;
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; z-index: 100; }
  .nav-link { font-size: 1.1rem; }

  .hero-title { font-size: clamp(4.5rem, 22vw, 7rem); }

  .services { padding: 5rem 1rem; }

  .about { padding: 5rem 1rem; }
  .about-accent-box { display: none; }

  .request-section { padding: 5rem 1rem; }
  .form-wrapper { padding: 1.75rem 1.25rem; }

  .whatsapp-float { bottom: 1.25rem; left: 1.25rem; width: 50px; height: 50px; }
  .whatsapp-float svg { width: 22px; height: 22px; }
}

/* ── Loader overlay (optional, lightweight) ─────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--ivory-2) 25%, var(--ivory) 50%, var(--ivory-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
