/* ==========================================================================
   Dontre Outliers Investments Limited — main stylesheet

   1.  Tokens          6.  Navbar         11. Forms
   2.  Reset           7.  Hero           12. Responsive
   3.  Typography      8.  Sections       13. Accessibility
   4.  Layout          9.  Cards
   5.  Buttons         10. Footer
   ========================================================================== */


/* 1. TOKENS
   ========================================================================== */

:root {
  --navy:          #14283C;
  --navy-deep:     #0D1B29;
  --amber:         #E8A020;
  --amber-dark:    #C9860F;
  --slate:         #5A6772;
  --offwhite:      #F5F3EE;

  --white:         #FFFFFF;
  --ink:           #1A1A1A;
  --ink-muted:     #6B7280;
  --border:        #DDD9D0;

  --font-display:  "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body:     "Barlow", -apple-system, "Segoe UI", sans-serif;

  --size-xs:       0.8125rem;
  --size-sm:       0.9375rem;
  --size-base:     1.0625rem;
  --size-lg:       1.1875rem;
  --size-xl:       1.5rem;
  --size-2xl:      1.875rem;
  --size-3xl:      2.375rem;
  --size-4xl:      3.125rem;

  --space-xs:      0.5rem;
  --space-sm:      1rem;
  --space-md:      1.5rem;
  --space-lg:      2.5rem;
  --space-xl:      4rem;
  --space-2xl:     6rem;

  --container:     1180px;
  --radius:        4px;
  --transition:    180ms ease;
}


/* 2. 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-body);
  font-size: var(--size-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}


/* 3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy);
}

h1 { font-size: var(--size-4xl); letter-spacing: 0.01em; }
h2 { font-size: var(--size-3xl); }
h3 { font-size: var(--size-xl); }
h4 { font-size: var(--size-lg); }

p {
  max-width: 68ch;
  margin-bottom: var(--space-sm);
}

.lead {
  font-size: var(--size-lg);
  color: var(--slate);
  line-height: 1.6;
}

.text-muted { color: var(--ink-muted); }


/* 4. LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-2xl);
}

.section--tint { background: var(--offwhite); }

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy h2,
.section--navy h3 { color: var(--white); }

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }


/* 5. BUTTONS
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--size-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.75em 1.9em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition);
}

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

.btn--primary:hover { background: var(--amber-dark); }

.btn--outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--navy);
}


/* 6. NAVBAR
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--amber);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 84px;
}

.navbar__logo img {
  height: 52px;
  width: auto;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.navbar__links a {
  font-family: var(--font-display);
  font-size: var(--size-base);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  padding-block: var(--space-xs);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.navbar__links a:hover { color: var(--amber); }

/* Active state driven by aria-current in the markup rather than a duplicate
   .is-active class */
.navbar__links a[aria-current="page"] {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.navbar__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: var(--space-xs);
}

.navbar__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}


/* 7. HERO
   ========================================================================== */

.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding-block: var(--space-2xl);
  overflow: hidden;
}

/* Background image set inline per page */
.hero--image {
  background-size: cover;
  background-position: center;
}

/* Wash keeps headline contrast predictable regardless of the photo behind it */
.hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
              rgba(20, 40, 60, 0.94) 0%,
              rgba(20, 40, 60, 0.72) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  border-left: 3px solid var(--amber);
  padding-left: var(--space-md);
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.hero__sub {
  font-size: var(--size-lg);
  max-width: 38rem;
  color: #C4CBD2;
  margin-bottom: var(--space-lg);
}


/* 8. SECTIONS
   ========================================================================== */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-size: var(--size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--amber);
  margin-bottom: var(--space-xs);
}

/* Chevron from the logo, drawn as a rotated corner to avoid an image request */
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.section__title { margin-bottom: var(--space-md); }

.section__intro {
  max-width: 64ch;
  margin-bottom: var(--space-md);
  color: var(--slate);
  font-size: var(--size-base);
}

.section--navy .section__intro,
.section--navy .card__body { color: #C4CBD2; }


/* 9. CARDS
   ========================================================================== */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
  border-color: var(--amber);
  transform: translateY(-3px);
}

.card__title { margin-bottom: var(--space-xs); }

