/* Team Hamilton / Opal Hill public site
   Colors and type follow the Team Hamilton desktop app. */

:root {
  --bg: #0E1420;
  --panel: #152238;
  --panel2: #1C2B44;
  --line: #2A3850;
  --text: #F2F6FC;
  --muted: #C5D0DE;
  --accent: #F2A541;
  --trim: #5A3214;
  --glow: rgba(242, 165, 65, 0.35);
  --max: 1120px;
  font-size: 16px;
}

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

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  min-height: 100%;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #141414;
  padding: 8px 14px;
  z-index: 100;
  font-weight: 800;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 22px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 3px rgba(232, 238, 247, 0.35));
  flex: 0 0 auto;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand-sub {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav { display: flex; gap: 18px; align-items: center; }
.nav a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(36rem, calc(100svh - 84px));
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 2px solid var(--accent);
  background-color: var(--bg);
}

.hero-art {
  position: absolute;
  inset: 0;
  background-image: url("hero.png");
  background-image: image-set(url("hero.webp") type("image/webp"), url("hero.png") type("image/png"));
  background-size: cover;
  background-position: 72% 50%;
  background-repeat: no-repeat;
  z-index: -2;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(14, 20, 32, 0.97) 0%,
      rgba(14, 20, 32, 0.88) 28%,
      rgba(14, 20, 32, 0.45) 52%,
      rgba(14, 20, 32, 0.15) 70%,
      rgba(14, 20, 32, 0.20) 100%),
    linear-gradient(180deg,
      rgba(14, 20, 32, 0.15) 0%,
      transparent 30%,
      rgba(14, 20, 32, 0.35) 100%);
}

.hero-copy {
  position: relative;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 72px 24px 80px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 14px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero .lede {
  margin: 0 0 22px;
  max-width: 22em;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #141414;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.88rem;
  padding: 12px 22px;
  border-radius: 8px;
  border: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2), 0 8px 24px var(--glow);
}
.btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px;
}

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section .intro {
  margin: 0 0 36px;
  max-width: 40em;
  color: var(--muted);
  font-size: 1.05rem;
}

.crew {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 22%);
}

.card h3 {
  margin: 8px 0 6px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card p {
  margin: 0;
  color: var(--muted);
  max-width: 28em;
}

.portrait {
  width: min(100%, 420px);
  margin: 0 auto 8px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.portrait-diesel { width: min(100%, 340px); }

.crew-feature {
  display: grid;
  grid-template-columns: minmax(200px, 360px) 1fr;
  gap: 28px 40px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 36px 28px 28px;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 22%);
  box-shadow: 0 4px 6px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.2);
}
.crew-feature .portrait {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}
.crew-feature-copy h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.crew-feature-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 28em;
}
@media (max-width: 800px) {
  .crew-feature {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 22px 20px 26px;
    gap: 8px;
  }
  .crew-feature .portrait { max-width: 280px; }
  .crew-feature-copy p { margin: 0 auto; }
}


.contact-strip {
  background: var(--panel2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-strip .section {
  padding: 36px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.contact-strip h2 { margin: 0 0 6px; }
.contact-strip p { margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 22px 24px 32px;
  text-align: center;
  color: #8B97A8;
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
}
.site-footer nav { margin-bottom: 8px; }
.site-footer a { color: #8B97A8; }
.site-footer a:hover { color: var(--accent); }

/* ---------- Privacy page ---------- */
.policy {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.policy h1 {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.policy .meta {
  color: var(--muted);
  margin: 0 0 28px;
}
.policy h2 {
  margin: 28px 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.policy p, .policy li { color: var(--text); }
.policy ul { padding-left: 1.2em; }
.policy li { margin: 6px 0; }

/* ---------- Mobile ---------- */
@media (max-width: 800px) {
  .crew { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-copy { padding: 48px 20px 56px; }
  .hero-art { background-position: 80% 50%; }
  .hero-shade {
    background:
      linear-gradient(180deg,
        rgba(14, 20, 32, 0.88) 0%,
        rgba(14, 20, 32, 0.72) 42%,
        rgba(14, 20, 32, 0.35) 70%,
        rgba(14, 20, 32, 0.55) 100%),
      linear-gradient(90deg,
        rgba(14, 20, 32, 0.7) 0%,
        rgba(14, 20, 32, 0.2) 100%);
  }
  .hero .lede { max-width: none; }
  .site-header { padding: 8px 14px; }
  .brand-mark { width: 42px; height: 42px; }
  .section { padding: 44px 18px; }
}

@media (max-width: 480px) {
  .brand-sub { display: none; }
  .hero h1 { font-size: 2.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- What we do ---------- */
.work {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.work-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 18px 22px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.2);
  position: relative;
  min-height: 170px;
}
.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 20%);
  pointer-events: none;
}
.work-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  color: var(--accent);
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.work-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.work-card h3 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.work-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}

/* ---------- Team login ---------- */
.btn-login {
  display: inline-block;
  background: var(--accent);
  color: #141414 !important;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
}
.btn-login:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.login-strip {
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.login-strip .section {
  padding: 36px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.login-strip h2 { margin: 0 0 6px; }
.login-strip p { margin: 0; color: var(--muted); max-width: 40em; }

.nav { flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 900px) {
  .work { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .login-strip .section { padding: 36px 18px; }
}
@media (max-width: 700px) {
  .site-header { flex-wrap: wrap; gap: 8px 16px; }
  .nav { flex: 1 0 100%; justify-content: flex-start; gap: 10px 14px; }
}
@media (max-width: 560px) {
  .work { grid-template-columns: 1fr; }
}


/* ---------- Stay with freight ---------- */
.stay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stay-callout {
  margin-top: 22px;
  background: var(--panel2);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 22px 26px;
  box-shadow: 0 0 18px var(--glow);
  position: relative;
}
.stay-callout::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(242,165,65,0.08) 0%, transparent 40%);
  pointer-events: none;
}
.stay-callout p {
  margin: 0;
  position: relative;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
  max-width: 52em;
}
@media (max-width: 900px) {
  .stay-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .stay-grid { grid-template-columns: 1fr; }
}
