:root {
  --bg: #f6f1e8;
  --surface: #fffdf9;
  --surface-2: #fffaf2;
  --text: #221b17;
  --muted: #6d6259;
  --line: #e6daca;
  --accent: #c84b2f;
  --accent-2: #b8913a;
  --shadow: 0 18px 45px rgba(76, 45, 24, 0.08);
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Georgia", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 90% 0%, rgba(200, 75, 47, 0.12), transparent 35%),
    radial-gradient(circle at 8% 18%, rgba(184, 145, 58, 0.16), transparent 25%),
    var(--bg);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

.page-shell {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 1.2rem 0 3rem;
}

.site-header {
  position: sticky;
  top: 0.8rem;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  background: rgba(255, 252, 247, 0.82);
}

.brand img,
.site-footer img {
  height: 48px;
  width: auto;
}

.header-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.solid-btn,
.ghost-btn,
.text-link {
  font-family: var(--font-body);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.solid-btn {
  background: linear-gradient(135deg, var(--accent), #de6b49);
  color: #fff;
  border: 1px solid transparent;
  padding: 0.6rem 1rem;
}

.solid-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 75, 47, 0.32);
}

.ghost-btn {
  background: #fff;
  color: #6d5648;
  border: 1px solid var(--line);
  padding: 0.56rem 0.95rem;
}

.ghost-btn:hover {
  transform: translateY(-1px);
  border-color: #d6c2aa;
}

.text-link {
  color: var(--accent);
  padding: 0.3rem 0.2rem;
}

main {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  margin-top: 1.4rem;
}

section {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  padding: 2.2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: stretch;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  font-weight: 700;
  font-family: var(--font-body);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  margin-top: 0.6rem;
  max-width: 16ch;
}

.hero-title {
  text-wrap: balance;
}

.hero-title__slot {
  display: inline-block;
  min-width: 9.5ch;
  white-space: nowrap;
  color: var(--accent);
  position: relative;
}

.hero-title__slot > span {
  display: inline-block;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.hero-title__slot.is-fading > span {
  opacity: 0;
  transform: translateY(0.18em);
}

.hero-subcopy {
  margin: 0.9rem 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1rem;
}

.hero-cta {
  margin-top: 1.1rem;
  gap: 0.7rem;
  align-items: center;
}

.hero-search-intent {
  margin: 1rem 0 0;
  max-width: 62ch;
  color: #5f5349;
  font-size: 0.92rem;
  /* Text should be justified */
  text-align: justify;
  font-style: italic;
}

.hero-highlight {
  border: 1px solid #ebdfd1;
  border-radius: 18px;
  background: linear-gradient(160deg, #fff9ef, #fffdf9);
  padding: 1.15rem;
}

.hero-highlight h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.hero-highlight ol {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.5rem;
  color: #4b4038;
}

.categories {
  padding: 1.35rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.categories article,
.value-grid article,
.experience-card {
  border: 1px solid #eee4d8;
  border-radius: 16px;
  background: var(--surface-2);
  padding: 1rem;
}

.categories h3,
.value-grid h3,
.experience-card h3 {
  font-size: 1.04rem;
  line-height: 1.18;
}

.categories p,
.value-grid p,
.experience-card p,
.organiser-copy p,
.final-cta p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.why-haazir {
  padding: 1.5rem;
}

.why-haazir h2,
.featured h2,
.organiser-section h2,
.final-cta h2 {
  font-size: clamp(1.3rem, 2.8vw, 2rem);
}

.brand-burst-mark {
  display: inline-block;
  vertical-align: -0.22em;
  margin: 0 0.12em;
}

.brand-burst-mark img {
  display: block;
  width: clamp(5.4rem, 12vw, 7.6rem);
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.value-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.featured {
  padding: 1.5rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.section-head--stacked {
  align-items: flex-start;
  flex-direction: column;
}

.section-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 64ch;
}

.featured-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.type-tag {
  display: inline-flex;
  border-radius: 999px;
  background: #f3e8d7;
  color: #8f6430;
  font-size: 0.72rem;
  padding: 0.16rem 0.55rem;
  margin: 0;
  font-weight: 700;
}

.meta {
  font-weight: 600;
  color: #5e5148;
}

.trust-band {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
  gap: 0.6rem;
}

.metric {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  color: var(--accent);
}

.metric-label {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.faq-section {
  padding: 1.5rem;
}

.faq-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.faq-item {
  border: 1px solid #eee4d8;
  border-radius: 16px;
  background: var(--surface-2);
  padding: 1rem;
}

.faq-item p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.organiser-section {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  align-items: start;
}

.organiser-form {
  display: grid;
  gap: 0.75rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #5a4c42;
}

input,
select,
textarea {
  border: 1px solid #e3d7c9;
  border-radius: 12px;
  padding: 0.68rem 0.72rem;
  font: inherit;
  font-size: 0.9rem;
  background: #fffefb;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(200, 75, 47, 0.24);
  border-color: #d17b65;
}

.form-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.form-status {
  margin: 0;
  font-size: 0.86rem;
  color: #6d6259;
}

.form-status.success {
  color: #1f6f42;
}

.form-status.error {
  color: #a23a2d;
}

.final-cta {
  padding: 1.9rem;
  text-align: center;
}

.site-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  border-top: 1px dashed #d8c9b8;
  padding-top: 1rem;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.site-footer a {
  color: #6a5d53;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}

/* ─── Legal pages ──────────────────────────────────────────────────────────── */
.legal-section {
  padding: 2rem 2.4rem;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 1.6rem;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-section h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 0.3rem;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0 0 2rem;
}

.legal-section h2 {
  font-size: 1.12rem;
  margin-top: 2rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
}

.legal-section h3 {
  font-size: 1rem;
  margin-top: 1.2rem;
  margin-bottom: 0.25rem;
}

.legal-section p {
  margin: 0.55rem 0;
  color: #4a3e37;
  font-size: 0.95rem;
  line-height: 1.65;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.4rem;
  margin: 0.5rem 0;
  color: #4a3e37;
  font-size: 0.95rem;
  line-height: 1.65;
}

.legal-section li {
  margin: 0.3rem 0;
}

.legal-section strong {
  color: var(--text);
}

.legal-section a {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 720px) {
  .legal-section {
    padding: 1.2rem 1rem;
  }
}

.launch-toast {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  background: #221b17;
  color: #fffdf9;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.58rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(34, 27, 23, 0.34);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.launch-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .hero,
  .organiser-section {
    grid-template-columns: 1fr;
  }

  .categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-grid,
  .value-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(1120px, 94vw);
    padding-top: 0.7rem;
  }

  .site-header {
    position: static;
    top: auto;
    padding: 0.5rem 0.6rem;
    border-radius: 14px;
    gap: 0.5rem;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .brand img,
  .site-footer img {
    height: 34px;
  }

  .header-actions {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    gap: 0.4rem;
    flex-wrap: nowrap;
  }

  .header-actions .text-link,
  .header-actions .ghost-btn,
  .header-actions .solid-btn {
    font-size: 0.74rem;
    padding: 0.38rem 0.62rem;
  }

  .header-actions .text-link[href="#categories"],
  .header-actions .text-link[href="#featured"],
  .header-actions .text-link[href="#faq"],
  .header-actions .text-link[href="#organisers"] {
    display: none;
  }

  .header-actions .ghost-btn,
  .header-actions .solid-btn {
    white-space: nowrap;
  }

  .header-actions .ghost-btn {
    flex: 0 0 auto;
  }

  .header-actions .solid-btn {
    flex: 0 0 auto;
  }

  .hero {
    padding: 1.05rem;
    gap: 0.95rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(1.75rem, 8vw, 2.35rem);
    line-height: 1.04;
    margin-top: 0.45rem;
  }

  .hero-title__slot {
    min-width: 7.2ch;
  }

  .hero-subcopy {
    margin-top: 0.65rem;
    font-size: 0.94rem;
  }

  .hero-cta {
    margin-top: 0.85rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .hero-cta .solid-btn,
  .hero-cta .ghost-btn,
  .hero-cta .text-link {
    width: 100%;
    justify-content: center;
    padding: 0.72rem 0.95rem;
  }

  .hero-cta .text-link {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--accent);
  }

  .hero-cta .solid-btn {
    order: 1;
  }

  .hero-cta .ghost-btn {
    order: 2;
  }

  .hero-cta .text-link {
    order: 3;
    padding: 0.62rem 0.95rem;
  }

  .hero-search-intent {
    margin-top: 0.7rem;
    font-size: 0.84rem;
  }

  .hero-highlight {
    padding: 0.95rem;
  }

  .hero-highlight ol {
    gap: 0.4rem;
  }

  .categories,
  .trust-band,
  .field-row {
    grid-template-columns: 1fr;
  }

  .categories,
  .why-haazir,
  .featured,
  .faq-section,
  .organiser-section,
  .final-cta {
    padding: 1rem;
  }

  .why-haazir h2,
  .featured h2,
  .organiser-section h2,
  .final-cta h2 {
    line-height: 1.08;
  }

  .brand-burst-mark img {
    width: clamp(4.8rem, 28vw, 6rem);
  }

  .hero,
  .featured,
  .why-haazir,
  .organiser-section,
  .final-cta {
    padding: 1.2rem;
  }
}
