/* ============================================
   Wolf-Stav — Custom Styles
   Design: Dark & Premium
   ============================================ */

:root {
  --primary: #c8922a;
  --accent: #e8a83a;
  --dark: #0d0d0d;
  --charcoal: #1a1a1a;
  --light: #f5f0eb;
  --text: #e8e2da;
  --muted: #9a9080;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--dark);
  color: var(--text);
  overflow-x: hidden;
}

/* Prevent off-screen GSAP elements from causing horizontal scroll */
#hero_1,
#about_1,
#services_1,
#process_1,
#gallery_1,
#testimonials_1,
#contact_1 {
  overflow-x: hidden;
}

/* Add scroll margin for fixed navbar navigation */
section[id] {
  scroll-margin-top: 80px;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ---- Selection ---- */
::selection { background: var(--primary); color: var(--dark); }

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  background: transparent;
}
#navbar.scrolled {
  background: rgba(13, 13, 13, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
#navbar.scrolled #nav-logo,
#navbar.scrolled .nav-link {
  color: #fff;
}

.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { width: 100%; }
.nav-link.active {
  color: var(--primary);
}
.nav-link.active::after {
  width: 100%;
}

/* Mobile menu link */
.mobile-nav-link {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.3s ease;
  display: block;
}
.mobile-nav-link:hover { color: var(--primary); }
.mobile-nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

/* Hamburger open state */
#mobile-menu-btn.open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#mobile-menu-btn.open .hamburger-line:nth-child(2) {
  opacity: 0;
}
#mobile-menu-btn.open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  width: 24px;
}

/* ============================================
   LIGHT SECTIONS
   ============================================ */
.section-light {
  background-color: #f5f0eb;
}

/* ============================================
   ABOUT
   ============================================ */
