/* ===== Base & Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #FBE8DF;
  color: #8A3E26;
}

/* ===== Navbar ===== */
.nav-fixed {
  background: rgba(253, 252, 250, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(228, 213, 190, 0.5);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.nav-fixed.scrolled {
  background: rgba(253, 252, 250, 0.95);
  box-shadow: 0 4px 20px rgba(110, 49, 33, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #C0603A;
  border-radius: 9999px;
  transition: all 0.2s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 60%;
}

/* Mobile Menu */
.mobile-menu {
  animation: slideDown 0.3s ease forwards;
}

.mobile-menu.hidden {
  animation: slideUp 0.2s ease forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

.mobile-nav-link {
  display: block;
}

/* ===== Hero Section ===== */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: #FBE8DF;
  top: 10%;
  right: -5%;
  animation-delay: 0s;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: #FFF9EC;
  bottom: 10%;
  left: -5%;
  animation-delay: -3s;
}

.blob-3 {
  width: 200px;
  height: 200px;
  background: #F6CCBB;
  top: 50%;
  left: 40%;
  animation-delay: -5s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Hero Content Animation */
.hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.6s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }
.hero-content > *:nth-child(6) { animation-delay: 0.6s; }

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

.hero-image-wrap > * {
  opacity: 0;
  transform: translateX(30px);
  animation: heroSlideRight 0.7s ease forwards;
  animation-delay: 0.3s;
}

@keyframes heroSlideRight {
  to { opacity: 1; transform: translateX(0); }
}

/* Floating Cards */
.floating-card {
  position: absolute;
  z-index: 10;
}

.card-float-1 {
  top: 10%;
  right: -20px;
  animation: float1 4s ease-in-out infinite;
}

.card-float-2 {
  bottom: 15%;
  left: -20px;
  animation: float2 5s ease-in-out infinite;
}

.card-float-3 {
  top: 50%;
  right: -30px;
  animation: float3 4.5s ease-in-out infinite;
}

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

@keyframes float2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

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

/* ===== Buttons ===== */
.cta-primary {
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.cta-primary:hover::before {
  left: 100%;
}

.cta-secondary {
  position: relative;
  overflow: hidden;
}

.cta-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(192,96,58,0.05), transparent);
  transition: left 0.5s ease;
}

.cta-secondary:hover::before {
  left: 100%;
}

/* ===== Section Tags ===== */
.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== Service Cards ===== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #C0603A, #E87854);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover::after {
  transform: scaleX(1);
}

/* ===== Reason Cards ===== */
.reason-card {
  position: relative;
  overflow: hidden;
}

.reason-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #C0603A, #E87854);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.reason-card:hover::before {
  transform: scaleX(1);
}

/* ===== Contact Info Cards ===== */
.contact-info-card {
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #C0603A, #E87854);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-info-card:hover::before {
  opacity: 1;
}

/* ===== Form Styles ===== */
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #6B4D37;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #E8D5BE;
  border-radius: 16px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #57402F;
  background: #FDFCFA;
  transition: all 0.2s ease;
  outline: none;
}

.form-input::placeholder {
  color: #C49A6C;
}

.form-input:focus {
  border-color: #C0603A;
  background: #FFF;
  box-shadow: 0 0 0 4px rgba(192, 96, 58, 0.1);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C0603A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Epolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 2rem;
  background: #C0603A;
  color: #FFF;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(192, 96, 58, 0.3);
}

.form-submit:hover {
  background: #A84E2E;
  box-shadow: 0 6px 20px rgba(192, 96, 58, 0.4);
  transform: translateY(-2px);
}

.form-submit:active {
  transform: translateY(0);
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: #C0603A;
  color: #FFF;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(192, 96, 58, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 40;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #A84E2E;
  box-shadow: 0 6px 20px rgba(192, 96, 58, 0.4);
  transform: translateY(-3px);
}

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== Responsive ===== */
@media (max-width: 767px) {
  .floating-card {
    display: none;
  }

  .hero-main-card {
    border-radius: 24px;
  }

  .about-image-grid {
    grid-template-columns: 1fr;
  }

  .about-image-grid > div:first-child {
    order: 2;
  }

  .about-image-grid > div:last-child {
    order: 1;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .floating-card.card-float-1 {
    right: -10px;
  }

  .floating-card.card-float-2 {
    left: -10px;
  }
}
