/* ─── DESIGN TOKENS ─── */
:root {
  --bg: #f5f5f5;
  --bg2: #ebebeb;
  --bg3: #e0e0e0;
  --text: #3a3a3a;
  --text2: #1a1a1a;
  --text3: #666666;
  --accent: #0086a3;
  --accent2: #f62681;
  --accent-hover: #016f87;
  --accent-bright: #03caf4;
  --accent-bright-hover: #4ddfff;
  --line: rgba(10, 10, 10, 0.18);
  --line2: rgba(10, 10, 10, 0.09);
  --card: #ffffff;
  --surface: #efefef;
  --border: rgba(10, 10, 10, 0.16);
  --tag-text: #027b93;
}

/* ─── NAV / FOOTER: always dark, regardless of the page's light tone ─── */
:root {
  --bar-bg: rgba(26, 26, 26, 0.7);
  --bar-solid: #1a1a1a;
  --bar-text: #f0f0f0;
  --bar-text2: #b5b5b5;
  --bar-line: rgba(255, 255, 255, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Grain texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* Ambient brand-color mesh — gives the light sections depth instead of flat grey */
body::after {
  content: "";
  position: fixed;
  inset: -10%;
  background:
    radial-gradient(640px circle at 8% 10%, rgba(3, 202, 244, 0.09), transparent 60%),
    radial-gradient(600px circle at 92% 34%, rgba(246, 38, 129, 0.075), transparent 60%),
    radial-gradient(720px circle at 20% 90%, rgba(0, 134, 163, 0.07), transparent 62%),
    radial-gradient(560px circle at 85% 88%, rgba(246, 38, 129, 0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: bg-drift 28s ease-in-out infinite alternate;
}
@keyframes bg-drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-2%, 2%);
  }
}
@media (prefers-reduced-motion: reduce) {
  body::after {
    animation: none;
  }
}

body {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition:
    background 0.3s,
    color 0.3s;
  overflow-x: hidden;
  position: relative;
}
b,
strong {
  font-weight: 700;
  font-style: italic;
}

/* ─── CUSTOM CURSOR ─── */
@media (hover: hover) and (pointer: fine) {
  body.has-cur {
    cursor: none;
  }
  body.has-cur a,
  body.has-cur button,
  body.has-cur input,
  body.has-cur textarea,
  body.has-cur select,
  body.has-cur [role="button"] {
    cursor: none;
  }
}
.cur {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  display: none;
}
.cur-r {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent-bright);
  opacity: 0.4;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    width 0.2s ease,
    height 0.2s ease,
    opacity 0.2s ease;
  display: none;
}
body.has-cur .cur,
body.has-cur .cur-r {
  display: block;
}
body.has-cur .cur-r.cur-hover {
  width: 44px;
  height: 44px;
  opacity: 0.7;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.d1 {
  transition-delay: 0.08s;
}
.d2 {
  transition-delay: 0.18s;
}
.d3 {
  transition-delay: 0.3s;
}
.d4 {
  transition-delay: 0.44s;
}
.d5 {
  transition-delay: 0.58s;
}

/* ─── NAV ─── */
/* Default: at the top of the page — subtle, edge-to-edge, dark text on the light page */
nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: 100%;
  max-width: 100%;
  background: transparent;
  backdrop-filter: none;
  border: 0.5px solid transparent;
  border-radius: 0;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: none;
  transition:
    top 0.35s ease,
    width 0.35s ease,
    max-width 0.35s ease,
    padding 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    border-radius 0.35s ease,
    box-shadow 0.35s ease;
}
/* Scrolled: fixed floating glass bar — round but square, not a pill */
nav.scrolled {
  top: 1rem;
  width: calc(100% - 2.5rem);
  max-width: 1100px;
  background: var(--bar-bg);
  backdrop-filter: blur(16px);
  border-color: var(--bar-line);
  border-radius: 18px;
  padding: 0 1.75rem;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
}
.nav-logo {
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.3s ease;
}
.nav-logo span {
  font-style: italic;
  color: var(--accent);
  transition: color 0.3s ease;
}
nav.scrolled .nav-logo {
  color: var(--bar-text);
}
nav.scrolled .nav-logo span {
  color: var(--accent-bright);
}
/* Centered nav links */
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after {
  width: 100%;
}
nav.scrolled .nav-links a {
  color: var(--bar-text2);
}
nav.scrolled .nav-links a::after {
  background: var(--accent-bright);
}
nav.scrolled .nav-links a:hover {
  color: var(--bar-text);
}
/* Right side group */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
/* ── Unified Start button (nav CTA — cyan on the dark bar) ── */
.btn-start {
  background: var(--accent-bright);
  color: #000000;
  border: none;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.01em;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(3, 202, 244, 0.35);
  transition:
    transform 0.1s,
    box-shadow 0.1s,
    background 0.15s;
  position: relative;
  top: 0;
}
.btn-start:hover {
  background: var(--accent-bright-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(3, 202, 244, 0.45);
}
.btn-start:active {
  transform: translateY(1px);
  box-shadow: 0 1px 6px rgba(3, 202, 244, 0.3);
}
/* Nav size */
.btn-start.btn-start--sm {
  font-size: 0.78rem;
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
}
/* Hero size */
.btn-start.btn-start--lg {
  font-size: 0.85rem;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.45),
    0 6px 14px rgba(0, 0, 0, 0.12);
}
.btn-start.btn-start--lg:hover {
  box-shadow:
    0 5px 0 rgba(0, 0, 0, 0.45),
    0 8px 18px rgba(0, 0, 0, 0.16);
}
.btn-start.btn-start--lg:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.1);
}
/* Back button (used on sub-pages instead of the Get in Touch CTA) */
.btn-back {
  font-family: "Montserrat", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.2s;
}
.btn-back:hover {
  color: var(--accent);
}
nav.scrolled .btn-back {
  color: var(--bar-text2);
}
nav.scrolled .btn-back:hover {
  color: var(--accent-bright);
}
/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition:
    background 0.3s ease,
    transform 0.2s,
    opacity 0.2s;
}
nav.scrolled .hamburger span {
  background: var(--bar-text);
}
/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 84px;
  left: 1.25rem;
  right: 1.25rem;
  background: var(--bar-bg);
  backdrop-filter: blur(16px);
  border: 0.5px solid var(--bar-line);
  border-radius: 18px;
  z-index: 99;
  padding: 1.5rem 2rem;
  transform: translateY(-10px);
  opacity: 0;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.mobile-menu.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.mobile-menu ul a {
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bar-text2);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu ul a:hover {
  color: var(--bar-text);
}

