/* The Doctors – Elizabeth Medical Centre
   Palette and type follow the brand guidelines (DD_The_Doctors-EMC_Branding_Preview).

   Brand typefaces -> web stand-ins (swap in licensed webfonts when available):
     TD Arial (headline)         -> Nunito 800
     Elizabeth Sans (body)       -> Archivo, expanded width
     Montserrat (labels)         -> Montserrat
     Marlide Display (editorial) -> Instrument Serif */

:root {
  /* Brand palette */
  --vitality-clay: #a35038;
  --clinical-off-white: #e3ceb1;
  --medical-teal: #466c67;
  --healing-sage: #9aa585;
  --pulse-red: #662b1d;
  /* Supporting tones used on the logo files */
  --cream: #f8eadb;
  --ink: #231f1f;
  --paper: #fdf9f4;

  --font-headline: "Nunito", "Arial Rounded MT Bold", "Arial Rounded MT", system-ui, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-label: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;

  --gutter: clamp(16px, 4.5vw, 88px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-stretch: 112%;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p, figure { margin: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Corner labels, as on every page of the brand presentation */
.corner-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: clamp(0.72rem, 0.9vw, 0.9rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
}
.corner-labels--clay { color: var(--vitality-clay); }

.eyebrow {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  min-height: 100vh;
  min-height: 100svh;
  background: var(--medical-teal);
  color: var(--cream);
}

.hero__panel {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3.5vw, 56px) var(--gutter);
}

.hero__content {
  margin-block: auto;
  padding-block: clamp(40px, 7vh, 96px);
  max-width: 40rem;
}

.hero__logo {
  display: block;
  width: min(100%, 30rem);
  aspect-ratio: 1.8659;
  color: var(--cream);
  margin-bottom: clamp(40px, 7vh, 80px);
}

.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  margin-bottom: 1.25rem;
  padding: 0.55em 1.2em;
  border-radius: 999px;
  background: var(--cream);
  color: var(--pulse-red);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.35vw, 1.2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.soon-badge__place {
  padding-left: 0.75em;
  border-left: 1.5px solid currentColor;
  font-weight: 600;
  color: var(--vitality-clay);
}

.hero__title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-stretch: normal;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.hero__lede {
  margin-top: 1.1rem;
  max-width: 34rem;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: var(--cream);
  opacity: 0.92;
}

.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2rem;
  max-width: 34rem;
}

.notify input[type="email"] {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.95rem 1.2rem;
  border: 1.5px solid rgba(248, 234, 219, 0.55);
  border-radius: 999px;
  background: rgba(248, 234, 219, 0.08);
  color: var(--cream);
  font: inherit;
  font-stretch: 112%;
}
.notify input::placeholder { color: rgba(248, 234, 219, 0.7); }
.notify input:focus-visible {
  outline: none;
  border-color: var(--cream);
  background: rgba(248, 234, 219, 0.14);
}

.notify button {
  flex: 0 0 auto;
  padding: 0.95rem 1.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--vitality-clay);
  color: var(--cream);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.notify button:hover { background: var(--pulse-red); }
.notify button:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.notify button:disabled { opacity: 0.7; cursor: progress; }

.notify__status {
  flex-basis: 100%;
  min-height: 1.5em;
  font-size: 0.92rem;
  color: var(--clinical-off-white);
}

.hero__media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
}

.chip {
  position: absolute;
  left: clamp(16px, 2.5vw, 32px);
  bottom: clamp(16px, 2.5vw, 32px);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: calc(100% - 32px);
  padding: 0.6rem 1.1rem 0.6rem 0.75rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--pulse-red);
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
}
.chip svg {
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  color: var(--medical-teal);
}

/* ---------- About ---------- */
.about {
  background: var(--paper);
  padding: clamp(24px, 3.5vw, 56px) var(--gutter) clamp(64px, 9vw, 128px);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "title img"
    "copy  copy";
  column-gap: clamp(32px, 6vw, 96px);
  row-gap: clamp(40px, 5vw, 64px);
  margin-top: clamp(48px, 6vw, 88px);
  align-items: start;
}

.about__title {
  grid-area: title;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--pulse-red);
}

.about__img {
  grid-area: img;
  width: 100%;
  aspect-ratio: 1336 / 942;
  object-fit: cover;
}

.about__copy {
  grid-area: copy;
  font-family: var(--font-serif);
  font-stretch: normal;
  font-size: clamp(1.6rem, 3.1vw, 2.75rem);
  line-height: 1.22;
  color: var(--pulse-red);
  text-wrap: pretty;
}

/* ---------- Care band ---------- */
.care {
  position: relative;
  overflow: hidden;
  background: var(--clinical-off-white);
  color: var(--medical-teal);
  padding: clamp(72px, 10vw, 140px) var(--gutter);
}

/* Oversized, cropped brandmark – as used on the medical van livery */
.care__mark {
  position: absolute;
  left: clamp(-260px, -14vw, -90px);
  top: 50%;
  width: clamp(260px, 34vw, 520px);
  height: clamp(260px, 34vw, 520px);
  transform: translateY(-50%);
  color: var(--medical-teal);
}

.care__inner {
  position: relative;
  margin-left: clamp(150px, 24vw, 400px);
}

.care__title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-stretch: normal;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--pulse-red);
}

.pillars {
  list-style: none;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.pillars li {
  border-top: 1.5px solid var(--pulse-red);
  padding-top: 1.1rem;
}

.pillar__num {
  display: block;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
  color: var(--vitality-clay);
}

.pillars h3 {
  margin-top: 0.8rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--medical-teal);
}

.pillars p {
  margin-top: 0.4rem;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--pulse-red);
  color: var(--cream);
  padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(24px, 3vw, 40px);
}

/* Topographic line work from the brand stationery */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--vitality-clay);
  -webkit-mask: url("../img/contours.svg") center / cover no-repeat;
  mask: url("../img/contours.svg") center / cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
}

.footer__inner,
.footer__base { position: relative; }

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.footer__logo {
  display: block;
  width: min(100%, 22rem);
  aspect-ratio: 2.4439;
  color: var(--cream);
}

.footer__address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer__label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clinical-off-white);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 20px;
  border-top: 1px solid rgba(248, 234, 219, 0.25);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clinical-off-white);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero__media {
    order: -1;
    height: 52vh;
    min-height: 320px;
  }
  .hero__content { padding-block: 40px 16px; }
  .hero__logo { width: min(100%, 22rem); margin-bottom: 40px; }
  .soon-badge {
    font-size: clamp(0.8rem, 3.6vw, 1rem);
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .about__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "img" "copy";
  }

  .care__mark { opacity: 0.18; left: -120px; }
  .care__inner { margin-left: 0; }
  .pillars { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
