/* Gorilla Tech Advisors — sophisticated dark theme aligned with Gorilla Apex / Portfolio */

:root {
  --navy: #071427;
  --navy-mid: #0c1f3a;
  --navy-edge: #163056;
  --gold: #c4a36a;
  --gold-hover: #d4b57a;
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-soft: rgba(255, 255, 255, 0.62);
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --display: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --radius: 1.1rem;
  --max: 72rem;
}

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

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  line-height: 1.55;
  color: var(--white);
  background: var(--navy);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  text-wrap: balance;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

p { text-wrap: pretty; margin: 0; }

a { color: inherit; text-decoration: none; }

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--navy) 88%, transparent);
  border-bottom: 1px solid var(--navy-edge);
  overflow: visible;
}

header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0 0.5rem;
  overflow: visible;
}

.logo {
  height: 8.55rem;
  width: auto;
  max-width: min(340px, 50vw);
  object-fit: contain;
  object-position: left center;
  margin: -0.9rem 0 -1.5rem 0;
}

.header-cta {
  flex-shrink: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  min-height: 2.4rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.7rem;
  color: rgba(255,255,255,0.82);
  border-radius: 0.45rem;
  transition: color 0.15s, background 0.15s;
}

nav a:hover,
nav a.is-active { color: var(--white); }
nav a.is-active { color: var(--gold); }

.btn {
  min-height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--navy-edge);
  background: transparent;
  color: var(--white);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero {
  padding: 4rem 0 3.25rem;
}

.kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.85rem;
}

.hero h1 {
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  max-width: 18ch;
  margin-bottom: 1.1rem;
}

.lede {
  max-width: 38rem;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2.1vw, 1.18rem);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.phone-line {
  margin-top: 1.25rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.phone-line a {
  color: var(--gold);
  font-weight: 600;
}
.phone-line a:hover { text-decoration: underline; }

.band {
  border-top: 1px solid var(--navy-edge);
  border-bottom: 1px solid var(--navy-edge);
  background: var(--navy-mid);
}

.section {
  padding: 3.5rem 0;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  margin-top: 0.4rem;
}

.pillars {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--navy);
  border: 1px solid var(--navy-edge);
  border-radius: var(--radius);
  padding: 1.6rem 1.45rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--navy-edge));
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}

.card .meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.card ul {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.card ul li {
  display: flex;
  gap: 0.55rem;
  margin: 0.35rem 0;
}
.card ul li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: var(--gold);
  margin-top: 0.55rem;
  flex-shrink: 0;
}

.team-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .team-grid { grid-template-columns: repeat(4, 1fr); }
}

.team-card {
  background: var(--navy-mid);
  border: 1px solid var(--navy-edge);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.team-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.team-card .photo {
  aspect-ratio: 4 / 5;
  background: #0a1830;
  overflow: hidden;
}

.team-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-card .info {
  padding: 1.15rem 1rem 1.35rem;
}

.team-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.team-card .role {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
}

.prose {
  max-width: 44rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.prose p + p { margin-top: 1rem; }

.prose strong { color: var(--white); font-weight: 600; }

.cta-band {
  text-align: center;
  padding: 3.5rem 1.25rem;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0 auto 1.5rem;
}

footer {
  border-top: 1px solid var(--navy-edge);
  padding: 2.25rem 0 2.5rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-brand {
  max-width: 28rem;
}

.footer-brand-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand .logo {
  height: 7.2rem;
  width: auto;
  max-width: min(300px, 75vw);
  object-fit: contain;
  margin-bottom: 0.25rem;
  margin-top: -0.85rem;
}

.footer-cta {
  flex-shrink: 0;
}

.footer-brand p {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.footer-links a:hover { color: var(--gold); }

.footer-meta {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--navy-edge);
  color: var(--text-soft);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

.service-detail {
  background: var(--navy-mid);
  border: 1px solid var(--navy-edge);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

.service-detail h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.service-detail .tagline {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.service-detail .invest {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--navy-edge);
  font-size: 0.9rem;
  color: var(--text-soft);
}

.service-detail .invest strong {
  color: var(--gold);
}

/* Mobile: logo + Book top row; centered nav; footer logo + Book side by side */
@media (max-width: 720px) {
  header .bar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo cta"
      "nav nav";
    align-items: center;
    gap: 0.45rem 0.75rem;
    padding: 0.55rem 0 0.65rem;
  }
  header .bar > a:first-child {
    grid-area: logo;
    justify-self: start;
  }
  header .header-cta {
    grid-area: cta;
    justify-self: end;
    align-self: center;
    white-space: nowrap;
    font-size: 0.8rem;
    min-height: 2.2rem;
    padding: 0 0.9rem;
  }
  header nav {
    grid-area: nav;
    width: 100%;
    justify-content: center;
    gap: 0.15rem 0.35rem;
  }
  header .logo {
    height: 3.25rem;
    margin: -0.15rem 0;
    max-width: min(9.5rem, 48vw);
  }
  nav a {
    padding: 0 0.45rem;
    font-size: 0.82rem;
    min-height: 2.2rem;
  }
  .btn {
    min-height: 2.35rem;
    padding: 0 0.95rem;
    font-size: 0.85rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }
  .footer-brand {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-brand-top {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 0.65rem 0.85rem;
  }
  .footer-brand .logo {
    height: 2.85rem;
    margin-top: 0;
    margin-bottom: 0;
    max-width: min(8.5rem, 42vw);
  }
  .footer-cta {
    font-size: 0.8rem !important;
    min-height: 2.2rem !important;
    padding: 0 0.85rem !important;
    white-space: nowrap;
  }
  .footer-brand p {
    text-align: center;
    max-width: 22rem;
    margin: 0.75rem auto 0;
  }
  .footer-links {
    justify-content: center;
    width: 100%;
  }
  .footer-meta {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .team-card, .btn { transition: none; }
}
