/* ============================================
   Elgot Kitchens — Custom Styles
   ============================================ */

/* --- 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: #065f46;
  color: #fefdf8;
}

/* --- Navigation --- */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(254, 253, 248, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(6, 95, 70, 0.08);
  transition: box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
  box-shadow: 0 4px 32px rgba(6, 78, 59, 0.08);
}

.nav-link {
  position: relative;
}

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

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

/* --- Mobile Menu --- */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(254, 253, 248, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(6, 95, 70, 0.1);
  animation: slideDown 0.3s ease;
}

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

.mobile-link {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: #064e3b;
  text-decoration: none;
  padding: 0.5rem 0;
  display: block;
  transition: color 0.2s ease;
}

.mobile-link:hover {
  color: #059669;
}

/* --- Buttons --- */
.btn-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #065f46;
  color: #fefdf8;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #065f46;
}

.btn-emerald:hover {
  background: #047857;
  border-color: #047857;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(6, 95, 70, 0.25);
}

.btn-emerald-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d1fae5;
  color: #064e3b;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #d1fae5;
  font-weight: 500;
}

.btn-emerald-light:hover {
  background: #a7f3d0;
  border-color: #a7f3d0;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-outline-light:hover {
  transform: translateY(-1px);
}

.btn-cream {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fefdf8;
  color: #064e3b;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #fefdf8;
  font-weight: 500;
}

.btn-cream:hover {
  background: #fef9ef;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* --- Hero --- */
.hero {
  position: relative;
  background: #022c22;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 44, 34, 0.7) 0%,
    rgba(2, 44, 34, 0.55) 50%,
    rgba(2, 44, 34, 0.85) 100%
  );
}

.hero-content {
  padding-top: 80px;
  padding-bottom: 100px;
}

.hero-eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6ee7b7;
}

.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  color: #fefdf8;
  max-width: 900px;
}

.hero-subtext {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  color: rgba(254, 243, 224, 0.8);
}

.hero-scroll {
  text-align: center;
}

.hero-scroll-icon {
  display: inline-flex;
  color: rgba(254, 243, 224, 0.5);
  transition: color 0.3s ease;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll-icon:hover {
  color: rgba(254, 243, 224, 0.9);
}

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

/* --- Section Shared --- */
.section-eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #065f46;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: #064e3b;
}

/* --- Project Cards --- */
.project-card {
  transition: transform 0.4s ease;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-img-wrap {
  transition: transform 0.6s ease;
}

.project-card:hover .project-img-wrap {
  transform: scale(1.02);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-tag {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #059669;
}

.project-title {
  transition: color 0.2s ease;
}

.project-card:hover .project-title {
  color: #059669;
}

/* --- Service Cards --- */
.service-card {
  padding: 2rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(110, 231, 183, 0.15);
  transform: translateY(-4px);
}

.service-title {
  transition: color 0.2s ease;
}

/* --- Process --- */
.process-step {
  transition: all 0.3s ease;
}

.process-step:hover {
  padding-left: 1rem;
}

.process-step:hover .process-number {
  color: #059669;
}

.process-title {
  transition: color 0.2s ease;
}

.process-step:hover .process-title {
  color: #059669;
}

/* --- Testimonials --- */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 231, 183, 0.3);
}

.testimonial-text {
  font-style: italic;
}

/* --- Inputs --- */
.input-emerald {
  border: 1.5px solid #d1fae5;
  transition: all 0.2s ease;
}

.input-emerald:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.input-emerald::placeholder {
  color: #065f46;
  opacity: 0.3;
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .hero-scroll-icon {
    animation: none;
  }
}

/* --- Mobile Toggle --- */
.menu-line {
  transition: all 0.3s ease;
}

#mobile-toggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

#mobile-toggle.active .menu-line:nth-child(3) {
  width: 1.25rem;
  transform: rotate(-45deg) translate(5px, -5px);
  margin-left: 0;
}
