/* ================================================
   base.css — Shared across all AirLimnos pages
   ================================================ */

/* ── Design tokens ───────────────────────────────── */
:root {
  /* Colours */
  --clr-teal-darkest: #2a6470;
  --clr-teal-dark:    #34838f;
  --clr-teal-mid:     #5fa8b0;
  --clr-teal-light:   #8fc2c7;
  --clr-teal-pale:    #a3d7dc;
  --clr-white:        #ffffff;
  --clr-text-dark:    #0f1f25;
  --clr-text-mid:     #3a3a3a;

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', 'Segoe UI', system-ui, sans-serif;

  /* Radii */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   26px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.22);
}

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

/* ── Base body ───────────────────────────────────── */
body {
  font-family: var(--font-body);
}

/* ── Top navigation bar ──────────────────────────── */
.topbar {
  background: var(--clr-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
}

.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 26px);
  min-width: 0;
}

.topbar-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.topbar-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 4px 0;
}

.topbar-heading {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--clr-teal-dark);
  margin: 0;
  line-height: 1.25;
}

.topbar-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.8125rem, 1.35vw, 0.9375rem);
  font-weight: 500;
  color: var(--clr-text-mid);
  margin: 0;
  line-height: 1.4;
  max-width: 36rem;
}

.topbar-brand .brand-logo {
  display: block;
  height: clamp(100px, 14vw, 168px);
  width: auto;
  max-width: min(420px, 58vw);
  object-fit: contain;
  object-position: left center;
}

.topbar-inner--with-action {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.topbar-inner--with-action .topbar-brand {
  flex: 1;
  min-width: min(100%, 240px);
}

.topbar-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
  padding: 9px 16px;
  background: var(--clr-white);
  color: var(--clr-text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--r-md);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.topbar-back:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.2);
}

.topbar-back:focus-visible {
  outline: 2px solid var(--clr-teal-mid);
  outline-offset: 2px;
}

.topbar-back svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .topbar-inner {
    padding: 14px 18px;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .topbar-heading {
    font-size: clamp(1rem, 3.8vw, 1.2rem);
  }

  .topbar-tagline {
    font-size: 0.8125rem;
  }
}

@media (max-width: 640px) {
  .topbar-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .topbar-brand .brand-logo {
    max-width: min(420px, 88vw);
  }

  .topbar-inner--with-action .topbar-back {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .topbar-back span {
    display: none;
  }
}
