/* ===========================
   Health Alignment — Styles
   =========================== */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background-color: #C4725A;
  color: #FAF6F1;
}

/* ---- Navbar ---- */
#navbar {
  background: transparent;
}
#navbar.scrolled {
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(61, 46, 36, 0.06);
}

/* ---- Hamburger Animation ---- */
.menu-open .hamburger-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.menu-open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}
.menu-open .hamburger-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---- Reveal Animations ---- */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Gallery Items ---- */
.gallery-item {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-item:hover {
  transform: scale(1.02);
}

/* ---- Hero Image Grid ---- */
.hero-image-grid {
  position: relative;
}

/* ---- Form Styling ---- */
input:focus, textarea:focus, select:focus {
  border-color: #C4725A;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239E9489'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 1.25rem;
}

/* ---- Decorative Line for Section Headers ---- */
.section-line::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background-color: #C4725A;
  margin-top: 1rem;
}

/* ---- Subtle Grain Texture ---- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #FAF6F1;
}
::-webkit-scrollbar-thumb {
  background: #C4725A;
  border-radius: 3px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.75rem;
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 2.25rem;
  }
}