.card__body {
  color: var(--slate);
  font-size: var(--size-sm);
  margin-bottom: 0;
}

.section--tint .card { background: var(--white); }

/* Portrait source images would otherwise set the grid row height and leave
   the adjacent text column short */
.media {
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  min-height: 320px;
  max-height: 520px;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.stat__figure {
  font-family: var(--font-display);
  font-size: var(--size-3xl);
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}

.stat__label {
  font-size: var(--size-sm);
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section--navy .stat__label { color: #C4CBD2; }


/* 9b. SECTION PATTERNS
   ========================================================================== */

/* Asymmetric split — deliberately not 50/50, so the page reads as composed
   rather than tiled */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-lg);
  align-items: center;
}

.split--reverse { grid-template-columns: 7fr 5fr; }
.split--reverse .split__media { order: 2; }

.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Single large statement — carries a section on its own without cards */
.pull {
  max-width: 34ch;
  font-family: var(--font-display);
  font-size: var(--size-2xl);
  font-weight: 500;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.pull em {
  font-style: normal;
  color: var(--amber);
}

.pull__note {
  max-width: 56ch;
  color: #C4CBD2;
  font-size: var(--size-base);
}

/* Horizontal process track. The connecting rule is drawn on the container so
   it does not break when steps wrap */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-md);
  position: relative;
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 2px solid var(--amber);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: var(--size-lg);
  font-weight: 700;
  color: var(--amber);
  background: var(--white);
  margin-bottom: var(--space-sm);
}

.step h3 {
  font-size: var(--size-lg);
  margin-bottom: var(--space-xs);
}

.step p {
  font-size: var(--size-sm);
  color: var(--slate);
  margin-bottom: 0;
}

/* Chevron list, reusing the eyebrow marker so the motif carries through */
.checklist {
  list-style: none;
  margin-bottom: var(--space-md);
}

.checklist li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: var(--space-sm);
  max-width: 56ch;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
  transform: rotate(45deg);
}

.checklist strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--size-lg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.section--navy .checklist strong { color: var(--white); }
.section--navy .checklist li { color: #C4CBD2; }


/* 10. FOOTER
   ========================================================================== */

.footer {
  background: var(--navy-deep);
  color: #C4CBD2;
  padding-block: var(--space-xl) var(--space-md);
  font-size: var(--size-sm);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer__logo img {
  height: 56px;
  width: auto;
  margin-bottom: var(--space-sm);
}

.footer h4 {
  color: var(--white);
  font-size: var(--size-base);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.footer ul { list-style: none; }
.footer li { margin-bottom: var(--space-xs); }
.footer a { transition: color var(--transition); }
.footer a:hover { color: var(--amber); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-xs);
  font-size: var(--size-xs);
  color: #8A939C;
}


/* 11. FORMS
   ========================================================================== */

.field { margin-bottom: var(--space-sm); }

.field label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 0.35em;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--size-base);
  color: var(--ink);
  background: var(--white);
  padding: 0.7em 0.9em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 160, 32, 0.18);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-status {
  margin-top: var(--space-sm);
  font-size: var(--size-sm);
  min-height: 1.5em;
}

.form-status[data-state="pending"] { color: var(--slate); }
.form-status[data-state="success"] { color: #2F6B2F; }
.form-status[data-state="error"]   { color: #A33; }


/* 12. RESPONSIVE
   ========================================================================== */

/* Set where the nav links start crowding the logo, not at a device width */
@media (max-width: 860px) {
  .navbar__toggle { display: block; }

  .navbar__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--navy);
    border-bottom: 3px solid var(--amber);
    padding: var(--space-sm) var(--space-md) var(--space-md);
    display: none;
  }

  .navbar__links.is-open { display: flex; }

  .navbar__links li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar__links a {
    display: block;
    width: 100%;
    padding-block: var(--space-sm);
    border-bottom: 0;
  }

  .footer__grid { grid-template-columns: 1fr; }

  .split,
  .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

@media (max-width: 640px) {
  :root {
    --size-3xl:  1.875rem;
    --size-4xl:  2.25rem;
    --space-2xl: 3.5rem;
    --space-xl:  2.5rem;
  }

  .footer__bottom { flex-direction: column; }
}


/* 13. ACCESSIBILITY
   ========================================================================== */

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
