/* ========================================
   Steve Marlow PC — Custom Styles
   ======================================== */

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

/* Base font smoothing */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   NAVBAR
   ======================================== */
#navbar {
  transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(139, 26, 43, 0.08);
}

#navbar.scrolled .nav-link {
  color: rgba(139, 26, 43, 0.8) !important;
}

#navbar.scrolled .nav-link:hover {
  color: #8B1A2B !important;
}

#navbar.scrolled .nav-logo-text {
  color: #8B1A2B !important;
}

#navbar.scrolled .menu-line {
  background: #8B1A2B !important;
}

/* ========================================
   MOBILE MENU
   ======================================== */
#mobile-menu.open {
  opacity: 1 !important;
  pointer-events: all !important;
}

#mobile-menu.open .mobile-link {
  animation: fadeSlideDown 0.4s ease forwards;
  opacity: 0;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }

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

/* Menu button active state */
#menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(3.5px, 3.5px);
}
#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(2.5px, -2.5px);
  width: 1.25rem;
}

/* ========================================
   HERO REVEAL ANIMATIONS
   ======================================== */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 0.8s ease forwards;
}

.reveal-item:nth-child(1) { animation-delay: 0.2s; }
.reveal-item:nth-child(2) { animation-delay: 0.4s; }
.reveal-item:nth-child(3) { animation-delay: 0.6s; }
.reveal-item:nth-child(4) { animation-delay: 0.8s; }

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

/* ========================================
   SCROLL REVEAL — BELOW THE FOLD
   Progressive enhancement: content visible by default,
   JS adds animated state for users with JS enabled.
   ======================================== */
.reveal-item {
  opacity: 1;
  transform: none;
}

.reveal-animated .reveal-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-animated .reveal-item:nth-child(1) { transition-delay: 0s; }
.reveal-animated .reveal-item:nth-child(2) { transition-delay: 0.1s; }
.reveal-animated .reveal-item:nth-child(3) { transition-delay: 0.2s; }
.reveal-animated .reveal-item:nth-child(4) { transition-delay: 0.3s; }
.reveal-animated .reveal-item:nth-child(5) { transition-delay: 0.4s; }

/* ========================================
   SERVICES SECTION
   ======================================== */
.service-eyebrow {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-heading {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.service-subtext {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.08s; }
.service-card:nth-child(3) { transition-delay: 0.16s; }
.service-card:nth-child(4) { transition-delay: 0.24s; }
.service-card:nth-child(5) { transition-delay: 0.32s; }
.service-card:nth-child(6) { transition-delay: 0.4s; }

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-image {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-image.revealed {
  opacity: 1;
  transform: translateX(0);
}

.about-eyebrow {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-eyebrow.revealed { opacity: 1; transform: translateY(0); }

.about-heading {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.about-heading.revealed { opacity: 1; transform: translateY(0); }

.about-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-text.revealed { opacity: 1; transform: translateY(0); }

.about-value {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-value.revealed { opacity: 1; transform: translateY(0); }

/* ========================================
   EXPERIENCE SECTION
   ======================================== */
.exp-eyebrow {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.exp-eyebrow.revealed { opacity: 1; transform: translateY(0); }

.exp-heading {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.exp-heading.revealed { opacity: 1; transform: translateY(0); }

.exp-subtext {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.exp-subtext.revealed { opacity: 1; transform: translateY(0); }

.exp-step {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.exp-step.revealed { opacity: 1; transform: translateY(0); }

.exp-step:nth-child(1) { transition-delay: 0s; }
.exp-step:nth-child(2) { transition-delay: 0.15s; }
.exp-step:nth-child(3) { transition-delay: 0.3s; }

.exp-quote {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.exp-quote.revealed { opacity: 1; transform: translateY(0); }

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-eyebrow {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-eyebrow.revealed { opacity: 1; transform: translateY(0); }

.contact-heading {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.contact-heading.revealed { opacity: 1; transform: translateY(0); }

.contact-subtext {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.contact-subtext.revealed { opacity: 1; transform: translateY(0); }

.contact-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-card.revealed { opacity: 1; transform: translateY(0); }

.contact-form-wrapper {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.contact-form-wrapper.revealed { opacity: 1; transform: translateY(0); }

.contact-input {
  transition: all 0.3s ease;
}

.contact-input:focus {
  box-shadow: 0 0 0 3px rgba(139, 26, 43, 0.1);
}

.contact-submit {
  transition: all 0.4s ease;
}

.contact-submit:hover {
  transform: translateY(-2px);
}

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

/* ========================================
   PREFERS 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-animated .reveal-item {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
  #hero {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .reveal-item {
    animation-duration: 0.6s;
  }
}
