/* ============================================================
   dailyluckquest.com — Main Stylesheet
   Colors: Dark Blue #0d1b3e | Red #c0392b | Gold #f0c040
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Lato:wght@300;400;700&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #0d1b3e;
  --blue-mid:#1a2f5e;
  --blue-lt: #243b6e;
  --red:     #c0392b;
  --red-dk:  #962d22;
  --gold:    #f0c040;
  --gold-lt: #f5d470;
  --white:   #ffffff;
  --off-white:#f4f6fb;
  --text:    #e8eaf0;
  --muted:   #9aa3bb;
  --radius:  8px;
  --shadow:  0 4px 24px rgba(0,0,0,0.35);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--blue);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  line-height: 1.25;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-lt); }

img { max-width: 100%; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-dk);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192,57,43,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--blue);
  transform: translateY(-2px);
}

/* --- Section Utility --- */
.section { padding: 90px 0; }
.section-alt { background: var(--blue-mid); }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  margin-bottom: 16px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 60px;
  font-size: 1.05rem;
}
.divider {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 12px auto 36px;
  border-radius: 2px;
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--blue);
  border-bottom: 2px solid var(--red);
  transition: box-shadow var(--transition);
}
#site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.55); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.logo span { color: var(--red); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); border-bottom-color: var(--red); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--blue-mid);
  border-top: 1px solid var(--red);
  padding: 16px 20px 24px;
  gap: 12px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mobile-nav a:hover { color: var(--gold); }

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
#hero {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(192,57,43,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 60%, rgba(240,192,64,0.06) 0%, transparent 50%),
    var(--blue);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(240,192,64,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-content { max-width: 680px; }
.hero-badge {
  display: inline-block;
  background: rgba(192,57,43,0.2);
  border: 1px solid var(--red);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--white);
  margin-bottom: 12px;
}
.hero-title .highlight { color: var(--gold); }
.hero-title .accent   { color: var(--red); }
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 540px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-deco {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(420px, 40vw);
  opacity: 0.08;
  pointer-events: none;
  font-family: 'Cinzel', serif;
  font-size: clamp(100px, 16vw, 220px);
  color: var(--gold);
  line-height: 1;
  user-select: none;
}

/* ============================================================
   SECTION 2 — ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 { text-align: left; }
.about-text .divider { margin-left: 0; }
.about-text p { color: var(--muted); margin-bottom: 20px; }
.about-text p:last-of-type { margin-bottom: 32px; }

.about-cards { display: flex; flex-direction: column; gap: 20px; }
.about-card {
  background: var(--blue-lt);
  border: 1px solid rgba(240,192,64,0.12);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.about-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
}
.about-card h4 { font-size: 1rem; margin-bottom: 6px; }
.about-card p  { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ============================================================
   SECTION 3 — HOW IT WORKS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-card {
  background: var(--blue-lt);
  border: 1px solid rgba(240,192,64,0.1);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.step-num {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(192,57,43,0.25);
  line-height: 1;
  margin-bottom: 16px;
}
.step-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.step-card p  { color: var(--muted); font-size: 0.93rem; }

/* ============================================================
   SECTION 4 — DAILY QUESTS
   ============================================================ */
.quests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.quest-card {
  background: var(--blue-lt);
  border: 1px solid rgba(240,192,64,0.1);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}
.quest-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--red);
}
.quest-icon {
  font-size: 2.6rem;
  margin-bottom: 16px;
  display: block;
}
.quest-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.quest-card p  { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.quest-tag {
  display: inline-block;
  background: rgba(192,57,43,0.18);
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  font-family: 'Cinzel', serif;
}

/* ============================================================
   SECTION 5 — LUCKY FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  text-align: center;
  padding: 36px 20px;
  border-radius: var(--radius);
  background: var(--blue-lt);
  border: 1px solid rgba(240,192,64,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}
.feature-card h3 { font-size: 1rem; margin-bottom: 10px; }
.feature-card p  { color: var(--muted); font-size: 0.9rem; }

/* ============================================================
   SECTION 6 — STATS
   ============================================================ */
#stats { background: var(--red); padding: 70px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item {}
.stat-num {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
  display: block;
}

/* ============================================================
   SECTION 7 — TESTIMONIALS
   ============================================================ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testi-card {
  background: var(--blue-lt);
  border: 1px solid rgba(240,192,64,0.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.testi-card::before {
  content: '"';
  font-family: 'Cinzel', serif;
  font-size: 5rem;
  color: rgba(192,57,43,0.2);
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}
.testi-text {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
}
.testi-name  { font-family: 'Cinzel', serif; font-size: 0.9rem; color: var(--gold); }
.testi-role  { font-size: 0.8rem; color: var(--muted); }
.stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 4px; letter-spacing: 2px; }

/* ============================================================
   SECTION 8 — NEWSLETTER / CTA
   ============================================================ */
#cta {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(192,57,43,0.15) 0%, transparent 60%),
    var(--blue-mid);
  padding: 100px 0;
  text-align: center;
}
#cta .section-title { color: var(--white); }
#cta .section-sub   { margin-bottom: 40px; }
.cta-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.cta-form input[type="email"] {
  flex: 1;
  padding: 16px 20px;
  border: none;
  background: var(--blue-lt);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  outline: none;
}
.cta-form input[type="email"]::placeholder { color: var(--muted); }
.cta-form button {
  padding: 16px 28px;
  background: var(--red);
  color: var(--white);
  border: none;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background var(--transition);
}
.cta-form button:hover { background: var(--red-dk); }
.cta-note { margin-top: 14px; font-size: 0.82rem; color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: #080f20;
  border-top: 2px solid var(--red);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 900;
  color: var(--gold);
}
.footer-logo span { color: var(--red); }
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.04em;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  width: 100%;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 8px;
}

/* ============================================================
   INNER PAGE (Privacy / Terms)
   ============================================================ */
.page-hero {
  background: var(--blue-mid);
  border-bottom: 2px solid var(--red);
  padding: 60px 0 50px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero p  { color: var(--muted); margin-top: 12px; }

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 70px 20px;
}
.legal-content h2 {
  font-size: 1.4rem;
  color: var(--gold);
  margin: 48px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(240,192,64,0.15);
}
.legal-content h3 { font-size: 1.05rem; color: var(--gold-lt); margin: 28px 0 10px; }
.legal-content p  { color: var(--muted); margin-bottom: 16px; }
.legal-content ul { color: var(--muted); margin: 0 0 16px 24px; }
.legal-content ul li { margin-bottom: 8px; }
.legal-content a  { color: var(--red); }
.legal-content a:hover { color: var(--gold); }
.legal-updated {
  display: inline-block;
  background: rgba(192,57,43,0.15);
  border: 1px solid var(--red);
  color: var(--gold);
  font-size: 0.82rem;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 40px;
  font-family: 'Cinzel', serif;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-grid      { grid-template-columns: 1fr; gap: 40px; }
  .steps-grid      { grid-template-columns: 1fr; }
  .features-grid   { grid-template-columns: repeat(2, 1fr); }
  .testi-grid      { grid-template-columns: 1fr; }
  .stats-grid      { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 640px) {
  .nav-links   { display: none; }
  .hamburger   { display: flex; }
  .hero-deco   { display: none; }
  .section     { padding: 60px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-inner  { flex-direction: column; align-items: center; text-align: center; }
  .footer-links  { justify-content: center; }
  .cta-form      { flex-direction: column; border-radius: var(--radius); overflow: visible; }
  .cta-form input[type="email"],
  .cta-form button { border-radius: var(--radius); width: 100%; }
}
