/* components.css — reusable patterns shared across pages.
   Each block here corresponds 1:1 to a component to build in Framer.
   See site/PORT_GUIDE.md for the mapping. */


/* === NAV === */

/* ============ NAV ============ */
nav.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 48px;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(to bottom, rgba(0, 13, 20, 0.78), rgba(0, 13, 20, 0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
nav.top .logo img { height: 42px; width: auto; }
nav.top .nav-right {
  display: flex; align-items: center; gap: 36px;
}
nav.top ul {
  display: flex; gap: 32px; list-style: none;
  font-size: 14px; font-weight: 500;
}
nav.top ul a {
  color: rgba(255,255,255,0.7);
  transition: color .2s ease;
}
nav.top ul a:hover { color: var(--white); }
nav.top .meet-btn {
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  padding: 11px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  transition: all .25s ease;
  white-space: nowrap;
}
nav.top .meet-btn:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: var(--navy);
}


/* === STATS === */

/* ============ STATS ============ */
.stats {
  background: var(--navy);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 48px;
}
.stats-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat { padding: 0 32px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat .num {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(44px, 5vw, 68px);
  letter-spacing: -0.035em; line-height: 1;
  color: var(--white); margin-bottom: 12px;
  display: flex; align-items: baseline; gap: 8px;
}
.stat .num .unit { color: var(--brand-blue); font-weight: 600; }
.stat .num .small {
  font-size: 0.42em;
  font-weight: 600; letter-spacing: -0.01em;
  color: var(--brand-blue);
}
.stat .label sup.ast {
  font-family: var(--display);
  color: var(--brand-blue);
  font-size: 1em;
  vertical-align: super;
  margin-left: 1px;
  font-weight: 700;
  top: -0.2em;
  position: relative;
}
.stats-disclaimer {
  max-width: 1400px;
  margin: 36px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--body);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-quiet);
  font-weight: 300;
}
.stats-disclaimer sup {
  color: var(--brand-blue);
  font-weight: 600;
  margin-right: 4px;
}
.stat .label {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  min-height: 30px;  /* keeps stat columns visually aligned when labels wrap to two lines */
}


/* === HOVER-CARD (extracted from PORTFOLIO) === */

