:root {
  --primary: #2f56a6;
  --primary-dark: #244487;
  --secondary: #6e89c7;
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1e2430;
  --muted: #5f6b82;
  --border: #dce3f0;
  --shadow: 0 12px 30px rgba(36, 68, 135, 0.08);
  --radius: 18px;
}

/* Global reset & base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* Layout with left sidebar */
.layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: var(--primary-dark);
  color: white;
  padding: 24px 16px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar .logo-wrap {
  display: inline-block;
  /* Set a safe maximum width so the logo always fits in the header */
  max-width: 280px;      /* adjust up/down depending on how it looks */
}

.logo {
  display: block;
  width: 100%;           /* scales to fit the container width */
  height: auto;
  object-fit: contain;   /* keeps full logo visible, no cropping */ /* adjust if needed */
}

@media (max-width: 860px) {
  .logo-wrap {
    max-width: 240px;    /* smaller on tablet/phone */
  }
}

.sidebar .logo {
  max-height: 72px;      /* slightly taller, but limited */
  height: auto;
  max-width: 100%;       /* don’t overflow its container */
  display: block;
}

/* Vertical main nav */
.main-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.main-nav a {
  color: white;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 4px;
}

.main-nav a:hover {
  text-decoration: underline;
}

/* Right-hand page content */
.page {
  margin-left: 240px;           /* same as sidebar width */
  min-height: 100vh;
}

/* Header (neutral, no sticky bar) */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  overflow: visible;     /* important: no horizontal clipping */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;       /* slightly more vertical padding */
  overflow: visible;     /* avoid clipping child content */
}

/* Hero */
.hero {
  padding: 72px 0 48px;
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Typography */
.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
}

h1, h2, h3 {
  line-height: 1.15;
  margin-top: 0;
  color: var(--primary-dark);
}

h1 {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 62ch;
}

/* Buttons */
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--primary-dark);
}

.btn-secondary:hover {
  background: white;
  text-decoration: none;
}

/* Cards and boxes */
.hero-card,
.card,
.info-box,
.contact-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card,
.info-box,
.contact-box {
  padding: 24px;
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 28px 0 72px;
  scroll-margin-top: 24px;    /* so anchor scroll doesn’t hide section top */
}

.section.alt {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.95)
  );
}

.section-heading {
  margin-bottom: 22px;
}

/* Grid of cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 22px;
}

.card p,
.info-box p,
.contact-box p,
.section p {
  color: var(--muted);
}

.contact-box p:first-child {
  color: var(--text);
}

/* Legal section */
.legal {
  padding-bottom: 56px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: white;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  color: var(--muted);
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 860px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .page {
    margin-left: 0;
  }

  .hero-grid,
  .split,
  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 42px;
  }

  .logo {
  display: block;
  max-height: 80px;      /* gives more room vertically */
  height: auto;
  max-width: 100%;       /* don’t overflow the container */
  object-fit: contain;   /* scale the image without cropping */
}
  }

  .main-nav {
    gap: 14px;
  }
}