/* ============================================================
   D-HIVE INDIA — design tokens
   Signature: the honeycomb cell — one doctor is one cell,
   the hive is the community. Used in the hero field, the
   offer cards, dividers and the thank-you page.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  /* colour */
  --ink:        #0E2C2A;   /* deep hive-teal, primary dark ground */
  --ink-2:      #123B38;   /* lighter teal for gradients/panels */
  --ink-3:      #0A211F;   /* deepest, for shadows/edges */
  --paper:      #FBF7EF;   /* warm paper, light sections */
  --paper-2:    #F3ECDC;   /* slightly deeper paper for cards */
  --charcoal:   #1C201F;   /* body text on paper */
  --gold:       #E8A63B;   /* hive gold — primary accent */
  --gold-deep:  #C1801E;   /* hover / pressed gold */
  --honey:      #F6E4BE;   /* light amber tint */
  --teal:       #2E8C86;   /* secondary accent, links, focus */
  --line:       rgba(14,44,42,0.14);
  --line-dark:  rgba(251,247,239,0.16);
  --err:        #B3432B;

  /* type */
  --display: 'Fraunces', 'Iowan Old Style', serif;
  --body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  --radius: 14px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg{ display:block; max-width:100%; }
a{ color: inherit; }
h1,h2,h3,p,ul{ margin:0; }
ul{ padding:0; list-style:none; }

