/* 
  BeliUbat.com Premium Design System (style.css)
  Vanilla CSS Theme, Components, and Responsive Design Tokens
  Designed for High Conversion, Modern Typography, and Premium Aesthetics
*/

:root {
  /* Color Tokens - Modern MedTech Palette */
  --primary: #0284c7;        /* Medical Blue */
  --primary-hover: #0369a1;  
  --secondary: #0f766e;      /* Medical Teal */
  --secondary-hover: #115e59;
  --accent: #f43f5e;         /* Rose for alerts/badges */
  --success: #10b981;        /* WhatsApp green / success */
  --success-hover: #059669;
  --dark: #0f172a;           /* Deep Slate for text */
  --light: #f8fafc;          /* Off-white background */
  --white: #ffffff;
  --border: #e2e8f0;         /* Soft borders */
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header & Glassmorphic Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  padding: 15px 3%; /* Reduced from 5% to give more breathing room */
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0; /* Prevents logo from shrinking or colliding */
  margin-right: 15px;
}

.logo-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  box-shadow: 0 4px 6px rgba(2, 132, 199, 0.2);
}

nav {
  display: flex;
  align-items: center;
  gap: 16px; /* Reduced from 25px to prevent menu wrapping on desktop */
  flex-shrink: 0;
  flex-wrap: nowrap;
}

nav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

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

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.nav-cta {
  background-color: var(--primary);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.15);
}

.nav-cta:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: #f1f5f9;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--dark);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.lang-switch:hover {
  background-color: #e2e8f0;
}

/* Hamburger menu for mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 100px 5% 80px 5%;
  background: radial-gradient(circle at 80% 20%, #e0f2fe 0%, var(--white) 60%);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 50px;
  min-height: 80vh;
}

.hero-content h2 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero-content h2 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.15rem;
  color: #475569;
  margin-bottom: 35px;
  max-width: 650px;
}

.hero-search {
  max-width: 550px;
  position: relative;
  margin-bottom: 35px;
}

.hero-search input {
  width: 100%;
  padding: 18px 25px 18px 55px;
  border-radius: 50px;
  border: 2px solid var(--border);
  font-size: 1.05rem;
  font-family: inherit;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  outline: none;
}

.hero-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.1);
}

.hero-search svg {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  width: 22px;
  height: 22px;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-whatsapp {
  background-color: var(--success);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.btn-whatsapp:hover {
  background-color: var(--success-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(16, 185, 129, 0.35);
}

.btn-outline {
  background-color: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.15);
}

.hero-img {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img-wrapper {
  background: linear-gradient(135deg, #bae6fd 0%, #ccfbf1 100%);
  width: 400px;
  height: 400px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morphing 15s ease-in-out infinite alternate;
  position: relative;
  box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.hero-badges {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  padding: 12px 20px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  animation: floating 4s ease-in-out infinite alternate;
}

.badge-1 {
  top: 15%;
  left: -20px;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 20%;
  right: -20px;
  animation-delay: 1.5s;
}

/* Trust Signals Section */
.trust-banner {
  background-color: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 30px 5%;
}

.trust-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.trust-icon {
  background-color: #f0fdf4;
  color: var(--success);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.trust-item.blue .trust-icon {
  background-color: #f0f9ff;
  color: var(--primary);
}

.trust-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3px;
}

.trust-info p {
  font-size: 0.85rem;
  color: #64748b;
}

/* Sections General */
.section {
  padding: 80px 5%;
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
}

.section-header p {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
}

/* Grid & Cards System */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hover-shadow);
  border-color: transparent;
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  background-color: #f0fdfa;
  color: var(--secondary);
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 25px;
  transition: var(--transition);
}

.card:hover .card-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  transform: scale(1.05);
}

.card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.card p {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 25px;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.card-link:hover {
  gap: 12px;
}

/* Symptom Checker Quiz Widget */
.symptom-widget {
  background: linear-gradient(135deg, #bae6fd 0%, #e0f2fe 100%);
  border-radius: 24px;
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
  box-shadow: var(--card-shadow);
  margin-bottom: 80px;
}

.symptom-quiz-box {
  background-color: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--hover-shadow);
}

.symptom-header {
  margin-bottom: 25px;
}

.symptom-header span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.symptom-header h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 5px;
}

.symptom-step {
  display: none;
}

