/* ── CricHit – Shared Styles ── */

:root {
  --gold:    #f59e0b;
  --gold-lt: #fbbf24;
  --red:     #ef4444;
  --navy:    #0f172a;
  --slate:   #1e293b;
  --slate2:  #334155;
  --muted:   #64748b;
  --text:    #e2e8f0;
  --dim:     #94a3b8;
  --green:   #34d399;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(15,23,42,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; height: 64px;
}
.nav-logo a { display: inline-block; }
.nav-logo img { height: 104px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6)); }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--dim); font-size: 13px; font-weight: 600;
  text-decoration: none; letter-spacing: 0.6px; text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links .nav-cta {
  background: linear-gradient(135deg, var(--gold-lt), #d97706);
  color: #000; font-size: 13px; font-weight: 800;
  padding: 9px 24px; border-radius: 8px;
  letter-spacing: 0.6px; text-transform: uppercase;
  transition: opacity .2s;
}
.nav-links .nav-cta:hover { opacity: 0.85; color: #000; }

/* Mobile hamburger toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dim);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── SHARED ELEMENTS ── */
.inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.tag {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.25);
  padding: 4px 14px; border-radius: 20px; margin-bottom: 20px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 46px); font-weight: 900;
  letter-spacing: -1px; color: #fff; margin-bottom: 14px;
}
.section-head p { font-size: 16px; color: var(--dim); line-height: 1.8; max-width: 640px; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; padding: 120px 48px 80px;
  position: relative; overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 55%, rgba(245,158,11,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 20%, rgba(59,130,246,0.05) 0%, transparent 60%);
}
.hero-logo { height: 200px; margin-bottom: 40px; filter: drop-shadow(0 4px 24px rgba(0,0,0,0.7)); position: relative; z-index: 1; }
.hero-h1 {
  font-size: clamp(38px, 5.5vw, 72px); font-weight: 900; letter-spacing: -2px;
  line-height: 1.08; position: relative; z-index: 1; max-width: 900px;
  background: linear-gradient(140deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-h1 em {
  font-style: normal;
  background: linear-gradient(140deg, var(--gold-lt) 0%, var(--gold) 50%, var(--red) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 20px); color: var(--dim);
  max-width: 620px; margin: 22px auto 0;
  position: relative; z-index: 1; line-height: 1.7;
}
.hero-btns {
  display: flex; gap: 16px; justify-content: center;
  margin-top: 44px; position: relative; z-index: 1; flex-wrap: wrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-lt), #d97706);
  color: #000; font-weight: 800; font-size: 15px;
  padding: 14px 36px; border-radius: 10px; text-decoration: none;
  box-shadow: 0 8px 30px rgba(245,158,11,0.35);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(245,158,11,0.5); }
.btn-secondary {
  background: rgba(255,255,255,0.06); color: var(--text); font-weight: 600; font-size: 15px;
  padding: 14px 36px; border-radius: 10px; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.14); transition: background .2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.11); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 40px 48px; text-align: center;
  font-size: 13px; color: var(--muted);
}
footer img { height: 36px; display: block; margin: 0 auto 12px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .inner { padding: 0 20px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(15,23,42,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 20px;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-cta { text-align: center; display: block; }
  #hero { padding: 100px 20px 60px; }
  .nav-logo img { height: 72px; }
}

/* ── Phones landscape / small tablets ── */
@media (max-width: 600px) {
  .hero-logo { height: 120px; margin-bottom: 24px; }
  #hero { padding: 80px 16px 40px; }
  .hero-btns { gap: 10px; }
  .btn-primary,
  .btn-secondary { padding: 12px 24px; font-size: 14px; }
  .inner { padding: 0 16px; }
  footer { padding: 30px 16px; }
}

/* ── Standard phones ── */
@media (max-width: 480px) {
  .inner { padding: 0 12px; }
  .nav-logo img { height: 56px; }
  .hero-logo { height: 100px; margin-bottom: 20px; }
  .btn-primary,
  .btn-secondary { padding: 11px 20px; font-size: 13px; }
  .hero-sub { margin: 16px auto 0; }
  .hero-btns { margin-top: 32px; }
  footer { padding: 24px 12px; font-size: 12px; }
}

/* ── Narrow phones (≤360px) ── */
@media (max-width: 360px) {
  .hero-logo { height: 90px; margin-bottom: 16px; }
  .btn-primary,
  .btn-secondary { padding: 10px 16px; font-size: 12px; border-radius: 8px; }
  .hero-btns { flex-direction: column; align-items: center; }
}

/* ── Landscape phones ── */
@media (max-height: 500px) {
  #hero { min-height: auto; padding: 72px 16px 32px; }
  .hero-logo { height: 80px; margin-bottom: 16px; }
}
