/* ================================================================
   UNIBRUZ — Static Site Styles
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ----------------------------------------------------------------
   Tokens
   ---------------------------------------------------------------- */
:root {
  --yellow:        #FFCC00;
  --yellow-soft:   #FFE27A;
  --bg:            #0a0a0a;
  --surface:       #141414;
  --surface-2:     rgba(255,255,255,.025);
  --border:        rgba(255,255,255,.08);
  --text:          #ffffff;
  --text-muted:    rgba(255,255,255,.65);
  --text-dim:      rgba(255,255,255,.55);
  --pad:           80px;
  --gap:           100px;
  --radius:        .65rem;
  --ease:          200ms ease;
}

/* ----------------------------------------------------------------
   Reset & Base
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
body  {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ----------------------------------------------------------------
   Typography helpers
   ---------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; }

.label {
  font-size: 12px; letter-spacing: 3px; font-weight: 700;
  color: var(--yellow); text-transform: uppercase;
}
.section-title { font-size: clamp(28px, 4vw, 48px); font-weight: 900; margin-top: 12px; }
.divider { width: 60px; height: 4px; background: var(--yellow); margin-top: 20px; }
.text-yellow { color: var(--yellow); }

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow); color: #000;
  font-weight: 700; font-size: 13px; letter-spacing: 1px;
  padding: 14px 32px; border-radius: 4px;
  transition: opacity var(--ease);
}
.btn-primary:hover { opacity: .88; }

/* ----------------------------------------------------------------
   Container (shared with all pages)
   ---------------------------------------------------------------- */
.container {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem;
}

/* ----------------------------------------------------------------
   Navigation — matches blog.html / learning.html / foundation.html
   ---------------------------------------------------------------- */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background-color: hsl(0 0% 4% / .9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid hsl(0 0% 18%);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; height: 4rem;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo .wordmark { height: 1.75rem; width: auto; display: block; }
.nav-links {
  display: flex; align-items: center; gap: 2rem; list-style: none;
}
.nav-links a {
  font-size: .875rem; font-weight: 500; color: hsl(0 0% 60%); transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: hsl(48 100% 50%); }
.nav-cta {
  padding: .5rem 1.25rem; border-radius: 4px;
  background-color: hsl(48 100% 50%); color: hsl(0 0% 4%) !important;
  font-weight: 700; transition: opacity .15s;
}
.nav-cta:hover { opacity: .9; }
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: .25rem;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background-color: hsl(48 100% 50%); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 1rem;
  padding: 1.5rem 2rem; background: hsl(0 0% 4%);
  border-bottom: 1px solid hsl(0 0% 18%);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.125rem; font-weight: 500;
  color: hsl(0 0% 60%); transition: color .15s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: hsl(48 100% 50%); }

/* Sign In link — brand yellow in header, mobile menu, and footer */
.nav-links a.nav-signin,
.mobile-menu a.nav-signin,
.footer-links a.nav-signin { color: var(--yellow); font-weight: 700; }
.nav-links a.nav-signin:hover,
.mobile-menu a.nav-signin:hover,
.footer-links a.nav-signin:hover { color: var(--yellow-soft); }

/* ----------------------------------------------------------------
   Hero — two-column: text left, robot right
   ---------------------------------------------------------------- */
#hero {
  min-height: 100vh; display: flex; align-items: stretch;
  position: relative; padding-top: 4rem; overflow: hidden;
}
.hero-layout {
  display: flex; align-items: stretch; width: 100%; min-height: calc(100vh - 4rem);
}

/* Left column */
.hero-left {
  flex: 0 0 50%; display: flex; flex-direction: column; justify-content: center;
  padding: 60px var(--pad); position: relative; z-index: 2;
}
.hero-title {
  font-size: clamp(36px, 5vw, 68px); font-weight: 900;
  line-height: 1.07; margin-bottom: 24px;
}
.hero-desc {
  font-size: 17px; color: var(--text-muted); max-width: 520px;
  margin-bottom: 48px; line-height: 1.65;
}

/* Right column — full-height robot */
.hero-right {
  flex: 0 0 50%; position: relative; overflow: hidden;
}
.hero-creativity-label {
  position: absolute; top: 32px; left: 0; right: 0; text-align: center;
  font-size: 11px; letter-spacing: 3px; font-weight: 700;
  color: rgba(255,204,0,.85); text-transform: uppercase; z-index: 10;
}
.hero-robot { position: absolute; inset: 0; }
.hero-robot spline-viewer {
  width: 100%; height: 100%; display: block;
  filter: sepia(1) saturate(4) hue-rotate(8deg) brightness(.85) contrast(1.15);
}

/* Hide the "Built with Spline" badge and loader — try CSS part first */
spline-viewer::part(logo),
spline-viewer::part(watermark),
spline-viewer::part(loader) { display: none !important; }