.hover-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}
.hover-card .hover-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--navy-deep);
  opacity: 0;
  transition: opacity .5s ease, transform 1.2s ease;
  transform: scale(1.05);
  z-index: 0;
  filter: saturate(0.78) brightness(0.78);
}
.hover-img.bg-adelaide { background-image: url('../images/cities/adelaide.jpg'); background-image: image-set(url('../images/cities/adelaide.avif') type('image/avif'), url('../images/cities/adelaide.webp') type('image/webp'), url('../images/cities/adelaide.jpg') type('image/jpeg')); }
.hover-img.bg-perth { background-image: url('../images/cities/perth.jpg'); background-image: image-set(url('../images/cities/perth.avif') type('image/avif'), url('../images/cities/perth.webp') type('image/webp'), url('../images/cities/perth.jpg') type('image/jpeg')); }
.hover-img.bg-brisbane { background-image: url('../images/cities/brisbane.jpg'); background-image: image-set(url('../images/cities/brisbane.avif') type('image/avif'), url('../images/cities/brisbane.webp') type('image/webp'), url('../images/cities/brisbane.jpg') type('image/jpeg')); }
.hover-img.bg-priori { background-image: url('../images/portfolio/priori.jpg'); background-image: image-set(url('../images/portfolio/priori.avif') type('image/avif'), url('../images/portfolio/priori.webp') type('image/webp'), url('../images/portfolio/priori.jpg') type('image/jpeg')); }
.hover-img.bg-heatseeker { background-image: url('../images/portfolio/heatseeker.jpg'); background-image: image-set(url('../images/portfolio/heatseeker.avif') type('image/avif'), url('../images/portfolio/heatseeker.webp') type('image/webp'), url('../images/portfolio/heatseeker.jpg') type('image/jpeg')); }
.hover-img.bg-jack { background-image: url('../images/portfolio/jack.jpg'); background-image: image-set(url('../images/portfolio/jack.avif') type('image/avif'), url('../images/portfolio/jack.webp') type('image/webp'), url('../images/portfolio/jack.jpg') type('image/jpeg')); }
.hover-img.bg-bluenexus { background-image: url('../images/portfolio/bluenexus.jpg'); background-image: image-set(url('../images/portfolio/bluenexus.avif') type('image/avif'), url('../images/portfolio/bluenexus.webp') type('image/webp'), url('../images/portfolio/bluenexus.jpg') type('image/jpeg')); }
.hover-img.bg-optible { background-image: url('../images/portfolio/optible.jpg'); background-image: image-set(url('../images/portfolio/optible.avif') type('image/avif'), url('../images/portfolio/optible.webp') type('image/webp'), url('../images/portfolio/optible.jpg') type('image/jpeg')); }
.hover-img.bg-legend { background-image: url('../images/portfolio/legend.jpg'); background-image: image-set(url('../images/portfolio/legend.avif') type('image/avif'), url('../images/portfolio/legend.webp') type('image/webp'), url('../images/portfolio/legend.jpg') type('image/jpeg')); }
.hover-img.bg-nitrosend { background-image: url('../images/portfolio/nitrosend.jpg'); background-image: image-set(url('../images/portfolio/nitrosend.avif') type('image/avif'), url('../images/portfolio/nitrosend.webp') type('image/webp'), url('../images/portfolio/nitrosend.jpg') type('image/jpeg')); }
.hover-card .hover-tint {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(0, 25, 37, 0.45) 0%,
    rgba(0, 38, 62, 0.55) 50%,
    rgba(0, 13, 20, 0.92) 100%);
  opacity: 0; transition: opacity .5s ease;
}
.hover-card > * { position: relative; z-index: 2; }
.hover-card:hover .hover-img { opacity: 0.95; transform: scale(1); }
.hover-card:hover .hover-tint { opacity: 1; }
.co.subscribe-tile {
  background: var(--brand-blue);
  cursor: default;
  transition: background .35s ease;
}
.co.subscribe-tile:hover { background: var(--brand-blue-soft); }
.co.subscribe-tile .arrow { display: none; }
.co.subscribe-tile .tag { color: rgba(0, 38, 62, 0.55); }
.co.subscribe-tile h4 { color: var(--navy); }
.co.subscribe-tile p {
  color: rgba(0, 38, 62, 0.85);
  margin-bottom: 22px;
  margin-top: 4px;  /* slight gap from the tag, since there's no h4 between them */
  font-size: 15px;
  line-height: 1.55;
}
.co.subscribe-tile .inline-subscribe {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 10px;
}
.co.subscribe-tile .inline-subscribe input {
  width: 100%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(0, 38, 62, 0.25);
  border-radius: 100px;
  padding: 12px 18px;
  color: var(--navy);
  font-family: var(--body); font-size: 13px; font-weight: 500;
  outline: none;
  transition: all .2s ease;
}
.co.subscribe-tile .inline-subscribe input::placeholder {
  color: rgba(0, 38, 62, 0.55);
}
.co.subscribe-tile .inline-subscribe input:focus {
  background: rgba(255, 255, 255, 0.4);
  border-color: var(--navy);
}
.co.subscribe-tile .inline-subscribe button {
  background: var(--navy); color: var(--white);
  border: none; border-radius: 100px;
  padding: 12px 22px;
  font-family: var(--body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all .25s ease;
  align-self: flex-start;
}
.co.subscribe-tile .inline-subscribe button:hover {
  background: var(--navy-deepest);
  transform: translateY(-1px);
}


/* === PILLAR LIST (extracted from APPROACH) === */

.pillars { display: flex; flex-direction: column; gap: 12px; }
.pillar {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 32px; align-items: start;
}
.pillar .icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(0, 156, 222, 0.08);
  color: var(--brand-blue);
}
.pillar .icon svg {
  width: 32px; height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pillar h4 {
  font-family: var(--display); font-weight: 700;
  font-size: 24px; letter-spacing: -0.02em; margin-bottom: 14px;
}
.pillar p {
  font-size: 15px; color: var(--text-muted);
  line-height: 1.65; font-weight: 300;
}


/* === SECTION LABEL / ACCENT / HIGHLIGHTER (from MANIFESTO+CTA) === */

.section-label {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brand-blue); margin-bottom: 40px;
  display: flex; align-items: center; gap: 14px;
}
.section-label::before {
  content: ''; width: 24px; height: 1px; background: var(--brand-blue);
}
.highlight {
  background-image: linear-gradient(
    transparent 8%,
    #FFE600 8%,
    #FFE600 96%,
    transparent 96%
  );
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: 0 0;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition:
    background-size 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.25s,
    color .35s ease 1.3s;
  padding: 2px 6px;
  margin: 0 -6px;
  color: var(--white);
}
.highlight.in-view {
  background-size: 100% 100%;
  color: var(--navy);  /* text becomes dark once highlight is fully drawn */
}


/* === FOOTER ATOMS — newsletter signup, watermark, socials === */

.roo-watermark {
  position: absolute;
  background-image: url('../images/kangaroo.png');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.10;
  z-index: 0;
  /* Tripled from 220px → 660px and moved to left of footer per v8 brief.
     Sits behind all footer content, anchored to the bottom-left. Opacity
     dropped from 0.15 → 0.10 because at this scale a louder watermark
     starts competing with the disclaimer text. */
  left: 0; bottom: 0;
  width: 660px; height: 660px;
}
.subscribe .social {
  margin-top: 18px;
  justify-content: flex-end;  /* right-justified under the Subscribe button */
}
.subscribe { margin-top: 4px; }
.subscribe p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.55;
  font-weight: 300;
  max-width: 32ch;
}
.subscribe form { display: flex; gap: 8px; flex-wrap: wrap; }
.subscribe input {
  flex: 1; min-width: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 12px 18px;
  color: var(--white);
  font-family: var(--body); font-size: 14px;
  outline: none;
  transition: border-color .2s ease;
}
.subscribe input:focus { border-color: var(--brand-blue); }
.subscribe input::placeholder { color: var(--text-quiet); }
.subscribe button {
  background: var(--brand-blue); color: var(--navy);
  border: none; border-radius: 100px;
  padding: 12px 22px;
  font-family: var(--body); font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
}
.subscribe button:hover {
  background: var(--brand-blue-soft);
  box-shadow: 0 0 28px 0 rgba(0, 156, 222, 0.3);
}