/* ─── FOOTER ─── */
footer {
  background: var(--bar-solid);
  padding: 2rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--bar-text2);
}
footer a {
  color: var(--bar-text2);
  text-decoration: none;
}
footer a:hover {
  color: var(--accent-bright);
}
.footer-logo {
  font-family: "Times New Roman", Times, Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--bar-text);
  margin-bottom: 0.75rem;
}
.footer-logo span {
  font-style: italic;
  color: var(--accent-bright);
}
.accent-bar {
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent2) 50%,
    transparent 100%
  );
}

/* ─── COOKIE BANNER ─── */
#cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(140px);
  z-index: 999;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-top: 1.5px solid var(--accent);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 600px;
  width: calc(100% - 3rem);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.09);
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s;
  opacity: 0;
}
#cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.cookie-text {
  font-family: "DM Mono", monospace;
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: var(--text3);
  line-height: 1.75;
  flex: 1;
}
.cookie-text strong {
  color: var(--text2);
  font-weight: 500;
}
.cookie-btn {
  font-family: "DM Mono", monospace;
  font-size: 0.57rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  background: none;
  border: 0.5px solid var(--accent);
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.cookie-btn:hover {
  background: var(--accent);
  color: #000;
}

/* ─── RESPONSIVE (nav / footer / cookie banner) ─── */
@media (max-width: 900px) {
  nav {
    padding: 0 1.5rem;
  }
  .nav-links {
    display: none;
  }
  .btn-start.btn-start--sm {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  footer {
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
  }
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
