/* ==========================================================================
   CareMinute TeleHealth USA - Medical Design System (Mobile-First)
   Paleta: Deep Oceanic Navy (#0A192F), Clinical Cyan (#0284C7), Mint (#10B981)
   Conformidade Visual: HIPAA Compliant / High-Trust Medical Interface
   ========================================================================== */

:root {
  --primary-navy: #0a192f;
  --primary-blue: #0f2847;
  --accent-cyan: #0284c7;
  --accent-cyan-light: #38bdf8;
  --accent-teal: #0d9488;
  --accent-mint: #10b981;
  --danger-red: #ef4444;
  --warning-amber: #f59e0b;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark-room: #050d1a;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(10, 25, 47, 0.08);
  --shadow-lg: 0 10px 30px rgba(10, 25, 47, 0.14);
  --shadow-cyan: 0 8px 24px rgba(2, 132, 199, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-navy);
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  min-height: 48px; /* Mobile touch friendly */
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #0369a1);
  color: #ffffff;
  box-shadow: var(--shadow-cyan);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-cyan-light), var(--accent-cyan));
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(2, 132, 199, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #ffffff;
}

.btn-outline {
  background: transparent;
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-outline:hover {
  background: var(--accent-cyan);
  color: #ffffff;
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-mint), #059669);
  color: #ffffff;
}

.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.875rem;
  min-height: 40px;
}

.btn-block {
  width: 100%;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.badge-hipaa {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-mint);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-blue {
  background: rgba(2, 132, 199, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.badge-bilingual {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Header & Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
}

.brand-logo .cross-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.brand-logo span {
  color: var(--accent-cyan-light);
}

.nav-menu {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language Selector (EN / ES / PT) */
.lang-selector {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lang-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--accent-cyan);
  color: #ffffff;
}

.mobile-menu-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px;
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: calc(100vh - 72px);
  background: var(--primary-navy);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 999;
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-nav-link {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 85% 15%, #0f3d6b 0%, var(--primary-navy) 70%);
  color: #ffffff;
  padding: 125px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-title {
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 1rem 0;
}

.hero-title .highlight {
  color: var(--accent-cyan-light);
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-doctor-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.doc-avatar-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.doc-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.doc-details h4 {
  color: #ffffff;
  font-size: 1.25rem;
}

.doc-details p {
  color: var(--accent-cyan-light);
  font-size: 0.85rem;
  font-weight: 600;
}

.doc-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

/* Sections Common */
.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-title {
  font-size: 2rem;
  margin: 0.75rem 0;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Specialties Grid */
.specialties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.spec-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.spec-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-cyan);
}

.spec-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(2, 132, 199, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.spec-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.spec-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.spec-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Booking Interactive Component */
.booking-section {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}

.booking-header {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 1.5rem;
  text-align: center;
}

.booking-header h3 {
  color: #ffffff;
  font-size: 1.35rem;
}

.booking-body {
  padding: 2rem 1.5rem;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.slot-btn {
  padding: 0.65rem 0.5rem;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #f8fafc;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.slot-btn:hover, .slot-btn.active {
  background: var(--accent-cyan);
  color: #ffffff;
  border-color: var(--accent-cyan);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-family: inherit;
  min-height: 48px;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Video Consultation Room */
.video-room-container {
  background: var(--bg-dark-room);
  min-height: 100vh;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.video-room-header {
  padding: 1rem 1.5rem;
  background: rgba(10, 25, 47, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.video-grid {
  flex-grow: 1;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  position: relative;
}

.video-feed-main {
  background: #0f172a;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  border: 1px solid rgba(255,255,255,0.1);
}

.video-feed-pip {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 120px;
  height: 160px;
  background: #1e293b;
  border-radius: var(--radius-sm);
  border: 2px solid var(--accent-cyan);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.video-controls-bar {
  padding: 1rem;
  background: rgba(10, 25, 47, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.control-btn {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.control-btn.active-red {
  background: var(--danger-red);
}

.control-btn:hover {
  transform: scale(1.08);
}

/* Doctor EHR / SOAP Dashboard */
.ehr-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.ehr-panel {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.vitals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.vital-box {
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  text-align: center;
}

.vital-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.vital-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--primary-navy);
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Media Queries (Tablets & Desktop) */
@media (min-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .hero-ctas {
    flex-direction: row;
  }
  .specialties-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .time-slots-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .vitals-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  .nav-link {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
  }
  .nav-link:hover {
    color: var(--accent-cyan-light);
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .hero-title {
    font-size: 3.25rem;
  }
  .ehr-layout {
    grid-template-columns: 1fr 1fr;
  }
}