/* Fallback: cover over the bottom-right badge area */
.robot-badge-cover {
  position: absolute; bottom: 0; right: 0; width: 200px; height: 56px;
  background: var(--bg);
  z-index: 10; pointer-events: none;
}

.glow-tr {
  display: none;
}
.glow-bl {
  display: none;
}

/* ----------------------------------------------------------------
   Clients
   ---------------------------------------------------------------- */
#clients {
  padding: 56px var(--pad); background: var(--surface-2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.clients-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 24px; margin-top: 0;
}
.client-logo-slot {
  width: 160px; height: 72px; border-radius: 8px;
  border: 1px dashed var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  filter: grayscale(1); opacity: .5; transition: opacity var(--ease), filter var(--ease);
}
.client-logo-slot:hover { opacity: 1; filter: grayscale(0); }
.client-logo-slot span { font-size: 11px; color: var(--text-dim); letter-spacing: 1px; }
.client-logo-slot img { max-width: 120px; max-height: 48px; object-fit: contain; }

/* ----------------------------------------------------------------
   Services
   ---------------------------------------------------------------- */
#services { padding: var(--gap) var(--pad); }
.section-header { text-align: center; margin-bottom: 64px; }
.services-grid {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: center;
}
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  width: calc(33.33% - 16px); min-width: 260px; max-width: 380px;
  transition: border-color var(--ease), transform var(--ease);
}
.service-card:hover { border-color: rgba(255,204,0,.3); transform: translateY(-4px); }
.service-img { width: 100%; height: 200px; overflow: hidden; flex-shrink: 0; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.service-card:hover .service-img img { transform: scale(1.05); }
.service-body { padding: 24px 22px 28px; }
.service-body h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.service-body p  { color: var(--text-muted); font-size: 14px; line-height: 1.65; }

/* robot-glow / robot-fade / robot-bracket — shared between hero-right and any future use */
.robot-glow {
  display: none;
}
.robot-fade {
  display: none;
}
.robot-bracket { position: absolute; top: 40px; right: 28px; z-index: 3; pointer-events: none; }
.robot-bracket-h { width: 52px; height: 2px; background: rgba(255,204,0,.5); }
.robot-bracket-v { width: 2px; height: 52px; background: rgba(255,204,0,.5); margin-left: auto; }

/* ----------------------------------------------------------------
   Ventures
   ---------------------------------------------------------------- */
#ventures { padding: var(--gap) var(--pad); }

/* ----------------------------------------------------------------
   Courses / Academy
   ---------------------------------------------------------------- */
#courses { padding: var(--gap) var(--pad); }
.courses-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 20px; margin-top: 64px;
}
.course-card, .course-card.rounded-lg {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: border-color var(--ease), transform var(--ease);
}
.course-card:hover { border-color: rgba(255,204,0,.3); transform: translateY(-4px); }
.course-img { height: 160px; overflow: hidden; flex-shrink: 0; }
.course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.course-card:hover .course-img img { transform: scale(1.06); }
.course-body { padding: 18px 20px 22px; }
.course-track {
  font-size: 10px; letter-spacing: 2px; font-weight: 700;
  color: var(--yellow); opacity: .8; margin-bottom: 8px; display: block;
  text-transform: uppercase;
}
.course-body h4 { font-size: 16px; font-weight: 700; }
.course-card { text-decoration: none; color: inherit; display: block; }
.course-focus { color: var(--text-muted); font-size: 13px; line-height: 1.5; margin: 8px 0 10px; }
.course-meta { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.section-sub { max-width: 640px; margin: 18px auto 0; color: var(--text-muted); line-height: 1.7; font-size: 15px; }
.academy-cta { text-align: center; margin-top: 48px; }

/* ----------------------------------------------------------------
   Brands — logo wall (ventures)
   ---------------------------------------------------------------- */
.brands-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.brand-logo-card {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 44px 28px; min-height: 150px;
  transition: border-color var(--ease), transform var(--ease);
}
.brand-logo-card:hover { border-color: rgba(255,204,0,.3); transform: translateY(-4px); }
.brand-logo-card img {
  max-width: 100%; max-height: 64px; width: auto; height: auto;
  object-fit: contain; opacity: .9; transition: opacity var(--ease);
}
.brand-logo-card:hover img { opacity: 1; }

/* ----------------------------------------------------------------
   Creatives
   ---------------------------------------------------------------- */
#creatives { padding: var(--gap) var(--pad); }
.creatives-inner { display: flex; align-items: center; gap: 80px; flex-wrap: wrap; }
.creatives-img-col { flex: 0 0 400px; }
.aspect-square.rounded-2xl { aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: var(--surface); }
.w-full.h-full.relative { width: 100%; height: 100%; position: relative; }
.w-full.h-full.relative img { width: 100%; height: 100%; object-fit: cover; }
.creatives-text-col { flex: 1; min-width: 260px; }
.creatives-text-col h2 { font-size: clamp(28px,3.5vw,42px); font-weight: 900; margin-bottom: 20px; }
.creatives-text-col p  { color: var(--text-muted); line-height: 1.75; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 600;
}

/* ----------------------------------------------------------------
   Service bullet list
   ---------------------------------------------------------------- */
.service-list {
  margin-top: 14px; padding-left: 0; list-style: none;
  display: flex; flex-direction: column; gap: 7px;
}
.service-list li {
  font-size: 13px; color: var(--text-muted); padding-left: 16px; position: relative;
}
.service-list li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); opacity: .7;
}

