/* ============================================
   ZAKTOMATE — Global Components
   Nav, Buttons, Cards, Footer, WhatsApp Float
   ============================================ */

/* --- Scroll Progress Bar --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 1001;
  width: 0%;
  transition: width 0.1s linear;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding-top:18px; padding-bottom:18px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, padding 0.3s ease;
  z-index: 900;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  padding-top:12px; padding-bottom:12px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

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

.nav-link {
  font-family: 'Syne', sans-serif;
  font-size: var(--type-nav);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
  padding-top:4px; padding-bottom:4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  width: 100%;
}

/* --- Mobile Nav --- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--text-primary);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--text-primary);
}

.nav-mobile-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 360px;
  background: var(--bg-mid);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 100px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--border);
}

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

.nav-mobile-overlay .nav-link {
  font-size: 18px;
  font-weight: 600;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  display: block;
}

.nav-mobile-overlay .nav-link::after {
  display: none;
}

.nav-mobile-overlay .btn-primary {
  margin-top: 32px;
  width: 100%;
  justify-content: center;
}

.nav-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav-overlay-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  background: var(--accent);
  color: white;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-primary:active {
  transform: translateY(0px);
}

.btn-primary .icon-arrow {
  transition: transform 0.2s ease;
  font-size: 16px;
}

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

/* Inverted button for teal section */
.btn-primary--inverted {
  background: white;
  color: var(--text-dark);
}

.btn-primary--inverted:hover {
  background: #e8e8e8;
  box-shadow: 0 0 28px rgba(255,255,255,0.20);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 29px;
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--r-pill);
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.btn-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- Icon Container --- */
.icon-container {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(46, 204, 143, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 24px;
}

.icon-container--sm {
  width: 42px;
  height: 42px;
  min-width: 42px;
  font-size: 20px;
  border-radius: 12px;
}

.icon-container--lg {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
}

.card-hover {
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card-hover:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.card--light {
  background: white;
  border-color: var(--border-light);
}

/* --- Glassmorphism Card --- */
.glass-card {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
}

/* --- Tags / Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.badge--accent {
  background: var(--accent);
  color: white;
}

.badge--accent-dim {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(46, 204, 143, 0.20);
}

.badge--result {
  background: var(--accent-dim);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge--included {
  background: var(--accent-dim);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 10px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --- Authority Chips --- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-secondary);
}

.chip i {
  color: var(--accent);
  font-size: 14px;
}

/* --- Check/X Lists --- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.check-list li i {
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.symptom-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.symptom-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.symptom-list li i {
  font-size: 16px;
  color: var(--error-red);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Insight Box --- */
.insight-box {
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 16px 20px;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  color: var(--accent);
  font-style: italic;
  line-height: 1.6;
}

/* --- Pull Quote --- */
.pull-quote {
  background: var(--bg-dark);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 20px 24px;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
}

.section-light .pull-quote {
  background: rgba(46,204,143,0.06);
  border-left: 3px solid var(--accent);
  color: #333;
}

/* --- Decorative quote mark --- */
.deco-quote {
  position: absolute;
  top: -10px;
  left: 16px;
  font-family: 'Instrument Serif', serif;
  font-size: 160px;
  color: rgba(46,204,143,0.06);
  pointer-events: none;
  line-height: 1;
  z-index: 0;
  user-select: none;
}

/* --- Star Rating --- */
.stars {
  display: flex;
  gap: 2px;
  color: var(--accent);
  font-size: 14px;
}

/* --- WhatsApp Float Button --- */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wa-float.show {
  opacity: 1;
  transform: scale(1);
}

.wa-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa-green);
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  animation: wa-pulse 3s ease-out infinite;
  transition: transform 0.2s ease;
}

.wa-float a:hover {
  transform: scale(1.08);
}

.wa-float a svg {
  width: 28px;
  height: 28px;
  fill: white;
}

@keyframes wa-pulse {
  0%   { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.3); }
  70%  { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0); }
}

/* --- Footer --- */
.footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand img {
  height: 28px;
  width: auto;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 18px;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top:24px; padding-bottom:24px;
  font-size: 13px;
  color: var(--text-muted);
}

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

.footer-bottom-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

/* --- Section divider with centered text --- */
.divider-text {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 48px 0;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider-text span {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

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

  .nav-hamburger {
    display: flex;
  }

  .divider-text span {
    white-space: normal;
    text-align: center;
    padding: 0 8px;
  }

  .btn-primary {
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  .nav-inner .btn-primary {
    display: none;
  }

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

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

  .btn-row {
    flex-direction: column;
    width: 100%;
  }

  .btn-row .btn-primary,
  .btn-row .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .wa-float {
    bottom: 20px;
    right: 20px;
  }
}

/* Crossfade Team Photo Slider */
.team-photo-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-image);
}
@media (min-width: 900px) {
  .team-photo-slider {
    aspect-ratio: 1/1;
  }
}
.team-photo-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.team-photo-slider img.active {
  opacity: 1;
  z-index: 2;
}
