:root {
  --midnight: #12263A;
  --ridge: #4E6475;
  --summit: #C9A97A;
  --alpine: #F8F7F4;
  --granite: #2E3136;
  --mist: #E9EEF2;
  --river: #7B93A8;
  --pine: #5B6D57;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  color: var(--midnight);
  background: var(--alpine);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; }

/* The hidden attribute must always win over display rules (e.g. flex forms). */
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  /* Reset native <button> chrome so button/anchor .btn render identically. */
  border: none;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn--gold {
  background: var(--summit);
  color: var(--midnight);
  padding: 14px 26px;
  font-size: 13px;
  border-radius: 3px;
}
.btn--gold:hover { background: #bd9a67; }

.btn--navy {
  background: var(--midnight);
  color: var(--alpine);
  padding: 14px 26px;
  font-size: 13px;
  border-radius: 3px;
}
.btn--navy:hover { background: #1c3a57; }

.btn--lg {
  padding: 18px 32px;
  font-size: 14px;
}

.btn .arrow { font-size: 1.1em; line-height: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-color: var(--mist); /* fallback until the photo loads */
  flex: 1;
  background-image:
    linear-gradient(90deg, rgba(248,247,244,0.96) 0%, rgba(248,247,244,0.82) 30%, rgba(248,247,244,0.35) 52%, rgba(248,247,244,0.05) 72%, rgba(18,38,58,0.04) 100%),
    url("assets/hero.jpg");
  background-size: cover;
  background-position: center 45%;
  min-height: 640px;
  display: flex;
  flex-direction: column;
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px clamp(24px, 5vw, 64px);
}

.nav__brand {
  display: flex;
  align-items: center;
}
.logo-nav { display: block; height: 40px; width: auto; }

.nav__links {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  margin-left: auto;
}
.nav__links a {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--midnight);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--summit); }

.nav__cta { margin-left: 8px; }

/* ---------- Hero content ---------- */
.hero__inner {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 24px clamp(24px, 5vw, 64px) 64px;
}

.hero__content { max-width: 560px; }

.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 6.2vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--midnight);
  margin: 0;
}
.hero__title .accent { color: var(--summit); }

.hero__divider {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--summit);
  margin: 30px 0 26px;
}

.hero__body {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--midnight);
  max-width: 460px;
  margin: 0 0 34px;
}

/* ---------- Value bar ---------- */
.values {
  background: var(--midnight);
  padding: 36px clamp(24px, 5vw, 64px);
}

.values__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.value {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 24px;
  border-right: 1px solid rgba(233, 238, 242, 0.12);
  cursor: pointer;
}
.value:last-child { border-right: none; }
.value:focus-visible {
  outline: 2px solid var(--summit);
  outline-offset: 4px;
  border-radius: 3px;
}

.value__icon { flex: none; }
.value__icon svg { width: 44px; height: 44px; }

.value__text h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--alpine);
  transition: color 0.2s ease;
}
.value__text p {
  margin: 0;
  font-size: 14px;
  color: var(--river);
  letter-spacing: 0.01em;
}

.value__arrow {
  margin-left: auto;
  flex: none;
  font-size: 18px;
  line-height: 0;
  color: var(--river);
  transition: transform 0.2s ease, color 0.2s ease;
}
.value:hover .value__text h3 { color: var(--summit); }
.value:hover .value__arrow { color: var(--summit); transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .value__text h3,
  .value__arrow { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  /* Mobile nav: keep the brand + CTA on the top row, wrap the links to a
     centered second row (no hamburger needed for three links). */
  .nav { flex-wrap: wrap; row-gap: 14px; }
  .nav__links {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-left: 0;
  }
  .nav__cta { margin-left: auto; }
  .values__inner { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(2) { border-right: none; }
  /* Cells get narrow in 2 columns — the arrow would crowd the text. */
  .value__arrow { display: none; }
}

@media (max-width: 560px) {
  .hero { background-position: 62% 45%; }
  /* A 2×2 badge grid reads as a set of capabilities, not a stacked menu. */
  .values { padding: 26px clamp(16px, 5vw, 24px); }
  .values__inner { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .value {
    border: none;
    padding: 10px 12px;
    gap: 12px;
    min-height: 44px;
    background: rgba(233, 238, 242, 0.05);
    border-radius: 10px;
  }
  .value__icon svg { width: 32px; height: 32px; }
  .value__text h3 { font-size: 13px; }
  .value__text p { font-size: 12px; }
}

@media (max-width: 700px) {
  /* Mobile only: the hero content fills the width and sits over busier parts of
     the photo, so the desktop left-to-right wash no longer clears the text.
     Swap in a stronger, near-uniform light overlay so the dark text stays
     readable. The image is still faintly visible; desktop (>700px) is untouched. */
  .hero {
    background-image:
      linear-gradient(180deg, rgba(248, 247, 244, 0.93) 0%, rgba(248, 247, 244, 0.86) 100%),
      url("assets/hero.jpg");
  }
}
