/*
  AQUORIX.com Styles
  Version: v2.0.0
  Created: 2025-12-11
  Author: Larry McLean

  Notes:
  - Refactored to visually align with AQUORIX.PRO "titanium" hero
  - Shares brand colors & typography (Avenir Next)
  - Adds glassmorphism for hero “tablet” overlay

  Change Log:
  - 2025-12-11 - v2.0.0
    - Replace legacy hero + CTA styling with AQUORIX.PRO-aligned layout
    - Preserve waitlist form styles for waitlist.html
*/

/* -----------------------------
   CSS VARIABLES / BRAND TOKENS
------------------------------ */
:root {
  --deep-aqua: #1B4D6F;
  --lt-cobalt-blue: #248dc1;
  --cobalt-blue: #0A6C9B;
  --slate-gray: #4A5C6A;
  --aquorix-blue: #009ABF;
  --pearl-white: #F5F6F5;
  --abyss-blue: #001C34;
  --black: #000000;

  /* Glassmorphism tokens */
  --glass-bg: rgba(0, 10, 32, 0.28);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-shadow: 0 22px 60px rgba(0, 0, 0, 0.6);
}

/* -----------------------------
   BASE
------------------------------ */

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

html,
body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  font-family: "avenir-next", "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--abyss-blue);
  color: var(--pearl-white);
  min-height: 100vh;
}

body.aquorix-site {
  overflow-y: auto;
}

/* Remove default link styling, re-apply with classes */
a {
  text-decoration: none;
  color: inherit;
}

/* -----------------------------
   HERO LAYOUT
------------------------------ */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;
  overflow: visible;
  padding-top: 60px;     /* fixed nav offset */
  padding-bottom: 3rem;
  isolation: isolate; /* <-- add this */
}

/* Full-bleed background image */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0; /* <-- NOT negative */
}


/* Gradient overlay for contrast (top-to-bottom vignette) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(0,0,0,0.25), transparent 55%),
    linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
}


/* Centers glass tablet */
.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

/* The “futuristic clear tablet” */
.hero-overlay {
  width: 100%;
  max-width: 840px;
  padding: 2.5rem 2rem 2.75rem;
  border-radius: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
}

/* -----------------------------
   BRAND ROW (Naut + AQUORIX)
------------------------------ */

.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  line-height: 1;             /* prevents container expansion */
}

.brand-row > * {
  margin: 0;
  padding: 0;
}

/* Brand title */
.brand-title {
  font-family: "avenir-next", "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 2.6rem;
  font-weight: 400;
  letter-spacing: 0.0px;
  line-height: 1;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--pearl-white);
}

.brand-icon {
  width: 40px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);      /* ensure white on dark bg */
  transform: translateY(-0.18em);       /* nudge up to match baseline */
  margin: 0 !important;
  padding: 0 !important;
  margin-right: 0.25rem;
}

/* Tablet brand sizing */
@media (min-width: 768px) {
  .brand-icon {
    width: 48px;
    transform: translateY(-0.2em);
  }

  .brand-title {
    font-size: 2.9rem;
  }
}

/* Desktop brand sizing */
@media (min-width: 1200px) {
  .brand-icon {
    width: 58px;
    transform: translateY(-0.22em);
  }

  .brand-title {
    font-size: 3.1rem;
  }
}

/* -----------------------------
   TAGLINE
------------------------------ */

.tagline {
  margin-top: 1rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  color: var(--pearl-white);
}

.tagline-line1 {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.tagline-line2 {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.5;
  opacity: 0.92;
}

/* Tiny TM helper (if used later) */
.tm {
  font-size: 0.45em;
  font-weight: 400;
  opacity: 0.85;
  vertical-align: super;
  margin-left: 0.15em;
  position: relative;
  top: -0.05em;
}

/* Subtle glow for readability */
.brand-title,
.tagline-line1,
.tagline-line2 {
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}

/* -----------------------------
   CTAs – Waitlist + Contact
------------------------------ */

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  margin-top: 2rem;
}

/* Primary CTA: Join the Waitlist */
.btn-waitlist {
  display: inline-block;
  background: linear-gradient(135deg, var(--cobalt-blue), var(--lt-cobalt-blue));
  color: var(--pearl-white);
  padding: 0.85rem 2.5rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out,
    background 0.15s ease-out;
  text-align: center;
  min-width: 200px;
}

.btn-waitlist:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  background: linear-gradient(135deg, var(--lt-cobalt-blue), var(--aquorix-blue));
}

/* Secondary CTA: Contact Us */
.link-contact {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(245, 246, 245, 0.9);
  text-decoration: none;
  border-bottom: 1px dashed rgba(245, 246, 245, 0.5);
  padding-bottom: 0.05rem;
}

.link-contact:hover {
  color: var(--pearl-white);
  border-bottom-style: solid;
}

/* -----------------------------
   FOOTER – aligns with PRO vibe
------------------------------ */

