/* ========================================================================== */
/*  1. GLOBAL RESET                                                           */
/* ========================================================================== */
html {
  caret-color: transparent;
}
:focus {
  outline: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
html {
  -webkit-user-modify: read-only;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ========================================================================== */
/*  2. ROOT VARIABLES                                                          */
/* ========================================================================== */

:root {
  --color-accent: #2f7d5c;
  --color-accent-soft: rgba(0, 199, 199, 0.1);
  --color-accent-strong: #00C7C7;

  --color-text: #222;
  --color-muted: #666;
  --color-border: #e5e5e5;
  --color-bg-alt: #f7f7f7;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;

  --font-small: 0.875rem;
  --font-base: 1rem;
  --font-medium: 1.125rem;
  --font-large: 1.5rem;
  --font-xl: 2rem;
  --font-xxl: 3rem;

  --logo-height: 160px;
  --container-max: 1200px;
}

/* ========================================================================== */
/*  3. LAYOUT SYSTEM                                                           */
/* ========================================================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.section {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.section-alt {
  background: var(--color-bg-alt);
}

/* ========================================================================== */
/*  4. HEADER — NEW 3‑COLUMN SYSTEM ONLY                                      */
/* ========================================================================== */

.site-header {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  width: 100%;
  padding: 0.75rem 1rem;
  gap: 1.25rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
}

/* LOGO */
.logo img {
  max-height: 140px;
  width: auto;
  display: block;
}

/* BRAND BLOCK */
.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  white-space: nowrap;
  min-width: max-content;
}

.nav-brand .brand-line-1 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
}

.nav-brand .brand-line-2 {
  font-size: 1rem;
  font-weight: 700;
  color: #0a7c6d;
}

/* MAIN NAVIGATION */
.main-nav {
  justify-self: end;
  min-width: max-content;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
}

/* Active underline */
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: #0a7c6d;
}
nav * {
  outline: none !important;
}
nav.main-nav ul.dropdown-menu {
  display: none;
}


/* ===============================nav.main-nav ul.dropdown-menu {
  display: none;
}
=========================================== */
/*  5. DROPDOWN — CLICK‑TO‑OPEN ONLY (NO HOVER)                                */
/* ========================================================================== */

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 2rem;
  right: 0;
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 0.5rem 0;
  list-style: none;
  min-width: 180px;
  z-index: 1000;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  color: #333;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
}

.dropdown.open .dropdown-menu {
  display: block;
}

/* Parent active state */
.dropdown > a.active {
  font-weight: 600;
  color: #0a7c6d;
}
/* DROPDOWN ANIMATION */
.dropdown-menu {
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  pointer-events: none; /* prevents ghost clicks when hidden */
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ========================================================================== */
/*  6. TYPOGRAPHY SYSTEM                                                       */
/* ========================================================================== */

body {
  font-size: var(--font-base);
  color: var(--color-text);
  line-height: 1.6;
}

.section-kicker {
  font-size: var(--font-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
  color: var(--color-accent);
}

.section-title {
  font-size: var(--font-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  line-height: 1.25;
}

.section-intro {
  font-size: var(--font-medium);
  line-height: 1.7;
  margin-bottom: var(--space-3);
  max-width: 800px;
}

.feature-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-1);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.feature-body {
  font-size: var(--font-base);
  line-height: 1.6;
}

.faq-answer {
  color: var(--color-accent-strong);
  font-weight: 500;
}

/* ========================================================================== */
/*  7. HERO SYSTEM — UPDATED TO 80% SCALE                                     */
/* ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  min-height: 420px;
  padding: 120px 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  padding: 0 20px;
  text-align: center;
}

.hero-logo {
  width: 200px;
  margin: 0 auto 1rem;
}



@media (max-width: 900px) {
  .hero {
    min-height: 360px;
    padding: 100px 0 60px;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 300px;
    padding: 80px 0 50px;
  }
}

/* ========================================================================== */
/*  8. HERO BACKGROUND IMAGES PER PAGE                                        */
/* ========================================================================== */

body.home .hero::before { background-image: url('assets/hero/hero-home.png'); }
body.technology .hero::before { background-image: url('assets/hero/hero-technology.png'); }
body.services .hero::before { background-image: url('assets/hero/hero-services.png'); }
body.security .hero::before { background-image: url('assets/hero/hero-security.png'); }
body.about .hero::before { background-image: url('assets/hero/hero-about.png'); }
body.contact .hero::before { background-image: url('assets/hero/hero-contact.png'); }
body.faq .hero::before { background-image: url('assets/hero/hero-faq.png'); }
body.privacy-data .hero::before { background-image: url('assets/hero/hero-privacy-data.png'); }
body.trial-overview .hero::before { background-image: url('assets/hero/hero-trial-overview.png'); }
body.support-guides .hero::before { background-image: url('assets/hero/hero-support.png'); }
body.getting-started .hero::before { background-image: url('assets/hero/hero-getting-started.png'); }
body.troubleshooting .hero::before { background-image: url('assets/hero/hero-support.png'); }
body.sensor-placement-guide .hero::before { background-image: url('assets/hero/hero-sensor-placement.png'); }
body.safety-guide .hero::before { background-image: url('assets/hero/hero-safety.png'); }
body.dashboard-guide .hero::before { background-image: url('assets/hero/hero-dashboard-guide.png'); }
body.for-investors .hero::before { background-image: url('assets/hero/hero-investor.png'); }
body.client-app .hero::before { background-image: url('assets/hero/hero-client-app.png'); }
body.responder-app .hero::before { background-image: url('assets/hero/hero-responder-app.jpg'); }
body.provisioning-app .hero::before { background-image: url('assets/hero/hero-provisioner-app.png'); }
/* ========================================================================== */
/*  9. SUPPORT HUB — PAGE-SPECIFIC ELEMENTS                                   */
/* ========================================================================== */

.support-return {
  font-size: var(--font-base);
  margin-bottom: 0;
}

.support-return a {
  color: var(--color-accent-strong);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.support-return a:hover {
  border-color: var(--color-accent-strong);
}

/* Support Hub category cards */
.support-category {
  display: block;
  padding: var(--space-4);
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.support-category:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

/* Support Hub section titles */
.support-section-title {
  font-size: var(--font-large);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

/* Support Hub intro text */
.support-intro {
  font-size: var(--font-medium);
  max-width: 700px;
  margin-bottom: var(--space-4);
  color: var(--color-muted);
}

/* ========================================================================== */
/*  10. FEATURE GRID SYSTEM                                                    */
/* ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.feature-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 1.75rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px) rotate(0.4deg);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  border-color: var(--color-accent-strong);
  background: var(--color-accent-soft);
}

.feature-card:focus-within {
  transform: translateY(-4px) rotate(0.4deg);
  border-color: var(--color-accent-strong);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  outline: none;
}

/* ========================================================================== */
/*  11. FOOTER                                                                */
/* ========================================================================== */

.site-footer {
  background: #111;
  color: #eee;
  padding: var(--space-6) 0;
  margin-top: var(--space-6);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
}

.footer-links a {
  display: block;
  margin-bottom: var(--space-1);
  color: #eee;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    gap: var(--space-3);
  }
}

/* ========================================================================== */
/*  12. UTILITIES                                                             */
/* ========================================================================== */

.text-center {
  text-align: center;
}

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

/* ========================================================================== */
/*  13. DEPRECATIONS (SAFE TO REMOVE FROM HTML)                               */
/* ========================================================================== */

.content-block { /* deprecated */ }
.page-content { /* deprecated */ }
.compact-spacing { /* deprecated */ }
body.privacy-data .privacy-security { /* deprecated */ }
