/* ============================================================
   Dr Rebecca Hiscutt – Shared Stylesheet
   Design tokens, base styles, layout, typography utilities
   ============================================================ */

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

/* ─── Design tokens ─── */
:root {
  /* Colours */
  --green:          rgb(122, 141, 95);
  --dark:           rgb(34, 34, 34);
  --body:           rgb(102, 102, 102);
  --muted:          rgb(115, 115, 115);
  --navy:           rgb(27, 58, 92);
  --section-heading: rgb(51, 51, 51);
  --salmon:         rgb(200, 113, 74);
  --bg:             #FFFFFF;
  --bg-soft:        #F7F5F1;
  --border:         #E8E6E2;

  /* Layout */
  --max-w:          980px;
  --page-padding:   32px;

  /* Typography */
  --font-display:   'Lora', serif;
  --font-body:      'Inter', sans-serif;
}

/* ─── Base ─── */
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

/* ─── Typography utilities ─── */

/* Display headings — Lora serif */
.text-display-xl {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  color: var(--green);
  line-height: 1.2;
  letter-spacing: -1.21px;
}

.text-display-lg {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--green);
  letter-spacing: -0.7px;
  line-height: 39.2px;
}

.text-display-md {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.4px;
  line-height: 33.6px;
}

/* Body text — Inter */
.text-hero-sub {
  font-family: var(--font-body);
  font-size: 23px;
  font-weight: 400;
  color: rgb(0, 0, 0);
  line-height: 27.6px;
}

.text-section-heading {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 400;
  color: var(--section-heading);
  letter-spacing: -0.6px;
  line-height: 39.2px;
}

.text-body {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  color: var(--body);
  letter-spacing: -0.5px;
  line-height: 32px;
}

.text-body-sm {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--body);
  letter-spacing: -0.4px;
  line-height: 28.8px;
}

.text-muted {
  color: var(--muted);
}

.text-green {
  color: var(--green);
}

.text-navy {
  color: var(--navy);
}

.text-salmon {
  color: var(--salmon);
}

/* ─── Nav ─── */
nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  backdrop-filter: blur(8px);
  padding: 0 var(--page-padding);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 66px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.nav-name {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.2px;
  line-height: 20.8px;
}

.nav-tagline {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.2px;
  max-width: 260px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: rgb(0, 0, 0);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--green);
}

.nav-links a[aria-current="page"] {
  color: rgb(0, 0, 0);
  font-weight: 600;
  letter-spacing: normal;
}

.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  color: var(--dark);
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .nav-tagline { display: none; }

  .nav-burger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
    gap: 0;
    list-style: none;
  }

  nav { position: sticky; }

  nav.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 13px 24px;
    font-size: 17px;
  }

  .nav-links a:hover {
    background: var(--bg-soft);
  }
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--salmon);
  color: rgb(255, 255, 255);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.36px;
  padding: 12px 35px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
  -webkit-font-smoothing: antialiased;
}

.btn-primary:hover {
  background-color: rgb(178, 95, 58);
}

/* ─── Accreditation bar ─── */
.accred {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px var(--page-padding);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.accred img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px var(--page-padding);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--body);
  letter-spacing: normal;
  line-height: 18px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--body);
  letter-spacing: normal;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--dark);
}
