:root {
  --hm-orange: #f47a20;
  --hm-orange-dark: #c55314;
  --hm-ink: #151515;
  --hm-muted: #5f646d;
  --hm-line: #ece2d8;
  --hm-paper: #fffaf5;
  --hm-cream: #fff2e4;
  --hm-white: #ffffff;
  --hm-green: #0f7a5f;
  --hm-shadow: 0 18px 50px rgba(38, 27, 15, 0.12);
  --hm-radius: 24px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--hm-ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(244, 122, 32, 0.14), transparent 26rem),
    linear-gradient(180deg, #fff7ef 0%, #ffffff 42%, #fff8f1 100%);
  font-family: "Segoe UI", "Aptos", "Trebuchet MS", sans-serif;
  line-height: 1.55;
}

body.is-menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 245, 0.9);
  border-bottom: 1px solid rgba(244, 122, 32, 0.16);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1120px, calc(100% - 32px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: clamp(210px, 48vw, 286px);
  height: auto;
  max-height: 70px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.brand-name {
  display: grid;
  gap: 1px;
}

.brand-name strong {
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-name span {
  color: var(--hm-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 122, 32, 0.25);
  border-radius: 15px;
  background: var(--hm-white);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px rgba(38, 27, 15, 0.08);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--hm-orange);
  display: block;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle {
  gap: 4px;
}

.is-menu-open .nav-toggle span {
  opacity: 0;
}

.is-menu-open .nav-toggle::before {
  transform: translateY(6px) rotate(45deg);
}

.is-menu-open .nav-toggle::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
  position: fixed;
  inset: 82px 16px auto 16px;
  display: none;
  padding: 16px;
  border: 1px solid var(--hm-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--hm-shadow);
}

.is-menu-open .nav-links {
  display: grid;
}

.nav-links a {
  padding: 13px 14px;
  border-radius: 14px;
  color: #2e2e2e;
  font-weight: 800;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--hm-orange-dark);
  background: rgba(244, 122, 32, 0.12);
}

.hero {
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: 42px 0 28px;
  display: grid;
  align-items: center;
  gap: 30px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--hm-orange-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 13vw, 5.9rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.hero-copy {
  max-width: 640px;
  color: #3d3f45;
  font-size: clamp(1.04rem, 3.7vw, 1.35rem);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(38, 27, 15, 0.08);
}

.btn.primary {
  color: var(--hm-white);
  background: var(--hm-orange);
}

.btn.secondary {
  color: var(--hm-orange-dark);
  background: var(--hm-white);
  border-color: rgba(244, 122, 32, 0.2);
}

.hero-panel {
  position: relative;
  padding: 18px;
  border: 1px solid var(--hm-line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--hm-shadow);
}

.phone-card {
  min-height: 430px;
  padding: 22px;
  border-radius: 24px;
  color: var(--hm-white);
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.92), transparent 0 19%, transparent 26%),
    linear-gradient(160deg, rgba(21, 21, 21, 0.14), rgba(21, 21, 21, 0.78)),
    url("https://happimobiles.s3.ap-south-1.amazonaws.com/product-main-images/happi_mobiles_vivo_v60_blue_main_image.webp") 82% 18% / min(64%, 310px) no-repeat,
    linear-gradient(145deg, #2b231e, #111111);
  display: grid;
  align-content: end;
  overflow: hidden;
}

.phone-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(244, 122, 32, 0.24), transparent 48%);
}

.metric-stack {
  position: relative;
  display: grid;
  gap: 12px;
}

.metric {
  display: grid;
  gap: 2px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
}

.metric strong {
  font-size: 1.55rem;
  line-height: 1;
}

.metric span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.section.compact {
  padding-top: 28px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 26px;
}