.about-img-wrap img {
  transition: transform 0.8s ease;
}
.about-img-wrap:hover img {
  transform: scale(1.03);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.highlight-icon {
  width: 40px;
  height: 40px;
  background: rgba(200,146,42,0.12);
  border: 1px solid rgba(200,146,42,0.25);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  transition: background 0.3s ease;
}
.highlight-item:hover .highlight-icon {
  background: rgba(200,146,42,0.22);
}

/* ============================================
   SERVICES
   ============================================ */
.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200,146,42,0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(200,146,42,0.1);
  border: 1px solid rgba(200,146,42,0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: background 0.3s ease;
}
.service-card:hover .service-icon {
  background: rgba(200,146,42,0.2);
}
.service-number {
  font-family: 'DM Serif Display', serif;
  font-size: 4rem;
  color: rgba(200,146,42,0.08);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ============================================
   PROCESS
   ============================================ */
.process-step {
  position: relative;
  padding: 2rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.process-step:hover {
  border-color: rgba(200,146,42,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.process-step-number {
  font-family: 'DM Serif Display', serif;
  font-size: 3.5rem;
  color: rgba(200,146,42,0.2);
  line-height: 1;
  margin-bottom: 1rem;
}
.process-step-icon {
  width: 44px;
  height: 44px;
  background: rgba(200,146,42,0.1);
  border: 1px solid rgba(200,146,42,0.25);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
}
.process-step h3 { color: #111827; }
.process-step p  { color: #6b7280; }

/* Connector line between steps (desktop) */
.process-step::after {
  content: '';
  position: absolute;
  top: 2.5rem;
  right: -1.5rem;
  width: 1.5rem;
  height: 1px;
  background: rgba(200,146,42,0.2);
}
.process-step:last-child::after { display: none; }

@media (max-width: 1023px) {
  .process-step::after { display: none; }
}

/* ============================================
   GALLERY — Before/After
   ============================================ */
.ba-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ba-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.ba-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  aspect-ratio: 16/9;
}
.ba-img-wrap {
  position: relative;
  overflow: hidden;
}
.ba-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.ba-card:hover .ba-img-wrap img {
  transform: scale(1.05);
}
.ba-label {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 10px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 2px;
}
.ba-label.before {
  background: rgba(0,0,0,0.7);
  color: rgba(255,255,255,0.7);
}
.ba-label.after {
  background: var(--primary);
  color: var(--dark);
}
.ba-caption {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ============================================
   GALLERY — Videos
   ============================================ */
#video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
  gap: 1.5rem;
  justify-content: center;
  max-width: 42rem;
  margin: 0 auto;
}

@media (max-width: 640px) {
  #video-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
}

.video-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.video-embed-wrap {
  position: relative;
  width: 100%;
  padding-top: 177.78%; /* 9:16 for reels */
  overflow: hidden;
}
.video-embed-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: auto;
}
.video-caption {
  padding: 0.875rem 1.25rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
  border-color: rgba(200,146,42,0.3);
}

/* ============================================
   CTA BANNER
   ============================================ */
#cta_1 {
  background-color: var(--primary);
}

/* ============================================
   CONTACT CARDS
   ============================================ */
.contact-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200,146,42,0.35);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.contact-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(200,146,42,0.1);
  border: 1px solid rgba(200,146,42,0.25);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 0 auto 1.25rem;
}
.contact-card .card-label {
  color: #9ca3af;
}
.contact-card .card-value {
  color: #111827;
}
.contact-card a {
  color: #374151;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  margin-top: 0.25rem;
}
.contact-card a:hover { color: var(--primary); }

/* ============================================
   FOOTER
   ============================================ */
.footer-link {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
  display: block;
  padding: 0.25rem 0;
}
.footer-link:hover { color: var(--primary); }

.social-btn {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.social-btn:hover {
  background: rgba(200,146,42,0.15);
  color: var(--primary);
  border-color: rgba(200,146,42,0.3);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}
#scroll-top:hover {
  transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .ba-images { aspect-ratio: 4/3; }
  
  /* Tablet adjustments */
  #hero_1 h1 {
    font-size: 3rem;
  }
  
  /* Stack form and map on tablets */
  .contact-form-wrap,
  .contact-map-wrap {
    grid-column: span 1;
  }
}

/* Small phones ≤ 480px */
@media (max-width: 480px) {
  /* Tighter container padding */
  .max-w-7xl, .max-w-4xl, .max-w-5xl, .max-w-2xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Navbar */
  #navbar .h-20 {
    height: 4.5rem;
  }
  
  #nav-logo {
    font-size: 1.5rem;
  }
  
  #nav-tagline {
    font-size: 0.7rem;
  }

  /* Hero adjustments */
  #hero_1 {
    min-height: 100vh;
    padding-top: 5rem;
    padding-bottom: 3rem;
  }
  
  #hero_1 h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }
  
  #hero_1 p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .hero-ctas a {
    width: 100%;
    padding: 1rem 1.5rem;
  }

  /* Section spacing */
  section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  /* Service cards */
  .service-card {
    padding: 1.5rem;
  }
  
  .service-card h3 {
    font-size: 1.25rem !important;
  }
  
  .service-card p {
    font-size: 0.875rem !important;
  }
  
  .service-number {
    font-size: 3rem;
  }

  /* Process steps */
  .process-step {
    padding: 1.5rem;
  }
  
  .process-step-number {
    font-size: 2.5rem;
  }
  
  .process-step h3 {
    font-size: 1.1rem !important;
  }

  /* Gallery */
  .ba-images {
    aspect-ratio: 1;
  }
  
  .video-embed-wrap {
    padding-top: 125%; /* Adjust for mobile */
  }

  /* Contact cards */
  .contact-card {
    padding: 1.5rem;
  }
  
  .contact-form-wrap .bg-white,
  .contact-map-wrap > div {
    padding: 1.5rem;
  }
  
  #contact-form input,
  #contact-form textarea {
    padding: 0.875rem;
    font-size: 0.95rem;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 1.5rem;
  }

  /* CTA Banner */
  #cta_1 h2 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  #cta_1 p {
    font-size: 1rem;
  }
  
  #cta_1 .flex {
    flex-direction: column;
  }
  
  #cta_1 a {
    width: 100%;
  }
}

