/* === Custom Styles for Simply Homemade By Emily === */

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

/* Base typography */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Button Primary === */
.btn-primary {
  background: linear-gradient(135deg, #D4913B 0%, #B8782E 100%);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(212, 145, 59, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 145, 59, 0.45);
  background: linear-gradient(135deg, #e0a047 0%, #c48735 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

/* === Navigation === */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #D4913B, #F5A828);
  border-radius: 1px;
  transition: width 0.3s ease;
}

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

/* === Navbar Scroll State === */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(107, 61, 116, 0.08);
}

#navbar.scrolled .nav-link {
  color: #46234C;
}

#navbar.scrolled .logo-text {
  color: #1E0E21;
}

/* === Mobile Menu === */
.mobile-link {
  position: relative;
  padding-left: 0;
}

.mobile-link::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, #D4913B, #B8782E);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.mobile-link:hover::before,
.mobile-link.active::before {
  height: 60%;
}

/* === Fade-in Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* === Product Card Hover === */
.group:hover img {
  transform: scale(1.05);
}

/* === Input Focus States === */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(212, 145, 59, 0.15);
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F5EEF8;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #BA93C8, #D4913B);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #9B6AAF, #F5A828);
}

/* === Selection === */
::selection {
  background: rgba(212, 145, 59, 0.2);
  color: #351A3B;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  #hero h1 {
    font-size: 2.75rem;
    line-height: 1.15;
  }

  #hero p {
    font-size: 1.05rem;
  }
}

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

  section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* === Print Styles === */
@media print {
  #navbar,
  #contactForm,
  .btn-primary {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}
