/* ========================================
   Mr. Michael Jaro MA — Custom Styles
   ======================================== */

/* --- Base --- */
html {
  scroll-behavior: smooth;
}

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

::selection {
  background: #355c38;
  color: #faf8f4;
}

/* --- Navigation --- */
#navbar {
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 60, 42, 0.08);
}

#navbar.scrolled {
  box-shadow: 0 1px 20px rgba(15, 37, 25, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #355c38;
  transition: width 0.3s ease;
}

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

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1a3c2a;
  color: #faf8f4;
  padding: 0.875rem 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid #1a3c2a;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: transparent;
  color: #1a3c2a;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #1a3c2a;
  padding: 0.875rem 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid #1a3c2a;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #1a3c2a;
  color: #faf8f4;
}

/* --- Hero --- */
.hero-image-wrapper {
  position: relative;
  overflow: hidden;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-image-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 2px solid #c8a86e;
  z-index: -1;
  opacity: 0.6;
}

/* --- Services --- */
.service-card {
  border-bottom: 1px solid rgba(26, 60, 42, 0.3);
  transition: background 0.3s ease;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

.service-card:hover svg {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.service-card svg {
  transition: transform 0.3s ease;
}

/* --- About --- */
.about-image-wrapper {
  position: relative;
  z-index: 1;
}

.about-image {
  display: block;
  width: 100%;
  height: auto;
}

.about-image-accent {
  position: absolute;
  bottom: -16px;
  left: -16px;
  width: 60%;
  height: 60%;
  background: #dce8df;
  z-index: -1;
}

/* --- Approach --- */
.approach-step {
  border-bottom: 1px solid rgba(26, 60, 42, 0.15);
  transition: background 0.3s ease;
}

.approach-step:hover {
  background: rgba(26, 60, 42, 0.03);
}

.approach-step:hover span {
  color: #c8a86e;
  transition: color 0.3s ease;
}

.approach-step span {
  transition: color 0.3s ease;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Mobile Menu --- */
#mobile-menu {
  z-index: 40;
}

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

#mobile-menu.closed {
  transform: translateX(100%);
}

.mobile-menu-link {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  color: #0f2519;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu-link:hover {
  color: #355c38;
}

/* --- Menu Toggle --- */
#menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-line {
  background: #0f2519;
}

#menu-toggle.active .menu-line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

#menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-image-accent {
    width: 80px;
    height: 80px;
    top: -12px;
    right: -12px;
  }

  .about-image-accent {
    width: 40%;
    height: 40%;
    bottom: -10px;
    left: -10px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}
