/* ============================================================
   BENSIS — base.css
   Variables · Reset · Typography · Layout Utilities
   ============================================================ */

/* ── CUSTOM PROPERTIES ── */
:root {
  /* Brand colors */
  --navy:        #033B94;
  --navy-dark:   #022d70;
  --navy-deeper: #011e4e;
  --orange:      #F79400;
  --orange-dark: #e08500;
  --orange-text: #A36100;
  --blue:        #00b2e3;
  --brown:       #8b6f4b;
  --gray:        #8e9c9c;

  /* Neutrals */
  --black:       #1a1a1a;
  --white:       #ffffff;
  --off-white:   #f5f6f8;
  --light-bg:    #EEF2FA;
  --muted:       #596678;
  --border:      #dde3f0;

  /* Typography */
  --font:        'Montserrat', sans-serif;

  /* Spacing scale */
  --space-xs:    4px;
  --space-sm:    8px;
  --space-md:    16px;
  --space-lg:    24px;
  --space-xl:    32px;
  --space-2xl:   48px;
  --space-3xl:   64px;
  --space-page:  96px;

  /* Border radius */
  --radius-sm:   2px;
  --radius-md:   4px;
  --radius-pill: 32px;

  /* Transitions */
  --transition:  0.2s ease;
}

/* ── SKIP NAVIGATION ── */
.skip-nav {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 9999;
  padding: 10px 20px;
  background: var(--orange);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-nav:focus {
  left: 16px;
  top: 0;
  outline: none;
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── FOCUS STYLES ── */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* ── LAYOUT ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

section {
  padding: var(--space-page) 0;
}

/* ── TYPOGRAPHY ── */

/* Display / Hero */
.t-display {
  font-size: 52px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

/* H1 */
h1, .t-h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* H2 */
h2, .t-h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* H3 */
h3, .t-h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* H4 */
h4, .t-h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* Body */
p {
  font-size: 15px;
  font-weight: 400;
  color: var(--black);
  line-height: 1.65;
}

/* Small / secondary */
.t-small {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* Eyebrow label */
.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-text);
  margin-bottom: 14px;
}

/* Caption */
.t-caption {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* Muted paragraph */
.t-muted {
  color: var(--muted);
}

/* ── SECTION HEADER ── */
.section-header {
  margin-bottom: 56px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  max-width: 540px;
  letter-spacing: -0.01em;
}

/* Dark section overrides — works whether section-dark is on a parent or the element itself */
.section-dark .section-title,
.section-title.section-dark { color: var(--white); }

.section-dark .section-sub,
.section-sub.section-dark   { color: rgba(255,255,255,0.72); }

.section-dark .eyebrow,
.eyebrow.section-dark       { color: var(--orange); }

/* ── GRID UTILITIES ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-wrap   { flex-wrap: wrap; }
.gap-sm  { gap: 8px; }
.gap-md  { gap: 16px; }
.gap-lg  { gap: 24px; }
.gap-xl  { gap: 32px; }

/* ── DIVIDER ── */
.divider-orange {
  height: 3px;
  width: 56px;
  background: var(--orange);
  border: none;
  border-radius: 2px;
  margin: var(--space-xl) 0;
}

/* ── BACKGROUND VARIANTS ── */
.bg-white    { background: var(--white); }
.bg-off-white { background: var(--off-white); }
.bg-light    { background: var(--light-bg); }
.bg-navy     { background: var(--navy); }
.bg-navy-deep { background: var(--navy-deeper); }

/* ── GRID TEXTURE (dark backgrounds) ── */
.grid-texture {
  position: relative;
}
.grid-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}
.grid-texture > * {
  position: relative;
  z-index: 1;
}

/* ── LEFT RULE (navy sections) ── */
.left-rule::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--orange);
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--navy);
  padding: 120px 0 72px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--orange);
}
.page-hero::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--orange);
}
.page-hero-content {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: 46px;
  color: var(--white);
  margin-bottom: 18px;
}
.page-hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.page-hero .section-sub {
  max-width: 520px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-1 { animation: fadeUp 0.6s 0.0s ease both; }
.animate-2 { animation: fadeUp 0.6s 0.1s ease both; }
.animate-3 { animation: fadeUp 0.6s 0.2s ease both; }
.animate-4 { animation: fadeUp 0.6s 0.3s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  section { padding: 64px 0; }
  h2, .t-h2, .section-title { font-size: 28px; }
  h1, .t-h1 { font-size: 32px; }
  .page-hero h1 { font-size: 32px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
