/* ═══════════════════════════════════════════════════════════════
   TrustedCare Premium Landing Page Styles — Premium Light Theme
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Color Palette (Soft Light Theme) */
  --bg-deep: hsl(164, 20%, 94%);
  --bg-surface: hsl(164, 18%, 98%);
  --bg-surface-glass: rgba(255, 255, 255, 0.65);
  --bg-card: hsl(164, 18%, 98%);
  --bg-card-glass: rgba(255, 255, 255, 0.5);
  
  --primary-teal: hsl(164, 30%, 35%);
  --primary-teal-muted: hsl(164, 18%, 65%);
  --primary-teal-dark: hsl(164, 18%, 45%);
  --primary-teal-glow: rgba(152, 180, 172, 0.15);
  
  --accent-amber: hsl(35, 75%, 42%);
  --accent-amber-glow: rgba(242, 156, 17, 0.08);
  
  --text-primary: hsl(164, 35%, 14%);
  --text-secondary: hsl(164, 25%, 26%);
  --text-muted: hsl(164, 15%, 45%);
  
  --border-teal: rgba(152, 180, 172, 0.4);
  --border-glass: rgba(152, 180, 172, 0.25);

  /* Typography */
  --font-sans: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout and Effects */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

/* Global Reset & Scroll Behavior */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at 50% 0%, var(--bg-surface) 0%, var(--bg-deep) 70%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border: 2px solid var(--bg-deep);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-teal-muted);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
  position: relative;
}

/* Navigation Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

.main-header.header-scrolled {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.8rem 0;
  box-shadow: 0 4px 30px rgba(25, 43, 37, 0.02);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  transition: var(--transition-smooth);
}

.main-header.header-scrolled .header-container {
  padding: 0.6rem 2rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo {
  height: 80px;
  width: auto;
  border-radius: 50%;
}

.nav-brand-text {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto; /* Push menu to the right since login button is removed */
}

.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--primary-teal-dark);
  transition: var(--transition-fast);
}

.nav-item:hover {
  color: var(--primary-teal-dark);
}

.nav-item:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .main-header.header-scrolled .header-container {
    padding: 0.5rem 1rem;
  }
  .nav-logo {
    height: 50px;
  }
  .nav-brand-text {
    font-size: 1.1rem;
  }
  .nav-menu {
    margin-left: 0;
    justify-content: center;
    gap: 1.25rem;
    width: 100%;
  }
  .nav-item {
    font-size: 0.85rem;
  }
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10rem;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 60vh;
  background: radial-gradient(circle, var(--primary-teal-glow) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo-container {
  position: relative;
  width: 32vmin;
  height: 32vmin;
  min-width: 220px;
  min-height: 220px;
  margin: 0 auto 2.5rem;
  border-radius: 50%;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 15px 35px rgba(25, 43, 37, 0.04),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.hero-logo-container:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(152, 180, 172, 0.5);
  box-shadow: 
    0 20px 40px rgba(25, 43, 37, 0.06),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.hero-logo {
  height: 72%;
  width: auto;
  aspect-ratio: 682 / 1024;
  object-fit: cover;
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-primary);
}

.highlight-text {
  color: var(--primary-teal-dark);
  text-shadow: 0 0 45px rgba(102, 166, 150, 0.2);
  white-space: nowrap;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* Section Common Headers */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-teal-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.section-intro {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 800px;
  margin-bottom: 1.5rem;
  font-weight: 400;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-subintro {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 850px;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Section 1: Reality Stories Grid */
.experiences-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .experiences-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.experience-card {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 15px 35px rgba(25, 43, 37, 0.02),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.experience-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-teal);
  background: var(--bg-surface);
  box-shadow: 
    0 20px 45px rgba(25, 43, 37, 0.05),
    inset 0 1px 2px rgba(255, 255, 255, 0.95);
}

.card-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--primary-teal-glow) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.experience-card:hover .card-glow {
  opacity: 1;
}

.experience-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-weight: 600;
}

.avatar-quote {
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--primary-teal-muted);
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 2rem;
  opacity: 0.2;
}

