/* ===========================
   IZI MOROCCO — styles.css
   Aesthetic: Matching izimorocco.com
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Outfit:wght@300;400;500;600&display=swap');

/* ── CSS Variables (matching izimorocco.com palette) ── */
:root {
  --gold:      #F5A623;   /* primary accent — the IZI yellow/gold */
  --gold-dark: #D4891A;
  --dark:      #2B2B2B;   /* main dark background */
  --darker:    #1E1E1E;
  --darkest:   #111111;
  --white:     #FFFFFF;
  --off-white: #F8F8F8;
  --light-gray:#EEEEEE;
  --muted:     #888888;
  --card-bg:   #FFFFFF;
  --radius:    10px;
  --shadow:    0 8px 40px rgba(0,0,0,.18);
  --trans:     all .3s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--off-white);
  color: var(--dark);
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.15;
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 300; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 400; }
p  { font-size: 1rem; line-height: 1.75; color: var(--muted); }

a { text-decoration: none; color: inherit; }

/* ── Utility ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.tag {
  display: inline-block;
  background: var(--gold);
  color: var(--darkest);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Outfit', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--trans);
}
.btn-primary {
  background: var(--gold);
  color: var(--darkest);
  font-weight: 600;
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(245,166,35,.35); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--darkest); }
.btn-light {
  background: var(--white);
  color: var(--dark);
  font-weight: 600;
}
.btn-light:hover { background: var(--gold); color: var(--darkest); }

/* ── Top Bar ── */
.topbar {
  background: var(--darkest);
  color: rgba(255,255,255,.75);
  font-size: .8rem;
  padding: 10px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--gold); transition: var(--trans); }
.topbar a:hover { color: var(--white); }
.topbar-right { display: flex; gap: 20px; align-items: center; }

/* ── Language Toggle ── */
.lang-toggle {
  display: flex;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 99px;
  padding: 3px;
}
.lang-btn {
  padding: 4px 14px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.6);
  transition: var(--trans);
}
.lang-btn.active {
  background: var(--gold);
  color: var(--darkest);
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding: 0;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 4px;
}
.logo img {
  height: 56px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--dark);
  transition: var(--trans);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--trans);
}
.nav-links a:hover { color: var(--gold-dark); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--darkest);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://www.izimorocco.com/wp-content/uploads/2024/07/فخامة.png') center/cover no-repeat;
  opacity: .45;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(17,17,17,.3) 0%, rgba(17,17,17,.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: fadeUp .9s ease both;
}
.hero h1 { color: var(--white); margin: 20px 0 16px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p { color: rgba(255,255,255,.78); font-size: 1.1rem; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero-scroll span { width: 1px; height: 40px; background: rgba(255,255,255,.3); }

/* ── Stats ── */
.stats {
  background: var(--gold);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
}
.stat-item { padding: 20px; border-right: 1px solid rgba(0,0,0,.12); }
.stat-item:last-child { border: none; }
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--darkest);
  line-height: 1;
}
.stat-label { color: rgba(0,0,0,.6); font-size: .85rem; margin-top: 6px; text-transform: uppercase; letter-spacing: .1em; }

/* ── Welcome Section ── */
.welcome {
  padding: 100px 0;
  background: var(--white);
}
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.welcome-text h2 { margin: 12px 0 20px; }
.welcome-text p { margin-bottom: 16px; }
.welcome-visual {
  position: relative;
}
.welcome-visual-inner {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.welcome-visual-inner iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.welcome-badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--gold);
  color: var(--darkest);
  border-radius: 12px;
  padding: 16px 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

/* ── How It Works ── */
.how {
  padding: 100px 0;
  background: var(--off-white);
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 { margin: 12px 0 16px; }
.section-header p { max-width: 560px; margin: 0 auto; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid rgba(0,0,0,.06);
  transition: var(--trans);
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.step-num {
  width: 48px; height: 48px;
  background: var(--gold);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--darkest);
  margin-bottom: 20px;
}
.step-card h3 { margin-bottom: 10px; font-size: 1.15rem; }

/* ── Search ── */
.search-bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  background: var(--white);
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  align-items: end;
}
.search-field { display: flex; flex-direction: column; gap: 6px; }
.search-field label { font-size: .8rem; font-weight: 600; color: var(--dark); text-transform: uppercase; letter-spacing: .06em; }
.search-field input,
.search-field select {
  padding: 12px 16px;
  border: 1.5px solid var(--light-gray);
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: .9rem;
  color: var(--dark);
  background: var(--off-white);
  outline: none;
  transition: var(--trans);
}
.search-field input:focus,
.search-field select:focus { border-color: var(--gold); background: var(--white); }
.search-btn-wrap { display: flex; align-items: flex-end; }

