/* ==========================================================================
   Happy Deepawali – site stylesheet
   Replaces the WordPress / Saasland / Elementor / Bootstrap bundle.
   Sections:
     1. Tokens        6. Hero           11. Wishes slider
     2. Base          7. Gifts          12. Topics
     3. Layout        8. Prepare tabs   13. Muhurat CTA
     4. Buttons       9. Cards          14. Footer
     5. Header/nav   10. Numbers        15. Utilities + motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --accent: #e13f4f;          /* site red, from the original theme */
  --accent-dark: #c02f3e;
  --ink: #222d39;             /* headings */
  --text: #535b69;            /* body copy */
  --muted: #7a8190;
  --line: #ece8ea;
  --blush: #fef5f6;           /* numbers band */
  --mist: #f6f5fa;            /* alternate band */
  --white: #ffffff;

  --sky: #15b2ec;
  --gold: #f5a416;
  --teal: #00c99c;
  --pink: #f12699;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 10px 30px rgba(34, 45, 57, 0.08);
  --header-h: 72px;
}

/* 2. Base ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

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

ul { margin: 0; padding: 0; list-style: none; }

figure { margin: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* 3. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

/* 4. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 0.95rem/1.2 var(--font);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); color: var(--white); }

.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--white); }

.btn--light { background: var(--white); color: var(--accent); }
.btn--light:hover { background: var(--ink); color: var(--white); }

.btn__icon svg { width: 34px; height: 9px; display: block; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* 5. Header / nav ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.brand__name { font-weight: 700; font-size: 1.05rem; }
.brand:hover { color: var(--accent); }

.menu > li > a {
  display: block;
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--ink);
}
.menu a:hover,
.menu a:focus-visible { color: var(--accent); }

.submenu a {
  display: block;
  padding: 0.45rem 1.1rem;
  font-size: 0.92rem;
  color: var(--text);
}

/* Desktop navigation */
@media (min-width: 992px) {
  .nav-toggle { display: none; }

  .menu { display: flex; align-items: center; gap: 2rem; }
  .menu li { position: relative; }

  .has-sub > a::after {
    content: "";
    display: inline-block;
    width: 0.4em;
    height: 0.4em;
    margin-left: 0.45em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.2em) rotate(45deg);
  }

  .submenu {
    position: absolute;
    top: 100%;
    left: -1.1rem;
    min-width: 220px;
    padding: 0.5rem 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  }
  .submenu .submenu { top: -0.5rem; left: 100%; }
  .submenu .has-sub > a::after { transform: translateY(-0.1em) rotate(-45deg); float: right; margin-top: 0.8em; }

  .has-sub:hover > .submenu,
  .has-sub:focus-within > .submenu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

/* Mobile navigation */
@media (max-width: 991.98px) {
  .nav-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .nav-toggle__bar,
  .nav-toggle__bar::before,
  .nav-toggle__bar::after {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s, opacity 0.2s;
  }
  .nav-toggle__bar { top: 21px; }
  .nav-toggle__bar::before,
  .nav-toggle__bar::after { content: ""; left: 0; }
  .nav-toggle__bar::before { top: -7px; }
  .nav-toggle__bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .js .site-nav:not(.is-open) { display: none; }

  .menu > li { border-bottom: 1px solid var(--line); }
  .menu > li > a { padding: 0.8rem 0; }
  .submenu { padding: 0 0 0.6rem 1rem; }
  .submenu a { padding: 0.35rem 0; }
  .submenu .has-sub > a { font-weight: 600; color: var(--ink); }
}

/* 6. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4rem, 10vw, 7.5rem);
  background: linear-gradient(160deg, #fff8ef 0%, var(--white) 55%, var(--blush) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("https://storage.googleapis.com/z-wp-content/Diwali-Homepage-1-1.png") center / cover no-repeat;
  opacity: 0.12;
}

.hero__inner > * { max-width: 820px; }

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero__title-sub {
  display: block;
  font-weight: 500;
  color: var(--accent);
}

.hero__text { max-width: 66ch; font-size: 1.05rem; }
.hero__tagline { font-weight: 600; color: var(--ink); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* 7. Gifts ----------------------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.feature h3 span { display: block; font-weight: 500; font-size: 0.8em; color: var(--muted); }
.feature__media img { width: 100%; border-radius: var(--radius-lg); }

.feature-band {
  margin-top: var(--section-y);
  padding-block: var(--section-y);
  background: var(--mist);
}

@media (min-width: 900px) {
  .feature { grid-template-columns: 1.1fr 1fr; }
  .feature--reverse .feature__media { order: -1; }
}

/* 8. Prepare (tabs) -------------------------------------------------------- */
.prepare__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .prepare__grid { grid-template-columns: 1fr 1fr; }
}

