/* ============================================================
   CLINOMETRICS GLOBAL STYLESHEET
   Consolidated from:
   - index.html (Landing)
   - faq.html (FAQ)
   - demo.html (Request Demo)
   - login.html (Login)
   - sign-up.html (Signup)
   ============================================================ */

/* ===============  GLOBAL & TYPOGRAPHY  ===================== */
body {
  margin: 0;
  background: linear-gradient(135deg, #f5f5f5, #ffffff);
  color: #0a0a0a;
  font-family: 'Geist', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Geist === */
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* === Lora === */
@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


/* === Page-specific layouts === */

/* Centered layout only for login, signup, and demo pages */
body.auth-layout,
body.demo-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;       /* center text inside card */
  padding-top: 4rem;       /* Space for fixed header */
  padding-bottom: 8rem;    /* Space for fixed footer */
}

/* Header should be fixed at top */
body.auth-layout header,
body.demo-layout header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

/* Footer positioning is now handled via Tailwind classes in HTML */
/* The footer uses: fixed bottom-0 left-0 right-0 w-full z-40 */

/* Content card should be centered in remaining space */
body.auth-layout .glass-card,
body.demo-layout .glass-card {
  margin: 0 auto;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

/* Restore natural flow for multipanel pages */
body.index-layout,
body.faq-layout {
  display: block;
}

h1, h2, h3, .logo-text {
  font-family: 'Lora', serif;
  background: linear-gradient(to right, #000000, #434343);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===============  BUTTONS (Shared across all pages)  ===================== */
.btn-primary {
  background: linear-gradient(to right, #000000, #434343);
  color: white;
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease;
}
.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.25);
}

.btn-secondary {
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1);
}
.btn-secondary:hover {
  transform: scale(1.02);
  background: rgba(255,255,255,0.8);
}

/* ===============  FORM ELEMENTS (Login / Signup / Demo)  ===================== */
.input-box, textarea {
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 1rem;
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  font-family: 'Lora', serif;
  font-size: 1rem;
  outline: none;
  transition: 0.3s, transform 200ms cubic-bezier(.2,.8,.2,1);
}
.input-box:hover, .input-box:focus,
textarea:hover, textarea:focus {
  transform: scale(1.01);
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.15);
}

/* ===============  SUBMIT & AUTH BUTTONS (Login/Signup/Demo)  ===================== */
.submit-btn, .sign-up-btn {
  width: 100%;
  padding: 1rem;
  border-radius: 1rem;
  transition: transform 200ms cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
}
.submit-btn {
  color: #fff;
  background: linear-gradient(to right, #000000, #434343);
  font-weight: 500;
}
.submit-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15);
}
.sign-up-btn {
  color: #111;
  background: linear-gradient(to right, #a3a3a3, #bfbfbf, #d4d4d4);
}
.sign-up-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15);
}

/* ===============  GLASS & CARD COMPONENTS (Index / Login / Signup / Demo)  ===================== */
.glass, .glass-card {
  backdrop-filter: blur(24px);
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  transition: transform 200ms cubic-bezier(.2,.8,.2,1), box-shadow 200ms ease;
}
.glass:hover, .glass-card:hover {
  transform: scale(1.02);
}

/* Unique to index.html: glass variant for product sections */
.glass-light {
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,0.05);
}

.glass-card {
  backdrop-filter: blur(24px);
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  width: 100%;
  max-width: 32rem;
  text-align: center;
  z-index: 10;

  /* Padding for content */
  padding: 2rem;

  transition: transform 200ms cubic-bezier(.2,.8,.2,1), box-shadow 200ms ease;
}
.glass-card:hover { transform: scale(1.02); }


/* ===============  LOGO & HERO TITLES (All Pages)  ===================== */
.logo-img {
  width: 7rem;
  height: 7rem;
  transition: transform 250ms cubic-bezier(.2,.8,.2,1);
}
.logo-img:hover { transform: scale(1.12); }

.hero-title {
  transition: transform 300ms cubic-bezier(.2,.8,.2,1);
}
.hero-title:hover { transform: scale(1.04); }

/* ===============  MARQUEE (Index Only)  ===================== */
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scroll-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.marquee-content {
  display: inline-flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.marquee-content li {
  font-size: 0.75rem;
  border: 1px solid #d4d4d4;
  border-radius: 9999px;
  padding: 0.4rem 0.9rem;
  background: #fff;
  white-space: nowrap;
}
.marquee-1 { animation: scroll-left 60s linear infinite; }
.marquee-2 { animation: scroll-right 60s linear infinite; }
.marquee-3 { animation: scroll-left 60s linear infinite; }

/* ===============  FAQ PAGE ONLY (faq.html)  ===================== */
.faq-container { max-width: 720px; margin: 7rem auto; padding: 2rem; }

.faq-header {
      text-align: center;
      font-family: 'Geist', sans-serif;
    }

    .faq-header h1 {
      font-size: 2.25rem;
      background: linear-gradient(to right, #000000, #434343);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 1.25rem 0;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1);
}
.faq-item:hover { transform: scale(1.01); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 1rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  margin-top: 0.75rem;
}
.icon { transition: transform 0.3s ease; }
.faq-item.active .icon { transform: rotate(45deg); }

/* ===============  DEMO PAGE ONLY (demo.html)  ===================== */
canvas.bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: transparent;
}

.clinometrics-title {
  font-size: 42px;
  font-weight: 600;
  background: linear-gradient(to right, #000000, #434343);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: 'Lora', serif;
}

/* ===============  LOGIN PAGE ONLY (login.html)  ===================== */
.sign-up-btn {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

/* ===============  FOOTER (Shared across all pages)  ===================== */
/* Glass effect is now handled via Tailwind classes: bg-white/95 backdrop-blur-md */
/* Positioning for auth/demo pages uses: fixed bottom-0 left-0 right-0 w-full z-40 */

/* Webkit prefix support for backdrop-filter (Safari compatibility) */
footer[class*="backdrop-blur"] {
  -webkit-backdrop-filter: blur(12px);
}

/* Default styles for footers without Tailwind classes (legacy support) */
footer:not([class*="bg-white"]):not([class*="backdrop"]) {
  border-top: 1px solid rgba(0,0,0,0.1);
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  padding: 2rem 0;
}

/* ===============  OPTIONAL: HOVER NAV LINKS (All Pages)  ===================== */
nav a {
  transition: transform 0.2s ease, color 0.2s ease;
}
nav a:hover {
  transform: scale(1.05);
  color: black;
}

#signupAlert {
  opacity: 0;
}
#signupAlert.opacity-100 {
  opacity: 1;
}
