*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

/* ─── Thin Dividers ─── */
.divider.thin-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 45, 59, 0.15), transparent);
  margin: 0;
}

/* ─── Navigation ─── */
#navbar {
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
  background-color: rgba(123, 45, 59, 0.97);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-logo {
  transition: color 0.3s ease;
}

.nav-menu-btn {
  color: white;
  transition: opacity 0.3s ease;
}

.nav-menu-btn:hover {
  opacity: 0.7;
}

/* ─── Hero ─── */
.hero-img {
  transition: transform 8s ease;
}

.hero-img.active {
  transform: scale(1.05);
}

.hero-overlay {
  background-image: linear-gradient(
    to bottom,
    rgba(51, 20, 25, 0.5) 0%,
    rgba(51, 20, 25, 0.35) 40%,
    rgba(51, 20, 25, 0.5) 70%,
    rgba(51, 20, 25, 0.85) 100%
  );
}

.hero-headline {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.hero-subtitle {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.hero-desc {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

.hero-ctas {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Scroll Indicator ─── */
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ─── Buttons ─── */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: #7B2D3B;
  padding: 14px 32px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.cta-primary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: #62232f;
  transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.cta-primary:hover {
  color: white;
}

.cta-primary:hover::after {
  height: 100%;
}

.cta-primary svg {
  transition: transform 0.3s ease;
}

.cta-primary:hover svg {
  transform: translateX(3px);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: white;
  padding: 14px 32px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.cta-secondary svg {
  transition: transform 0.3s ease;
}

.cta-secondary:hover svg {
  transform: translateY(3px);
}

/* ─── Service Cards ─── */
.service-card {
  padding: 0 0 0 0;
  border-top: 1px solid rgba(123, 45, 59, 0.1);
  padding-top: 24px;
  transition: border-color 0.4s ease, transform 0.4s ease;
}

.service-card:hover {
  border-color: rgba(123, 45, 59, 0.3);
  transform: translateY(-4px);
}

.service-card h3 {
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: #7B2D3B;
}

/* ─── Gallery ─── */
.gallery-item {
  overflow: hidden;
}

.gallery-item img {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── CTA Section ─── */
.cta-bg {
  transition: transform 10s ease;
}

.cta-bg.active {
  transform: scale(1.03);
}

/* ─── Contact Info ─── */
.contact-info-item {
  transition: transform 0.3s ease;
}

.contact-info-item:hover {
  transform: translateX(6px);
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-headline, .hero-subtitle, .hero-desc, .hero-ctas {
    opacity: 1; transform: none; animation: none;
  }
}

/* ─── Mobile Menu ─── */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  transition: opacity 0.3s ease;
}

.mobile-link:hover {
  opacity: 1;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero-headline br { display: none; }
}
