/* SIVAA — Reusable Components */

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 0.75rem 1.75rem; border-radius: var(--radius-full); font-family: var(--font-body);
  font-weight: 600; font-size: var(--text-sm); letter-spacing: 0.01em;
  transition: all var(--transition-base); cursor: pointer; white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  opacity: 0; transition: opacity var(--transition-fast);
  background: rgba(255,255,255,0.15);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--color-primary); color: var(--color-white);
  box-shadow: 0 4px 15px rgba(30,58,138,0.3);
}
.btn--primary:hover { background: var(--color-primary-dark); box-shadow: 0 6px 20px rgba(30,58,138,0.4); transform: translateY(-1px); }

.btn--secondary {
  background: var(--color-white); color: var(--color-primary);
  border: 2px solid var(--color-primary); box-shadow: var(--shadow-sm);
}
.btn--secondary:hover { background: var(--color-primary); color: var(--color-white); }

.btn--accent {
  background: var(--gradient-cta); color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(250,204,21,0.4); font-weight: 700;
}
.btn--accent:hover { box-shadow: 0 6px 25px rgba(250,204,21,0.5); transform: translateY(-2px); }

.btn--whatsapp {
  background: #25D366; color: var(--color-white);
  box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}
.btn--whatsapp:hover { background: #1fb855; transform: translateY(-1px); }

.btn--outline-white {
  background: transparent; color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn--outline-white:hover { background: var(--color-white); color: var(--color-primary); border-color: var(--color-white); }

.btn--sm { padding: 0.5rem 1.25rem; font-size: var(--text-xs); }
.btn--lg { padding: 1rem 2.25rem; font-size: var(--text-base); }
.btn--icon { width: 44px; height: 44px; padding: 0; border-radius: var(--radius-full); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--navbar-height);
  background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  z-index: var(--z-navbar); transition: all var(--transition-base);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97); border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.navbar__logo { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.navbar__logo-icon {
  width: 54px; height: 54px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
  transition: all var(--transition-base);
}
.navbar__logo-icon img {
  width: 100%; height: 100%; object-fit: contain;
}
.navbar__logo-text {
  font-family: 'Times New Roman', Times, serif;
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--color-primary);
  line-height: 1.1;
  letter-spacing: 0.02em;
  transition: all var(--transition-base);
}
.navbar__logo-sub {
  font-family: 'Times New Roman', Times, serif;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition-base);
}

.navbar__nav { display: flex; align-items: center; gap: var(--space-1); }
.navbar__link {
  padding: 0.5rem 1rem; font-size: var(--text-sm); font-weight: 500; color: var(--color-text);
  border-radius: var(--radius-md); transition: all var(--transition-fast); position: relative;
}
.navbar__link:hover, .navbar__link.active { color: var(--color-primary); background: var(--color-bg-alt); }
.navbar__link.active::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 3px; background: var(--color-accent-yellow); border-radius: var(--radius-full);
}
.navbar__cta { margin-left: var(--space-4); }

/* Hamburger */
.navbar__hamburger {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
  cursor: pointer; z-index: calc(var(--z-navbar) + 10);
}
.navbar__hamburger span {
  display: block; width: 24px; height: 2.5px; background: var(--color-text);
  border-radius: 2px; transition: all var(--transition-base);
}
.navbar__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar__hamburger.active span:nth-child(2) { opacity: 0; }
.navbar__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.navbar__mobile-overlay {
  display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.5);
  z-index: calc(var(--z-navbar) - 1); opacity: 0; transition: opacity var(--transition-base);
}
.navbar__mobile-overlay.active { display: block; opacity: 1; }