footer {
  position: relative;
  z-index: 3;
  padding: 0.75rem 1rem 1.25rem;
  text-align: center;
  color: rgba(245, 246, 245, 0.7);
  font-size: 0.85rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

footer nav a {
  color: inherit;
  text-decoration: none;
  margin: 0 0.4rem;
}

footer nav a:hover {
  color: var(--pearl-white);
  text-decoration: underline;
}

/* -----------------------------
   RESPONSIVE
------------------------------ */

@media (max-width: 768px) {

  .hero::before {
    background:
      radial-gradient(circle at 20% 10%, rgba(0,0,0,0.18), transparent 55%),
      linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.45));
  }

  .hero-content {
    padding: 1.75rem 1rem;
  }

  .hero-overlay.waitlist-card {
    max-width: 480px;
    margin: 2rem auto;
    padding: 2rem 2.5rem 2.5rem;
    max-height: none;
  }

  .brand-title {
    font-size: 2.1rem;
  }

  .brand-icon {
    width: 34px;
    margin-right: 0.15rem;
  }

  .tagline-line1 {
    font-size: 1.4rem;
  }

  .tagline-line2 {
    font-size: 0.95rem;
  }

  .cta-stack {
    gap: 0.75rem;
  }

  .btn-waitlist {
    width: 100%;
    max-width: 320px;
  }
}

@media (min-width: 1024px) {
  .brand-title {
    font-size: 2.9rem;
  }

  .tagline-line1 {
    font-size: 1.8rem;
  }

  .tagline-line2 {
    font-size: 1.05rem;
  }

  .hero-overlay {
    max-width: 880px;
  }
}

/* ---------------------------------------------
   PRESERVED FORM / WAITLIST STYLES
   (for waitlist.html and related pages)
---------------------------------------------- */

.teaser {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
  color: var(--pearl-white);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 400px;
  width: 100%;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group input {
  padding: 1rem;
  font-size: 1rem;
  border: 1px solid var(--pearl-white);
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  color: var(--pearl-white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--cobalt-blue);
  box-shadow: 0 0 0 2px var(--cobalt-blue);
}

.form-group input::placeholder {
  color: var(--pearl-white);
  opacity: 0.7;
}

.privacy-note {
  font-size: 0.875rem;
  color: var(--pearl-white);
  margin-top: 1.5rem;
  opacity: 0.8;
}

.success-message {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--pearl-white);
  margin-top: 2rem;
}

/* Mobile adjustments for form */
@media (max-width: 768px) {
  .teaser {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .waitlist-form {
    max-width: 300px;
    gap: 1rem;
    padding: 1rem;
  }

  .form-group input {
    padding: 0.75rem;
    font-size: 0.875rem;
  }

  .privacy-note {
    margin-top: 1rem;
  }
}

/* Optional contact-info class (unused, teaser suffices) */
.contact-info {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
  color: var(--pearl-white);
}

@media (max-width: 768px) {
  .contact-info {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }
}

/* ---------------------------------------------
   WAITLIST PAGE CARD SIZE CONTROL
   Makes the titanium card narrow on waitlist.html
------------------------------------------------ */

.waitlist-card {
  max-width: 480px !important;   /* tight, centered glass card */
  padding: 2rem 2.5rem !important;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.waitlist-card .tagline,
.waitlist-card .tagline-line2 {
  max-width: 440px;
}

@media (max-width: 768px) {
  .waitlist-card {
    max-width: 90%;
    padding: 1.5rem;
  }
}

/* TM symbol treatment */
.tm {
  font-size: 0.55em;
  vertical-align: super;
  opacity: 0.85;
  margin-left: 0.15em;
}

/* Top nav - appears only while scrolling */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);

  /* hidden by default */
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;

  transition: transform 0.22s ease-out, opacity 0.22s ease-out;
  will-change: transform, opacity;
}

/* visible while scrolling */
.top-nav.nav-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.top-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  color: var(--pearl-white);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.95;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--pearl-white);
  text-decoration: none;
  opacity: 0.9;
}

.nav-links a:hover {
  text-decoration: underline;
  opacity: 1;
}


/* Footer refinements */
.site-footer {
  text-align: center;
  padding: 1.25rem 1rem;
  color: var(--pearl-white);
  background-color: var(--abyss-blue);
  font-size: 0.875rem;
}

.site-footer nav a {
  color: var(--pearl-white);
  text-decoration: none;
  margin: 0 0.5rem;
}

.site-footer nav a:hover {
  text-decoration: underline;
}

.footer-legal {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  opacity: 0.75;
}

/* =====================================================
   WAITLIST HERO VARIANT (SCROLL SAFE)
   Added: 2025-12-13
   Purpose: allow tall content without impacting home/contact
   ===================================================== */

.hero.hero-waitlist .hero-content {
  min-height: auto;            /* allow content-driven height */
  align-items: flex-start;     /* stop vertical centering */
  justify-content: center;     /* keep horizontal centering behavior */
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero.hero-waitlist .hero-overlay.waitlist-card {
  margin-top: 0; /* prevents extra push-down weirdness on small screens */
}