@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #fdf8f0;
  color: #331a0c;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Hamburger animation */
.hamburger span {
  transition: all 0.3s ease;
  display: block;
  width: 24px;
  height: 2px;
  background: #331a0c;
  margin: 5px 0;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero parallax grain overlay */
.hero-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Steam animation */
@keyframes steam {
  0% {
    transform: translateY(0) scaleX(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) scaleX(1.2);
    opacity: 0.3;
  }
  100% {
    transform: translateY(-40px) scaleX(0.8);
    opacity: 0;
  }
}

.steam-line {
  animation: steam 2.5s ease-in-out infinite;
}
.steam-line:nth-child(2) {
  animation-delay: 0.5s;
}
.steam-line:nth-child(3) {
  animation-delay: 1s;
}

/* Card hover */
.service-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(51, 26, 12, 0.12);
}

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

.fade-in-up:nth-child(1) {
  animation-delay: 0.1s;
}
.fade-in-up:nth-child(2) {
  animation-delay: 0.25s;
}
.fade-in-up:nth-child(3) {
  animation-delay: 0.4s;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Button pulse */
@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(192, 124, 42, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(192, 124, 42, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(192, 124, 42, 0);
  }
}

.btn-pulse:hover {
  animation: pulse-ring 1.5s infinite;
}

/* Input focus ring */
input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(192, 124, 42, 0.25);
  border-color: #c07c2a;
}

/* Scroll indicator */
@keyframes bounce-down {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

.scroll-indicator {
  animation: bounce-down 2s ease-in-out infinite;
}

/* Nav link underline */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #c07c2a;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}