.story-quote {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.story-quote strong {
  color: var(--text-primary);
  font-weight: 600;
}

.founder-signature {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Section 2: Challenge Layout */
.challenge-section {
  background: hsl(164, 18%, 91%);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.challenge-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .challenge-layout {
    grid-template-columns: 1.2fr 1fr;
  }
}

.challenge-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.challenge-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.stat-highlight {
  display: flex;
  gap: 3rem;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.01);
  justify-content: center;
  max-width: 400px;
  width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.text-teal {
  color: var(--primary-teal-dark);
  text-shadow: 0 0 20px rgba(102, 166, 150, 0.1);
}

.text-amber {
  color: var(--accent-amber);
  text-shadow: 0 0 20px rgba(242, 156, 17, 0.1);
}

/* Visual Hours Grid Widget */
.visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: 
    0 20px 45px rgba(25, 43, 37, 0.03),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.visual-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
}

.visual-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  background: hsl(164, 15%, 88%);
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
  max-width: 340px;
  width: 100%;
  margin: 0 auto;
}

.hour-square {
  aspect-ratio: 1;
  border-radius: 3px;
  transition: var(--transition-fast);
}

.hour-square.unmonitored-gap {
  background: hsla(35, 75%, 42%, 0.08);
  border: 1px solid hsla(35, 75%, 42%, 0.15);
  animation: pulse-amber 2.5s infinite ease-in-out;
}

.hour-square.active-care {
  background: var(--primary-teal-dark);
  box-shadow: 0 0 10px rgba(102, 166, 150, 0.4);
  transform: scale(1.15);
  z-index: 2;
}

@keyframes pulse-amber {
  0%, 100% {
    background: hsla(35, 75%, 42%, 0.08);
  }
  50% {
    background: hsla(35, 75%, 42%, 0.28);
    box-shadow: 0 0 6px hsla(35, 75%, 42%, 0.15);
  }
}

.grid-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.bg-teal {
  background: var(--primary-teal-dark);
}

.bg-amber {
  background: var(--accent-amber);
}

.pulsing {
  animation: pulse-simple 1.5s infinite ease-in-out;
}

@keyframes pulse-simple {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Challenge Footer quotes */
.challenge-footer {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.emphasis-quote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-secondary);
  border-left: none;
  border-top: 1px solid var(--primary-teal-muted);
  border-bottom: 1px solid var(--primary-teal-muted);
  padding: 1.5rem 0;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.emphasis-quote.critical {
  border-top-color: var(--accent-amber);
  border-bottom-color: var(--accent-amber);
  color: var(--text-primary);
  font-weight: 550;
}

/* Section 3: Our Purpose */
.purpose-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, hsl(164, 15%, 92%) 100%);
  border: 1px solid var(--border-teal);
  border-radius: var(--border-radius-lg);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 25px 50px rgba(25, 43, 37, 0.03),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
  /* Fix WebKit rounded corner stacking glitches */
  isolation: isolate;
}

@media (min-width: 768px) {
  .purpose-card {
    padding: 5rem 4rem;
  }
}

.purpose-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.purpose-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.purpose-text {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.purpose-text.lead {
  font-size: 1.3rem;
  color: var(--text-primary);
  font-weight: 400;
}

.purpose-manifesto {
  margin-top: 3.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-teal);
  border-bottom: 1px solid var(--border-teal);
  font-size: 1.25rem;
  color: var(--primary-teal-dark);
  font-family: var(--font-serif);
  font-style: italic;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-align: center;
}

/* Footer styling */
.main-footer {
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem;
  background: hsl(164, 18%, 91%);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.footer-logo {
  height: 100px;
  width: auto;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 400px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 550;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-teal-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  width: 100%;
  padding-top: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Scroll Reveal Utilities */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility: Support reduced motion settings */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .hour-square.unmonitored-gap {
    animation: none !important;
    background: hsla(35, 75%, 42%, 0.18) !important;
    border-color: hsla(35, 75%, 42%, 0.25) !important;
  }
}
