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

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

body {
  overflow-x: hidden;
}

::selection {
  background: #db4e28;
  color: #fff;
}

/* ─── NAV ─── */
.nav {
  background: rgba(250, 246, 240, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow 0.4s ease, background 0.4s ease;
}

.nav.scrolled {
  background: rgba(250, 246, 240, 0.96);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: #db4e28;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* mobile menu */
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.menu-line {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuToggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#menuToggle.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#menuToggle.active .menu-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, #FAF6F0 0%, #fdf0eb 50%, #f9ddd3 100%);
  min-height: 100vh;
  position: relative;
}

.hero-bg-circle {
  background: radial-gradient(circle, #db4e28 0%, transparent 70%);
}

.hero-float-1 {
  animation: heroFloat1 8s ease-in-out infinite;
}

.hero-float-2 {
  animation: heroFloat2 10s ease-in-out infinite;
}

@keyframes heroFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 20px) scale(1.05); }
}

@keyframes heroFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, -15px) scale(1.03); }
}

.hero-accent {
  animation: accentPulse 4s ease-in-out infinite;
}

@keyframes accentPulse {
  0%, 100% { opacity: 0.3; height: 160px; }
  50% { opacity: 0.6; height: 200px; }
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-accent {
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-image-accent {
  transform: translate(8px, -8px);
}

.hero-float-card {
  animation: floatCard 5s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* hero text animations */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

.hero-eyebrow { transition-delay: 0.1s; }
.hero-headline { transition-delay: 0.2s; }
.hero-subtitle { transition-delay: 0.35s; }
.hero-cta { transition-delay: 0.5s; }

/* scroll indicator */
.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ─── BUTTONS ─── */
.btn-primary {
  box-shadow: 0 4px 20px rgba(219, 78, 40, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(219, 78, 40, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.btn-cta-phone {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-cta-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-cta-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}

/* ─── SECTION HEADERS ─── */
.section-eyebrow {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-title, .section-subtitle {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-eyebrow.in-view,
.section-title.in-view,
.section-subtitle.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ─── SERVICE CARDS ─── */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, background 0.4s ease, box-shadow 0.4s ease;
}

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

/* ─── GALLERY ─── */
.gallery-item {
  overflow: hidden;
  cursor: pointer;
}

.gallery-img {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,38,34,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ─── TESTIMONIALS ─── */
.testimonial-card {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease;
}

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

/* ─── INPUTS ─── */
.input-field {
  font-family: 'Lato', sans-serif;
}

.input-field:focus {
  border-color: #db4e28;
}

/* ─── FORM SUCCESS ─── */
.success-message {
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 767px) {
  .hero-headline {
    font-size: 2.75rem !important;
  }
  .hero-headline br { display: none; }
  .hero-subtitle { font-size: 1rem; }
  .hero-img { height: 400px !important; }
  .hero-float-card { display: none; }
  .hero-bg-circle { display: none; }
  .hero-accent { display: none; }
  .section-title { font-size: 2.5rem !important; }
  .about-image-grid { gap: 8px; }
  .about-image-grid img { height: 200px !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-img { height: 500px !important; }
}

@media (min-width: 1024px) {
  .hero-headline { font-size: 5.5rem !important; }
}

@media (min-width: 1280px) {
  .hero-headline { font-size: 6.5rem !important; }
}
