/* ============================================
   The Right Cuts — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(196, 95, 176, 0.2);
  color: #4e2754;
}

/* --- Navbar --- */
#navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background-color: rgba(250, 245, 251, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(78, 39, 84, 0.08);
}

.nav-logo-text {
  transition: color 0.4s ease;
}

#navbar:not(.scrolled) .nav-logo-text {
  color: #ffffff;
}

#navbar.scrolled .nav-logo-text {
  color: #4e2754;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #e89f1a, #d4850e);
  border-radius: 1px;
  transition: width 0.3s ease;
}

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

#navbar:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

#navbar:not(.scrolled) .nav-link:hover {
  color: #f9d47a;
}

#navbar:not(.scrolled) .nav-link::after {
  background: linear-gradient(90deg, #f9d47a, #fce8b4);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  background: linear-gradient(135deg, #e89f1a, #d4850e);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(232, 159, 26, 0.3);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 159, 26, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: #4e2754;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  border: 2px solid #d4aedd;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #d4aedd;
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- Hero --- */
.hero-bg {
  will-change: transform;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(43, 18, 48, 0.82) 0%,
    rgba(78, 39, 84, 0.72) 50%,
    rgba(94, 45, 102, 0.65) 100%
  );
}

.hero-orb-1 {
  background: radial-gradient(circle, rgba(232, 159, 26, 0.6), transparent 70%);
}

.hero-orb-2 {
  background: radial-gradient(circle, rgba(163, 95, 176, 0.5), transparent 70%);
}

.hero-content {
  opacity: 1;
  transform: none;
  animation: heroFadeIn 1s ease forwards;
}

.hero-badge {
  animation: heroBadgeIn 0.8s ease 0.2s both;
}

.hero-content h1 {
  animation: heroTitleIn 0.9s ease 0.3s both;
}

.hero-content p {
  animation: heroTextIn 0.9s ease 0.5s both;
}

.hero-content > div:last-child {
  animation: heroButtonsIn 0.9s ease 0.6s both;
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

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

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

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #f5bc42, #e89f1a);
  color: #2b1230;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(245, 188, 66, 0.35);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(245, 188, 66, 0.5);
}

.hero-btn-arrow {
  transition: transform 0.3s ease;
}

.btn-hero-primary:hover .hero-btn-arrow {
  transform: translateX(4px);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
}

/* --- Service Cards --- */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #be85c9, #f5bc42);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* --- Scroll Reveal --- */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: none;
}

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

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

  .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
  .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
  .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
  .scroll-reveal:nth-child(5) { transition-delay: 0.35s; }
  .scroll-reveal:nth-child(6) { transition-delay: 0.4s; }
}

/* --- Contact Form --- */
.btn-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, #8a4496, #72347e);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(138, 68, 150, 0.3);
  text-decoration: none;
}

.btn-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(138, 68, 150, 0.45);
  background: linear-gradient(135deg, #9a54a6, #82448e);
}

.btn-form-submit svg {
  transition: transform 0.3s ease;
}

.btn-form-submit:hover svg {
  transform: translate(2px, -2px);
}

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

.mobile-nav-link {
  opacity: 1;
}

/* --- Utility --- */
@media (max-width: 768px) {
  .font-display {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #e89f1a;
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Smooth scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #faf5fb;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4aedd, #f5bc42);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #be85c9, #e89f1a);
}
