/* =========================================================
   HP Diwali Activation — stylesheet
   Diwali theme drawn from assets/img/bg.png: royal blue + gold on warm
   cream, with mandala ornament. Swap the variables in :root to re-brand.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
  --white: #ffffff;
  --bg: #fdf5e4;
  --bg-tint: #f9ebc9;
  --surface: #fffdf7;
  --ink: #0b1f4d;
  --muted: #4a5578;
  --muted-light: #8a8fa6;
  --border: #ecd9a8;
  --border-soft: #f3e6c3;

  --blue: #0a4fd8;
  --blue-dark: #0a3ba6;
  --navy: #0a2260;
  --gold: #d9a233;
  --gold-light: #f2c867;
  --gold-dark: #a8751a;

  --gradient-brand: linear-gradient(90deg, var(--blue) 0%, #2a63e0 45%, var(--gold) 100%);
  --gradient-gold: linear-gradient(135deg, var(--gold-light), var(--gold));
  --gradient-soft: linear-gradient(135deg, rgba(10, 79, 216, 0.08), rgba(217, 162, 51, 0.16));

  --green: #17936b;
  --red: #c8312f;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(11, 31, 77, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 31, 77, 0.1);
  --shadow-lg: 0 24px 64px rgba(11, 31, 77, 0.16);

  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--muted);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; color: var(--ink); }
h1, h2 { font-family: var(--font-display); }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold) 60%, var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--gold);
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(10, 79, 216, 0.07);
  border: 1px solid rgba(10, 79, 216, 0.2);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.badge-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(10, 79, 216, 0.28);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-dark);
}
.btn-outline:hover { background: var(--gold); color: var(--white); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 245, 228, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  position: relative;
}
.brand-logo { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); padding: 0; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink); }

/* ---------- Hero ---------- */
/* bg.png has its mandala on the left and open cream space on the right, so the
   copy sits in the right-hand ~60% and the artwork shows through untouched. */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
  background: var(--bg) url('../img/bg.jpg') left center / cover no-repeat;
  padding: 80px 24px;
}
.hero-copy {
  margin-left: max(38vw, 0px);
  max-width: 600px;
}
.hero h1 { font-size: clamp(36px, 4.6vw, 62px); line-height: 1.08; }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-festive {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-tint) 100%);
  border-top: 1px solid var(--border);
  position: relative;
}
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 42px); }

/* ---------- Forms ---------- */
.form-shell {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: flex-start;
}
.form-card-center { max-width: 560px; margin: 0 auto; }
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
}

.field-group { margin-bottom: 22px; }
label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
label .req { color: var(--red); }
label .optional { color: var(--muted-light); font-weight: 500; }
input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder { color: var(--muted-light); }
input:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10, 79, 216, 0.12);
}
input.invalid { border-color: var(--red); }
.error-msg { color: var(--red); font-size: 12.5px; margin-top: 6px; min-height: 15px; font-weight: 600; }

.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 22px;
  display: none;
}
.form-alert.show { display: block; }
.form-alert.error { background: rgba(200, 49, 47, 0.08); color: var(--red); border: 1px solid rgba(200, 49, 47, 0.22); }
.form-alert.success { background: rgba(23, 147, 107, 0.08); color: var(--green); border: 1px solid rgba(23, 147, 107, 0.2); }

/* Mobile number: country-code select + number input */
.phone-row { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230b1f4d' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") right 14px center no-repeat; padding-right: 36px; cursor: pointer; }
.checkbox-row { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: 13.5px; color: var(--muted); margin: 0; cursor: pointer; }
.checkbox-row input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--blue); }
.checkbox-row.invalid span { color: var(--red); }

/* ---------- Game lobby ---------- */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; max-width: 1000px; margin: 0 auto; }
.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.game-thumb { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 64px; }
.game-thumb-diya { background: linear-gradient(135deg, #fff3d6, #f9dfa0); }
.game-thumb-pong { background: linear-gradient(135deg, #0b1b3d, #14305f); }
.game-thumb-jigsaw { background: linear-gradient(135deg, #eaf1fd, #d9e5fb); }
.game-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.game-body h3 { font-size: 20px; }
.game-body p { font-size: 14.5px; flex: 1; }
.game-best { font-size: 14px; margin-bottom: 16px; }
.game-best strong { color: var(--blue); }

.btn-sm { padding: 8px 18px; font-size: 13.5px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--navy); color: var(--gold-light); border: 1px solid var(--gold);
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 28px 0; border-top: 4px solid var(--gold); }
.footer-bottom { display: flex; justify-content: center; text-align: center; align-items: center; font-size: 13px; flex-wrap: wrap; gap: 12px; }

@media (max-width: 960px) {
  .hero-copy { margin-left: 34vw; }
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .site-header .container { height: 62px; }
  .brand { font-size: 17px; }

  /* Show the mandala as a banner above the copy instead of behind it. */
  .hero {
    display: block;
    min-height: 0;
    background: var(--bg) url('../img/bg.jpg') left top / auto 190px no-repeat;
    padding: 210px 18px 56px;
  }
  .hero-copy { margin-left: 0; max-width: none; }
  .hero-actions .btn { width: 100%; }

  .section { padding: 56px 0; }
  .form-card { padding: 26px 20px; }
  .phone-row { grid-template-columns: 112px 1fr; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .form-card { padding: 20px 16px; }
}
