/* Fonts — using website's own woff2 files */
@font-face {
  font-family: 'TT Drugs Trial';
  src: url('../Mahimawebsite/mahima-main/public/fonts/TTDrugsTrial-Rg.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Chivo Mono';
  src: url('../Mahimawebsite/mahima-main/public/fonts/ChivoMono-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Chivo Mono';
  src: url('../Mahimawebsite/mahima-main/public/fonts/ChivoMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

/* Design tokens — exact match to website */
:root {
  --background: #f2eee6;
  --olive:      #4b4c36;
  --dune:       #d2cdbf;
  --khaki:      #857d66;
  --umber:      #4d402c;
  --black:      #000;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Chivo Mono', 'Courier New', monospace;
  font-weight: 300;
  background-color: var(--background);
  color: var(--olive);
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
.header {
  background-color: var(--olive);
  padding: 52px 32px 44px;
  text-align: center;
}

.logo {
  display: block;
  width: 188px;
  margin: 0 auto 20px;
}
.logo .st1 { fill: var(--dune); }

.header-location {
  font-family: 'Chivo Mono', monospace;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--dune);
  opacity: 0.55;
  text-transform: uppercase;
}

/* ── HOURS ── */
.hours {
  background-color: #857c66;
  color: var(--dune);
  padding: 11px 16px;
  text-align: center;
  font-family: 'Chivo Mono', monospace;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* ── HEADER REVIEWS ── */
.header-reviews {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  text-decoration: none;
  color: var(--dune);
  opacity: 0.7;
  transition: opacity 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.header-reviews:active { opacity: 0.45; }

.header-stars {
  display: flex;
  gap: 2px;
}

.header-rating {
  font-family: 'Chivo Mono', monospace;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── STACK ── */
.stack {
  padding: 20px 16px 0;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ── CARD ── */
.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.1s ease;
}

.card:active { opacity: 0.75; }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-eyebrow {
  font-family: 'Chivo Mono', monospace;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}

.card-title {
  font-family: 'TT Drugs Trial', 'TT Drugs', 'Gill Sans', sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.card-sub {
  font-family: 'Chivo Mono', monospace;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.08em;
  opacity: 0.6;
  text-transform: uppercase;
  margin-top: 1px;
}

.card-arrow {
  flex-shrink: 0;
  margin-left: 16px;
  opacity: 0.5;
  width: 22px;
  height: 22px;
}

/* ── COLOUR VARIANTS ── */
.card--olive {
  background-color: var(--olive);
  color: var(--dune);
  min-height: 86px;
}
.card--umber {
  background-color: var(--umber);
  color: var(--dune);
  min-height: 86px;
}
.card--khaki {
  background-color: var(--khaki);
  color: var(--dune);
}
.card--light {
  background-color: var(--background);
  color: var(--olive);
  border: 1px solid rgba(75, 76, 54, 0.2);
}
.card--dune {
  background-color: var(--dune);
  color: var(--umber);
}

/* ── FACILITY ROW (3-col) ── */
.facilities {
  padding: 20px 16px 0;
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.facility {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 16px 14px;
  text-decoration: none;
  background-color: #e9e3db;
  color: #4b4c37;
  min-height: 125px;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.1s ease;
}

.facility:active { opacity: 0.75; }

.facility-label {
  font-family: 'Chivo Mono', monospace;
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 5px;
}

.facility-name {
  font-family: 'TT Drugs Trial', 'TT Drugs', 'Gill Sans', sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

/* ── TWO-COL ROW ── */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.row .card {
  min-height: 72px;
  padding: 18px 20px;
}

.row .card-title { font-size: 22px; }
.row .card-arrow { display: none; }

/* ── FOOTER ── */
.footer {
  padding: 28px 16px max(44px, env(safe-area-inset-bottom, 44px));
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.footer hr {
  border: none;
  border-top: 1px solid var(--dune);
  margin-bottom: 20px;
}

.footer p {
  font-family: 'Chivo Mono', monospace;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--khaki);
  line-height: 2.2;
}

.footer a {
  color: var(--umber);
  text-decoration: none;
}

/* ── FLOATING WHATSAPP ── */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  height: 56px;
  background-color: var(--olive);
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  text-decoration: none;
  transition: background-color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.wa-float:hover,
.wa-float:focus-visible {
  background-color: var(--umber);
}

.wa-float-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-float-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: 'Chivo Mono', monospace;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dune);
  opacity: 0;
  padding-left: 0;
  padding-right: 0;
  transition: max-width 0.3s ease, opacity 0.15s ease 0.15s, padding 0.3s ease;
}

.wa-float:hover .wa-float-label,
.wa-float:focus-visible .wa-float-label {
  max-width: 120px;
  opacity: 1;
  padding-left: 16px;
  padding-right: 4px;
}
