/* Fonts */
@font-face {
  font-family: 'TT Drugs Trial';
  src: url('fonts/TTDrugsTrial-Rg.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Chivo Mono';
  src: url('fonts/ChivoMono-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Chivo Mono';
  src: url('fonts/ChivoMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

/* Design tokens */
:root {
  --background: #ede8df;
  --olive:      #4b4c36;
  --dune:       #d2cdbf;
  --khaki:      #857d66;
  --umber:      #4d402c;
  --black:      #000;

  --radius-card: 14px;
  --radius-sm:   8px;

  --shadow-card: 0 2px 12px rgba(75, 76, 54, 0.10), 0 1px 3px rgba(75, 76, 54, 0.08);
  --shadow-promo: 0 4px 20px rgba(75, 76, 54, 0.14);

  --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::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;
  min-height: 100dvh;
}

/* ── HEADER ── */
.header {
  background-color: #221500;
  padding: 48px 32px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(210, 205, 191, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.logo {
  display: block;
  width: 180px;
  margin: 0 auto 22px;
  position: relative;
}
.logo .st1 { fill: var(--dune); }

.header-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}

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

.header-reviews {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: var(--dune);
  opacity: 0.6;
  transition: opacity var(--transition-base);
  -webkit-tap-highlight-color: transparent;
  background: rgba(210, 205, 191, 0.08);
  border-radius: 999px;
  padding: 5px 12px;
  border: 1px solid rgba(210, 205, 191, 0.15);
}
.header-reviews:active { opacity: 0.35; }

.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;
}

/* ── HOURS ── */
.hours {
  background-color: var(--dune);
  color: var(--olive);
  padding: 9px 16px;
  text-align: center;
  font-family: 'Chivo Mono', monospace;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.9;
}

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

/* ── CARD ── */
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 24px;
  min-height: 120px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  border-radius: var(--radius-card);
  box-shadow: nine;
  transition: transform var(--transition-base), opacity var(--transition-base), box-shadow var(--transition-base);
  will-change: transform;
}

.card:active {
  transform: scale(0.984);
  opacity: 0.88;
  box-shadow: 0 1px 4px rgba(75, 76, 54, 0.10);
}

/* Top row: eyebrow label + arrow */
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Bottom block: title + sub */
.card-bottom {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Legacy body wrapper used by .row cards */
.card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

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

.card-sub {
  display:none;
}

.card-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  opacity: 0.45;
}

/* ── COLOUR VARIANTS ── */
.card--olive {
  background-color: #000000;
  color: var(--dune);
}
.card--umber {
  background-color: #221500;
  color: var(--dune);
}
.card--khaki {
  background-color: var(--khaki);
  color: var(--dune);
}
.card--light {
  background-color: #f0ece4;
  color: var(--olive);
  border: 1px solid rgba(133, 125, 102, 0.18);
}
.card--dune {
  background-color: var(--dune);
  color: var(--umber);
}

/* ── PROMO SCROLL ── */
.promos {
  display: flex;
  flex-direction: row;
  gap: 15px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: -4px;
}
.promos::-webkit-scrollbar { display: none; }

/* ── PROMO CARD ── */
.promo {
  flex-shrink: 0;
  width: 72vw;
  max-width: 300px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  background-color: #111111;
  color: var(--dune);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-promo);
  transition: transform var(--transition-base), opacity var(--transition-base);
  will-change: transform;
}
.promo:active {
  transform: scale(0.975);
  opacity: 0.85;
}

.promo-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--umber);
}

.promo-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.promo:active .promo-img img { transform: scale(1.03); }

.promo-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.promo-eyebrow {
  font-family: 'Chivo Mono', monospace;
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.5;
}

.promo-title {
  font-family: 'TT Drugs Trial', 'TT Drugs', 'Gill Sans', sans-serif;
  font-weight: 400;
  font-size: 20px;
  padding-bottom: 30px;
  letter-spacing: 0.02em;
  padding-top: 5px;
  line-height: 1.35;
  text-transform: uppercase;
}

.promo-text {
  font-family: 'Chivo Mono', monospace;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.75;
  opacity: 0.7;
}

.promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-family: 'Chivo Mono', monospace;
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(210, 205, 191, 0.3);
  padding-bottom: 2px;
  width: fit-content;
  padding-top: 20px;
  bottom: 0;
}

/* ── SECTION LABEL ── */
.section-label {
  font-family: 'Chivo Mono', monospace;
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--khaki);
  opacity: 0.7;
  padding: 8px 0 2px;
}

/* ── FACILITY NAV ── */
.facilities {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.facility {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 14px 16px;
  min-height: 100px;
  text-decoration: none;
  background-color: #f0ece4;
  color: var(--umber);
  border: 1px solid rgba(133, 125, 102, 0.18);
  border-radius: var(--radius-sm);
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--transition-base), color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  will-change: transform;
}

.facility:active {
  background-color: var(--olive);
  color: var(--dune);
  transform: scale(0.96);
  box-shadow: 0 1px 4px rgba(75, 76, 54, 0.10);
}

@media (hover: hover) {
  .facility:hover {
    background-color: var(--olive);
    color: var(--dune);
  }
  .facility:hover .facility-arrow path { fill: var(--dune); }
}

.facility-arrow {
  width: 16px;
  height: 16px;
  opacity: 0.4;
  align-self: flex-end;
}

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

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

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

.row .card {
  min-height: 80px;
  padding: 18px 20px;
}
.row .card-title { font-size: 21px; }

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

.footer hr {
  border: none;
  border-top: 1px solid rgba(133, 125, 102, 0.25);
  margin-bottom: 20px;
}

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

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

/* ── FLOATING WHATSAPP ── */
.wa-float {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom, 24px));
  right: 20px;
  z-index: 50;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  height: 54px;
  background-color: var(--olive);
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(75, 76, 54, 0.28), 0 1px 4px rgba(0,0,0,0.12);
  text-decoration: none;
  transition: background-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}

.wa-float:active {
  transform: scale(0.94);
  box-shadow: 0 2px 8px rgba(75, 76, 54, 0.2);
}

@media (hover: hover) {
  .wa-float:hover,
  .wa-float:focus-visible {
    background-color: var(--umber);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(75, 76, 54, 0.32), 0 1px 4px rgba(0,0,0,0.12);
  }
}

.wa-float-icon {
  width: 54px;
  height: 54px;
  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: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dune);
  opacity: 0;
  padding-left: 0;
  padding-right: 0;
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.15s ease 0.12s,
              padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
  .wa-float:hover .wa-float-label,
  .wa-float:focus-visible .wa-float-label {
    max-width: 120px;
    opacity: 1;
    padding-left: 14px;
    padding-right: 4px;
  }
}