.prepare__media { display: grid; }
.tab-image {
  grid-area: 1 / 1;
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
}
.js .tab-image { opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.js .tab-image.is-active { opacity: 1; visibility: visible; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.tabs__tab {
  position: relative;
  padding: 0.6rem 0;
  border: 0;
  background: none;
  font: 600 1rem var(--font);
  color: var(--muted);
  cursor: pointer;
}
.tabs__tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.tabs__tab:hover,
.tabs__tab[aria-selected="true"] { color: var(--accent); }
.tabs__tab[aria-selected="true"]::after { transform: scaleX(1); }

/* Without JavaScript all three panels show, stacked. */
.no-js .tabs { display: none; }
.no-js .tabs__panel + .tabs__panel { margin-top: 2rem; }
.tabs__panel[hidden] { display: none; }

.tabs__kicker { font-weight: 600; color: var(--accent); margin-bottom: 0.5rem; }

/* 9. Cards ----------------------------------------------------------------- */
.cards { background: var(--white); padding-top: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.card__link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  color: inherit;
  transition: border-color 0.2s;
}
.card__link:hover { border-color: var(--accent); color: inherit; }
.card__link img { width: 100%; aspect-ratio: 37 / 36; object-fit: cover; }
.card__body { display: block; padding: 1.1rem 1.25rem 1.3rem; }
.card__title { display: block; font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.card__meta { display: block; font-size: 0.9rem; color: var(--accent); }

/* 10. Numbers -------------------------------------------------------------- */
.numbers { background: var(--blush); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat__value {
  display: block;
  font-size: clamp(2.4rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
}
.stat__label { display: block; margin-top: 0.4rem; color: var(--ink); }
.stat--sky .stat__value { color: var(--sky); }
.stat--gold .stat__value { color: var(--gold); }
.stat--teal .stat__value { color: var(--teal); }
.stat--pink .stat__value { color: var(--pink); }

/* 11. Wishes slider -------------------------------------------------------- */
.wishes__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 992px) {
  .wishes__grid { grid-template-columns: 5fr 7fr; gap: 4rem; }
}
.wishes__intro p { font-size: 1.1rem; }

.slider {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--mist);
  border-radius: var(--radius-lg);
}
.slider__track { display: grid; }
.slide {
  grid-area: 1 / 1;
  margin: 0;
  color: var(--ink);
}
.js .slide { opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s; }
.js .slide.is-active { opacity: 1; visibility: visible; }
.no-js .slide { grid-area: auto; }
.no-js .slide + .slide { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }

.slide__source { margin-top: 1.25rem; display: flex; flex-direction: column; }
.slide__source cite { font-style: normal; font-weight: 600; color: var(--accent); }
.slide__source span { font-size: 0.9rem; color: var(--muted); }

.slider__controls { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.no-js .slider__controls { display: none; }
.slider__btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}
.slider__btn:hover { background: var(--ink); color: var(--white); }
.slider__count { font-weight: 600; color: var(--muted); font-size: 0.9rem; }

/* 12. Topics --------------------------------------------------------------- */
.topics { background: var(--mist); }

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.topic {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1.1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
}
.topic__icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; }
.topic__icon svg { width: 36px; height: 36px; }
.topic--link { transition: border-color 0.2s, color 0.2s; }
.topic--link:hover { border-color: var(--accent); color: var(--accent); }

/* 13. Muhurat CTA ---------------------------------------------------------- */
.cta { background: var(--accent); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta h2 { margin: 0; max-width: 24ch; color: var(--white); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.5rem); }

/* 14. Footer --------------------------------------------------------------- */
.site-footer { padding-top: clamp(3rem, 6vw, 4.5rem); background: var(--white); font-size: 0.95rem; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 2rem;
}
.footer-col__title { margin-bottom: 1.25rem; font-size: 1.1rem; font-weight: 600; color: #3f4244; }
.footer-col__title a { color: inherit; }
.footer-col__title a:hover { color: var(--accent); }
.footer-col li + li { margin-top: 0.35rem; }
.footer-col a { color: var(--text); }
.footer-col a:hover { color: var(--accent); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.footer-social__label { margin-right: 0.5rem; font-weight: 600; color: var(--ink); }
.footer-social img { width: 36px; height: 36px; border-radius: 50%; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  color: #000;
  font-weight: 500;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-legal a { color: var(--text); font-weight: 400; }
.footer-legal a:hover { color: var(--accent); }

/* 15. Utilities + motion --------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition: none !important; animation: none !important; }
}
