/* Site chrome: the fixed header, its mobile drawer, the side texture, footer. */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-height);
  background: hsl(var(--card) / 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.site-header__logo img {
  height: 2.5rem;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: var(--text-sm);
  font-weight: 500;
}

.site-nav a {
  position: relative;
  padding-block: 0.25rem;
  transition: color var(--duration-fast);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: hsl(var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.site-nav a:hover {
  color: hsl(var(--primary));
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-header__cta .btn {
  padding: 0.5rem 0.85rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.25rem;
}

.nav-toggle .icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile drawer — hidden entirely on desktop so it never traps focus there. */
.mobile-nav {
  position: fixed;
  inset: var(--header-height) 0 auto 0;
  z-index: 45;
  display: none;
  flex-direction: column;
  padding: 1rem;
  gap: 0.25rem;
  background: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-lg);
}

.mobile-nav[data-open="true"] {
  display: flex;
}

.mobile-nav a {
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.mobile-nav a:hover {
  background: hsl(var(--muted));
  color: hsl(var(--primary));
}

.mobile-nav .btn {
  margin-top: 0.5rem;
}

@media (max-width: 60rem) {
  .site-nav,
  .site-header__cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

/* Decorative texture pinned to the left edge, behind everything. */
.side-texture {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 220px;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}

.side-texture img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: right;
}

@media (min-width: 48rem) {
  .side-texture {
    width: 320px;
  }
}

main {
  position: relative;
  z-index: 1;
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  background: hsl(var(--foreground));
  color: hsl(var(--primary-foreground) / 0.7);
  padding-block: 2.5rem;
  position: relative;
  z-index: 1;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}

.site-footer img {
  height: 2rem;
  width: auto;
  filter: brightness(2);
}

.site-footer p {
  font-size: var(--text-sm);
}

@media (min-width: 48rem) {
  .site-footer__inner {
    flex-direction: row;
    text-align: left;
  }
}

/* --- Floating WhatsApp -------------------------------------------------- */

.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  box-shadow: var(--shadow-lg);
  transition:
    transform var(--duration-normal) var(--ease-out-expo),
    background-color var(--duration-fast);
}

.whatsapp-fab:hover {
  background: hsl(var(--secondary) / 0.9);
  transform: scale(1.08);
}

.whatsapp-fab .icon {
  width: 1.6rem;
  height: 1.6rem;
}

@media (min-width: 60rem) {
  .whatsapp-fab {
    display: none;
  }
}
