@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== Design System Variables ===== */
:root {
  /* Color Palette - Premium Clinical */
  --color-primary: #0B3C68;
  /* Deep Royal Blue */
  --color-secondary: #008ED6;
  /* Clinical Blue */
  --color-accent: #FF6B35;
  /* Warm CTA (Use sparingly) */
  --color-accent-hover: #E55A2B;

  --color-bg-body: #FFFFFF;
  --color-bg-light: #F8FAFC;
  /* Very subtle cool gray */
  --color-bg-subtle: #F3F6F9;

  --color-text-primary: #1B2430;
  /* Near Black */
  --color-text-secondary: #4B5563;
  /* Dark Gray */
  --color-text-tertiary: #9CA3AF;
  /* Light Gray */

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-premium: 0 20px 40px -12px rgba(11, 60, 104, 0.1);

  /* Typography */
  --font-family-base: 'Inter', sans-serif;
  --font-size-base: 16px;
  /* Standardize base size */
  --line-height-base: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing */
  --section-padding-y: 6rem;
  /* More whitespace */
  --section-padding-y-sm: 4rem;

  /* Transitions */
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Base Typography ===== */
body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg-body);
  /* font-smoothing: antialiased; */
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.25rem;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.5rem;
  }
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: 1.5rem;
}

/* ===== Layout & Spacing ===== */
section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

@media (max-width: 768px) {
  section {
    padding-top: var(--section-padding-y-sm);
    padding-bottom: var(--section-padding-y-sm);
  }
}

/* ===== Buttons (Tactile & Confident) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  /* Clean rounded, not pill */
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-base);
  cursor: pointer;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 4px 6px rgba(11, 60, 104, 0.2);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background-color: #082D4F;
  transform: translateY(-1px);
  box-shadow: 0 8px 12px rgba(11, 60, 104, 0.25);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid rgba(11, 60, 104, 0.3);
}

.btn-secondary:hover {
  background-color: var(--color-bg-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-cta {
  background-color: var(--color-accent);
  /* Orange mostly for conversions */
  color: white;
  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

.btn-cta:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(255, 107, 53, 0.4);
}

/* ===== Cards (Clean & Minimal) ===== */
.card-product {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 0;
  transition: var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-product:hover {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-image-container {
  background-color: var(--color-bg-subtle);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-product:hover .card-image-container img {
  transform: scale(1.05);
}

/* ===== Navigation ===== */
.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav a {
  font-weight: 500;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: var(--color-primary);
}

/* ===== Utility Classes & Components ===== */
.text-overline {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
  display: block;
}

.bg-premium-gradient {
  background: radial-gradient(circle at 50% 0%, #F0F4F8 0%, #FFFFFF 70%);
}

/* Trust Bar */
.trust-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
  transition: var(--transition-base);
}

.trust-icon-wrapper:hover {
  opacity: 1;
}

.trust-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-align: center;
}

/* Mobile Menu */
#mobile-menu {
  position: fixed;
  top: 80px;
  /* Matched to h-20 header height */
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  /* Full height minus header */
  background: white;
  border-bottom: 1px solid #eee;
  padding: 1rem;
  transform: translateY(-120%);
  transition: transform 0.3s ease-in-out;
  z-index: 40;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  /* Allow scrolling within menu if tall */
}

#mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Accordion */
.accordion-content {
  transition: max-height 0.3s ease-out;
}

/* ===== Flip Card Utilities (3D Transform) ===== */
.perspective-1000 {
  perspective: 1000px;
}

.transform-style-3d {
  transform-style: preserve-3d;
}

.backface-hidden {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.rotate-y-180 {
  transform: rotateY(180deg);
}

/* Enable group hover for rotation */
.group:hover .group-hover\:rotate-y-180 {
  transform: rotateY(180deg);
}

/* ===== Motion & Interactivity System ===== */

/* Entrance Animations */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.animate-reveal {
  animation: revealUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
}

.animate-float {
  animation: softFloat 4s ease-in-out infinite;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

/* Interactive State Utilities */
.btn:active,
.card-product:active {
  transform: scale(0.96);
  transition: transform 0.1s ease;
}

.interactive-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.interactive-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Sticky Mobile CTA Bar */
.sticky-mobile-cta {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  padding: 0.75rem 1.5rem;
  display: none;
  /* Desktop hidden */
}

@media (max-width: 768px) {
  .sticky-mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
  }

  body.has-sticky-cta {
    padding-bottom: 70px;
  }
}

/* Scroll-triggered reveal helper */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}