/* =============================================================
   YOROVA WEBSITE - Design System
   Aesthetic: Modern wellness apothecary, editorial-clean
   ============================================================= */

/* ---------- IMPORTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=Be+Vietnam+Pro:wght@300;400;500;600;700&display=swap');

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Brand colors */
  --blue: #0054A6;
  --blue-dark: #003D7A;
  --blue-light: #EDF4FB;
  --blue-mist: #F7FBFE;
  --green: #3DB54A;
  --green-dark: #2A9938;
  --green-light: #EDF8EF;

  /* Neutrals — tone sáng */
  --ink: #0A1929;
  --text: #1F2D44;
  --text-soft: #5C6B83;
  --muted: #8B98AE;
  --line: #E8EFF5;
  --line-soft: #F5F8FB;
  --paper: #FFFFFF;
  --cream: #FBF9F4;
  --warm-beige: #F8F2E8;

  /* Accents */
  --terracotta: #C26B4E;
  --gold: #D4A445;

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing & Layout */
  --container: 1280px;
  --container-narrow: 960px;
  --container-wide: 1440px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 25, 41, 0.04);
  --shadow: 0 8px 32px rgba(10, 25, 41, 0.06);
  --shadow-lg: 0 20px 60px rgba(10, 25, 41, 0.10);
  --shadow-color: 0 16px 48px rgba(0, 84, 166, 0.18);

  /* Animation */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  font-size: inherit;
  color: inherit;
}

ul { list-style: none; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.display em {
  font-style: italic;
  font-feature-settings: "ss01";
  color: var(--blue);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--green);
}

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- LOGO ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.logo img {
  height: 56px;
  width: auto;
  display: block;
  transition: opacity 0.2s var(--ease);
}

.logo:hover img {
  opacity: 0.85;
}

.footer-brand .logo img {
  height: 72px;
}

/* ---------- HEADER ---------- */
/* ============= TOP ANNOUNCEMENT BAR ============= */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: white;
  padding: 9px 0;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 12px rgba(0, 84, 166, 0.15);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-phone {
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s var(--ease);
  text-decoration: none;
}

.top-bar-phone:hover {
  opacity: 0.92;
}

.phone-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(168, 232, 200, 0.2);
  flex-shrink: 0;
}

.phone-icon {
  width: 14px;
  height: 14px;
  color: #A8E8C8;
  animation: phone-ring 2.5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes phone-ring {
  0%, 80%, 100% { transform: rotate(0); }
  85% { transform: rotate(-12deg); }
  90% { transform: rotate(12deg); }
  95% { transform: rotate(-8deg); }
}

.top-bar-label {
  opacity: 0.88;
  font-weight: 400;
}

.top-bar-number {
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.9375rem;
  color: white;
}

.top-bar-cta {
  font-style: italic;
  opacity: 0.7;
  font-size: 0.75rem;
}

.top-bar-divider {
  opacity: 0.3;
  font-weight: 700;
}

.top-bar-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
}

.top-bar-info svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 900px) {
  .top-bar-divider,
  .top-bar-info,
  .top-bar-cta {
    display: none;
  }
  .top-bar-label {
    display: none;
  }
  .top-bar {
    padding: 7px 0;
  }
  .top-bar-number {
    font-size: 0.9375rem;
  }
}

.site-header {
  position: fixed;
  top: 42px; /* Pushed down by top-bar height */
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 253, 251, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}

@media (max-width: 900px) {
  .site-header { top: 38px; }
}

.site-header.scrolled {
  background: rgba(253, 253, 251, 0.95);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link:hover { color: var(--blue); }
.nav-link.active { color: var(--blue); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: white;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-color);
}

/* ============= NAV SOCIALS (Shopee + TikTok in menu) ============= */
.nav-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
  margin-left: 4px;
  position: relative;
}

.nav-socials::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 24px;
  background: var(--line);
}

.nav-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.25s var(--ease);
  border: 1px solid var(--line);
  background: white;
}

