/* =========================================================
   MONTIS CLINIC — Entry Gateway
   Brand colours taken from the logo
   ========================================================= */

:root {
  --green: #0b7b5d;
  --green-deep: #064a38;
  --green-ink: #0d2a22;
  --gold: #d5b05f;
  --gold-deep: #a9843a;
  --gold-light: #f1e2bd;

  --ivory: #faf7f1;
  --paper: #ffffff;
  --text: #2d3a35;
  --muted: #6c7a74;

  --serif: "Poppins", "Segoe UI", system-ui, sans-serif;
  --sans: "Poppins", "Segoe UI", system-ui, sans-serif;

  --ease: cubic-bezier(.22, .8, .24, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- Background glows ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.glow--gold {
  width: 620px; height: 620px;
  top: -260px; left: 50%;
  transform: translateX(-50%);
  background: rgba(213, 176, 95, .22);
}
.glow--green {
  width: 760px; height: 760px;
  bottom: -420px; left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 123, 93, .12);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 1.1s var(--ease) var(--d, 0s),
    transform 1.1s var(--ease) var(--d, 0s);
}
.is-loaded .reveal { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: clamp(40px, 7vh, 72px) 16px clamp(36px, 6vh, 56px);
}

.logo img {
  width: clamp(120px, 14vw, 168px);
  margin: 0 auto;
}

.hero-sub {
  margin-top: 26px;
  font-size: clamp(.78rem, 1.6vw, .9rem);
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--green);
}
.hero-sub .amp {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3em;
  letter-spacing: 0;
  color: var(--gold-deep);
  text-transform: none;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 26px auto 0;
}
.divider .line {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.divider .line:last-child { background: linear-gradient(90deg, var(--green), transparent); }
.divider .dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--gold  { background: var(--gold); }
.dot--green { background: var(--green); }

/* ---------- Pathway cards ---------- */
.pathways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  flex: 1;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 540px;
  padding: clamp(28px, 3.5vw, 48px);
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  outline: none;
  transition:
    transform .7s var(--ease),
    box-shadow .7s var(--ease),
    opacity 1.1s var(--ease) var(--d, 0s);
}

.is-loaded .card:hover,
.is-loaded .card:focus-visible { transform: translateY(-8px); }

/* Wellness — emerald */
.card--wellness {
  background:
    radial-gradient(120% 80% at 100% 0%, #13946f 0%, transparent 55%),
    linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff;
  box-shadow: 0 30px 60px -28px rgba(6, 74, 56, .55);
}
.card--wellness:hover { box-shadow: 0 44px 80px -30px rgba(6, 74, 56, .65); }

/* Aesthetic — champagne gold */
.card--aesthetic {
  background:
    radial-gradient(120% 80% at 100% 0%, #fbf3df 0%, transparent 55%),
    linear-gradient(160deg, var(--gold-light) 0%, #e2c582 100%);
  color: var(--green-ink);
  box-shadow: 0 30px 60px -28px rgba(169, 132, 58, .55);
}
.card--aesthetic:hover { box-shadow: 0 44px 80px -30px rgba(169, 132, 58, .65); }

.card:focus-visible { box-shadow: 0 0 0 3px var(--ivory), 0 0 0 5px var(--gold); }

/* Logo dot motif, large and faint in the corner */
.dots {
  position: absolute;
  z-index: -1;
  width: 340px;
  top: -40px;
  right: -60px;
  transition: transform 1.2s var(--ease);
}
.card--wellness .dots circle  { fill: #fff; opacity: .07; }
.card--aesthetic .dots circle { fill: var(--gold-deep); opacity: .14; }
.card:hover .dots { transform: translate(-12px, 12px) rotate(-6deg); }

.card-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -.025em;
}
.card-title em {
  font-style: italic;
  font-weight: 400;
}
.card--wellness .card-title em  { color: var(--gold); }
.card--aesthetic .card-title em { color: var(--green); }

.card-tagline {
  margin-top: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(.95rem, 1.4vw, 1.05rem);
  line-height: 1.3;
  opacity: .88;
}

.card-focus {
  margin: 26px 0 32px;
  display: grid;
  gap: 10px;
}
.card-focus li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .98rem;
  padding-bottom: 10px;
}
.card--wellness .card-focus li  { border-bottom: 1px solid rgba(255,255,255,.14); }
.card--aesthetic .card-focus li { border-bottom: 1px solid rgba(13,42,34,.12); }
.card-focus li:last-child { border-bottom: 0; padding-bottom: 0; }
.card-focus li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.card--wellness .card-focus li::before  { background: var(--gold); }
.card--aesthetic .card-focus li::before { background: var(--green); }

.card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  align-self: flex-start;
  padding: 16px 18px 16px 28px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .5s var(--ease), color .5s var(--ease), padding .5s var(--ease);
}
.card-cta svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .5s var(--ease), background .5s var(--ease);
}

.card--wellness .card-cta { background: #fff; color: var(--green-deep); }
.card--wellness .card-cta svg { background: var(--green); color: #fff; }
.card--wellness:hover .card-cta { background: var(--gold); color: var(--green-ink); }
.card--wellness:hover .card-cta svg { background: var(--green-ink); }

.card--aesthetic .card-cta { background: var(--green-ink); color: #fff; }
.card--aesthetic .card-cta svg { background: var(--gold); color: var(--green-ink); }
.card--aesthetic:hover .card-cta { background: var(--green); }

.card:hover .card-cta { padding-right: 14px; padding-left: 32px; }
.card:hover .card-cta svg { transform: translateX(4px); }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px clamp(16px, 4vw, 40px) 32px;
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--muted);
}

/* ---------- Page transition ---------- */
.wash {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity .55s var(--ease);
}
.wash.is-wellness  { background: var(--green-deep); }
.wash.is-aesthetic { background: var(--gold-light); }
.wash.is-active    { opacity: 1; }

/* ---------- Tablet & mobile ---------- */
@media (max-width: 860px) {
  .pathways { grid-template-columns: 1fr; }
  .card { min-height: 0; padding-top: 90px; }
}

@media (max-width: 480px) {
  .hero-sub { letter-spacing: .18em; }
  .card { padding: 28px 22px; border-radius: 22px; }
  .dots { width: 260px; right: -70px; }
  .card-cta { display: flex; width: 100%; padding-left: 22px; letter-spacing: .12em; font-size: .74rem; }
  .card:hover .card-cta { padding-left: 22px; padding-right: 18px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