/* ----------------------------------------------------------------
   About
   ---------------------------------------------------------------- */
#about { padding: var(--gap) var(--pad); background: var(--surface-2); }
.about-inner { display: flex; align-items: flex-start; gap: 80px; flex-wrap: wrap; }
.about-text { flex: 1; min-width: 260px; }
.about-text h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; margin-bottom: 24px; }
.about-text p  { color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }
.about-highlights { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.about-highlight { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.about-highlight::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow); flex-shrink: 0;
}

/* ----------------------------------------------------------------
   Contact
   ---------------------------------------------------------------- */
#contact { padding: var(--gap) var(--pad); }
.contact-inner { max-width: 640px; margin: 0 auto; }
.contact-inner .section-header { text-align: left; }
.contact-reach {
  display: flex; align-items: center; gap: 0;
  margin-top: 36px; margin-bottom: 32px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.contact-reach-item {
  flex: 1; padding: 20px 24px; display: flex; flex-direction: column; gap: 4px;
  transition: background var(--ease);
}
.contact-reach-item:hover { background: rgba(255,204,0,.05); }
.contact-reach-label {
  font-size: 10px; letter-spacing: 2px; font-weight: 700;
  color: var(--yellow); opacity: .8; text-transform: uppercase;
}
.contact-reach-value { font-size: 15px; font-weight: 500; color: var(--text); }
.contact-reach-sep { width: 1px; height: 48px; background: var(--border); flex-shrink: 0; }
form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 16px;
  color: var(--text); font-family: inherit; font-size: 15px;
  outline: none; transition: border-color var(--ease);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--yellow); }
.form-group textarea { resize: vertical; min-height: 140px; }
form .btn-primary { width: 100%; justify-content: center; padding: 16px; font-size: 14px; margin-top: 8px; }

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
footer { padding: 60px var(--pad) 36px; border-top: 1px solid var(--border); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; }
.footer-brand img { height: 38px; margin-bottom: 12px; }
.footer-tagline { font-size: 13px; color: var(--text-dim); line-height: 1.6; max-width: 240px; }
.footer-links { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.footer-links a {
  font-size: 13px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-dim); transition: color var(--ease);
}
.footer-links a:hover { color: var(--yellow); }
.footer-contact {
  margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border);
  display: flex; gap: 24px; flex-wrap: wrap; align-items: center;
}
.footer-contact a { font-size: 14px; color: var(--text-muted); transition: color var(--ease); }
.footer-contact a:hover { color: var(--yellow); }
.footer-contact-sep { color: var(--border); }
.footer-bottom {
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-copy  { font-size: 12px; color: var(--text-dim); }
.footer-brand-text { font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,.12); text-transform: uppercase; }

/* ----------------------------------------------------------------
   Fade-in animation
   ---------------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; animation: fadeUp .9s ease forwards; }
.hero-left .fade-in:nth-child(1) { animation-delay: .15s; }
.hero-left .fade-in:nth-child(2) { animation-delay: .3s;  }
.hero-left .fade-in:nth-child(3) { animation-delay: .48s; }
.hero-left .fade-in:nth-child(4) { animation-delay: .65s; }

/* ----------------------------------------------------------------
   Mobile
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  :root { --pad: 24px; --gap: 70px; }

  .nav-links { display: none; }
  .nav-burger { display: flex; }

  /* Hero stacks on mobile */
  .hero-layout  { flex-direction: column; }
  .hero-left    { flex: none; width: 100%; padding: 40px var(--pad); }
  .hero-right   { flex: none; width: 100%; height: 420px; }
  .hero-title   { font-size: clamp(32px, 9vw, 52px); }
  .hero-desc    { font-size: 16px; }

  .service-card { width: 100%; max-width: 100%; }

  .creatives-inner { flex-direction: column; }
  .creatives-img-col { flex: none; width: 100%; }

  .about-inner { flex-direction: column; gap: 40px; }
  .contact-reach { flex-direction: column; }
  .contact-reach-sep { width: 100%; height: 1px; }
  .footer-top  { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}