/* Very small screens < 375px */
@media (max-width: 374px) {
  /* Ultra-tight padding */
  .max-w-7xl, .max-w-4xl, .max-w-5xl, .max-w-2xl {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Navbar */
  #navbar .h-20 {
    height: 4rem;
  }
  
  #nav-logo {
    font-size: 1.25rem;
  }
  
  #nav-tagline {
    font-size: 0.65rem;
  }

  /* Hero */
  #hero_1 {
    min-height: 100vh;
    padding-top: 4rem;
    padding-bottom: 2rem;
  }
  
  #hero_1 h1 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 1rem;
  }
  
  #hero_1 p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  #hero_1 .hero-badge {
    font-size: 0.65rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  
  .hero-ctas a {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
  }

  /* Section headings */
  .font-heading {
    font-size: 1.75rem !important;
  }
  
  h2.font-heading {
    font-size: 1.75rem !important;
  }
  
  h3.font-heading {
    font-size: 1.25rem !important;
  }
  
  /* Section spacing */
  section {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  /* About image */
  .about-img-wrap .aspect-\[4\/5\] {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .about-img-wrap .absolute {
    display: none; /* Hide decorative elements on very small screens */
  }

  /* Service cards */
  .service-card {
    padding: 1.25rem;
  }
  
  .service-card h3 {
    font-size: 1.1rem !important;
  }
  
  .service-card p {
    font-size: 0.85rem !important;
  }
  
  .service-number {
    font-size: 2.5rem;
    right: 1rem;
  }
  
  .service-icon {
    width: 44px;
    height: 44px;
  }

  /* Process */
  .process-step {
    padding: 1.25rem;
  }
  
  .process-step h3 {
    font-size: 1rem !important;
  }
  
  .process-step p {
    font-size: 0.8rem !important;
  }
  
  .process-step-number {
    font-size: 2rem;
  }
  
  .process-step-icon {
    width: 38px;
    height: 38px;
  }

  /* Gallery */
  .ba-card {
    margin-bottom: 1rem;
  }
  
  .ba-caption {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }
  
  .video-caption {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 1.25rem;
  }
  
  .testimonial-card p {
    font-size: 0.9rem !important;
  }
  
  .testimonial-stars {
    font-size: 1rem !important;
  }

  /* CTA Banner */
  #cta_1 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  
  #cta_1 h2 {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  #cta_1 p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  #cta_1 .flex {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  
  #cta_1 a {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
  }

  /* Contact */
  .contact-card {
    padding: 1.25rem;
  }
  
  .contact-card a,
  .contact-card span {
    font-size: 1.1rem !important;
    word-break: break-word;
  }
  
  .contact-card-icon {
    width: 48px;
    height: 48px;
  }
  
  .contact-form-wrap .bg-white {
    padding: 1.25rem;
  }
  
  #contact-form input,
  #contact-form textarea {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  #contact-form button {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .contact-map-wrap > div {
    min-height: 300px !important;
  }

  /* Footer */
  #footer_1 {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 2.5rem;
  }
  
  #footer-logo {
    font-size: 1.5rem;
  }
  
  #footer-desc {
    font-size: 0.8rem;
  }

  /* Scroll to top button */
  #scroll-top {
    bottom: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
  }
  
  #scroll-top i {
    width: 1rem;
    height: 1rem;
  }
  
  /* Highlight items */
  .highlight-item {
    padding: 0.5rem 0;
  }
  
  .highlight-icon {
    width: 36px;
    height: 36px;
  }
  
  .highlight-item span {
    font-size: 0.85rem !important;
  }
}

/* ============================================
   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;
    scroll-behavior: auto !important;
  }
}
