/* ===== CUSTOM STYLES FOR VIKINGO_BARBER ===== */

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

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

::selection {
  background: #1a3a2a;
  color: #faf8f4;
}

/* --- Nav --- */
.nav {
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26, 58, 42, 0.06);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(250, 248, 244, 0.96);
  box-shadow: 0 1px 20px rgba(26, 58, 42, 0.08);
}

.nav.scrolled .nav-logo {
  color: #1a3a2a;
}

.nav.scrolled .nav-link {
  color: #1f4728;
}

.nav-link {
  position: relative;
}

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

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

.nav.scrolled .nav-link::after {
  background: #b8944d;
}

/* --- Hamburger --- */
.hamburger-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active #line1 {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active #line2 {
  opacity: 0;
}

.nav-toggle.active #line3 {
  transform: translateY(-8px) rotate(-45deg);
  width: 1.5rem;
}

/* --- Mobile menu --- */
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* --- Hero --- */
.hero {
  position: relative;
}

.hero-bg-accent {
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-accent-line {
  animation: accentPulse 3s ease-in-out infinite;
}

.hero-accent-circle {
  animation: circleFloat 6s ease-in-out infinite;
}

@keyframes accentPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@keyframes circleFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -10px); }
}

.hero-headline {
  animation: headlineIn 0.8s ease-out forwards;
}

@keyframes headlineIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  animation: badgeIn 0.6s ease-out 0.2s both;
}

@keyframes badgeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
  animation: subtitleIn 0.6s ease-out 0.4s both;
}

@keyframes subtitleIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-ctas {
  animation: ctasIn 0.6s ease-out 0.5s both;
}

@keyframes ctasIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-stats {
  animation: statsIn 0.6s ease-out 0.6s both;
}

@keyframes statsIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-image-wrapper {
  animation: imageIn 0.8s ease-out 0.3s both;
}

@keyframes imageIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- Scroll indicator --- */
.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

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

/* --- Buttons --- */
.btn-primary {
  box-shadow: 0 4px 20px rgba(26, 58, 42, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26, 58, 42, 0.25);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26, 58, 42, 0.15);
}

/* --- Section labels --- */
.section-label {
  letter-spacing: 0.15em;
}

.section-title {
  letter-spacing: -0.02em;
}

/* --- Service cards --- */
.service-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

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

/* --- Gallery --- */
.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 58, 42, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 0.5rem;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* --- Testimonials --- */
.testimonial-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 58, 42, 0.1);
}

/* --- Inputs --- */
.input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input:focus {
  box-shadow: 0 0 0 3px rgba(61, 122, 71, 0.15);
}

/* --- Scroll reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Footer --- */
.footer a {
  text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 1023px) {
  .hero-bg-accent {
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  }
}

@media (max-width: 767px) {
  .hero-bg-accent {
    clip-path: polygon(0% 0, 100% 0, 100% 40%, 0% 40%);
  }

  .hero-headline {
    font-size: 2.75rem;
  }

  .hero-image {
    height: 350px !important;
  }

  .hero-image-badge {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    margin-top: 1rem;
  }

  .hero-stats {
    gap: 1.5rem !important;
  }

  .about-image-grid {
    gap: 0.75rem !important;
  }

  .about-image-grid img {
    height: 180px !important;
  }
}
