/* Arete Creek Resources: site styles.
   Brand tokens follow the investor-deck brand standard (navy / gold, Montserrat + Inter). */

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1E293B;
  --navy-deep: #0C2444;
  --navy-2: #1A2C4E;
  --navy-card: #2B3B55;
  --slate-700: #334155;
  --gold: #D4AF37;
  --gold-dark: #92702D;
  --tan: #D4B896;
  --red: #C00000;
  --text: #1E293B;
  --muted: #475569;
  --muted-2: #64748B;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-soft-2: #F1F5F9;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --radius: 10px;
  --header-h: 84px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--gold-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { left: 12px; }

/* Kicker: gold ALL-CAPS label above titles, as in the deck */
.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .9rem;
}
.on-dark .kicker, .kicker.on-dark { color: var(--gold); }
.rule-gold { width: 56px; height: 3px; background: var(--gold); border: 0; margin: 0 0 1.4rem; }
.rule-red { width: 64px; height: 4px; background: var(--red); border: 0; margin: 1.4rem 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header::before { content: ""; display: block; height: 4px; background: var(--navy); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand img { height: 52px; width: auto; }
.nav-list { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav-list a {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--gold-dark); }
.nav-list a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  width: 44px; height: 44px; padding: 0; cursor: pointer; color: var(--navy);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto;
  position: relative; transition: transform .2s ease, background .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .brand img { height: 40px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .nav-list a { padding: 14px 8px; border-bottom: 1px solid var(--border); }
  .nav-list a[aria-current="page"] { color: var(--gold-dark); border-bottom-color: var(--border); }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: min(82vh, 760px);
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.hero-slides { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.hero-slides li { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slides li.is-active { opacity: 1; }
.hero-slides img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 36, 68, .92) 0%, rgba(30, 41, 59, .78) 42%, rgba(30, 41, 59, .25) 100%),
    linear-gradient(0deg, rgba(12, 36, 68, .55) 0%, rgba(12, 36, 68, 0) 40%);
}
.hero-content { position: relative; z-index: 1; padding: 96px 24px; }
@media (max-width: 760px) {
  .hero::after { background: linear-gradient(180deg, rgba(12, 36, 68, .86) 0%, rgba(30, 41, 59, .82) 100%); }
  .hero-content { padding: 64px 24px; }
  .page-hero::after { background: rgba(12, 36, 68, .84); }
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6.4vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0;
}
.hero-lede {
  max-width: 640px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, .9);
  margin: 0 0 2rem;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #E2C05A; color: var(--navy); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }

/* ---------- Stat band (dark panel with gold numbers) ---------- */
.stat-band { background: var(--navy); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 24px; border-left: 1px solid rgba(255, 255, 255, .1); }
.stat:first-child { border-left: 0; }
.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: .55rem;
}
.stat-label { font-size: .92rem; color: rgba(255, 255, 255, .78); line-height: 1.5; }
@media (max-width: 860px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.lead { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.55; color: var(--navy); font-family: var(--font-head); font-weight: 500; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .split { grid-template-columns: 1fr; gap: 32px; }
}
.prose { max-width: 760px; color: var(--slate-700); }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 2rem; }

/* Cards (deck: rounded, F8FAFC fill, E2E8F0 border, gold kicker inside) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .card-grid, .card-grid.two { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.section-soft .card { background: #fff; }
.card h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.card p, .card li { color: var(--muted); }
.card ul { padding-left: 1.2em; margin: 0 0 1em; }
.card li { margin-bottom: .45em; }
.card-num {
  font-family: var(--font-head); font-weight: 800; font-size: .85rem;
  color: var(--gold-dark); letter-spacing: .16em; margin-bottom: 1.2rem; display: block;
}
.card.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.card.dark h3 { color: var(--gold); }
.card.dark p, .card.dark li { color: rgba(255, 255, 255, .85); }
.card.dark strong { color: #fff; }

/* CTA band */
.cta-band { background: var(--navy-deep); color: #fff; padding: 72px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0; max-width: 640px; }

/* ---------- Sub-page header ---------- */
.page-hero {
  position: relative;
  padding: 120px 0 72px;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12, 36, 68, .93) 0%, rgba(30, 41, 59, .8) 50%, rgba(30, 41, 59, .45) 100%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; margin: 0; }
.page-hero .rule-red { margin-bottom: 0; }
@media (max-width: 860px) { .page-hero { padding: 80px 0 52px; } }

/* ---------- Team ---------- */
.team-intro { columns: 2; column-gap: 48px; color: var(--slate-700); }
.team-intro p { break-inside: avoid; }
@media (max-width: 860px) { .team-intro { columns: 1; } }
.team-grid {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
@media (max-width: 1080px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.member {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.member img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: top; background: var(--bg-soft-2); }
.member-info { display: block; padding: 18px 20px 22px; border-top: 3px solid var(--gold); }
.member-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--navy); display: block; }
.member-title { font-size: .9rem; color: var(--muted-2); display: block; margin-top: 2px; }
@media (max-width: 760px) {
  .member-info { padding: 12px 12px 16px; }
  .member-name { font-size: .95rem; }
  .member-title { font-size: .8rem; }
}

.bio-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  border: 0; border-radius: 14px; padding: 0;
  box-shadow: 0 24px 64px rgba(12, 36, 68, .35);
}
.bio-dialog::backdrop { background: rgba(12, 36, 68, .7); }
.bio-body { display: grid; grid-template-columns: 280px 1fr; }
.bio-body img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.bio-text { padding: 40px 44px; overflow: auto; max-height: calc(100vh - 48px); }
.bio-text h2 { font-size: 1.7rem; margin-bottom: .2rem; }
.bio-title { color: var(--gold-dark); font-family: var(--font-head); font-weight: 600; font-size: .95rem; letter-spacing: .04em; margin-bottom: 1.2rem; }
.bio-text p { color: var(--slate-700); font-size: 1rem; }
.bio-close {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; color: var(--navy);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.bio-close:hover { background: var(--bg-soft-2); }
@media (max-width: 760px) {
  .bio-body { grid-template-columns: 1fr; }
  .bio-body img { height: 260px; min-height: 0; object-position: top; }
  .bio-text { padding: 24px; max-height: none; }
  .bio-dialog { overflow: auto; }
}

/* ---------- Operations ---------- */
.figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.figure img { width: 100%; }
.figure figcaption { padding: 14px 20px; font-size: .9rem; color: var(--muted-2); background: var(--bg-soft); border-top: 1px solid var(--border); }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-list li:first-child { padding-top: 0; }
.contact-label { display: block; font-family: var(--font-head); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 4px; }
.contact-value { font-size: 1.12rem; color: var(--navy); }
.contact-value a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold); }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 420px; height: 100%; }
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .78); font-size: .95rem; }
.site-footer::before { content: ""; display: block; height: 3px; background: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding: 64px 24px 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 32px; } }
.footer-name { font-family: var(--font-head); font-weight: 800; letter-spacing: .14em; color: #fff; font-size: 1.05rem; margin-bottom: .6rem; }
.footer-motto { font-family: var(--font-head); font-weight: 600; letter-spacing: .14em; font-size: .78rem; color: var(--gold); }
.site-footer h2 { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; font-size: .82rem; color: rgba(255, 255, 255, .55); }

/* 404 */
.notfound { padding: 120px 0; text-align: left; }
