/* =========================================================
   Egypt Gold Sweets — Promo Website Styles
   Theme: Pharaonic night temple — lapis & gold
   ========================================================= */

:root {
  --lapis-deep: #0E1A3A;
  --lapis-royal: #1B2C5E;
  --purple-night: #2A1A4A;
  --purple-amethyst: #5B3A8C;
  --gold-pharaoh: #E5B23A;
  --gold-bright: #F6CE5A;
  --gold-deep: #8C6614;
  --parchment: #F4E6C7;
  --parchment-edge: #D9C28A;
  --papyrus-ink: #3A2A12;
  --lazuli-cyan: #3FA9C8;
  --terracotta: #C56B3F;
  --text-primary: #F6E9C2;
  --text-body: #E2DAC0;
  --text-secondary: #B7B2A0;
  --text-on-gold: #1B1208;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-body);
  background: var(--lapis-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Headings — Cinzel for pharaonic title feel */
h1, h2, h3, h4, h5, .display, .heading {
  font-family: 'Cinzel', 'Times New Roman', serif;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin: 0;
}

.accent-serif {
  font-family: 'Marcellus SC', 'Cinzel', serif;
  letter-spacing: 0.08em;
}

/* Gold gradient text — for hero title accent words */
.text-gold-gradient {
  background: linear-gradient(180deg, #F6CE5A 0%, #E5B23A 50%, #8C6614 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

/* Outlined gold heading variant */
.text-gold-outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-pharaoh);
  text-shadow: 0 0 24px rgba(245, 206, 90, 0.25);
}

/* Italic accent runs */
.italic-accent {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-bright);
}

/* =========================================================
   Layout helpers
   ========================================================= */
.container-page {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* =========================================================
   Decorative pharaonic dividers
   ========================================================= */
.pharaonic-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  color: var(--gold-pharaoh);
}
.pharaonic-divider::before,
.pharaonic-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  max-width: 160px;
  background: linear-gradient(90deg, transparent, var(--gold-pharaoh), transparent);
}
.pharaonic-divider svg {
  width: 28px;
  height: 28px;
  opacity: 0.9;
}

/* =========================================================
   Top navigation
   ========================================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(14, 26, 58, 0.78);
  border-bottom: 1px solid rgba(229, 178, 58, 0.18);
}
.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}
.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.site-nav .brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(229, 178, 58, 0.35);
}
.site-nav nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.site-nav nav a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  transition: color .2s;
}
.site-nav nav a:hover { color: var(--gold-bright); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: 0; color: var(--gold-bright); cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(14, 26, 58, 0.96);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(229, 178, 58, 0.18);
  }
  .site-nav nav.open { display: flex; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 5.5rem 1.25rem 5rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(91, 58, 140, 0.45), transparent 60%),
    linear-gradient(180deg, #0E1A3A 0%, #1B2C5E 60%, #2A1A4A 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('images/hero_bg.webp') center / cover no-repeat;
  opacity: 0.28;
  z-index: -1;
  filter: saturate(1.05);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,26,58,0.25) 0%, rgba(14,26,58,0.85) 100%);
  z-index: -1;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.hero-eyebrow {
  font-family: 'Marcellus SC', serif;
  letter-spacing: 0.32em;
  font-size: 0.78rem;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}
.hero-title .line-2 {
  display: block;
  font-weight: 400;
  font-style: italic;
  font-size: 0.62em;
  color: var(--text-body);
  margin-top: 0.4rem;
  letter-spacing: 0.04em;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* CTA buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s;
  font-family: 'Inter', sans-serif;
  line-height: 1;
  text-align: center;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-gold {
  background: linear-gradient(180deg, #F6CE5A 0%, #E5B23A 55%, #8C6614 100%);
  color: var(--text-on-gold);
  box-shadow: 0 4px 14px rgba(229, 178, 58, 0.35), inset 0 1px 0 rgba(255,255,255,0.45);
}
.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-ghost {
  background: rgba(244, 230, 199, 0.06);
  color: var(--text-primary);
  border: 1px solid rgba(229, 178, 58, 0.45);
}
.btn-ghost:hover { background: rgba(244, 230, 199, 0.12); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* =========================================================
   Section wrapper
   ========================================================= */
.section {
  padding: 4.5rem 0;
  position: relative;
}
.section-eyebrow {
  font-family: 'Marcellus SC', serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-bright);
  text-align: center;
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}
.section-sub {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: var(--text-body);
  font-size: 1.02rem;
}

/* =========================================================
   Feature cards
   ========================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: linear-gradient(160deg, rgba(91, 58, 140, 0.18) 0%, rgba(27, 44, 94, 0.55) 100%);
  border: 1px solid rgba(229, 178, 58, 0.22);
  border-radius: 18px;
  padding: 1.6rem 1.4rem;
  text-align: left;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(246, 206, 90, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(180deg, #F6CE5A 0%, #E5B23A 60%, #8C6614 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(229, 178, 58, 0.35);
}
.feature-icon-wrap svg {
  width: 28px;
  height: 28px;
  color: var(--text-on-gold);
}
.feature-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1rem;
  border: 1px solid rgba(229, 178, 58, 0.35);
}
.feature-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.18rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
}
.feature-card p {
  color: var(--text-body);
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0;
}

/* =========================================================
   Screenshot carousel — CSS device frames
   ========================================================= */
