/* ============================================
   VitaDoc Landing Page - Complete Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #0277C0;
  --primary-dark: #015a91;
  --secondary: #68C000;
  --secondary-dark: #4d8f00;
  --text-dark: #101828;
  --text-body: #364153;
  --text-muted: #4a5565;
  --text-light: #d1d5dc;
  --bg-white: #ffffff;
  --bg-blue-50: #eff6ff;
  --bg-blue-100: #e6f4fd;
  --bg-green-100: #e8f8d5;
  --bg-gray-50: #f9fafb;
  --bg-footer: #101828;
  --border-light: #e5e7eb;
  --border-card: #f3f4f6;
  --shadow-card: 0px 10px 15px 0px rgba(0,0,0,0.1), 0px 4px 6px 0px rgba(0,0,0,0.1);
  --shadow-sm: 0px 4px 6px 0px rgba(0,0,0,0.1), 0px 2px 4px 0px rgba(0,0,0,0.1);
  --shadow-zalo: 0px 10px 15px 0px rgba(0,0,0,0.1), 0px 4px 6px 0px rgba(0,0,0,0.1);
  --radius-lg: 16px;
  --radius-md: 14px;
  --radius-sm: 6px;
  --max-width: 80rem;
  --header-height: 80px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- Utility Classes --- */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

.section {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .section { padding: 6rem 0; }
}

/* Section title styling */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0.41px;
}

@media (max-width: 767px) {
  .section-title h2 { font-size: 1.5rem; }
}

.section-title .subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  letter-spacing: -0.44px;
}

.section-title .divider {
  width: 5rem;
  height: 0.25rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 0 auto;
  border-radius: 9999px;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

.header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.header-logo img {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
}

/* Desktop Nav */
.header-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .header-nav { display: flex; }
}

.header-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.2s;
  letter-spacing: -0.31px;
}

.header-nav a:hover {
  color: var(--primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-btn .icon-menu,
.mobile-menu-btn .icon-close {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--text-dark);
}

.mobile-menu-btn .icon-close { display: none; }
.mobile-menu-btn.open .icon-menu { display: none; }
.mobile-menu-btn.open .icon-close { display: block; }

/* Mobile Menu Panel */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-white);
  z-index: 60;
  overflow-y: auto;
}

.mobile-menu.open { display: block; }

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.5rem 1rem;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bg-gray-50);
  transition: color 0.2s;
}

.mobile-menu nav a:hover { color: var(--primary); }

.mobile-menu-download { margin: 2rem 0; }

.mobile-menu-download p {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.mobile-menu-company {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- App Store Buttons --- */
.app-store-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 44px;
  width: 149px;
  padding-left: 9px;
  padding-right: 1px;
  padding-top: 1px;
  padding-bottom: 1px;
  background: #000;
  border-radius: var(--radius-sm);
  border: 1px solid #a6a6a6;
  transition: opacity 0.2s;
  cursor: pointer;
}

.store-btn:hover { opacity: 0.85; }

.store-btn-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.store-label {
  color: #fff;
  font-size: 9px;
  line-height: 1.25;
  letter-spacing: 0.167px;
}

.store-name {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.44px;
}

.store-label-upper {
  color: #fff;
  font-size: 8px;
  line-height: 1.25;
  letter-spacing: 0.206px;
  text-transform: uppercase;
}

.store-name-sm {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.234px;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(180deg, #e6f4fd 0%, #ffffff 50%, #e8f8d5 100%);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(2, 119, 192, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero-blur-blue {
  position: absolute;
  right: 5%;
  top: -4rem;
  width: 32rem;
  height: 32rem;
  background: var(--primary);
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-blur-green {
  position: absolute;
  left: -4rem;
  top: 16rem;
  width: 26rem;
  height: 26rem;
  background: var(--secondary);
  opacity: 0.09;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-blur-accent {
  position: absolute;
  left: 50%;
  bottom: -2rem;
  width: 18rem;
  height: 18rem;
  background: var(--primary);
  opacity: 0.05;
  border-radius: 50%;
  filter: blur(60px);
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
}

.hero-content {
  max-width: 576px;}

@media (max-width: 1023px) {
  .hero-content { padding-top: 3rem; }
}

.hero-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  letter-spacing: 0.37px;
}

@media (max-width: 767px) {
  .hero-content h1 { font-size: 1.75rem; line-height: 1.35; }
}

.hero-content p {
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--text-muted);
  margin-bottom: 2rem;
  letter-spacing: -0.44px;
}

.hero-phones-desktop {
  display: none;
  position: relative;
  height: 480px;
  justify-content: center;
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .hero-phones-desktop { display: flex; }
}

.hero-phone-front {
  position: absolute;
  left: 0;
  top: -3px;
  width: 15rem;
  height: 486px;
  object-fit: cover;
  z-index: 10;
}

.hero-phone-back {
  position: absolute;
  left: 10rem;
  top: 30px;
  width: 15rem;
  height: 486px;
  object-fit: cover;
}

/* Mobile phones */
.hero-phones-mobile {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  height: 340px;
  margin-top: 1rem;
}

@media (min-width: 1024px) {
  .hero-phones-mobile { display: none; }
}

.hero-phone-mobile-left {
  position: absolute;
  z-index: 10;
  width: 161px;
  height: 322px;
  object-fit: cover;
  object-position: top;
  left: calc(50% - 150px);
  bottom: 0;
}

.hero-phone-mobile-right {
  position: absolute;
  width: 161px;
  height: 322px;
  object-fit: cover;
  object-position: top;
  left: calc(50% + 0px);
  bottom: -16px;
}

/* --- About Section --- */
.about-section { background: var(--bg-white); }

.about-description {
  max-width: 64rem;
  margin: 0 auto 4rem;
}

.about-description p {
  font-size: 1rem;
  line-height: 1.625;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  letter-spacing: -0.31px;
}

.about-description .highlight {
  font-weight: 700;
  color: var(--primary);
}

/* Vision/Mission Cards */
.about-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .about-cards { grid-template-columns: 1fr 1fr; }
}

.about-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  padding: 2rem;
}