.wrap{
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

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

.eyebrow{
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position: sticky; top:0; z-index: 40;
  background: rgba(14,44,42,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  color: var(--paper);
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.01em;
  text-decoration:none;
}
.brand .hex-mark{ width:26px; height:26px; flex:none; }
.brand .hex-mark polygon{ fill: var(--gold); }
.header-cta{
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  border: 1px solid var(--line-dark);
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}
.header-cta:hover{ border-color: var(--gold); background: rgba(232,166,59,0.1); }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position: relative;
  background: radial-gradient(120% 140% at 82% 0%, #14433F 0%, var(--ink) 46%, var(--ink-3) 100%);
  color: var(--paper);
  overflow: hidden;
  padding-top: 84px;
  padding-bottom: 96px;
}
.hive-field{
  position:absolute; inset:0;
  opacity: 0.55;
  mask-image: linear-gradient(100deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.75) 42%, rgba(0,0,0,0.95) 100%);
  -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.75) 42%, rgba(0,0,0,0.95) 100%);
}
.hive-field polygon{
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
}
.hero-grid{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero-copy .eyebrow{ color: var(--gold); margin-bottom: 22px; display:inline-block; }
.hero h1{
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(42px, 6.2vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.hero h1 em{
  font-style: normal;
  color: var(--gold);
}
.hero .subline{
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(251,247,239,0.74);
  margin-top: 14px;
}
.hero .lead{
  margin-top: 26px;
  max-width: 46ch;
  font-size: 19px;
  color: rgba(251,247,239,0.88);
}
.hero .mission-line{
  margin-top: 22px;
  max-width: 48ch;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  color: var(--paper);
  border-left: 2px solid var(--gold);
  padding-left: 18px;
}
.hero-actions{
  margin-top: 38px;
  display:flex; align-items:center; gap: 22px; flex-wrap: wrap;
}

.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15.5px;
  padding: 15px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn-gold{
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--ink-3);
  box-shadow: 0 10px 24px -8px rgba(232,166,59,0.55);
}
.btn-gold:hover{ transform: translateY(-1px); box-shadow: 0 14px 28px -8px rgba(232,166,59,0.65); }
.btn-ghost{
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0; padding: 4px 0;
}
.btn-ghost:hover{ border-color: var(--gold); color: var(--gold); }

.hero-emblem{ position: relative; z-index:2; justify-self:center; width: min(100%, 340px); }

/* ============================================================
   MISSION / PULL QUOTE
   ============================================================ */
.mission{
  padding: 92px 0 80px;
  background: var(--paper);
}
.mission-grid{
  display:grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.mission .eyebrow{ color: var(--gold-deep); }
.mission-quote{
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 33px);
  line-height: 1.28;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.mission-quote .accent{ color: var(--gold-deep); }
.mission-body p{
  font-size: 17px;
  color: #3a4340;
  max-width: 52ch;
}
.mission-body p + p{ margin-top: 16px; }
.mission-stat{
  margin-top: 28px;
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--teal);
  letter-spacing: 0.04em;
}
.mission-stat b{
  font-family: var(--display);
  font-size: 30px;
  color: var(--ink);
  font-weight: 600;
}

/* ============================================================
   OFFER HONEYCOMB
   ============================================================ */
.offers{
  padding: 30px 0 100px;
  background: var(--paper);
}
.offers-head{ max-width: 60ch; margin-bottom: 52px; }
.offers-head .eyebrow{ color: var(--gold-deep); }
.offers-head h2{
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 38px);
  margin-top: 14px;
  color: var(--ink);
}
.comb{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 16px;
  row-gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}
.cell{
  position: relative;
  width: 100%;
  aspect-ratio: 0.92;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(160deg, var(--ink-2) 0%, var(--ink) 100%);
  color: var(--paper);
  display:flex; flex-direction: column; align-items:center; justify-content:center;
  text-align:center;
  padding: 30px 26px;
}
/* Desktop: deterministic 3-over-2 honeycomb — explicit column/row
   placement, not dependent on wrapping, so it can't misalign. */
.cell:nth-child(1){ grid-column: 1 / 3; grid-row: 1; }
.cell:nth-child(2){ grid-column: 3 / 5; grid-row: 1; }
.cell:nth-child(3){ grid-column: 5 / 7; grid-row: 1; }
.cell:nth-child(4){ grid-column: 2 / 4; grid-row: 2; }
.cell:nth-child(5){ grid-column: 4 / 6; grid-row: 2; }

.cell .cell-icon{ width: 34px; height: 34px; margin-bottom: 14px; }
.cell .cell-icon path, .cell .cell-icon circle, .cell .cell-icon line{
  stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.cell h3{
  font-family: var(--body);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.005em;
}
.cell p{
  margin-top: 8px;
  font-size: 13px;
  color: rgba(251,247,239,0.84);
  line-height: 1.5;
}

/* Tablet: 2 tidy columns, last (odd) card centered full-width so it
   never sits orphaned on one side. */
@media (max-width: 900px){
  .comb{
    grid-template-columns: repeat(2, 1fr);
    max-width: 520px;
    row-gap: 20px;
  }
  .cell:nth-child(1),
  .cell:nth-child(2),
  .cell:nth-child(3),
  .cell:nth-child(4){ grid-column: auto; grid-row: auto; }
  .cell:nth-child(5){
    grid-column: 1 / -1;
    grid-row: auto;
    max-width: calc(50% - 10px);
    justify-self: center;
  }
}

/* Mobile: single stacked column, full width cards. */
@media (max-width: 560px){
  .comb{
    grid-template-columns: 1fr;
    max-width: 340px;
    row-gap: 16px;
  }
  .cell:nth-child(5){ max-width: 100%; }
  .cell{ aspect-ratio: unset; padding: 26px 24px; }
}

/* ============================================================
   FORM
   ============================================================ */
.apply{
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}
.apply-head{ max-width: 62ch; margin-bottom: 48px; }
.apply .eyebrow{ color: var(--gold); }
.apply-head h2{
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px);
  margin-top: 14px;
}
.apply-head p{
  margin-top: 16px;
  font-size: 16.5px;
  color: rgba(251,247,239,0.78);
  max-width: 56ch;
}

.form-panel{
  background: var(--paper);
  color: var(--charcoal);
  border-radius: 20px;
  padding: 44px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.55);
}
.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
}
.field{ margin-bottom: 24px; }
.field.full{ grid-column: 1 / -1; }
.field label{
  display:block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 9px;
}
.field .req{ color: var(--gold-deep); }
.field input[type=text],
.field input[type=email],
.field input[type=tel],
.field input[type=url],
.field input[type=number],
.field textarea{
  width: 100%;
  font-family: var(--body);
  font-size: 15.5px;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--charcoal);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus{
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(46,140,134,0.14);
  outline: none;
}
.field textarea{ resize: vertical; min-height: 96px; }
.hint{ font-size: 12.5px; color: #6b756f; margin-top: 6px; }

.check-list, .radio-list{
  display:flex; flex-direction:column; gap: 10px;
}
.radio-list.row{ flex-direction: row; flex-wrap: wrap; gap: 12px; }
.opt{
  display:flex; align-items:flex-start; gap: 11px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  font-size: 14.5px;
}
.opt:hover{ border-color: var(--teal); }
.opt input{ margin-top: 3px; accent-color: var(--teal); flex: none; }
.opt.checked{ border-color: var(--teal); background: rgba(46,140,134,0.06); }
.radio-list.row .opt{ flex: 1 1 150px; }

.ticket-field{
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .35s ease, opacity .3s ease, margin .35s ease;
  margin-bottom: 0;
}
.ticket-field.open{
  max-height: 260px;
  opacity: 1;
  margin-bottom: 24px;
}

.form-error{
  font-size: 13px;
  color: var(--err);
  margin-top: 8px;
  display:none;
}
.form-error.show{ display:block; }

.submit-row{
  margin-top: 6px;
  display:flex; align-items:center; gap: 18px; flex-wrap: wrap;
}
.submit-note{ font-size: 13px; color: #6b756f; }

.success-panel{
  display:none;
  background: var(--paper);
  color: var(--charcoal);
  border-radius: 20px;
  padding: 60px 44px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.55);
  text-align: center;
}
.success-panel.show{ display:block; animation: successIn .45s ease; }
@keyframes successIn{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}
.success-panel .hex-mark-lg{ width: 52px; height: 52px; margin: 0 auto 20px; }
.success-panel .hex-mark-lg polygon{ fill: var(--gold); }
.success-panel .eyebrow{ color: var(--gold-deep); }
.success-panel h3{
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 30px);
  margin-top: 12px;
  color: var(--ink);
}
.success-panel p{
  margin: 14px auto 0;
  max-width: 48ch;
  color: #3a4340;
  font-size: 15.5px;
}
.success-panel .btn{ margin-top: 28px; }

