/* Gabriel Holdings Inc — Shared Design System */

/* === RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === TOKENS === */
:root {
  --bg: #08111f;
  --bg-nav: #060d19;
  --bg-card: #0c1b2e;
  --bg-card-h: #0f2241;
  --border: #152a45;
  --border-a: #1e4a80;
  --accent: #2e6fd4;
  --accent-l: #5a8fef;
  --accent-dim: #1a3d70;
  --text: #dce8ff;
  --text-2: #5e7fa0;
  --text-3: #2a3f58;
  --green: #22c55e;
  --max: 1080px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 50px;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}

/* === NAV === */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 64px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: "Outfit", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Outfit", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.2s;
}

.nav-back::before {
  content: "←";
}
.nav-back:hover {
  color: var(--accent-l);
}

/* === LAYOUT === */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
}
section {
  padding: 100px 44px;
}
hr.div {
  border: none;
  border-top: 1px solid var(--border);
}

/* === TYPE === */
.label {
  font-family: "Outfit", sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-l);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  margin-bottom: 24px;
}
h1 em {
  font-style: normal;
  color: var(--accent-l);
}
h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  margin-bottom: 18px;
}
h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

p.lead {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 580px;
  line-height: 1.85;
}

/* === BUTTONS === */
.btn {
  font-family: "Outfit", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 4px;
  transition: all 0.2s;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent-l);
  border-color: var(--accent-l);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent-dim);
  color: var(--text);
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* === PILLARS === */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 6px;
  padding: 22px 18px;
}

.pillar-n {
  font-family: "Outfit", sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--accent-l);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 8px;
}

.pillar-t {
  font-family: "Outfit", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

/* === STAT ROW === */
.stats {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 13px 17px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-l);
  flex-shrink: 0;
}
.dot.g {
  background: var(--green);
}

.stat-t {
  font-family: "Outfit", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

/* === PROJECT HERO (full-page hero for project pages) === */
.project-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 96px 44px 80px;
  overflow: hidden;
}

.project-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.project-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.project-hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    rgba(8, 17, 31, 0.6) 50%,
    rgba(8, 17, 31, 0.3) 100%
  );
  z-index: 1;
}

.project-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

/* === PHOTO GRID === */
.photo-grid {
  display: grid;
  gap: 18px;
  margin-top: 52px;
}

.photo-grid.two-col {
  grid-template-columns: 1fr 1fr;
}
.photo-grid.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

.photo-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.photo-item.tall {
  aspect-ratio: 3/4;
}
.photo-item.wide {
  aspect-ratio: 16/9;
}
.photo-item.square {
  aspect-ratio: 1;
}
.photo-item.span2 {
  grid-column: span 2;
  aspect-ratio: 21/9;
}

/* CSS gradient as background (shows when image is absent/loading) */
.photo-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(
    --photo-bg,
    linear-gradient(135deg, #0a1628 0%, #162a4a 100%)
  );
  z-index: 0;
}

.photo-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* === HIGHLIGHT BOX === */
.highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 48px 52px;
}

.highlight-quote {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
}

.highlight-quote span {
  color: var(--accent-l);
}

.highlight-attr {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-3);
  font-style: italic;
}

/* === FOOTER === */
footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  padding: 26px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.foot-copy {
  font-family: "Outfit", sans-serif;
  font-size: 0.75rem;
  color: var(--text-3);
}

.foot-links {
  display: flex;
  gap: 28px;
}
.foot-links a {
  font-family: "Outfit", sans-serif;
  font-size: 0.73rem;
  color: var(--text-3);
  transition: color 0.2s;
}
.foot-links a:hover {
  color: var(--text-2);
}

/* === RESPONSIVE === */
@media (max-width: 820px) {
  nav {
    padding: 0 24px;
    height: 80px;
  }
  .nav-logo img {
    height: 50px;
  }
  .nav-links {
    gap: 20px;
  }
  section {
    padding: 70px 24px;
  }
  .project-hero {
    padding: 96px 24px 60px;
  }
  .photo-grid.two-col,
  .photo-grid.three-col {
    grid-template-columns: 1fr;
  }
  .photo-item.span2 {
    grid-column: span 1;
    aspect-ratio: 16/9;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .highlight-box {
    padding: 30px 26px;
  }
  footer {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.2rem;
  }
  .nav-links {
    display: none;
  }
}
