/* ═══════════════════════════════════════════════════════════
   HYPERSPHERE TECHNOLOGIES — COMPONENT STYLES
   Reusable section & UI component patterns.
   ═══════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--ease-normal);
}

.site-nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 72px;
  width: auto;
}

/* fallback text logo */
.nav-logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  color: var(--hs-teal);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.nav-links > a,
.nav-dropdown .dropdown-trigger {
  font-size: 0.875rem;
  font-weight: 500;
  color: #0b1b24;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: background var(--ease-fast), color var(--ease-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

.nav-links > a:hover,
.nav-dropdown:hover .dropdown-trigger {
  background: var(--hs-mist);
  color: var(--hs-teal);
}

.nav-chevron {
  display: inline-block;
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4.5px solid currentColor;
  opacity: 0.5;
  transition: transform var(--ease-fast);
}

.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }

.nav-dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  z-index: var(--z-nav);
}

.nav-dropdown.open .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--ease-fast);
}

.dropdown-menu a:hover { background: var(--hs-mist); }

.dd-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--text-heading);
}

.dd-desc {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: var(--space-6);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-body);
  border-radius: 2px;
  display: block;
  transition: all var(--ease-fast);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .mobile-toggle { display: flex; }
}


/* ══════════════════════════════════════
   HERO — Standard centered
══════════════════════════════════════ */
.hero {
  padding-top: calc(68px + var(--space-20));
  padding-bottom: var(--space-20);
  padding-inline: var(--container-pad);
  text-align: center;
  background: linear-gradient(165deg, var(--hs-mist) 0%, var(--white) 40%, var(--hs-warm-white) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(82,183,185,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(243,143,30,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--container-mid);
  margin-inline: auto;
}

.hero h1 {
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: var(--text-md);
  color: var(--text-body);
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
  line-height: var(--leading-loose);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Hero — Two column (image right) ── */
.hero--split {
  text-align: left;
  padding-top: calc(68px + var(--space-16));
}

.hero--split .hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  max-width: var(--container-max);
}

.hero--split .hero-subtitle { margin-inline: 0; }
.hero--split .hero-actions  { justify-content: flex-start; }

.hero-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
  .hero--split .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero--split .hero-image-wrap {
    order: -1;
  }
}


/* ══════════════════════════════════════
   FEATURE CARDS — 3-up grid
══════════════════════════════════════ */
.cards-section {
  padding-block: var(--section-y);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: box-shadow var(--ease-normal), transform var(--ease-normal);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Card color variants */
.card--teal   { background: var(--hs-ice); border-color: var(--hs-sea-light); }
.card--warm   { background: var(--hs-peach); border-color: #f5dfc0; }
.card--sand   { background: var(--hs-sand-light); border-color: #ede5d4; }
.card--cream  { background: var(--hs-cream-light); border-color: #ede8cf; }
.card--white  { background: var(--white); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--hs-ice);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--hs-teal);
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-5);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--hs-teal);
  transition: gap var(--ease-fast);
}

.card-link:hover { gap: var(--space-3); }

.card-link svg { width: 16px; height: 16px; }


/* ══════════════════════════════════════
   LOGO BAR / TRUST BAR
══════════════════════════════════════ */
.logo-bar {
  padding-block: var(--space-12);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--off-white);
}

.logo-bar-label {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: var(--space-8);
}

.logo-bar-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.logo-bar-row img {
  height: 32px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity var(--ease-normal), filter var(--ease-normal);
}

.logo-bar-row img:hover {
  opacity: 0.85;
  filter: grayscale(0);
}


/* ══════════════════════════════════════
   STATS / METRICS ROW
══════════════════════════════════════ */
.stats-section {
  padding-block: var(--section-y-sm);
  background: var(--hs-warm-white);
}

.stats-row {
  display: flex;
  gap: var(--space-8);
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: var(--space-6) var(--space-8);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--hs-teal);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.stat-desc {
  font-size: var(--text-xs);
  color: var(--text-light);
  margin-top: var(--space-2);
}


/* ══════════════════════════════════════
   FEATURE — 2-col (text + image)
══════════════════════════════════════ */
.feature-split {
  padding-block: var(--section-y);
}

.feature-split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.feature-split-inner.reverse { direction: rtl; }
.feature-split-inner.reverse > * { direction: ltr; }

.feature-content .eyebrow { margin-bottom: var(--space-3); }
.feature-content h2 { margin-bottom: var(--space-5); }
.feature-content p  { margin-bottom: var(--space-6); color: var(--text-muted); }

.feature-list {
  margin-bottom: var(--space-8);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-body);
}

.feature-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hs-teal-bright);
  flex-shrink: 0;
  margin-top: 6px;
}

.feature-image-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
  .feature-split-inner,
  .feature-split-inner.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}


/* ══════════════════════════════════════
   ACCORDION / FAQ
══════════════════════════════════════ */
.faq-section { padding-block: var(--section-y); }

.faq-list {
  max-width: 720px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) 0;
  cursor: pointer;
  font-weight: var(--weight-medium);
  color: var(--text-heading);
  font-size: var(--text-base);
  gap: var(--space-4);
}

.faq-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--hs-teal);
  font-size: 1rem;
  transition: transform var(--ease-fast);
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding-bottom: var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-loose);
}

.faq-item.open .faq-answer { display: block; }


/* ══════════════════════════════════════
   CTA BANNER
══════════════════════════════════════ */
.cta-section {
  padding-block: var(--section-y-sm);
  background: var(--hs-ice);
  border-top: 1px solid var(--hs-sea-light);
  border-bottom: 1px solid var(--hs-sea-light);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.cta-text h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.cta-text p {
  color: var(--text-muted);
  font-size: var(--text-base);
  max-width: 520px;
}

.cta-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
}


/* ══════════════════════════════════════
   RECOGNITION / LOGO CARDS
══════════════════════════════════════ */
.recognition-section { padding-block: var(--section-y); background: var(--off-white); }

.rec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

@media (max-width: 900px) { .rec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .rec-grid { grid-template-columns: 1fr; } }

.rec-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: box-shadow var(--ease-normal);
}

.rec-card:hover { box-shadow: var(--shadow-md); }

.rec-logo {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  margin-inline: auto;
}

.rec-logo img {
  max-height: 36px;
  max-width: 120px;
  object-fit: contain;
}

.rec-card h4 {
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.rec-card p {
  font-size: var(--text-xs);
  color: var(--text-muted);
}


/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  background: var(--hs-sand-light);
  border-top: 1px solid var(--border);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-loose);
  margin-top: var(--space-4);
  max-width: 280px;
}

.footer-brand .nav-logo-text {
  font-size: var(--text-base);
}

.footer-col h4 {
  font-size: var(--text-xs);
  font-family: var(--font-body);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-body);
  text-decoration: none;
  padding: var(--space-1) 0;
  transition: color var(--ease-fast);
  margin-bottom: var(--space-2);
}

.footer-col a:hover { color: var(--hs-teal); }

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--text-light);
}

.footer-bottom a {
  font-size: var(--text-xs);
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--ease-fast);
}

.footer-bottom a:hover { color: var(--hs-teal); }

/* ── Gradient Divider ── */
.gradient-divider {
  height: 1px;
  background: linear-gradient(90deg, #a4cfcd, #52b7b9 20%, #e8d393 45%, #f38f1e 70%, #dd7b3e 100%);
  opacity: 0.75;
}

.gradient-divider--thick {
  height: 3px;
}
