/* Hind LLC — site styles */

@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/inter-display-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Brand colors taken from the Hind logo */
  --navy: #1E2A38;
  --navy-soft: #2C3A4B;
  --burgundy: #672B31;
  --burgundy-dark: #561F25;

  --paper: #FAF7F2;      /* warm off-white page background */
  --white: #FFFFFF;
  --tint: #F2EEE7;       /* alternate section background */
  --line: #E3DDD3;
  --text: #1E2A38;
  --muted: #4E5A68;      /* 6.5:1 on --paper */

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 10px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }

a { color: var(--burgundy); text-underline-offset: 3px; }
a:hover { color: var(--burgundy-dark); }

:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--navy); color: var(--white);
  padding: 10px 16px; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; }
.brand img { width: auto; height: 42px; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 6px;
}
.site-nav a {
  display: inline-block;
  padding: 8px 14px;
  color: var(--navy);
  font-weight: 500; font-size: 0.97rem;
  text-decoration: none;
  border-radius: 6px;
}
.site-nav a:hover { background: var(--tint); color: var(--navy); }
.site-nav .nav-cta { background: var(--navy); color: var(--white); margin-left: 6px; }
.site-nav .nav-cta:hover { background: var(--navy-soft); color: var(--white); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--white); cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute; left: 11px;
  width: 20px; height: 2px; border-radius: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .brand img { height: 36px; }
  .js .nav-toggle { display: block; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -16px rgba(30, 42, 56, 0.35);
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul {
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 16px;
  }
  .js .site-nav a { display: block; padding: 12px 14px; }
  .js .site-nav .nav-cta { margin: 6px 0 0; text-align: center; }

  /* Without JavaScript, the links simply wrap under the logo */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-bottom: 8px; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.button-primary { background: var(--burgundy); color: var(--white); }
.button-primary:hover { background: var(--burgundy-dark); color: var(--white); }
.button-quiet { color: var(--navy); border: 1px solid #C9C1B5; background: transparent; }
.button-quiet:hover { border-color: var(--navy); color: var(--navy); background: var(--white); }
.button-light { background: var(--white); color: var(--navy); }
.button-light:hover { background: var(--paper); color: var(--burgundy); }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
}

.hero-copy { max-width: 48rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--burgundy);
  font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 2px; background: var(--burgundy);
}

.hero h1 {
  font-size: clamp(2.25rem, 5.4vw, 3.75rem);
  max-width: 16ch;
}

.lede {
  margin-top: 22px;
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  color: var(--muted);
  max-width: 36rem;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 34px;
}

@media (max-width: 880px) {
  .hero h1 { max-width: 16ch; }
}

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section-tint {
  background: var(--tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kicker {
  color: var(--burgundy);
  font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 14px;
}

.section-head { max-width: 44rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2, .partners-copy h2, .contact h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
}
.section-head p:not(.kicker) { margin-top: 18px; color: var(--muted); }

/* Principles */
.principles {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
}
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
}
.card::before {
  content: "";
  display: block; width: 28px; height: 3px; border-radius: 2px;
  background: var(--burgundy);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }

@media (max-width: 980px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* Steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px);
  counter-reset: none;
}
.step { border-top: 2px solid var(--navy); padding-top: 22px; }
.step-num {
  display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.95rem; color: var(--burgundy);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step p { color: var(--muted); }

@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

/* Partners */
.partners {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.partners-copy p:not(.kicker) { margin-top: 18px; color: var(--muted); }

.checklist {
  list-style: none; margin: 0; padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.checklist li {
  position: relative;
  padding: 18px 22px 18px 58px;
  border-top: 1px solid var(--line);
}
.checklist li:first-child { border-top: 0; }
.checklist li::before {
  content: "";
  position: absolute; left: 22px; top: 22px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--burgundy)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 20px no-repeat;
}

@media (max-width: 880px) { .partners { grid-template-columns: 1fr; } }

/* Contact */
.contact {
  background: var(--navy);
  color: #E8ECF1;
  padding: var(--section) 0;
  position: relative;
  overflow: hidden;
}
.contact::after {
  content: "";
  position: absolute; top: 0; right: 0;
  width: clamp(64px, 10vw, 120px); height: clamp(64px, 10vw, 120px);
  background: var(--burgundy);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.contact-inner { position: relative; z-index: 1; }
.contact-inner > * { max-width: 44rem; }
.contact h2 { color: var(--white); }
.contact p:not(.kicker) { margin-top: 18px; margin-bottom: 32px; font-size: 1.1rem; }
.kicker-light { color: #E7B9BE; }
.contact .button-light { font-size: 1.05rem; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 0.93rem; color: var(--muted);
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
}
.footer-inner p:last-child { margin-left: auto; }
.footer-mark { width: 28px; height: 28px; }

@media (max-width: 560px) {
  .footer-inner p:last-child { margin-left: 0; width: 100%; }
}

/* Anchor targets clear the sticky header */
section[id] { scroll-margin-top: 80px; }