.nav-social svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-social-shopee { color: #EE4D2D; }
.nav-social-shopee:hover {
  background: #EE4D2D;
  color: white;
  border-color: #EE4D2D;
  transform: translateY(-1px);
}

.nav-social-tiktok { color: #0E0E0E; }
.nav-social-tiktok:hover {
  background: #0E0E0E;
  color: white;
  border-color: #0E0E0E;
  transform: translateY(-1px);
}

.nav-social-messenger { color: #0084FF; }
.nav-social-messenger:hover {
  background: #0084FF;
  color: white;
  border-color: #0084FF;
  transform: translateY(-1px);
}

@media (max-width: 1200px) {
  .nav-social span { display: none; }
  .nav-social {
    padding: 0;
    width: 36px;
    height: 36px;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .nav-socials { display: none; }
}

.menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: 0.3s var(--ease);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: white;
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-color);
}

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

.btn-secondary:hover {
  background: var(--blue);
  color: white;
}

.btn-ghost {
  color: var(--text);
  padding: 14px 20px;
}

.btn-ghost:hover { color: var(--blue); }

.btn .arrow {
  transition: transform 0.3s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ---------- SECTION ---------- */
section {
  position: relative;
}

.section-pad {
  padding: 100px 0;
}

.section-pad-sm {
  padding: 60px 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 64px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header.center .eyebrow {
  justify-content: center;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-top: 20px;
  margin-bottom: 16px;
  font-weight: 400;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ---------- CARDS ---------- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: #0E2640;
  color: #D5DEE8;
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(51, 180, 74, 0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 60px;
  position: relative;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0625rem;
  color: #8FA3B8;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 360px;
}

.footer-col h4 {
  color: white;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

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

.footer-col a {
  font-size: 0.9375rem;
  color: #A5B5C8;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover { color: white; }

.footer-contact-item {
  margin-bottom: 16px;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-contact-item .label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}

.footer-socials a:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: #8B9DB3;
}

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

/* ---------- BACK TO TOP & FLOATING ---------- */
.float-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}

.float-btn:hover {
  transform: translateY(-4px) scale(1.05);
  background: var(--blue);
  color: white;
}

.float-btn.zalo {
  background: var(--blue);
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
}

.float-btn.zalo:hover {
  background: var(--blue-dark);
}

.float-btn.messenger {
  background: #0084FF;
  color: white;
}

.float-btn.messenger:hover {
  background: #0066CC;
}

.float-btn.phone-call {
  background: linear-gradient(135deg, #2ECC71, #27AE60);
  color: white;
  position: relative;
}

.float-btn.phone-call:hover {
  background: linear-gradient(135deg, #27AE60, #229954);
  color: white;
}

/* Pulsing ring animation for phone button - draws attention */
.float-btn.phone-call::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #2ECC71;
  animation: phone-pulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes phone-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.float-btn.shopee {
  background: #EE4D2D;
  color: white;
}

.float-btn.shopee:hover {
  background: #D63E20;
  color: white;
}

.float-btn.shopee svg {
  width: 26px;
  height: 26px;
}

.float-btn.tiktok {
  background: #0E0E0E;
  color: white;
}

.float-btn.tiktok:hover {
  background: #FE2C55;
  color: white;
}

.float-btn.tiktok svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 968px) {
  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease-out);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-cta {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .section-pad {
    padding: 60px 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============= ZALO QR MODAL ============= */
.zalo-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  padding: 20px;
}

.zalo-modal.open {
  opacity: 1;
  visibility: visible;
}

.zalo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 41, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.zalo-modal-content {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px 40px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s var(--ease-out);
  max-height: 92vh;
  overflow-y: auto;
}

.zalo-modal.open .zalo-modal-content {
  transform: scale(1) translateY(0);
}

.zalo-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--line-soft);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.2s var(--ease);
  z-index: 2;
}

.zalo-modal-close:hover {
  background: var(--ink);
  color: white;
  transform: rotate(90deg);
}

.zalo-modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #006AF5, #0054A6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 24px rgba(0, 106, 245, 0.3);
}

.zalo-modal-icon svg { width: 32px; height: 32px; }

.zalo-modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.zalo-modal-content > p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* QR container with corner decorations */
.zalo-qr-container {
  position: relative;
  display: inline-block;
  padding: 4px;
  margin-bottom: 28px;
}

.zalo-qr-frame {
  position: relative;
  background: white;
  padding: 16px;
  border-radius: 20px;
  border: 2px solid var(--blue-light);
  min-width: 292px;
  min-height: 292px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zalo-qr-frame canvas {
  display: none;
  border-radius: 8px;
}

.zalo-qr-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.qr-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Corner brackets around QR (decorative) */
.zalo-qr-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid var(--blue);
}

.zalo-qr-corner-tl { top: -4px; left: -4px; border-right: none; border-bottom: none; border-top-left-radius: 8px; }
.zalo-qr-corner-tr { top: -4px; right: -4px; border-left: none; border-bottom: none; border-top-right-radius: 8px; }
.zalo-qr-corner-bl { bottom: -4px; left: -4px; border-right: none; border-top: none; border-bottom-left-radius: 8px; }
.zalo-qr-corner-br { bottom: -4px; right: -4px; border-left: none; border-top: none; border-bottom-right-radius: 8px; }

.zalo-modal-info {
  background: var(--blue-mist);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.zalo-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text);
}

.zalo-info-row svg {
  color: var(--blue);
  flex-shrink: 0;
}

.zalo-info-row strong {
  color: var(--blue);
  font-weight: 700;
}

.zalo-modal-cta {
  width: 100%;
  justify-content: center;
}

@media (max-width: 480px) {
  .zalo-modal-content { padding: 40px 24px 28px; }
  .zalo-qr-frame { min-width: 260px; min-height: 260px; padding: 12px; }
}

/* QR image styles (replaces canvas approach) */
.zalo-qr-img {
  display: block;
  width: 260px;
  height: 260px;
  border-radius: 8px;
}

.zalo-qr-img-large {
  width: 260px;
  height: 260px;
}