.screens-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(91, 58, 140, 0.28), transparent 50%),
    var(--lapis-deep);
}
.swiper-wrapper-shell {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.device-frame {
  width: 220px;
  max-height: 400px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 36px;
  background: linear-gradient(160deg, #2a3358, #0E1A3A);
  border: 1px solid rgba(229, 178, 58, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 18px 40px rgba(0, 0, 0, 0.55);
}
.device-frame img {
  display: block;
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 1260 / 2736;
  object-fit: cover;
}
.swiper {
  width: 100%;
  padding: 1rem 0 3rem;
}
.swiper-pagination-bullet {
  background: var(--gold-bright) !important;
  opacity: 0.4 !important;
}
.swiper-pagination-bullet-active {
  opacity: 1 !important;
}
.swiper-button-next,
.swiper-button-prev {
  color: var(--gold-bright) !important;
}

/* =========================================================
   CTA banner
   ========================================================= */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 3.5rem 1.5rem;
  text-align: center;
  background: var(--lapis-royal);
  isolation: isolate;
  border: 1px solid rgba(229, 178, 58, 0.35);
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('images/cta_bg.webp') center / cover no-repeat;
  opacity: 0.22;
  z-index: -1;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,26,58,0.55), rgba(42,26,74,0.85));
  z-index: -1;
}
.cta-banner h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}
.cta-banner p {
  max-width: 540px;
  margin: 0 auto 1.6rem;
  color: var(--text-body);
}

/* =========================================================
   Legal page typography (privacy / terms)
   ========================================================= */
.legal-shell {
  background:
    radial-gradient(ellipse at 50% -20%, rgba(91, 58, 140, 0.35), transparent 55%),
    var(--lapis-deep);
  min-height: 100vh;
}
.legal-doc {
  background: linear-gradient(160deg, rgba(91, 58, 140, 0.12), rgba(27, 44, 94, 0.55));
  border: 1px solid rgba(229, 178, 58, 0.22);
  border-radius: 22px;
  padding: 2.5rem 2rem;
  margin: 2.5rem auto 4rem;
}
.legal-doc h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin-bottom: 0.5rem;
  text-align: center;
}
.legal-doc .last-updated {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.92rem;
  font-style: italic;
}
.legal-doc h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  color: var(--gold-bright);
  margin: 2rem 0 0.75rem;
  border-bottom: 1px solid rgba(229, 178, 58, 0.18);
  padding-bottom: 0.4rem;
}
.legal-doc h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.08rem;
  color: var(--text-primary);
  margin: 1.5rem 0 0.5rem;
}
.legal-doc p, .legal-doc li {
  text-align: left;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-body);
}
.legal-doc ul {
  padding-left: 1.4rem;
  margin: 0.5rem 0 1rem;
}
.legal-doc li { margin-bottom: 0.4rem; }
.legal-doc a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-decoration-color: rgba(246, 206, 90, 0.4);
}
.legal-doc a:hover { text-decoration-color: var(--gold-bright); }
.legal-doc strong { color: var(--text-primary); }

/* =========================================================
   Contact form
   ========================================================= */
.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.contact-form label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.3rem;
}
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  background: rgba(14, 26, 58, 0.55);
  border: 1px solid rgba(229, 178, 58, 0.28);
  border-radius: 10px;
  transition: border-color .2s, background .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold-bright);
  background: rgba(14, 26, 58, 0.8);
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form input[type=file] {
  font-family: 'Inter', sans-serif;
  color: var(--text-body);
  font-size: 0.9rem;
}
.contact-form input[type=file]::file-selector-button {
  background: rgba(229, 178, 58, 0.2);
  color: var(--gold-bright);
  border: 1px solid rgba(229, 178, 58, 0.45);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-right: 0.85rem;
  cursor: pointer;
}
.form-success {
  display: none;
  background: rgba(60, 165, 106, 0.18);
  border: 1px solid rgba(60, 165, 106, 0.55);
  color: #B8F0CD;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}
.form-success.visible { display: block; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #07102B;
  border-top: 1px solid rgba(229, 178, 58, 0.18);
  padding: 2.5rem 1.25rem 6rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer a {
  color: var(--gold-bright);
  text-decoration: none;
  margin-right: 1rem;
}
.site-footer a:hover { text-decoration: underline; }

/* =========================================================
   Privacy acceptance button (mobile fixed bottom)
   ========================================================= */
.privacy-accept-btn {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem 1.25rem;
  background: linear-gradient(180deg, rgba(14,26,58,0) 0%, rgba(14,26,58,0.9) 35%, rgba(14,26,58,0.98) 100%);
  pointer-events: none;
}
.privacy-accept-btn .accept-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  padding: 1rem 1.5rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #F6CE5A 0%, #E5B23A 55%, #8C6614 100%);
  color: var(--text-on-gold);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.45);
  text-align: center;
  line-height: 1;
}
.privacy-accept-btn .accept-btn:hover { filter: brightness(1.05); }
.privacy-accept-btn.hidden { display: none; }

/* =========================================================
   Responsive tweaks
   ========================================================= */
@media (max-width: 600px) {
  .hero { padding: 4rem 1.25rem 3.5rem; }
  .section { padding: 3.5rem 0; }
  .legal-doc { padding: 1.6rem 1.2rem; margin: 1.5rem auto 3rem; }
  .feature-card { padding: 1.4rem 1.2rem; }
  .device-frame { width: 200px; }
  .cta-banner { padding: 2.5rem 1.25rem; border-radius: 20px; }
}