/* ── Games ── */
.games {
  padding: 100px 0;
  background: var(--off-white);
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.game-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  transition: var(--trans);
}
.game-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.14); }
.game-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.game-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.game-card:hover .game-card-img img { transform: scale(1.07); }
.city-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gold);
  color: var(--darkest);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: 99px;
}
.rating-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  color: var(--gold);
  font-size: .8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.game-card-body { padding: 20px 24px 24px; }
.game-card-body h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--dark); }
.game-card-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.game-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--light-gray);
}
.price { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; color: var(--gold-dark); }
.price span { font-size: .8rem; font-weight: 400; color: var(--muted); font-family: 'Outfit', sans-serif; }

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  grid-column: 1/-1;
}
.no-results h3 { margin-bottom: 8px; color: var(--dark); }

/* ── Quote / Divider ── */
.quote-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--darkest), var(--dark));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  content: '❝';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10rem;
  color: rgba(245,166,35,.08);
  font-family: Georgia, serif;
}
.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-style: italic;
  color: var(--light-gray);
  max-width: 700px;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}
.quote-author { color: var(--gold); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; }

/* ── Testimonial ── */
.testimonials {
  padding: 100px 0;
  background: var(--off-white);
}
.testimonial-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.testimonial-stars { color: var(--gold); font-size: 1.3rem; margin-bottom: 20px; letter-spacing: 3px; }
.testimonial-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--dark);
  line-height: 1.7;
  margin-bottom: 24px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: grid;
  place-items: center;
  color: var(--darkest);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
}
.testimonial-name { font-weight: 600; font-size: .95rem; }
.testimonial-role { font-size: .8rem; color: var(--muted); }

/* ── CTA ── */
.cta-section {
  padding: 100px 0;
  background: var(--dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F5A623' fill-opacity='0.04'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section h2 { color: var(--white); position: relative; z-index: 1; }
.cta-section p { color: rgba(255,255,255,.7); max-width: 500px; margin: 16px auto 36px; position: relative; z-index: 1; }
.cta-section .btn-light { background: var(--gold); color: var(--darkest); font-weight: 600; position: relative; z-index: 1; }
.cta-section .btn-light:hover { background: var(--gold-dark); }

/* ── Footer ── */
.footer {
  background: var(--darkest);
  color: rgba(255,255,255,.65);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.footer-logo img {
  height: 56px;
  width: auto;
  /* brighten the dark logo on dark background */
  filter: brightness(0) invert(1);
}
.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--white);
  font-weight: 600;
}
.footer-tagline {
  font-style: italic;
  color: var(--gold);
  font-size: .85rem;
  margin-bottom: 20px;
}
.footer h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: rgba(255,255,255,.55); font-size: .88rem; transition: var(--trans); }
.footer ul li a:hover { color: var(--gold); padding-left: 4px; }

.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; margin-bottom: 14px; }
.footer-contact .icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .8rem;
  color: rgba(255, 255, 255, 0.873);
}
.footer-bottom-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-bottom-logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .5;
}
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  transition: var(--trans);
  cursor: pointer;
  text-decoration: none;
}
.social-link:hover { border-color: var(--gold); color: var(--gold); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── i18n hidden class ── */
[data-lang] { display: none; }
[data-lang].active { display: block; }
span[data-lang].active { display: inline; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .welcome-grid { grid-template-columns: 1fr; gap: 48px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-btn-wrap { grid-column: 1/-1; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(0,0,0,.1); }
  .footer-grid { grid-template-columns: 1fr; }
  .search-bar { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .topbar-right { gap: 10px; }
  .games-grid { grid-template-columns: 1fr; }
}