/* ============================================================
   Prajco — Layout System (Volume 2 Architecture)
   Header / Footer / Navigation / Scroll Effects
   ============================================================ */

/* ---- Scroll Progress Bar ---- */
.scroll-progress {
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width 0.1s ease-out;
  z-index: 1001;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(11, 15, 26, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--color-white);
}

.main-nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  transition: var(--transition-smooth);
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--color-primary-light);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.9rem;
}

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition-smooth);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  background: rgba(11, 15, 26, 0.97);
  backdrop-filter: blur(16px);
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.mobile-menu.open {
  max-height: 500px;
  padding: 20px 24px 28px;
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-actions .btn-primary.btn-sm { display: none; }
}

@media (min-width: 901px) {
  .mobile-menu { display: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #080B14;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 80px 0 0;
  margin-top: 120px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 60px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 18px;
  color: var(--color-white);
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  margin-bottom: 12px;
  transition: var(--transition-smooth);
}

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

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

.footer-brand .logo-text {
  font-size: 1.45rem;
}

.footer-tagline {
  margin: 16px 0 20px;
  font-size: 0.9rem;
  max-width: 260px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--color-glass-white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

.footer-hours {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: var(--radius-input);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

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

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .logo-img { height: 34px; }
  .logo-text { font-size: 1.05rem; }
}

/* ============================================================
   WHATSAPP FLOAT + BACK TO TOP
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  height: 56px;
  min-width: 56px;
  border-radius: 999px;
  background: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
  z-index: 999;
  overflow: hidden;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.whatsapp-float .wa-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-float .wa-text {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
}

.whatsapp-float:hover {
  transform: scale(1.04);
  padding-right: 20px;
}

.whatsapp-float:hover .wa-text {
  max-width: 220px;
  opacity: 1;
}

.whatsapp-float:hover .wa-icon {
  width: 46px;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 90px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  color: var(--color-white);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 560px) {
  .whatsapp-float { bottom: 16px; right: 16px; height: 50px; min-width: 50px; }
  .whatsapp-float .wa-icon { width: 50px; }
  .back-to-top { bottom: 16px; right: 70px; width: 40px; height: 40px; }
}

/* ============================================================
   SECTION REVEAL (scroll animation utility)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