.about-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.about-card-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.07px;
}

.about-card p {
  font-size: 1rem;
  line-height: 1.625;
  color: var(--text-body);
  letter-spacing: -0.31px;
}

.icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box svg {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-box-blue { background: linear-gradient(135deg, rgb(2,119,192), rgba(2,119,192,0.8)); }
.icon-box-green { background: linear-gradient(135deg, rgb(104,192,0), rgba(104,192,0,0.8)); }
.icon-box-gradient { background: linear-gradient(135deg, rgb(2,119,192), rgb(104,192,0)); }
.icon-box-green-blue { background: linear-gradient(135deg, rgba(104,192,0,0.9), rgba(2,119,192,0.9)); }

/* --- Core Values --- */
.core-values-section {
  background: linear-gradient(180deg, #eff6ff, #f9fafb);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .values-grid { grid-template-columns: 1fr 1fr; }
}

.value-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0px 20px 40px rgba(2, 119, 192, 0.12), 0px 8px 16px rgba(0, 0, 0, 0.08);
  border-color: rgba(2, 119, 192, 0.2);
}

.value-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.value-card-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.07px;
}

.value-card p {
  font-size: 1rem;
  line-height: 1.625;
  color: var(--text-body);
  letter-spacing: -0.31px;
}

/* --- Features --- */
.features-section { background: var(--bg-white); }

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
}

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  padding-top: 32px;
  border: 1px solid transparent;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0px 20px 40px rgba(2, 119, 192, 0.12), 0px 8px 16px rgba(0, 0, 0, 0.08);
  border-color: rgba(2, 119, 192, 0.15);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 2rem;
  height: 2rem;
}

.feature-icon-blue { background: var(--bg-blue-100); }
.feature-icon-green { background: var(--bg-green-100); }

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  letter-spacing: 0.07px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding-left: 2rem;
}

.feature-list li .check-icon {
  position: absolute;
  left: 0;
  top: 2px;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.feature-list li span {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.625;
  letter-spacing: -0.31px;
}

/* --- Benefits --- */
.benefits-section {
  background: linear-gradient(180deg, #f9fafb, #eff6ff);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .benefits-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
}

.benefit-item { text-align: center; }

.benefit-icon {
  width: 5rem;
  height: 5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.benefit-icon svg {
  width: 2.5rem;
  height: 2.5rem;
}

.benefit-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.45px;
}

.benefit-item p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.625;
  letter-spacing: -0.31px;
}

/* --- Stats --- */
.stats-section { background: var(--bg-white); }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  text-align: center;
  padding: 2rem 1rem;
}

.stat-icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.stat-icon svg {
  width: 2rem;
  height: 2rem;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  letter-spacing: 0.38px;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: -0.31px;
}

/* --- Footer --- */
.footer {
  background: var(--bg-footer);
  color: var(--text-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logos img:first-child {
  height: 40.8px;
  width: auto;
  object-fit: contain;
}

.footer-logos img:last-child {
  height: 30.6px;
  width: auto;
  object-fit: contain;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.625;
  letter-spacing: -0.15px;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-socials a {
  color: #99A1AF;
  transition: color 0.2s;
}

.footer-socials a:hover { color: #fff; }

.footer-socials svg {
  width: 1.5rem;
  height: 1.5rem;
}

.footer h3 {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.44px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-item svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-contact-item p,
.footer-contact-item a {
  font-size: 0.875rem;
  line-height: 1.428;
  letter-spacing: -0.15px;
}

.footer-contact-item a { transition: color 0.2s; }
.footer-contact-item a:hover { color: #fff; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  line-height: 1.428;
  letter-spacing: -0.15px;
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-download {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid #1e2939;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--text-light);
  letter-spacing: -0.15px;
}

/* --- Floating Zalo Button --- */
@keyframes zalo-pulse {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.45); }
  60%  { transform: scale(1.04); box-shadow: 0 0 0 12px rgba(0, 104, 255, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 104, 255, 0); }
}

.floating-zalo {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #0068ff;
  color: #fff;
  padding: 0 1.25rem;
  height: 3rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-zalo);
  transition: background 0.2s, transform 0.2s;
  animation: zalo-pulse 2.4s ease-out infinite;
}

.floating-zalo:hover {
  background: #0052CC;
  animation: none;
  transform: scale(1.05);
}

.floating-zalo svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.floating-zalo span {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.31px;
  white-space: nowrap;
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --- Loading --- */
#page-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.loader-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--bg-blue-100);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #0277C0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #025a99; }

/* --- Body scroll lock --- */
body.menu-open { overflow: hidden; }
