/* ===== Goliath Solutions — Global Styles ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #000000;
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --ink-mute: #6e6e73;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --nav-h: 48px;
  --max: 1200px;
  --ease: cubic-bezier(0.28, 0.16, 0.22, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.47059;
  letter-spacing: -0.022em;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ===== Typography ===== */
.eyebrow {
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.011em;
  margin-bottom: 12px;
}
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -0.015em; font-weight: 600; line-height: 1.08; }
.display {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.headline {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.07;
}
.subhead {
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.004em;
  line-height: 1.3;
}
.lede {
  font-size: clamp(19px, 1.6vw, 22px);
  color: var(--ink-soft);
  line-height: 1.43;
  letter-spacing: 0.012em;
  max-width: 720px;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}
.brand {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-mark {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #1d1d1f 0%, #424245 100%);
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 6px;
  transition: opacity .2s var(--ease);
  opacity: 0.88;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; font-weight: 500; }
.nav-cta {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 980px;
  background: var(--ink);
  color: #fff !important;
  transition: background .2s var(--ease);
}
.nav-cta:hover { background: #333; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: rgba(251,251,253,0.98); backdrop-filter: blur(20px); flex-direction: column; gap: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 28px; font-size: 16px; border-radius: 0; }
  .nav-toggle { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; }
  .nav-toggle span::before { position: absolute; top: -5px; }
  .nav-toggle span::after { position: absolute; top: 5px; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  font-weight: 400;
  padding: 12px 22px;
  border-radius: 980px;
  transition: background .2s var(--ease), transform .15s var(--ease);
  line-height: 1;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--accent); }
.btn-ghost:hover { text-decoration: underline; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #333; }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.arrow { display: inline-block; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Sections ===== */
section { position: relative; }
.section-pad { padding: 120px 0; }
.section-pad-sm { padding: 80px 0; }
.section-light { background: var(--bg); color: var(--ink); }
.section-alt { background: var(--bg-alt); color: var(--ink); }
.section-dark { background: var(--bg-dark); color: #f5f5f7; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #f5f5f7; }
.section-dark .subhead, .section-dark .lede { color: #a1a1a6; }

.section-head { text-align: center; margin-bottom: 64px; max-width: 860px; margin-left: auto; margin-right: auto; }
.section-head .subhead { margin-top: 16px; }

/* ===== Hero ===== */
.hero {
  padding: 90px 0 120px;
  text-align: center;
  background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { margin-bottom: 14px; }
.hero .subhead { max-width: 780px; margin: 0 auto 8px; }
.hero .btn-row { justify-content: center; margin-top: 32px; }
.hero-grid {
  margin-top: 72px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: left;
}
.hero-stat {
  padding: 22px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 20px rgba(0,0,0,0.05);
}
.hero-stat .num { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.hero-stat .lbl { font-size: 13px; color: var(--ink-mute); margin-top: 4px; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Bento / Service grid ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.bento .tile {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 40px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .35s var(--ease);
  overflow: hidden;
  position: relative;
}
.bento .tile:hover { transform: translateY(-4px); }
.tile .eyebrow { color: var(--ink-mute); font-size: 13px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }
.tile h3 { font-size: 32px; letter-spacing: -0.02em; margin: 12px 0 10px; line-height: 1.1; }
.tile p { color: var(--ink-soft); font-size: 17px; line-height: 1.4; }
.tile .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 14px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  font-size: 28px;
}
.tile-link { margin-top: 18px; font-size: 15px; color: var(--accent); font-weight: 500; }
.tile-link .arrow { margin-left: 4px; }

.tile.w-3 { grid-column: span 3; }
.tile.w-2 { grid-column: span 2; }
.tile.w-4 { grid-column: span 4; }
.tile.w-6 { grid-column: span 6; }

.tile.featured {
  background: var(--ink);
  color: #f5f5f7;
  min-height: 440px;
}
.tile.featured h3 { color: #fff; }
.tile.featured p { color: #a1a1a6; }
.tile.featured .icon { background: rgba(255,255,255,0.08); }
.tile.featured .tile-link { color: #4ea3f5; }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.w-2, .tile.w-3, .tile.w-4, .tile.w-6 { grid-column: span 2; }
  .tile { min-height: 300px; padding: 32px; }
}
@media (max-width: 540px) {
  .bento { grid-template-columns: 1fr; }
  .tile.w-2, .tile.w-3, .tile.w-4, .tile.w-6 { grid-column: span 1; }
}

/* ===== Client strip ===== */
.clients {
  text-align: center;
  padding: 72px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.clients .label {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.client-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 8vw, 96px);
  flex-wrap: wrap;
}
.client-logos .logo {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.78;
  letter-spacing: -0.01em;
  transition: opacity .2s var(--ease);
  display: flex;
  align-items: center;
  gap: 10px;
}
.client-logos .logo:hover { opacity: 1; }
.client-logos .logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.client-logos .dolphin .dot { background: #1d7dd1; }
.client-logos .pools .dot { background: #00a2a7; }

/* ===== Feature split rows ===== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.feature-row:first-of-type { border-top: none; }
.feature-row.reverse .f-media { order: 2; }
.feature-row .f-text h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.02em; margin-bottom: 18px; }
.feature-row .f-text p { font-size: 19px; color: var(--ink-soft); line-height: 1.5; }
.feature-row ul { margin-top: 20px; list-style: none; }
.feature-row ul li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }
.feature-row ul li::before { content: "✓"; color: var(--accent); font-weight: 600; }
.f-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e8edf3 0%, #f5f5f7 100%);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 40px; padding: 64px 0; }
  .feature-row.reverse .f-media { order: 0; }
}

/* ===== Case study cards ===== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.case {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 56px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease);
}
.case:hover { transform: translateY(-4px); }
.case.dark { background: #0a0a0a; color: #f5f5f7; }
.case.dark h3 { color: #fff; }
.case.dark p { color: #a1a1a6; }
.case.ocean { background: linear-gradient(160deg, #003c6b 0%, #0071bc 55%, #36c3ff 120%); color: #fff; }
.case.ocean h3, .case.ocean p, .case.ocean .case-tag { color: #fff; }
.case.pool { background: linear-gradient(160deg, #007272 0%, #00a2a7 50%, #66e3de 120%); color: #fff; }
.case.pool h3, .case.pool p, .case.pool .case-tag { color: #fff; }
.case-tag { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; margin-bottom: 14px; }
.case h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; line-height: 1.08; margin-bottom: 10px; }
.case p { font-size: 17px; opacity: 0.9; max-width: 420px; }
.case .case-meta {
  display: flex;
  gap: 28px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.case .case-meta div .n { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.case .case-meta div .l { font-size: 12px; opacity: 0.8; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 860px) {
  .case-grid { grid-template-columns: 1fr; }
  .case { padding: 40px; min-height: 440px; }
}

/* ===== Process / steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.step {
  padding: 32px 28px;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.step .num { font-size: 14px; color: var(--accent); font-weight: 600; letter-spacing: 0.04em; }
.step h4 { font-size: 22px; margin: 12px 0 10px; letter-spacing: -0.015em; }
.step p { color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

/* ===== CTA band ===== */
.cta-band {
  text-align: center;
  padding: 120px 22px;
  background: linear-gradient(180deg, #0a0a0a 0%, #1d1d1f 100%);
  color: #fff;
}
.cta-band h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.028em; line-height: 1.05; margin-bottom: 16px; color: #fff; }
.cta-band p { color: #a1a1a6; max-width: 640px; margin: 0 auto 28px; font-size: 20px; }
.cta-band .btn-row { justify-content: center; }

/* ===== Footer ===== */
footer {
  background: var(--bg-alt);
  color: var(--ink-mute);
  padding: 56px 0 32px;
  font-size: 12px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-top h5 { font-size: 12px; color: var(--ink); margin-bottom: 12px; font-weight: 600; }
.footer-top ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-top a { color: var(--ink-mute); transition: color .2s var(--ease); }
.footer-top a:hover { color: var(--ink); text-decoration: underline; }
.footer-about p { line-height: 1.5; margin-top: 10px; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ===== Contact form ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-info h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.028em; line-height: 1.05; margin-bottom: 18px; }
.contact-info .lede { margin-bottom: 28px; }
.contact-meta { display: flex; flex-direction: column; gap: 18px; margin-top: 36px; }
.contact-meta .item { display: flex; align-items: flex-start; gap: 14px; }
.contact-meta .item .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-alt); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.contact-meta .item h5 { font-size: 14px; color: var(--ink-mute); margin-bottom: 2px; font-weight: 500; }
.contact-meta .item p { font-size: 17px; color: var(--ink); }
form.contact-form {
  background: var(--bg-alt);
  padding: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,113,227,0.12);
}
.field textarea { resize: vertical; min-height: 140px; }
.contact-form button[type="submit"] {
  margin-top: 6px;
  padding: 14px 24px;
  background: var(--ink);
  color: #fff;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 500;
  transition: background .2s var(--ease);
  align-self: flex-start;
}
.contact-form button[type="submit"]:hover { background: #333; }
.form-note { font-size: 12px; color: var(--ink-mute); margin-top: 8px; }
@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  form.contact-form { padding: 28px; }
}

/* ===== Page headers ===== */
.page-head {
  padding: 96px 22px 60px;
  text-align: center;
  background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
}
.page-head h1 { font-size: clamp(44px, 6vw, 80px); letter-spacing: -0.032em; line-height: 1.04; }
.page-head p { margin: 18px auto 0; max-width: 680px; font-size: 21px; color: var(--ink-soft); line-height: 1.4; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Utility ===== */
.center { text-align: center; }
.muted { color: var(--ink-mute); }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }

/* ===== Tile art (CSS illustrations) ===== */
.art {
  position: absolute;
  inset: auto 0 0 0;
  height: 200px;
  pointer-events: none;
}
.art-web { background:
  radial-gradient(circle at 20% 60%, rgba(0,113,227,0.18) 0 24%, transparent 25%),
  linear-gradient(180deg, transparent 40%, rgba(0,113,227,0.08) 100%); }
.art-agent { background:
  radial-gradient(circle at 80% 70%, rgba(110,90,255,0.25) 0 22%, transparent 23%),
  radial-gradient(circle at 20% 90%, rgba(0,200,255,0.2) 0 18%, transparent 19%); }
.art-auto { background:
  repeating-linear-gradient(135deg, rgba(0,0,0,0.04) 0 2px, transparent 2px 14px); }

/* Stars/dots for dark tile */
.tile.featured .stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 50%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 80%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 20%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 55% 65%, rgba(78,163,245,0.8) 50%, transparent 51%);
  opacity: 0.4;
  pointer-events: none;
}