.navbar__mobile-menu {
  display: none; position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px;
  height: 100vh; background: var(--color-white); z-index: var(--z-navbar);
  padding: calc(var(--navbar-height) + var(--space-6)) var(--space-6) var(--space-6);
  flex-direction: column; gap: var(--space-2); transition: right var(--transition-slow), visibility var(--transition-slow);
  box-shadow: -10px 0 40px rgba(0,0,0,0.1); overflow-y: auto;
  visibility: hidden;
}
.navbar__mobile-menu.active { right: 0; visibility: visible; }
.navbar__mobile-link {
  display: block; padding: 0.875rem var(--space-4); font-size: var(--text-lg);
  font-weight: 500; color: var(--color-text); border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.navbar__mobile-link:hover, .navbar__mobile-link.active {
  background: var(--color-bg-alt); color: var(--color-primary);
}
.navbar__mobile-cta { margin-top: var(--space-4); width: 100%; text-align: center; }

@media (max-width: 900px) {
  .navbar__nav, .navbar__cta { display: none; }
  .navbar__hamburger { display: flex; }
  .navbar__mobile-menu { display: flex; }
}

@media (max-width: 600px) {
  .navbar__logo-icon {
    width: 44px;
    height: 44px;
  }
  .navbar__logo-text {
    font-size: var(--text-xl);
  }
  .navbar__logo-sub {
    font-size: var(--text-xs);
  }
  .card {
    padding: var(--space-4) !important;
  }
  .card__icon {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: var(--space-3) !important;
    font-size: 1.2rem !important;
  }
  .card__title {
    font-size: var(--text-base) !important;
    margin-bottom: var(--space-1) !important;
  }
  .card__text {
    font-size: var(--text-xs) !important;
    line-height: 1.5 !important;
  }
}

/* ===== CARDS ===== */
.card {
  background: var(--color-white); border-radius: var(--radius-xl); padding: var(--space-8);
  box-shadow: var(--shadow-card); transition: all var(--transition-base); position: relative;
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.card__icon {
  width: 60px; height: 60px; border-radius: var(--radius-lg); display: flex;
  align-items: center; justify-content: center; margin-bottom: var(--space-5);
  background: var(--gradient-blue-soft); color: var(--color-primary);
  transition: all var(--transition-base);
}
.card:hover .card__icon { background: var(--color-primary); color: var(--color-white); transform: scale(1.05); }
.card__icon svg { width: 28px; height: 28px; }
.card__title { font-size: var(--text-xl); margin-bottom: var(--space-3); color: var(--color-primary); }
.card__text { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; }
.card__accent-line {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient-cta); transform: scaleX(0); transition: transform var(--transition-base);
  transform-origin: left;
}
.card:hover .card__accent-line { transform: scaleX(1); }

/* ===== FOOTER ===== */
.footer { background: var(--gradient-footer); color: rgba(255,255,255,0.8); padding: var(--space-16) 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-10); }
.footer__brand-name { font-family: var(--font-heading); font-size: var(--text-2xl); color: var(--color-white); margin-bottom: var(--space-3); }
.footer__brand-desc { font-size: var(--text-sm); line-height: 1.8; color: rgba(255,255,255,0.6); margin-bottom: var(--space-6); }
.footer__heading { font-family: var(--font-heading); font-size: var(--text-lg); color: var(--color-white); margin-bottom: var(--space-6); position: relative; padding-bottom: var(--space-3); }
.footer__heading::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 3px; background: var(--color-accent-yellow); border-radius: var(--radius-full); }
.footer__links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__link { font-size: var(--text-sm); color: rgba(255,255,255,0.6); transition: all var(--transition-fast); }
.footer__link:hover { color: var(--color-accent-yellow); transform: translateX(4px); }
.footer__contact-item { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-sm); margin-bottom: var(--space-4); color: rgba(255,255,255,0.6); }
.footer__contact-item svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--color-accent-yellow); }
.footer__socials { display: flex; gap: var(--space-3); margin-top: var(--space-6); }
.footer__social-link {
  width: 40px; height: 40px; border-radius: var(--radius-full); border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; transition: all var(--transition-base);
  color: rgba(255,255,255,0.6);
}
.footer__social-link:hover { background: var(--color-primary-light); border-color: var(--color-primary-light); color: white; transform: translateY(-2px); }
.footer__social-link svg { width: 18px; height: 18px; }
.footer__bottom {
  margin-top: var(--space-12); padding: var(--space-6) 0; border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; font-size: var(--text-xs); color: rgba(255,255,255,0.4);
}

@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; } }

/* ===== STICKY MOBILE CTA ===== */
.mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--color-white); padding: var(--space-3) var(--space-4);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1); z-index: var(--z-sticky);
  gap: var(--space-3); border-top: 1px solid var(--color-border);
}
.mobile-cta .btn { flex: 1; padding: 0.75rem; font-size: var(--text-sm); }
@media (max-width: 768px) { .mobile-cta { display: flex; } }

