/* ============================================================
   COOLGEEKS — modern site stylesheet
   Replaces all Adobe Muse generated CSS (site_global, master, per-page)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --red: #e02b20;
  --red-dark: #b91c12;
  --red-soft: #ff5a4f;
  --ink: #16181d;
  --ink-2: #2a2d35;
  --paper: #ffffff;
  --paper-2: #f5f6f8;
  --text: #23262d;
  --text-muted: #5c626e;
  --line: #e4e6ea;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(20, 22, 28, 0.10);
  --shadow-sm: 0 2px 10px rgba(20, 22, 28, 0.08);
  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 72px;
  --max-w: 1180px;
  --pink: #f9cac8;
  --pink-soft: #fdeceb;
  --font: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}


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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.muted { color: var(--text-muted); }

.accent { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--red-soft);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--red); color: #fff; padding: 10px 18px;
  z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

section { padding: clamp(48px, 8vw, 96px) 0; }

.section-alt { background: var(--pink-soft); }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: var(--max-w); margin: 0 auto; height: 100%;
  padding: 0 clamp(16px, 4vw, 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 46px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 9px 14px; border-radius: 999px;
  color: var(--text); font-weight: 500; font-size: .95rem;
  transition: background .18s ease, color .18s ease;
}
.main-nav a:hover, .main-nav a:focus-visible { background: var(--red); color: #fff; text-decoration: none; }
.main-nav a.cta { background: var(--red); color: #fff; font-weight: 700; margin-left: 6px; }
.main-nav a.cta:hover { background: var(--red-dark); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--text);
}
.nav-toggle svg { width: 28px; height: 28px; display: block; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px clamp(16px, 4vw, 32px) 20px;
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform .25s ease;
    visibility: hidden;
  }
  .main-nav.open { transform: translateY(0); visibility: visible; }
  .main-nav a { border-radius: var(--radius-sm); padding: 13px 14px; font-size: 1.05rem; }
  .main-nav a.cta { margin-left: 0; margin-top: 8px; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font: 700 1rem var(--font);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border-color: currentColor; }
.btn-outline:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--red-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(255, 255, 255, 0.55), transparent 60%),
    var(--pink);
  color: var(--text);
  padding: clamp(56px, 8vw, 104px) 0;
}
.hero h1, .hero h2 { color: var(--text); }
.hero .muted { color: #554140; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-art { position: relative; }
.hero-art img { filter: drop-shadow(0 20px 34px rgba(120, 40, 35, 0.28)); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; color: #554140; font-size: .95rem; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--red); flex: none; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(18px, 3vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-top: 14px; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--red) 12%, transparent);
  color: var(--red);
}
.card .icon svg { width: 26px; height: 26px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split > *, .hero-grid > * { min-width: 0; }
.split .art img { border-radius: var(--radius); }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { width: 20px; height: 20px; color: var(--red); flex: none; margin-top: 3px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 40px);
  max-width: 640px;
}
.form-grid { display: grid; gap: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }

.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .req { color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%;
  font: 400 1rem var(--font);
  color: var(--text);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 22%, transparent);
}
.field textarea { min-height: 120px; resize: vertical; }

.form-status { margin-top: 14px; font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: #1a9a4e; }
.form-status.err { color: var(--red); }
.form-status.busy { color: var(--text-muted); }

/* ---------- Status / search ---------- */
.status-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.status-card .ticket { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.status-card h3 { margin: 6px 0 8px; }

.search-box {
  display: flex; gap: 10px; align-items: center;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px 6px 20px;
  box-shadow: var(--shadow-sm);
  max-width: 560px;
}
.search-box svg { width: 20px; height: 20px; color: var(--text-muted); flex: none; }
.search-box input {
  flex: 1; border: 0; background: transparent; font: 400 1.05rem var(--font);
  color: var(--text); padding: 10px 0; min-width: 0;
}
.search-box input:focus { outline: none; }

mark { background: color-mix(in srgb, var(--red) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 3px; }

/* ---------- Steps (return page) ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li {
  counter-increment: step;
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(step);
  flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background:
    radial-gradient(900px 400px at 80% -20%, rgba(255, 255, 255, 0.6), transparent 60%),
    var(--pink);
  color: var(--text);
  padding: clamp(40px, 6vw, 72px) 0;
}
.page-hero h1 { color: var(--text); margin-bottom: .3em; }
.page-hero p { color: #554140; max-width: 640px; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c3c8d1;
  padding: clamp(40px, 6vw, 64px) 0 28px;
  margin-top: 0;
}
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand img { height: 54px; width: auto; margin-bottom: 14px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--red-soft); flex: none; margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 36px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: .88rem; color: #8a8f99;
}

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-lg { margin-bottom: clamp(24px, 4vw, 44px); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   AI SERVICES — additions
   ============================================================ */

/* Animated gradient text */
.grad-text {
  background: linear-gradient(90deg, #ff5a4f, #e02b20, #7a1610, #e02b20, #ff5a4f);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 6s linear infinite;
}
@keyframes gradShift { to { background-position: 300% 0; } }

/* AI call-to-action button */
.btn-ai {
  position: relative;
  background: linear-gradient(120deg, #ff5a4f, #e02b20 55%, #9c1810);
  background-size: 200% 100%;
  color: #fff;
  animation: gradShift 8s linear infinite;
}
.btn-ai:hover { color: #fff; filter: brightness(1.1); }

/* Floating AI chips over hero art */
.ai-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .82rem; font-weight: 700;
  color: #fff;
  background: rgba(22, 24, 29, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  animation: chipFloat 5s ease-in-out infinite;
}
.ai-chip svg { width: 15px; height: 15px; color: #ff5a4f; flex: none; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (max-width: 880px) { .ai-chip { display: none; } }

/* Rotating word */
.rotate-word { display: inline-block; color: var(--red-soft); font-weight: 700; transition: opacity .3s ease, transform .3s ease; }
.rotate-word.swap { opacity: 0; transform: translateY(8px); }

/* AI hero (ai-services page) */
.ai-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(900px 500px at 85% 110%, rgba(224, 43, 32, 0.10), transparent 60%),
    var(--pink);
  color: var(--text);
  padding: clamp(64px, 9vw, 118px) 0;
}
.ai-hero h1 { color: var(--text); }
.ai-hero p { color: #554140; }
.ai-hero .net {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .5; pointer-events: none;
}
.ai-hero .container { position: relative; }

/* Neural net SVG animation */
.net line { stroke: rgba(120, 40, 35, .14); stroke-width: .18px; }
.net circle { fill: rgba(120, 40, 35, .25); r: .55px; }
.net .pulse { fill: #e02b20; animation: nodePulse 3s ease-in-out infinite; }
.net .pulse.p2 { animation-delay: 1s; fill: #b91c12; }
.net .pulse.p3 { animation-delay: 2s; fill: #ff5a4f; }
@keyframes nodePulse { 0%,100% { opacity: .25; r: .55px; } 50% { opacity: 1; r: 1.2px; } }

/* AI teaser panel on home page */
.ai-panel {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 380px at 90% -20%, rgba(255, 255, 255, 0.65), transparent 60%),
    var(--pink);
  border-radius: calc(var(--radius) + 6px);
  color: var(--text);
  padding: clamp(30px, 5vw, 56px);
  box-shadow: var(--shadow);
}
.ai-panel h2 { color: var(--text); }
.ai-panel p { color: #554140; }
.ai-panel .card { background: #fff; }
.ai-panel .card:hover { transform: translateY(-4px); }

/* "New" tag */
.tag-new {
  display: inline-block;
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, #e02b20, #ff5a4f);
  margin-bottom: 12px;
}

/* Compact service list cards (ai-services page) */
.svc { display: grid; gap: 14px; }
.svc .card { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; }
.svc .card .icon { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.svc .card .icon svg { width: 22px; height: 22px; }
.svc .card h3 { margin: 0 0 4px; font-size: 1.08rem; }
.svc .card p { margin: 0; font-size: .95rem; }


/* ---------- Original-style touches ---------- */
.float-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end;
  gap: clamp(16px, 4vw, 48px);
}
.float-row img {
  max-height: 300px; width: auto;
  filter: drop-shadow(0 18px 28px rgba(20, 22, 28, 0.18));
}
.brand-wall { max-width: 420px; }
.brand-wall img { width: 100%; height: auto; }
.contact-bg {
  position: relative;
  background: var(--ink);
}
.contact-bg .bg-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .55;
}
.contact-bg .container { position: relative; }
.contact-bg h2, .contact-bg .eyebrow { color: #fff; }
.contact-bg p, .contact-bg .muted, .contact-bg .checklist { color: #e6dad8; }
.contact-bg .checklist svg { color: var(--red-soft); }
.underline-title { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.contact-bg .btn-outline { color: #fff; }

/* Footer logo: the black wordmark needs to read on the dark footer */
.site-footer .footer-brand img { filter: brightness(0) invert(1); opacity: .92; }

/* ---------- Legal / policy pages ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.15rem; color: var(--red); margin: 2em 0 .6em; }
.legal ul { margin: 0 0 1em 1.3em; }
.legal li { margin-bottom: .4em; }
.legal .updated { color: var(--text-muted); font-size: .9rem; margin-bottom: 2em; }
.consent-box {
  background: var(--pink-soft);
  border: 1.5px solid var(--pink);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 24px 0;
}
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ============================================================
   FIGURE SECTIONS — people sized to fill their panels,
   standing on the section's bottom edge (like the original site)
   ============================================================ */
@media (min-width: 881px) {
  /* --- Home hero: guy big on the right, feet on the bottom edge --- */
  .hero { padding-bottom: 0; }
  .hero-grid { align-items: end; }
  .hero-grid > div:first-child { align-self: center; padding-bottom: clamp(40px, 6vw, 80px); }
  .hero .hero-art {
    align-self: end;
    display: flex; justify-content: flex-end; align-items: flex-end;
  }
  .hero .hero-art img {
    height: clamp(480px, 44vw, 660px);
    width: auto; max-width: none;
    transform: translateY(9%); /* photo has ~9% transparent padding below his hands */
  }

  /* --- iPad section: girl big on the left, sitting on the bottom edge --- */
  #ipad { overflow: hidden; padding-bottom: 0; }
  #ipad .split { align-items: end; }
  #ipad .split > div:first-child { align-self: center; padding-bottom: clamp(40px, 6vw, 80px); }
  #ipad .art {
    order: -1; align-self: end;
    display: flex; justify-content: center; align-items: flex-end;
  }
  #ipad .art img {
    height: clamp(430px, 38vw, 560px);
    width: auto; max-width: none;
    border-radius: 0;
  }

  /* --- Computer section: girl big on the right, on the bottom edge --- */
  #computer { overflow: hidden; padding-bottom: 0; }
  #computer .split { align-items: end; }
  #computer .split > div:first-child { align-self: center; padding-bottom: clamp(40px, 6vw, 80px); }
  #computer .art {
    align-self: end;
    display: flex; justify-content: flex-end; align-items: flex-end;
  }
  #computer .art img {
    height: clamp(460px, 43vw, 640px);
    width: auto; max-width: none;
    border-radius: 0;
  }
  #computer .split > div:first-child p { max-width: 400px; }
}
