/* Solina Signature - Component Styles */

/* 1. STICKY HEADER & NAV */
header.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 24, 39, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
  width: 100%;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 12px;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

/* Nav Menu: Exactly 1 single line on desktop */
.nav-wrapper {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-ivory-muted);
  white-space: nowrap;
  padding: 6px 2px;
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--c-champagne);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Nút Gọi trên Header */
.btn-call-header {
  background: rgba(217, 183, 122, 0.15);
  border: 1px solid var(--c-champagne);
  color: var(--c-champagne);
  padding: 7px 15px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.btn-call-header:hover {
  background: var(--c-champagne-gradient);
  color: var(--c-deep-navy);
  border-color: transparent;
  transform: translateY(-1px);
}

.header-cta .btn-champagne {
  padding: 7px 16px;
  font-size: 0.86rem;
  white-space: nowrap;
}

@media (max-width: 1200px) and (min-width: 993px) {
  .nav-menu {
    gap: 8px;
  }
  .nav-link {
    font-size: 0.82rem;
    padding: 4px 1px;
  }
  .brand-logo img {
    height: 32px;
  }
  .btn-call-header {
    padding: 6px 10px;
    font-size: 0.82rem;
  }
  .header-cta .btn-champagne {
    padding: 6px 12px;
    font-size: 0.82rem;
  }
}

/* Thanh Subnav cuộn ngang trên di động */
.mobile-nav-bar {
  display: none;
}

@media (max-width: 992px) {
  .nav-wrapper {
    display: none;
  }
  .mobile-nav-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 14px;
    background: rgba(5, 18, 30, 0.98);
    border-top: 1px solid var(--border-subtle);
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
  }
  .mobile-nav-bar::-webkit-scrollbar {
    display: none;
  }
  .mobile-nav-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--c-ivory-muted);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition-smooth);
  }
  .mobile-nav-link.active, .mobile-nav-link:hover {
    color: var(--c-champagne);
    background: rgba(217, 183, 122, 0.15);
    border-color: var(--border-gold);
  }
  .brand-logo img {
    height: 32px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 8px 12px;
  }
  .brand-logo img {
    height: 28px;
  }
  .btn-call-header {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  .header-cta .btn-champagne {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* 2. METRIC BADGE GRID */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
  width: 100%;
}

.metric-card {
  background: var(--c-navy-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  transition: var(--transition-smooth);
  box-sizing: border-box;
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-card);
}

.metric-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-champagne);
  line-height: 1.1;
  margin-bottom: 6px;
}

.metric-label {
  font-size: 0.84rem;
  color: var(--c-ivory-muted);
  font-weight: 500;
}

@media (max-width: 992px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .metric-card {
    padding: 14px 8px;
  }
  .metric-num {
    font-size: 1.55rem;
  }
  .metric-label {
    font-size: 0.78rem;
  }
}

/* 3. TABS CONTAINER */
.tabs-container {
  margin-top: 24px;
  width: 100%;
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
  width: 100%;
}

.tab-btn {
  background: var(--c-navy-surface);
  border: 1px solid var(--border-subtle);
  color: var(--c-ivory-muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-sizing: border-box;
}

.tab-btn:hover {
  border-color: var(--border-gold);
  color: var(--c-champagne);
}

.tab-btn.active {
  background: var(--c-champagne-gradient);
  color: var(--c-deep-navy);
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.35s ease forwards;
}

.tab-pane.active {
  display: block;
}

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

/* 4. DUAL CALCULATOR COMPONENT */
.calc-wrapper {
  background: var(--c-navy-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  width: 100%;
  box-sizing: border-box;
}

.calc-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.calc-tab-btn {
  background: var(--c-deep-navy);
  color: var(--c-ivory-muted);
  border: 1px solid var(--border-subtle);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.calc-tab-btn.active {
  background: var(--c-ocean-teal);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-teal);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  width: 100%;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-ivory-muted);
  flex-wrap: wrap;
  gap: 4px;
}

.calc-value-badge {
  color: var(--c-champagne);
  font-weight: 700;
}

.calc-range {
  width: 100%;
  accent-color: var(--c-champagne);
  height: 6px;
  border-radius: 3px;
  cursor: pointer;
}

.calc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.calc-chip {
  background: var(--c-deep-navy);
  border: 1px solid var(--border-subtle);
  color: var(--c-ivory-muted);
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.calc-chip:hover, .calc-chip.active {
  border-color: var(--border-gold);
  color: var(--c-champagne);
  background: rgba(217, 183, 122, 0.1);
}

.calc-results {
  background: var(--c-deep-navy);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.res-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 0.88rem;
  gap: 10px;
}

.res-row:last-of-type {
  border-bottom: none;
}

.res-label {
  color: var(--c-ivory-muted);
}

.res-val {
  font-weight: 700;
  color: var(--c-ivory);
  text-align: right;
}

.res-highlight {
  margin: 14px 0;
  padding: 14px;
  background: rgba(217, 183, 122, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  text-align: center;
}

.res-highlight-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--c-champagne);
  margin-top: 4px;
  word-break: break-word;
}

@media (max-width: 992px) {
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .calc-wrapper {
    padding: 20px 14px;
  }
}

/* 5. ACCORDION FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.faq-item {
  background: var(--c-navy-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

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

.faq-question {
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--c-ivory);
  user-select: none;
}

.faq-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(217, 183, 122, 0.12);
  color: var(--c-champagne);
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--c-champagne);
  color: var(--c-deep-navy);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 18px;
  color: var(--c-ivory-muted);
  line-height: 1.65;
  font-size: 0.94rem;
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 0 18px 18px 18px;
}

/* 6. LIGHTBOX & VIDEO MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 14, 24, 0.94);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-close-btn {
  position: absolute;
  top: -42px;
  right: 0;
  background: none;
  border: none;
  color: var(--c-ivory);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.modal-close-btn:hover {
  color: var(--c-champagne);
}

.modal-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.modal-caption {
  margin-top: 12px;
  color: var(--c-ivory);
  font-size: 0.95rem;
  text-align: center;
}

.modal-video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}
.modal-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 7. LEAD CONSULT FORM */
.lead-form-card {
  background: var(--c-navy-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-card);
  width: 100%;
  box-sizing: border-box;
}

.unit-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 20px 0;
}

.unit-pill {
  background: var(--c-deep-navy);
  border: 1px solid var(--border-subtle);
  color: var(--c-ivory-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.unit-pill:hover, .unit-pill.active {
  border-color: var(--border-gold);
  color: var(--c-champagne);
  background: rgba(217, 183, 122, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-input {
  background: var(--c-deep-navy);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--c-ivory);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition-smooth);
  width: 100%;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--c-champagne);
  box-shadow: 0 0 0 3px rgba(217, 183, 122, 0.15);
}

@media (max-width: 768px) {
  .lead-form-card {
    padding: 22px 14px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* 8. STICKY MOBILE BOTTOM BAR */
.sticky-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  background: rgba(7, 24, 39, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-gold);
  padding: 8px 12px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.mobile-bar-inner {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.mobile-btn {
  flex: 1;
  padding: 11px 8px;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .sticky-mobile-bar {
    display: block;
  }
}

/* 9. FOOTER */
footer.site-footer {
  background: #04101c;
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 28px 0;
  color: var(--c-ivory-dim);
  font-size: 0.9rem;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 36px;
  width: 100%;
}

.footer-brand img {
  height: 44px;
  margin-bottom: 14px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

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