/* ═══════════════════════════════════════════════════════
   Jarl Capital — Shared Stylesheet
   Tokens, reset, nav, footer, and shared section styles
═══════════════════════════════════════════════════════ */

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

:root {
  --navy:    #0C1F3F;
  --purple:  #4B2C82;
  --blue:    #4A7FAB;
  --blue-lt: #7AADC9;
  --gray:    #6B7B8D;
  --gray-lt: #9AAABB;
  --rule:    #CBD5E0;
  --bg:      #FFFFFF;
  --off-white: #F8F9FB;
  --nav-h:   72px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: var(--nav-h);
}

/* ── subtle dot grid (decorative, page-level) ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 70% 15%, rgba(74,127,171,0.05) 0%, transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(75,44,130,0.04) 0%, transparent 48%),
    linear-gradient(rgba(12,31,63,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12,31,63,0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 52px 52px, 52px 52px;
  pointer-events: none;
  z-index: 0;
}

/* ════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(12,31,63,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}

/* Logo inside nav */
.nav-logo {
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  user-select: none;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  border-radius: 2px;
}
.nav-logo-text {
  display: none;
}
.nav-logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1;
  margin-right: -0.26em;
}
.nav-logo-sub {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-logo-rule {
  display: block;
  width: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-lt));
}
.nav-logo-rule.r { background: linear-gradient(90deg, var(--blue-lt), transparent); }
.nav-logo-limited {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 7px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--blue);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}
.nav-links a.nav-cta {
  color: var(--navy);
  border: 1px solid rgba(12,31,63,0.2);
  padding: 7px 18px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nav-links a.nav-cta:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--navy);
  transition: all 0.25s ease;
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(12,31,63,0.07);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--bg);
}
.footer-copy {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--gray-lt);
}
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-lt);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--navy); }

/* ════════════════════════════════════════
   SHARED SECTION UTILITIES
════════════════════════════════════════ */
.section {
  position: relative;
  z-index: 1;
  padding: 96px 48px;
  max-width: 1160px;
  margin: 0 auto;
}
.section-wide {
  position: relative;
  z-index: 1;
  padding: 96px 48px;
  max-width: 100%;
}
.section-dark {
  background: var(--navy);
  color: #fff;
  padding: 96px 48px;
  position: relative;
  z-index: 1;
}
.section-off {
  background: var(--off-white);
  padding: 96px 48px;
  position: relative;
  z-index: 1;
}
.section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

/* Section label (eyebrow) */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--blue);
  flex-shrink: 0;
}
.eyebrow-light { color: var(--blue-lt); }
.eyebrow-light::before { background: var(--blue-lt); }

/* Section headings */
.section-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: var(--navy);
  max-width: 680px;
}
.section-h2-light { color: #fff; }

.section-h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0.03em;
  color: var(--navy);
  line-height: 1.2;
}

.section-p {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--gray);
  max-width: 600px;
  letter-spacing: 0.01em;
}
.section-p-light { color: rgba(255,255,255,0.65); }

/* Horizontal rule / divider */
.h-rule {
  width: 40px;
  height: 1px;
  background: var(--rule);
  margin: 32px 0;
}
.h-rule-blue { background: var(--blue); }
.h-rule-light { background: rgba(255,255,255,0.2); }

/* ── Intro / two-col text layout ── */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 768px) {
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Three-column grid ── */
.col3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(12,31,63,0.1);
}
.col3-card {
  padding: 40px 36px;
  border-right: 1px solid rgba(12,31,63,0.1);
}
.col3-card:last-child { border-right: none; }
.col3-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}
.col3-card-title-light { color: rgba(255,255,255,0.5); }
.col3-card-body {
  font-size: 13px;
  line-height: 1.8;
  color: var(--gray);
  font-weight: 300;
}
.col3-card-body-light { color: rgba(255,255,255,0.7); }
.col3-dark { border-color: rgba(255,255,255,0.1); }
.col3-dark .col3-card { border-right-color: rgba(255,255,255,0.1); }

/* ── Two-column grid ── */
.col2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(12,31,63,0.1);
}
.col2-card {
  padding: 48px 40px;
  border-right: 1px solid rgba(12,31,63,0.1);
}
.col2-card:last-child { border-right: none; }

/* ── Highlight block ── */
.highlight-block {
  border-left: 2px solid var(--blue);
  padding: 28px 36px;
  background: var(--off-white);
  margin: 40px 0;
}
.highlight-block p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.6;
  color: var(--navy);
  letter-spacing: 0.02em;
}

/* ── Bullet list ── */
.bullet-list {
  list-style: none;
  margin-top: 20px;
}
.bullet-list li {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray);
  padding: 8px 0;
  border-bottom: 1px solid rgba(12,31,63,0.06);
  padding-left: 20px;
  position: relative;
  letter-spacing: 0.01em;
}
.bullet-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 11px;
}
.bullet-list li:last-child { border-bottom: none; }

/* ── CTA button ── */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 28px;
  border: 1px solid var(--navy);
  color: var(--navy);
  transition: background 0.22s ease, color 0.22s ease;
  margin-top: 36px;
  cursor: pointer;
}
.btn:hover { background: var(--navy); color: #fff; }
.btn-light {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.btn-light:hover { background: rgba(255,255,255,0.12); }

/* ── Page hero (inner pages) ── */
.page-hero {
  position: relative;
  z-index: 1;
  padding: 80px 48px 72px;
  border-bottom: 1px solid rgba(12,31,63,0.08);
  max-width: 1160px;
  margin: 0 auto;
}
.page-hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--blue);
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(32px, 4.5vw, 54px);
  letter-spacing: 0.03em;
  line-height: 1.12;
  color: var(--navy);
  max-width: 700px;
  margin-bottom: 20px;
}
.page-hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--blue);
  letter-spacing: 0.03em;
}

/* ── Image blocks ── */
.img-full {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.75) brightness(0.97);
}
.img-full-tall { height: 540px; }
.img-side {
  width: 100%;
  height: 360px;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.96);
  display: block;
}

/* ── Scroll fade-in ── */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
  .col3 { grid-template-columns: 1fr; }
  .col3-card { border-right: none; border-bottom: 1px solid rgba(12,31,63,0.1); }
  .col3-card:last-child { border-bottom: none; }
  .col3-dark .col3-card { border-bottom-color: rgba(255,255,255,0.1); }
  .col2 { grid-template-columns: 1fr; }
  .col2-card { border-right: none; border-bottom: 1px solid rgba(12,31,63,0.1); }
  .col2-card:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  .section { padding: 64px 24px; }
  .section-dark { padding: 64px 24px; }
  .section-off { padding: 64px 24px; }
  .page-hero { padding: 56px 24px 48px; }
  .site-nav { padding: 0 24px; }
  .site-footer { padding: 24px; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid rgba(12,31,63,0.1); padding: 24px; gap: 20px; z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .img-full { height: 280px; }
  .img-full-tall { height: 320px; }
}
