/* ==========================================================================
   Blue Horizon Invest Limited — stylesheet
   Static, no framework. Fonts are self-hosted (SIL OFL 1.1).
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  --navy: #0F2340;
  --ink: #0B1626;
  --night: #08111E;
  --mist: #F3F5F8;
  --white: #FFFFFF;

  --text: #0B1626;
  --text-soft: #3E4A5C;
  --muted: #4A5568;
  --line: #DDE3EA;

  --on-dark: #B7C4D6;
  --on-dark-2: #C9D4E2;
  --label-dark: #8FA3BD;

  --accent: #8FB0D6;      /* horizon blue, used on dark grounds */
  --accent-ink: #2F5D8C;  /* accent for light grounds */

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(80px, 10vw, 140px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity .2s ease;
}
a:hover { opacity: .72; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 12px 18px;
  background: var(--white);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Header / hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 28px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color: var(--white);
}
.brand__mark { flex: none; }
.brand__sun { fill: var(--accent); }
.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__main {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .26em;
}
.brand__sub {
  margin-top: 5px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .42em;
  color: var(--on-dark);
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--on-dark-2);
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav__links .btn-outline {
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .35);
  color: var(--white);
}

.hero__body { padding-top: clamp(72px, 10vw, 136px); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow--dark { color: var(--accent); }
.eyebrow__rule {
  flex: none;
  width: 40px;
  height: 1px;
  background: currentColor;
}
.hero .eyebrow { margin-bottom: 32px; }

.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(52px, 7.6vw, 112px);
  line-height: 1;
  letter-spacing: -.015em;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero__lead {
  margin: 40px 0 0;
  max-width: 560px;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.7;
  color: var(--on-dark);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 32px;
  background: var(--white);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--white);
}

.horizon {
  display: block;
  width: 100%;
  height: clamp(120px, 18vw, 340px);
  margin-top: clamp(32px, 5vw, 72px);
}
.horizon__sun { fill: var(--accent); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--mist { background: var(--mist); }
.section--dark {
  background: var(--ink);
  color: var(--white);
}

.h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -.01em;
}

/* About */
.about {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 80px;
}
.about__head { flex: 1 1 360px; }
.about__text {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 36px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-soft);
}
.about__text p { margin: 0; }

/* Approach */
.approach__title { max-width: 16ch; }

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
}
.principle {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px 36px 44px;
  background: var(--white);
  border: 1px solid var(--line);
}
.principle__num {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  color: var(--accent-ink);
}
.principle h3 {
  margin: 18px 0 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .01em;
}
.principle p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

/* Contact */
.contact__lead {
  margin: 24px 0 0;
  max-width: 460px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--on-dark);
}
.contact__email {
  display: inline-block;
  margin-top: 40px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--accent);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 400;
  color: var(--white);
  overflow-wrap: anywhere;
}

/* Legal */
.legal { padding-block: clamp(72px, 8vw, 112px); }
.legal__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.1;
}
.legal__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 40px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.legal__item {
  flex: 1 1 300px;
  scroll-margin-top: 24px;
}
.legal__item h3 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.legal__item p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}
.legal__item p:last-child { margin-bottom: 0; }
.legal__item a { text-decoration: underline; text-underline-offset: 3px; }
.legal__updated {
  margin: 48px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--night);
  color: var(--label-dark);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 40px;
  padding-block: 32px;
  font-size: 13px;
  letter-spacing: .02em;
}
.footer p { margin: 0; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- 404 ---------- */
.hero--full {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
.hero--full .hero__inner { flex: 1; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .about__text { padding-top: 0; }
  .principle { padding: 32px 28px 36px; }
}

/* ---------- Print ---------- */
@media print {
  .hero, .section--dark, .section--mist, .footer {
    background: none !important;
    color: #000 !important;
  }
  .nav__links, .hero__actions, .horizon, .skip-link { display: none !important; }
  .hero__lead, .contact__lead, .hero__title em { color: #000 !important; }
}
