@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --eyehms-font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* Taller sticky header + safe anchor scroll */
  scroll-padding-top: 6.5rem;
}

body.eyehms-body {
  font-family: var(--eyehms-font);
  /* clip avoids horizontal bleed without breaking position:sticky on the header (hidden can). */
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

/* Wide media — no global height:auto (breaks explicit logo heights vs Tailwind). */
body.eyehms-body img,
body.eyehms-body video {
  max-width: 100%;
}

/* SVG / PNG brand — explicit sizing beats generic img max-width in flex layouts */
img.eyehms-brand-logo {
  display: block;
  width: auto;
  max-width: min(11.5rem, 42vw);
  height: 2.5rem;
  flex-shrink: 0;
  object-fit: contain;
}

img.eyehms-brand-logo--compact {
  height: 2.25rem;
  max-width: min(10rem, 46vw);
}

@media (min-width: 640px) {
  img.eyehms-brand-logo--compact {
    height: 2.5rem;
    max-width: 11.5rem;
  }
}

img.eyehms-brand-logo--footer {
  height: 2.25rem;
  max-width: 10rem;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

img.eyehms-brand-logo--footer-tight {
  height: 1.75rem;
  max-width: 8.5rem;
}

/* ----- Layout + premium chrome (works if Tailwind CDN is slow) ----- */
.eyehms-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.55);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.88) 100%);
  backdrop-filter: blur(14px) saturate(1.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 12px 40px -18px rgba(15, 23, 42, 0.12);
}

.eyehms-site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(37, 99, 235, 0.22) 22%,
    rgba(5, 150, 105, 0.2) 55%,
    rgba(37, 99, 235, 0.12) 78%,
    transparent 100%
  );
  pointer-events: none;
}

.eyehms-header-row {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  min-height: 4.5rem;
  padding: 1rem 0.875rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .eyehms-header-row {
    gap: 1rem;
    min-height: 4.75rem;
    padding: 1.125rem 1rem;
  }
}

@media (min-width: 1024px) {
  .eyehms-header-row {
    min-height: 5.25rem;
    padding: 1.25rem 2rem;
  }
}

@media (min-width: 1024px) {
  img.eyehms-brand-logo:not(.eyehms-brand-logo--footer):not(.eyehms-brand-logo--footer-tight) {
    height: 2.75rem;
    max-width: 12.5rem;
  }
}

.eyehms-nav-primary {
  display: none;
  flex-flow: row nowrap;
  align-items: center;
  gap: 0.125rem;
}

@media (min-width: 1024px) {
  .eyehms-nav-primary {
    display: flex;
  }
}

.eyehms-header-tools {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .eyehms-header-tools {
    display: none;
  }
}

.eyehms-header-brand {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 0;
  text-decoration: none;
  color: #0f172a;
}

@media (hover: hover) and (pointer: fine) {
  .eyehms-nav-primary > a.rounded-lg {
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  .eyehms-nav-primary > a.rounded-lg:hover {
    background-color: rgba(241, 245, 249, 0.95);
    color: rgb(15 23 42);
  }
}

.eyehms-menu-trigger {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 4px 14px -6px rgba(15, 23, 42, 0.12);
}

.eyehms-footer-bar {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.eyehms-site-footer--rich .eyehms-footer-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 768px) {
  .eyehms-site-footer--rich .eyehms-footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
  }
}

.eyehms-footer-min {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Rich marketing footer — depth + accent */
.eyehms-site-footer--premium {
  position: relative;
  background: linear-gradient(168deg, #0f172a 0%, #020617 38%, #0a1020 100%);
  border-top: 1px solid rgba(51, 65, 105, 0.5);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.06);
}

.eyehms-site-footer--premium::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.85), rgba(5, 150, 105, 0.75), rgba(59, 130, 246, 0.45));
  opacity: 0.95;
  pointer-events: none;
}

.eyehms-footer-heading {
  color: rgb(186 230 253 / 0.82);
  letter-spacing: 0.12em;
}

.eyehms-site-footer--premium a[href]:hover {
  color: #fff;
}

/* Fixed mobile action bar — respect iOS home indicator / notches */
.eyehms-mobile-bottom-bar {
  padding-top: 0.75rem;
  padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
}

/* Mobile flyout menu (native <details>) */
.eyehms-mobile-menu > summary {
  list-style: none;
}
.eyehms-mobile-menu > summary::-webkit-details-marker {
  display: none;
}
.eyehms-mobile-menu-panel {
  animation: eyehms-fade-in 0.15s ease-out;
  box-shadow:
    0 24px 48px -12px rgba(15, 23, 42, 0.16),
    0 12px 24px -8px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(15, 23, 42, 0.04);
}
@keyframes eyehms-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduce hover motion on touch devices */
@media (hover: none) {
  .eyehms-card:hover,
  .eyehms-card-featured:hover {
    transform: none;
  }
  .eyehms-hero-wrap:hover .eyehms-hero-frame {
    transform: none;
  }
}

/* Primary CTA — subtle lift */
.eyehms-btn-primary {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.eyehms-btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px -12px rgba(37, 99, 235, 0.45);
}
.eyehms-btn-primary:active {
  transform: scale(0.98);
}

.eyehms-btn-secondary {
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.eyehms-btn-secondary:hover {
  transform: scale(1.02);
}
.eyehms-btn-secondary:active {
  transform: scale(0.98);
}

/* Floating cards */
.eyehms-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.eyehms-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.12), 0 12px 24px -8px rgba(15, 23, 42, 0.08);
}

.eyehms-card-featured {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.eyehms-card-featured:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 32px 64px -16px rgba(5, 150, 105, 0.2), 0 16px 32px -8px rgba(15, 23, 42, 0.1);
}

/* Hero product frame */
.eyehms-hero-frame {
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.06),
    0 32px 64px -24px rgba(15, 23, 42, 0.25),
    0 12px 24px -8px rgba(37, 99, 235, 0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.eyehms-hero-wrap:hover .eyehms-hero-frame {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.08),
    0 40px 80px -20px rgba(15, 23, 42, 0.28),
    0 16px 32px -8px rgba(37, 99, 235, 0.2);
}

/* WhatsApp pulse */
@keyframes eyehms-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(5, 150, 105, 0); }
}
.eyehms-wa-pulse {
  animation: eyehms-pulse 2.5s ease-out infinite;
}

/* Chart bars subtle animate on load */
@keyframes eyehms-bar-up {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.eyehms-chart-bar {
  transform-origin: bottom;
  animation: eyehms-bar-up 0.7s ease-out backwards;
}