.toast{
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--line-dark);
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 100;
}
.toast.show{ opacity: 1; transform: translate(-50%, 0); }
.toast .dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  background: var(--ink-3);
  color: rgba(251,247,239,0.6);
  padding: 32px 0;
  font-size: 13px;
}
.site-footer .wrap{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap: 10px;
}

/* ============================================================
   THANK YOU PAGE
   ============================================================ */
.thanks{
  min-height: 100vh;
  display:flex; align-items:center; justify-content:center;
  background: radial-gradient(120% 140% at 82% 0%, #14433F 0%, var(--ink) 46%, var(--ink-3) 100%);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 40px 24px;
}
.thanks-card{
  position: relative; z-index: 2;
  max-width: 560px;
  text-align: center;
}
.thanks .hex-mark-lg{ width: 64px; height: 64px; margin: 0 auto 26px; }
.thanks .hex-mark-lg polygon{ fill: var(--gold); }
.thanks .eyebrow{ color: var(--gold); }
.thanks h1{
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 44px);
  margin-top: 16px;
  line-height: 1.12;
}
.thanks p{
  margin-top: 18px;
  font-size: 17px;
  color: rgba(251,247,239,0.82);
}
.thanks .btn-gold{ margin-top: 34px; }

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-emblem{ display:none; }
  .mission-grid{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .form-panel{ padding: 28px; }
}