.symptom-step.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

.symptom-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.symptom-opt {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  border: 2.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.symptom-opt:hover {
  border-color: var(--primary);
  background-color: #f0f9ff;
}

.symptom-opt.selected {
  border-color: var(--primary);
  background-color: #e0f2fe;
  color: var(--primary);
  font-weight: 600;
}

.symptom-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.symptom-results {
  text-align: center;
}

.symptom-results h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.symptom-results p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 25px;
}

/* How It Works Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  position: relative;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 25px auto;
  box-shadow: 0 10px 20px rgba(2, 132, 199, 0.2);
  position: relative;
  z-index: 2;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.95rem;
  color: #64748b;
  max-width: 250px;
  margin: 0 auto;
}

/* Medical Data Tables (AEO/GEO Rich Content) */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background-color: var(--white);
  box-shadow: var(--card-shadow);
  margin: 40px 0;
}

.med-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.med-table th {
  background-color: #f8fafc;
  color: var(--dark);
  font-weight: 700;
  padding: 18px 24px;
  border-bottom: 2px solid var(--border);
}

.med-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  color: #475569;
}

.med-table tr:last-child td {
  border-bottom: none;
}

.med-table tr:hover td {
  background-color: #f8fafc;
}

.med-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.med-badge-blue {
  background-color: #e0f2fe;
  color: #0369a1;
}

.med-badge-green {
  background-color: #d1fae5;
  color: #065f46;
}

.med-badge-purple {
  background-color: #f3e8ff;
  color: #6b21a8;
}

/* FAQ Accordion Styles */
.faq-accordion {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-btn {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 30px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  outline: none;
}

.faq-icon-svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon-svg {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-inner {
  padding: 0 30px 22px 30px;
  color: #475569;
  font-size: 0.95rem;
  border-top: 1px solid transparent;
}

.faq-item.active .faq-inner {
  border-top-color: #f1f5f9;
}

/* Prescription Upload Landing Page */
.upload-area {
  border: 3px dashed #cbd5e1;
  background-color: #f8fafc;
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  max-width: 650px;
  margin: 40px auto;
  position: relative;
}

.upload-area:hover, .upload-area.dragover {
  border-color: var(--primary);
  background-color: #f0f9ff;
}

.upload-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.upload-area input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-feedback {
  margin-top: 20px;
  font-weight: 600;
  color: var(--success);
  display: none;
}

/* Contact Page Form styling */
.contact-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  max-width: 1100px;
  margin: 50px auto;
}

.contact-card-box {
  background-color: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

/* Floating Actions & Widgets */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--success);
  color: var(--white);
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  cursor: pointer;
  z-index: 9999;
  transition: var(--transition);
  text-decoration: none;
}

.floating-whatsapp:hover {
  background-color: var(--success-hover);
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 15px 30px rgba(16, 185, 129, 0.5);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

/* Sticky Mobile Order Bar */
.sticky-order-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  border-top: 1px solid var(--border);
  padding: 15px 5%;
  display: none;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -8px 25px rgba(0,0,0,0.05);
  z-index: 999;
}

/* Footer Section */
footer {
  background-color: var(--dark);
  color: #94a3b8;
  padding: 80px 5% 40px 5%;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto 50px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 25px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 0.9rem;
  margin-bottom: 15px;
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

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

/* Animations */
@keyframes morphing {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  100% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-10px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries & Responsiveness */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 60px;
    gap: 30px;
  }
  .hero-content h2 {
    font-size: 2.5rem;
  }
  .hero-content p {
    margin: 0 auto 35px auto;
  }
  .hero-search {
    margin: 0 auto 35px auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-img {
    order: -1;
  }
  .hero-img-wrapper {
    width: 300px;
    height: 300px;
  }
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1150px) {
  header {
    padding: 15px 20px;
  }
  .menu-toggle {
    display: flex;
  }
  nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    padding: 40px 20px;
    gap: 25px;
    transition: var(--transition);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    overflow-y: auto;
  }
  nav.mobile-active {
    left: 0;
  }
  .symptom-widget {
    grid-template-columns: 1fr;
    padding: 30px;
  }
}

/* Mobile-only Sticky order triggers */
@media (max-width: 768px) {
  .sticky-order-bar {
    display: flex;
  }
  .floating-whatsapp {
    bottom: 85px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
}
