/* =================================================================
   SiteButcher — site stylesheet
   Brand: Jawhara.Bet
   Style preset: Luxury Gold
   ================================================================= */

:root {
  --primary:       #d4af37;
  --accent:        #4a0e0e;
  --bg:            #0a0a0a;
  --bg-elev:       #161616;
  --text:          #fdf6e3;
  --text-muted:    #8a7a52;
  --border:        #3e3624;
  --primary-rgb:   212, 175, 55;
  --accent-rgb:    74, 14, 14;

  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm:    6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.15);
  --shadow-md:  0 8px 24px rgba(0,0,0,0.25);
  --shadow-lg:  0 24px 60px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 32px rgba(var(--accent-rgb), 0.35);

  --tr-fast:  0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-base:  0.3s  cubic-bezier(0.4, 0, 0.2, 1);
  --tr-slow:  0.6s  cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }

/* Body */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  font-feature-settings: 'kern', 'liga', 'calt';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
p, li { line-height: 1.75; color: var(--text); margin: 0 0 1em; }
p:last-child, li:last-child { margin-bottom: 0; }
strong {
  color: var(--text);
  font-weight: 700;
  text-shadow: 0 0 14px rgba(var(--accent-rgb), 0.45);
}
em {
  font-style: italic;
  color: var(--text);
}
bdi { unicode-bidi: isolate; }

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============== HEADER ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(var(--primary-rgb), 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}
.brand-name {
  letter-spacing: -0.01em;
}
.main-nav {
  display: flex;
  gap: 28px;
}
.nav-link {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--tr-fast);
  position: relative;
}
.nav-link:hover {
  color: var(--accent);
}
.nav-link::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--tr-base);
}
.nav-link:hover::after { width: 100%; }

.header-cta-group { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--tr-fast);
}
.lang-switch:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* ============== CTA BUTTONS ============== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  border-radius: var(--radius-md);
  transition: all var(--tr-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
}
.cta-sm  { padding: 10px 20px; font-size: 0.9rem; }
.cta-md  { padding: 14px 28px; font-size: 1rem; }
.cta-lg  { padding: 18px 36px; font-size: 1.1rem; }
.cta-xl  { padding: 22px 44px; font-size: 1.2rem; }

.cta-primary {
  background: linear-gradient(135deg, var(--accent), rgba(var(--accent-rgb), 0.8));
  color: var(--bg);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 0 28px rgba(var(--accent-rgb), 0.35);
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    var(--shadow-lg),
    0 0 48px rgba(var(--accent-rgb), 0.6);
}
.cta-primary:active {
  transform: translateY(0);
}

.cta-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.cta-secondary:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: var(--shadow-glow);
}

.cta-arrow {
  display: inline-block;
  transition: transform var(--tr-base);
}
.cta:hover .cta-arrow {
  transform: translateX(4px);
}
[dir="rtl"] .cta:hover .cta-arrow {
  transform: translateX(-4px);
}

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 50%, rgba(0,0,0,0.55) 0%, transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 60%, var(--bg) 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(var(--primary-rgb), 0.15) 50%, var(--bg) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero-h1 {
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 24px rgba(var(--accent-rgb), 0.3));
}
.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  text-shadow: 0 0 18px rgba(var(--accent-rgb), 0.4);
}
.hero-body {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 40px;
  max-width: 680px;
}
.hero-body p { margin-bottom: 1em; }

/* ============== MAIN CONTENT SECTIONS ============== */
.main-content {
  padding: 80px 0;
}
.content-section {
  margin: 100px 0;
  scroll-margin-top: 100px;
}
.content-section:first-child { margin-top: 0; }

.section-grid {
  display: grid;
  gap: 60px;
}
/* Sections WITHOUT image — cap text width for readable line length (~75 chars).
   Without this, long paragraphs stretch the full 1200px container = unreadable. */