.section-head h2,
.page-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 9vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.section-head p,
.page-hero p {
  color: var(--hm-muted);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two,
.grid.three {
  grid-template-columns: 1fr;
}

.card {
  padding: 22px;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 38px rgba(38, 27, 15, 0.08);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.card p {
  margin-bottom: 0;
  color: var(--hm-muted);
}

.feature-card {
  min-height: 180px;
  display: grid;
  align-content: space-between;
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--hm-orange-dark);
  background: rgba(244, 122, 32, 0.13);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.band {
  margin: 28px 0;
  padding: 34px 16px;
  color: var(--hm-white);
  background:
    linear-gradient(135deg, rgba(244, 122, 32, 0.94), rgba(21, 21, 21, 0.92));
}

.band-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.band h2 {
  margin: 0;
  font-size: clamp(1.9rem, 8vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.band p {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.page-hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 20px;
}

.careers-page .page-hero {
  padding: 34px 0 12px;
}

.careers-page .section {
  padding: 30px 0;
}

.careers-page .section.compact {
  padding-top: 18px;
}

.careers-page .section-head {
  margin-bottom: 16px;
}

.careers-page .section-head h2,
.careers-page .page-hero h1 {
  margin-bottom: 8px;
}

.franchise-hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 18px;
  display: grid;
  gap: 22px;
  align-items: center;
}

.franchise-hero-media {
  overflow: hidden;
  border: 1px solid rgba(244, 122, 32, 0.18);
  border-radius: 28px;
  background: var(--hm-white);
  box-shadow: var(--hm-shadow);
}

.franchise-hero-media img {
  width: 100%;
  min-height: 220px;
  max-height: 460px;
  object-fit: cover;
}

.franchise-hero-copy {
  max-width: 760px;
}

.franchise-hero-copy h1 {
  margin-bottom: 14px;
  font-size: clamp(2.25rem, 11vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.franchise-hero-copy p:not(.eyebrow) {
  color: var(--hm-muted);
  font-size: clamp(1.02rem, 3.2vw, 1.24rem);
}

.franchise-page .section {
  padding-top: 22px;
}

.franchise-note {
  align-content: center;
}

.franchise-standalone {
  background: #fff8f1;
}

.franchise-standalone .site-shell {
  overflow: visible;
}

.franchise-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(244, 122, 32, 0.18);
  backdrop-filter: blur(16px);
}

.happi-brand {
  width: min(1120px, calc(100% - 28px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.happi-brand-logo {
  width: clamp(156px, 28vw, 250px);
  height: auto;
  max-height: 62px;
  object-fit: contain;
}

.franchise-main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 44px;
  display: grid;
  gap: 20px;
}

.franchise-banner {
  overflow: hidden;
  border: 1px solid rgba(244, 122, 32, 0.18);
  border-radius: 18px;
  background: var(--hm-white);
  box-shadow: var(--hm-shadow);
}

.franchise-banner img {
  width: 100%;
  height: auto;
}

.franchise-form-panel {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid rgba(244, 122, 32, 0.2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 38px rgba(38, 27, 15, 0.1);
}

.franchise-form-panel .contact-form {
  gap: 16px;
}

.franchise-form-panel .btn {
  width: 100%;
  justify-content: center;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--hm-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.timeline-dot {
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--hm-orange);
  box-shadow: 0 0 0 8px rgba(244, 122, 32, 0.12);
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list a,
.contact-list span {
  display: block;
  color: var(--hm-muted);
}

.contact-list span:first-child {
  color: var(--hm-ink);
  font-weight: 900;
}

.map-frame {
  overflow: hidden;
  border: 1px solid rgba(244, 122, 32, 0.18);
  border-radius: 22px;
  background: var(--hm-cream);
  aspect-ratio: 16 / 10;
}

.contact-map {
  margin-top: 18px;
  aspect-ratio: 4 / 3;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

[hidden] {
  display: none !important;
}

.field label {
  color: #444;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field:has(input:required) > label::after,
.field:has(select:required) > label::after,
.field:has(textarea:required) > label::after {
  content: " *";
  color: var(--hm-orange);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--hm-line);
  border-radius: 16px;
  background: var(--hm-white);
  color: var(--hm-ink);
  font: inherit;
  padding: 14px 15px;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field small {
  color: var(--hm-muted);
  font-size: 0.78rem;
}

.recaptcha-status {
  min-height: 18px;
  color: var(--hm-muted);
  font-size: 0.78rem;
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(86px, auto) minmax(90px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.captcha-row strong {
  padding: 13px 14px;
  border: 1px solid rgba(244, 122, 32, 0.24);
  border-radius: 14px;
  color: var(--hm-orange-dark);
  background: rgba(244, 122, 32, 0.1);
  text-align: center;
}

.btn.compact {
  min-height: 46px;
  padding: 11px 14px;
}

.application-form {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--hm-line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--hm-shadow);
}

.careers-page .application-form {
  gap: 12px;
  padding: 14px;
}

.form-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.form-stepper span {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--hm-line);
  border-radius: 14px;
  color: var(--hm-muted);
  background: var(--hm-white);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.form-stepper span.is-active {
  color: var(--hm-orange-dark);
  border-color: rgba(244, 122, 32, 0.42);
  background: rgba(244, 122, 32, 0.12);
}

.form-stepper span.is-complete {
  color: var(--hm-white);
  border-color: var(--hm-orange);
  background: var(--hm-orange);
}

.form-block {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(244, 122, 32, 0.16);
  border-radius: 20px;
  background: rgba(255, 250, 245, 0.88);
}

.careers-page .form-block {
  gap: 12px;
  padding: 14px;
}

.form-block legend {
  padding: 0;
  margin-bottom: 0;
  color: var(--hm-orange-dark);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-step[hidden] {
  display: none;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field.wide {
  grid-column: 1 / -1;
}

.preference-card {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(244, 122, 32, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.preference-card h3 {
  margin: 0;
  color: var(--hm-orange-dark);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trainer-trades p {
  min-height: 48px;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid var(--hm-line);
  border-radius: 14px;
  background: rgba(244, 122, 32, 0.06);
  color: #5c4a3f;
  font-size: 0.95rem;
  line-height: 1.5;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(244, 122, 32, 0.22);
  border-radius: 16px;
  background: rgba(244, 122, 32, 0.08);
  color: #3a312c;
  line-height: 1.45;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--hm-orange);
  flex: 0 0 auto;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.form-status {
  margin: 0;
  color: var(--hm-orange-dark);
  font-weight: 800;
}

.form-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(244, 122, 32, 0.12);
}

.form-progress span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hm-orange), var(--hm-orange-dark));
  transition: width 180ms ease;
}

.role-list {
  display: grid;
  gap: 12px;
}

.role {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--hm-line);
  border-radius: 20px;
  background: var(--hm-white);
}

.careers-page .role {
  padding: 14px;
}

.role strong {
  font-size: 1.04rem;
}

.role span {
  color: var(--hm-muted);
  font-size: 0.93rem;
}

.role ul {
  margin: 0;
  padding-left: 20px;
  color: var(--hm-muted);
  font-size: 0.94rem;
}

.role li + li {
  margin-top: 7px;
}

.site-footer {
  margin-top: 44px;
  color: rgba(255, 255, 255, 0.82);
  background: #151515;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  gap: 26px;
}

.footer-inner .brand-logo {
  width: min(270px, 72vw);
  height: auto;
  max-height: 76px;
  background: transparent;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

.fineprint {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
}

@media (min-width: 760px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-links a {
    padding: 10px 12px;
    font-size: 0.92rem;
  }

  .brand-logo {
    width: 300px;
    max-height: 74px;
  }

  .footer-inner .brand-logo {
    width: 310px;
    max-height: 78px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    padding-top: 36px;
  }

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

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

  .franchise-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    padding-top: 52px;
  }

  .franchise-hero-media {
    order: 2;
  }

  .franchise-hero-copy {
    order: 1;
  }

  .franchise-grid {
    align-items: stretch;
  }

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

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

  .preference-card h3 {
    grid-column: 1 / -1;
  }

  .form-stepper span {
    font-size: 0.8rem;
  }

  .band {
    padding: 58px 32px;
  }

  .band-inner {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Careers: job-scam disclaimer modal */
.disclaimer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(21, 15, 8, 0.55);
  backdrop-filter: blur(6px);
}
.disclaimer-overlay[hidden] { display: none; }
body.disclaimer-open { overflow: hidden; }
.disclaimer-modal {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  background: var(--hm-white);
  border: 1px solid var(--hm-line);
  border-top: 5px solid var(--hm-orange);
  border-radius: var(--hm-radius);
  box-shadow: var(--hm-shadow);
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  animation: disclaimer-pop 0.2s ease-out;
}
@keyframes disclaimer-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.disclaimer-close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--hm-muted);
  cursor: pointer;
}
.disclaimer-close:hover { color: var(--hm-ink); }
.disclaimer-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border-radius: 50%;
  background: var(--hm-cream);
  border: 1px solid var(--hm-line);
}
.disclaimer-title {
  margin: 0 0 0.15rem;
  font-size: 1.35rem;
  color: var(--hm-ink);
}
.disclaimer-title-hi {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--hm-orange-dark);
}
.disclaimer-body p {
  margin: 0 0 0.9rem;
  color: var(--hm-muted);
  line-height: 1.6;
  font-size: 0.98rem;
}
.disclaimer-body .disclaimer-hindi { color: var(--hm-ink); }
.disclaimer-body a {
  color: var(--hm-orange-dark);
  font-weight: 600;
  word-break: break-word;
}
.disclaimer-actions { margin-top: 1.25rem; }
.disclaimer-actions .btn { width: 100%; }
