/* ===============================================
 * UNIHUBZ Shared Design System
 * Brand palette derived from the colourful UNIHUBZ logo:
 *   navy (mark), teal-green (globe), orange (arrow), sky-blue (arrow)
 * =============================================== */

:root {
  --navy-900: #0b2c5b;
  --navy-800: #0f3a74;
  --navy-700: #14457f;
  --navy-600: #1d5ea4;
  --blue-500: #2d7ff9;
  --blue-400: #4e94fb;
  --blue-100: #e6effb;
  --blue-50: #f3f7fd;

  --teal-500: #19b5a7;
  --teal-600: #0f8f84;
  --teal-100: #d7f1ee;

  --orange-500: #398dbc;
  --orange-600: #2a75a1;
  --orange-100: #d8ecf7;

  --amber-500: #f5a623;

  --canvas: #ffffff;
  --surface: #f6f9fc;
  --surface-2: #edf3f9;
  --ink: #0c1a2e;
  --ink-soft: #3d4b63;
  --ink-mute: #6b7891;
  --rule: #e3e9f1;
  --rule-strong: #c9d3e0;

  --ff-display: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --sh-card: 0 4px 20px rgba(11, 44, 91, 0.06);
  --sh-card-hover: 0 18px 44px rgba(11, 44, 91, 0.12);
  --sh-nav: 0 1px 0 rgba(11, 44, 91, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}
h1,
h2,
h3,
h4 {
  font-family: var(--ff-display);
  color: var(--navy-900);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

/* Topbar */
.topbar {
  background: var(--blue-50);
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-soft);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  gap: 24px;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.topbar a:hover {
  color: var(--navy-700);
}
.topbar svg {
  width: 14px;
  height: 14px;
}
@media (max-width: 720px) {
  .topbar-left .hide-sm {
    display: none;
  }
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--sh-nav);
}
.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  height: 52px;
  width: auto;
}
.nav-links {
  display: none;
  gap: 4px;
  list-style: none;
}
@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover {
  background: var(--blue-50);
  color: var(--navy-800);
}
.nav-links a.active {
  color: var(--navy-900);
  font-weight: 600;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hamburger {
  display: flex;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--navy-900);
  align-items: center;
  justify-content: center;
}
@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}
.hamburger svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 1023px) {
  .cta-book-nav,
  a.cta-book-nav {
    display: none !important;
  }
}

/* Mobile nav drawer */
.nav-links.open {
  display: flex;
  position: absolute;
  top: 84px;
  left: 0;
  right: 0;
  flex-direction: column;
  background: #fff;
  padding: 16px 20px 24px;
  gap: 4px;
  box-shadow: 0 12px 24px rgba(11, 44, 91, 0.08);
  border-top: 1px solid var(--rule);
  z-index: 90;
}
.nav-links.open li {
  list-style: none;
}
.nav-links.open a {
  padding: 12px 14px;
  font-size: 15px;
  border-radius: 8px;
}
.nav-mobile-cta {
  display: none;
}
.nav-links.open .nav-mobile-cta {
  display: block;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.nav-links.open .nav-mobile-cta a {
  background: var(--orange-500);
  color: #fff;
  text-align: center;
  justify-content: center;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--ff-display);
  border-radius: var(--r-pill);
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--navy-900);
  color: #fff;
  box-shadow: 0 6px 18px rgba(11, 44, 91, 0.22);
}
.btn-primary:hover {
  background: var(--navy-800);
  box-shadow: 0 10px 22px rgba(11, 44, 91, 0.28);
}
.btn-ghost {
  background: #fff;
  color: var(--navy-900);
  border: 1.5px solid var(--rule-strong);
}
.btn-ghost:hover {
  border-color: var(--navy-900);
}
.btn-accent {
  background: var(--blue-500);
  color: #fff;
}
.btn-accent:hover {
  background: #1b6ae8;
}
.btn-orange {
  background: var(--orange-500);
  color: #fff;
  box-shadow: 0 6px 18px rgba(57, 141, 188, 0.25);
}
.btn-orange:hover {
  background: var(--orange-600);
}
.btn-lg {
  padding: 15px 28px;
  font-size: 15px;
}
.btn svg {
  width: 16px;
  height: 16px;
}

/* Section header */
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-head.align-left {
  text-align: left;
  margin-left: 0;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-500);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 700;
}
.section-head h2 .accent {
  color: var(--orange-500);
  font-style: italic;
  font-weight: 500;
}
.section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.65;
}

/* Page header (sub-pages) */
.page-header {
  position: relative;
  background:
    radial-gradient(ellipse 600px 400px at 90% 20%, rgba(25, 181, 167, 0.12), transparent 60%),
    radial-gradient(ellipse 500px 320px at 10% 90%, rgba(57, 141, 188, 0.1), transparent 55%),
    linear-gradient(180deg, var(--blue-50) 0%, #fff 100%);
  padding: 72px 0 88px;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.page-header .container {
  position: relative;
}
.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 20px;
}
.breadcrumbs a {
  color: var(--ink-mute);
  transition: color 0.15s;
}
.breadcrumbs a:hover {
  color: var(--navy-700);
}
.breadcrumbs .sep {
  opacity: 0.4;
}
.breadcrumbs .current {
  color: var(--navy-900);
  font-weight: 600;
}
.page-header h1 {
  font-size: clamp(38px, 5.5vw, 60px);
  font-weight: 800;
  max-width: 720px;
  letter-spacing: -0.03em;
}
.page-header h1 .accent {
  color: var(--orange-500);
  font-style: italic;
  font-weight: 500;
}
.page-header .lede {
  margin-top: 20px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 620px;
  line-height: 1.6;
}

/* Generic content section */
.section {
  padding: 96px 0;
}
.section.surface {
  background: var(--surface);
}

/* CTA block (shared) */
.cta-block {
  padding: 88px 0;
  background: var(--canvas);
}
.cta-card {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(25, 181, 167, 0.18), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(57, 141, 188, 0.18), transparent 55%),
    var(--navy-900);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 780px) {
  .cta-card {
    grid-template-columns: 1.5fr auto;
    padding: 72px 64px;
  }
}
.cta-card h2 {
  color: #fff;
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cta-card p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  max-width: 520px;
}
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-card .btn-primary {
  background: #fff;
  color: var(--navy-900);
}
.cta-card .btn-primary:hover {
  background: var(--blue-100);
}
.cta-card .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.cta-card .btn-ghost:hover {
  border-color: #fff;
}

/* Footer */
.footer {
  background: #081d3f;
  color: rgba(255, 255, 255, 0.78);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 48px;
  }
}
.footer-brand img {
  height: 56px;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.6);
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.footer-social a:hover {
  background: var(--orange-500);
}
.footer-social svg {
  width: 16px;
  height: 16px;
}
.footer-col h4 {
  color: #fff;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 14px;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: #fff;
}
.footer-col li.has-ico {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.footer-col li.has-ico svg {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--orange-500);
  flex-shrink: 0;
}
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom a {
  transition: color 0.15s;
}
.footer-bottom a:hover {
  color: #fff;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