/* ===== FORMS ===== */
.form-group { margin-bottom: var(--space-5); }
.form-label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--color-text); margin-bottom: var(--space-2); font-family: var(--font-alt); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.875rem 1rem; border: 2px solid var(--color-border);
  border-radius: var(--radius-md); font-size: var(--text-base); background: var(--color-white);
  transition: all var(--transition-fast); color: var(--color-text);
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(56,189,248,0.15); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-input::placeholder { color: var(--color-text-light); }
.form-hint { font-size: var(--text-xs); color: var(--color-text-light); margin-top: var(--space-1); }
.form-error { font-size: var(--text-xs); color: #EF4444; margin-top: var(--space-1); display: none; }
.form-group.error .form-input { border-color: #EF4444; }
.form-group.error .form-error { display: block; }

/* ===== STARS ===== */
.stars { display: flex; gap: 2px; color: var(--color-accent-yellow); }
.stars svg { width: 16px; height: 16px; fill: currentColor; }

/* ===== TOP CONTACT BAR ===== */
.top-contact-bar {
  background: #0F172A;
  color: rgba(255,255,255,0.85);
  font-size: var(--text-xs);
  font-family: var(--font-alt);
  height: 38px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-navbar) + 1);
}
.top-contact-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.top-contact-bar__left {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.top-contact-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.8);
  transition: color var(--transition-fast);
}
.top-contact-bar__item:hover {
  color: var(--color-accent-yellow);
}
.top-contact-bar__item a {
  color: inherit;
}
.top-contact-bar__right .btn--whatsapp-sm {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.3rem 0.85rem;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.top-contact-bar__right .btn--whatsapp-sm:hover {
  background: #1fb855;
  transform: translateY(-1px);
}

/* Offset navbar for contact bar */
.navbar { top: 38px; }
body { padding-top: calc(var(--navbar-height) + 38px); }

@media (max-width: 768px) {
  .top-contact-bar { height: 32px; }
  .top-contact-bar__left { gap: var(--space-3); }
  .top-contact-bar__item--email { display: none; }
  .navbar { top: 32px; }
  body { padding-top: calc(var(--navbar-height) + 32px); padding-bottom: 70px; }
}
@media (max-width: 480px) {
  .top-contact-bar__left { gap: var(--space-2); }
  .top-contact-bar__right .btn--whatsapp-sm span.hide-xs { display: none; }
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition-base);
  text-decoration: none;
}
.floating-whatsapp:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}
.floating-whatsapp svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}
/* Pulse animation */
.floating-whatsapp::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: whatsapp-pulse 2s ease-in-out infinite;
}
@keyframes whatsapp-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0; }
}

@media (max-width: 768px) {
  .floating-whatsapp { bottom: 80px; right: 16px; width: 50px; height: 50px; }
  .floating-whatsapp svg { width: 24px; height: 24px; }
}

/* ===== INNER PAGES HERO ===== */
.about-hero {
  background: var(--gradient-hero);
  color: var(--color-white);
  padding: calc(var(--navbar-height) + var(--space-12)) 0 var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-hero__title {
  color: var(--color-white);
  font-size: var(--text-5xl);
  margin-bottom: var(--space-3);
}
.about-hero__desc {
  font-family: var(--font-alt);
  font-size: var(--text-lg);
  color: var(--color-white); /* Fix contrast/visibility issue */
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--gradient-hero);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.cta-section__shape {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.cta-section__shape--1 {
  top: -100px;
  right: -50px;
}

.cta-section__shape--2 {
  bottom: -120px;
  left: -80px;
  width: 350px;
  height: 350px;
}

.cta-section__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.cta-section__title {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-section__text {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-lg);
  font-family: var(--font-alt);
  margin-bottom: var(--space-8);
}

.cta-section__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

@media (max-width: 600px) {
  .cta-section__buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== SITE LOADER ===== */
html.bypass-loader body.loading-state,
body.bypass-loader.loading-state {
  overflow: visible !important;
}
html.bypass-loader .site-loader,
.bypass-loader .site-loader {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.loading-state {
  overflow: hidden;
}

.site-loader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 400ms ease, visibility 400ms ease;
  overflow: hidden;
}

.site-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 400px;
  padding: var(--space-6);
}

.site-loader__tree-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-loader__tree-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: bottom center;
  animation: tree-grow 3.2s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

/* Jiggling Letters */
.site-loader__text {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.site-loader__letter {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-primary);
  display: inline-block;
  animation: letter-bounce 1.5s ease-in-out infinite;
  animation-delay: var(--d);
}

.site-loader__tagline {
  font-family: var(--font-alt);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* KEYFRAMES */
@keyframes tree-grow {
  0% { transform: scale(0) translateY(20px); opacity: 0; }
  10% { transform: scale(0) translateY(20px); opacity: 0; }
  35% { transform: scale(1.08) translateY(-2px); opacity: 1; }
  45% { transform: scale(0.97) translateY(0); }
  55%, 85% { transform: scale(1) translateY(0); opacity: 1; }
  92%, 100% { transform: scale(0) translateY(-10px); opacity: 0; }
}

@keyframes letter-bounce {
  0%, 100% { transform: translateY(0); color: var(--color-primary); }
  25% { transform: translateY(-10px); color: var(--color-primary-light); }
  50% { transform: translateY(0); color: var(--color-secondary-dark); }
  75% { transform: translateY(-4px); color: var(--color-accent-yellow-dark); }
}

/* Responsive Mobile Scaling for Loading Screen */
@media (max-width: 767px) {
  .site-loader__tree-wrapper {
    width: 190px;
    height: 190px;
    margin-bottom: var(--space-8);
  }
  .site-loader__letter {
    font-size: var(--text-5xl);
  }
  .site-loader__tagline {
    font-size: var(--text-base);
  }
}
