/* ===================================================
   INNIT LABS — SHARED STYLES
   Extracted from per-page inline CSS.
   Edit this file for site-wide nav, footer, buttons,
   variables, reset, and scroll-reveal changes.
   =================================================== */

/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; font-family: inherit; }

:root {
  --coral: #F4845F;
  --coral-border: #FF9FB5;
  --dark: #151010;
  --navy: #111933;
  --body-muted: #6F6763;
  --card-bg: #2D2D2D;
  --section-bg: #EAEEFC;
  --white: #FFFFFF;
  --cream: #FFFAF8;
  --header-bg: rgba(252, 251, 248, 0.85);
  --header-border: #EEECEA;
  --faq-bg: rgba(234, 238, 251, 0.6);
  --icon-bg: #F0F5FF;
  --icon-color: #001D51;
  --radius-card: 24px;
  --radius-button: 8px;

  /* Spacing scale */
  --space-section:     120px;   /* standard section gap */
  --space-section-sm:   80px;   /* connected/follow-on sections */
  --space-section-cta: 100px;   /* CTA blocks */

  /* Type scale */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 18px;
  --text-lg: 22px;
  --text-xl: 28px;
  --text-2xl: 36px;
  --text-3xl: 44px;
  --text-4xl: 56px;
}

@media (max-width: 768px) {
  :root {
    --space-section:     64px;
    --space-section-sm:  40px;
    --space-section-cta: 64px;
  }
}
@media (max-width: 480px) {
  :root {
    --space-section:     48px;
    --space-section-sm:  32px;
    --space-section-cta: 48px;
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--dark);
  background-color: #FDFCFB;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: var(--space-section) 0; }
.section-pad-top-sm { padding: var(--space-section-sm) 0 var(--space-section); }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(to right, #FF9FB5, #FFBAA0, #D0BEFF);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 0.5px rgba(60,60,60,0.6)) drop-shadow(0 0 0.3px rgba(60,60,60,0.5)) drop-shadow(0 0 0.2px rgba(60,60,60,0.4));
}

/* ===== SECTION PRE-HEADER PILL ===== */
.section-label {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 6px 20px; border-radius: var(--radius-button); height: 30px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 500; font-size: var(--text-sm);
  letter-spacing: -0.01em;
  color: var(--dark); background: #fff;
  border: 1.5px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(to right, #FF9FB5, #FFBAA0, #D0BEFF);
  background-origin: border-box; background-clip: padding-box, border-box;
  margin-bottom: 12px;
}

/* ===== LAB THUMBNAIL SYSTEM ===== */
.lab-thumb {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1.78;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: all 0.4s ease;
}
.lab-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='4' seed='5' /%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23grain)' opacity='0.06'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 200px 200px;
  mix-blend-mode: overlay; opacity: 0.4;
  pointer-events: none; z-index: 1;
}
.lab-thumb svg.lab-icon {
  width: 52%; height: auto;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 12px 24px rgba(255,159,181,0.25));
  z-index: 0;
}
.lab-thumb .lab-dots {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.lab-thumb .lab-dots circle { opacity: 0.5; }

/* Category backgrounds */
.lab-thumb-microscope { background: linear-gradient(135deg, #F5F0FF 0%, #EDE5FF 40%, #FFE8F0 100%); }
.lab-thumb-test-tubes { background: linear-gradient(135deg, #FFF5EB 0%, #FFE8F0 40%, #F5F0FF 100%); }
.lab-thumb-petri-dish { background: linear-gradient(135deg, #FFE8F0 0%, #FFF5EB 40%, #F5F0FF 100%); }
.lab-thumb-prism { background: linear-gradient(135deg, #F5F0FF 0%, #FFE8F0 50%, #FFF5EB 100%); }
.lab-thumb-notebook { background: linear-gradient(135deg, #FFF5EB 0%, #F5F0FF 40%, #FFE8F0 100%); }
.lab-thumb-centrifuge { background: linear-gradient(135deg, #FFE8F0 0%, #F5F0FF 40%, #FFF5EB 100%); }

/* Hover background shift */
.article-card:hover .lab-thumb-microscope { background: linear-gradient(135deg, #EDE5FF 0%, #E0D4FF 40%, #FFD6E4 100%); }
.article-card:hover .lab-thumb-test-tubes { background: linear-gradient(135deg, #FFE8D4 0%, #FFD6E4 40%, #EDE5FF 100%); }
.article-card:hover .lab-thumb-petri-dish { background: linear-gradient(135deg, #FFD6E4 0%, #FFE8D4 40%, #EDE5FF 100%); }
.article-card:hover .lab-thumb-prism { background: linear-gradient(135deg, #EDE5FF 0%, #FFD6E4 50%, #FFE8D4 100%); }
.article-card:hover .lab-thumb-notebook { background: linear-gradient(135deg, #FFE8D4 0%, #EDE5FF 40%, #FFD6E4 100%); }
.article-card:hover .lab-thumb-centrifuge { background: linear-gradient(135deg, #FFD6E4 0%, #EDE5FF 40%, #FFE8D4 100%); }

/* Hover icon lift */
.article-card:hover .lab-thumb svg.lab-icon,
.reading-card:hover .lab-thumb svg.lab-icon { transform: scale(1.05) translateY(-4px); }

/* Lab thumb in card image containers */
.reading-card-image .lab-thumb,
.article-hero-image .lab-thumb {
  margin: 0; width: 100%; height: 100%;
}
.article-hero-image .lab-thumb { aspect-ratio: auto; min-height: 200px; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--header-border);
}
.nav-inner {
  max-width: 1152px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center;
}
.nav-logo { text-decoration: none; display: flex; align-items: center; }
.nav-logo img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 8px; margin-left: 40px; }
.nav-links a {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 500; font-size: 16px;
  color: var(--dark); text-decoration: none; padding: 8px 12px; border-radius: 999px;
  letter-spacing: -0.64px; transition: color 0.2s;
}
.nav-links a:hover { color: var(--coral); }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* ===== NAV DROPDOWN ===== */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 500; font-size: 16px;
  color: var(--dark); background: none; border: none; padding: 8px 12px; border-radius: 999px;
  letter-spacing: -0.64px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  transition: color 0.2s;
}
.nav-dropdown-trigger:hover { color: #D0BEFF; }
.nav-dropdown-chevron { transition: transform 0.2s ease; }
.nav-dropdown.open .nav-dropdown-chevron,
.nav-dropdown:hover .nav-dropdown-chevron { transform: rotate(180deg); }

.nav-dropdown-panel {
  display: none; position: absolute; top: 100%; right: 0;
  background: #fff; border: 1px solid var(--header-border);
  border-radius: 16px; padding: 8px; min-width: 320px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown-panel { display: block; }
@media (hover: hover) { .nav-dropdown:hover .nav-dropdown-panel { display: block; } }

.nav-dropdown-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 12px;
  text-decoration: none; transition: background 0.15s;
}
.nav-dropdown-item:hover { background: rgba(255, 159, 181, 0.10); }
.nav-dropdown-item-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.nav-dropdown-item-icon dotlottie-player { width: 48px; height: 48px; }
.nav-dropdown-item-text { flex: 1; }
.nav-dropdown-item-title {
  display: block; font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 15px; color: var(--dark);
  letter-spacing: -0.3px; margin-bottom: 2px;
}
.nav-dropdown-item-desc {
  display: block; font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 400; font-size: 13px; color: var(--body-muted);
  letter-spacing: -0.1px; line-height: 1.4;
}

/* ===== CTA BUTTON ===== */
.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 196, 214, 0.04); border: 1px solid var(--coral-border);
  border-radius: 999px; padding: 8px 8px 8px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 500; font-size: var(--text-sm);
  color: #262A45; text-decoration: none; cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
  white-space: nowrap;
}
.btn-cta:hover {
  transform: translateY(-2px); box-shadow: 0 20px 60px -30px rgba(2,6,23,0.3);
  background: linear-gradient(to right, #FF9FB5, #FFBAA0, #D0BEFF);
  border-color: rgba(0,0,0,0.38); color: #000;
}
.btn-cta:hover .arrow-circle { border-color: rgba(0,0,0,0.38); }
.btn-cta:active { transform: scale(0.95); }
.btn-cta .arrow-circle {
  width: 28px; height: 28px; border: 1px solid var(--coral-border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.btn-cta .arrow-circle svg { width: 13px; height: 13px; }

/* ===== HAMBURGER (hidden on desktop) ===== */
.nav-hamburger {
  display: none; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; background: none; border: none;
  cursor: pointer; margin-left: auto; padding: 0;
}
.nav-hamburger svg { width: 22px; height: 22px; color: #544B47; }
.nav-mobile-menu { display: none; }

/* ===== FOOTER ===== */
.site-footer {
  padding: 64px 0 0;
  border-top: 1px solid var(--header-border);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.footer-main {
  max-width: 1152px; margin: 0 auto; padding: 0 24px 48px;
  display: flex; justify-content: space-between; gap: 64px;
}
.footer-brand { max-width: 320px; flex-shrink: 0; }
.footer-brand img { height: 28px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: var(--body-muted); margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--header-border); color: var(--body-muted);
  text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--coral-border); color: var(--coral); }
.footer-social a svg { width: 16px; height: 16px; }
.footer-links { display: flex; gap: 48px; }
.footer-col h4 { font-size: 14px; font-weight: 600; color: var(--dark); margin: 0 0 16px; letter-spacing: -0.2px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--body-muted); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--coral); }
.footer-bottom { border-top: 1px solid var(--header-border); }
.footer-bottom-inner {
  max-width: 1152px; margin: 0 auto; padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--body-muted);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--body-muted); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--coral); }

/* ===== RESPONSIVE: TABLET (768px) ===== */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-logo { padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
  .nav-logo img { height: 24px; }
  .nav-inner { padding: 12px 16px; }
  .nav-right .btn-cta { display: none; }
  .nav-dropdown { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-menu {
    display: none; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #FDFCFB;
    border-bottom: 1px solid var(--header-border);
    padding: 8px 16px 16px;
  }
  .nav-mobile-menu.open { display: flex; }
  .nav-mobile-menu a {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 500; font-size: 15px;
    color: #544B47; text-decoration: none; padding: 10px 12px; border-radius: 12px;
    letter-spacing: -0.4px; transition: background 0.2s;
  }
  .nav-mobile-menu a:hover { background: rgba(234, 232, 227, 0.7); }

  /* Footer */
  .footer-main { flex-direction: column; gap: 40px; padding: 0 24px 40px; }
  .footer-brand { max-width: 100%; }
  .footer-links { gap: 32px; flex-wrap: wrap; }
  .footer-col a { display: inline-block; padding: 8px 0; min-height: 44px; line-height: 28px; }
  .footer-col { min-width: 120px; }
  .footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }

  /* Gradient text — reduce heavy shadow on mobile */
  .gradient-text,
  .hero-coral {
    filter: drop-shadow(0 0 0.2px rgba(60,60,60,0.3)) !important;
    padding-bottom: 4px;
  }
}

/* ===== RESPONSIVE: SMALL PHONE (480px) ===== */
@media (max-width: 480px) {
  .site-footer { padding-top: 48px; }
  .footer-links { flex-direction: column; gap: 28px; }
}