.section-grid:not(.has-image) {
  max-width: 820px;
}
.section-grid:not(.has-image) .section-text {
  max-width: 100%;
}
.section-grid.has-image {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.section-grid.has-image.image-right .section-text { order: 1; }
.section-grid.has-image.image-right .section-image { order: 2; }
.section-grid.has-image.image-left .section-text { order: 2; }
.section-grid.has-image.image-left .section-image { order: 1; }

.section-h2 {
  margin-bottom: 24px;
  position: relative;
  padding-inline-start: 0;
}
.section-h2::before {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-bottom: 16px;
  border-radius: 2px;
}

.section-body {
  font-size: 1.05rem;
  margin-bottom: 32px;
}
.section-body p { margin: 0 0 1.2em; }
.section-body ul, .section-body ol {
  margin: 0 0 1.5em;
  padding-inline-start: 0;
}
.section-body li {
  position: relative;
  padding-inline-start: 28px;
  margin-bottom: 12px;
}
.section-body ul li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.65em;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 3px;
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.5);
}
.section-body ol {
  counter-reset: list;
}
.section-body ol li {
  counter-increment: list;
}
.section-body ol li::before {
  content: counter(list);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-heading);
}

.section-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* ============== FAQ ============== */
.faq-section {
  background: var(--bg-elev);
  padding: 60px 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}
.faq-intro {
  margin-bottom: 32px;
  color: var(--text-muted);
  font-size: 1rem;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--tr-base);
}
.faq-item:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
}
.faq-item[open] {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.03);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-toggle {
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform var(--tr-base);
  font-weight: 300;
  line-height: 1;
}
.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
}
.faq-a {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ============== FINAL CTA ============== */
.final-cta-section {
  margin-top: 120px;
}
.final-cta-card {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--accent-rgb), 0.1));
  padding: 80px 40px;
  border-radius: var(--radius-xl);
  text-align: center;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  position: relative;
  overflow: hidden;
}
.final-cta-card::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.2) 0%, transparent 50%);
  opacity: 0.6;
  z-index: 0;
}
.final-cta-h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}
.final-cta-body {
  position: relative;
  z-index: 1;
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 720px;
  margin-inline: auto;
}
.final-cta-card .cta {
  position: relative;
  z-index: 1;
}

/* ============== FOOTER ============== */
.site-footer {
  margin-top: 120px;
  padding: 60px 0 30px;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 40px;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
}
.footer-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.footer-disclaimer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* ============== RTL SUPPORT ============== */
[dir="rtl"] .nav-link::after { right: 0; left: auto; }
[dir="rtl"] .section-h2 { text-align: right; }
[dir="rtl"] body { font-feature-settings: 'kern', 'liga'; }

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .main-nav { display: none; }
  .section-grid.has-image { grid-template-columns: 1fr; }
  .section-grid.has-image .section-image { order: 1 !important; max-width: 600px; margin: 0 auto; }
  .section-grid.has-image .section-text { order: 2 !important; }
  .hero { min-height: 70vh; padding: 80px 0 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .header-row { padding: 14px 16px; gap: 12px; }
  .brand-name { display: none; }
  .header-cta-group .cta-sm { padding: 8px 14px; font-size: 0.8rem; }
  .lang-switch { padding: 4px 8px; font-size: 0.8rem; }
  .content-section { margin: 60px 0; }
  .faq-section { padding: 40px 20px; }
  .final-cta-card { padding: 50px 24px; }
  .cta-lg { padding: 16px 28px; font-size: 1rem; }
  .cta-xl { padding: 18px 32px; font-size: 1.05rem; }
  .hero-h1 { font-size: 2.2rem; }
  .hero-body { font-size: 1rem; }
}

/* ============== ANIMATIONS ============== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * {
  animation: fadeInUp 0.8s var(--tr-slow) backwards;
}
.hero-h1       { animation-delay: 0s; }
.hero-tagline  { animation-delay: 0.1s; }
.hero-body     { animation-delay: 0.2s; }
.hero-content .cta { animation-delay: 0.3s; }