/* ============================================
   Formal Styles By Becca — Custom Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(107, 47, 91, 0.15);
  color: #6B2F5B;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f9f0f5;
}
::-webkit-scrollbar-thumb {
  background: #d9a0bc;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9a4568;
}

/* --- Navigation --- */
.nav-fixed {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

.nav-fixed.scrolled {
  background: rgba(26, 11, 22, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(212, 168, 75, 0.1);
}

.nav-link {
  position: relative;
}

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

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

/* --- Mobile Menu --- */
.mobile-link {
  position: relative;
  transition: color 0.3s ease;
}

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

.mobile-link::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: #D4A84B;
  margin: 4px auto 0;
  transition: width 0.3s ease;
}

.mobile-link:hover::after {
  width: 2rem;
}

/* --- Hero --- */
.hero-img {
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/20246360/pexels-photo-20246360.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 11, 22, 0.72) 0%,
    rgba(107, 47, 91, 0.55) 50%,
    rgba(26, 11, 22, 0.82) 100%
  );
}

/* --- Scroll Indicator --- */
.scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(212, 168, 75, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-dot {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: #D4A84B;
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { top: -8px; opacity: 1; }
  50% { top: 52px; opacity: 0.3; }
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: #D4A820;
  color: #1a0b16;
  padding: 14px 32px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #b37815;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.btn-primary:hover::before {
  transform: translateX(0);
}

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  color: #1a0b16;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  padding: 14px 32px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.4s ease;
}

.btn-secondary:hover {
  border-color: rgba(212, 168, 75, 0.6);
  color: #D4A84B;
}

/* --- Service Cards --- */
.service-card {
  opacity: 1;
}

.service-card:hover .border {
  border-color: #6B2F5B;
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(107, 47, 91, 0);
  transition: background 0.4s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  background: rgba(107, 47, 91, 0.2);
}

.gallery-img {
  transition: transform 0.7s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

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

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

  /* Stagger delays */
  .reveal[data-delay="1"] { transition-delay: 0.1s; }
  .reveal[data-delay="2"] { transition-delay: 0.2s; }
  .reveal[data-delay="3"] { transition-delay: 0.3s; }
  .reveal[data-delay="4"] { transition-delay: 0.4s; }
  .reveal[data-delay="5"] { transition-delay: 0.5s; }
}

/* Default visible state (no JS) */
.reveal {
  opacity: 1;
  transform: none;
}

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

/* --- Form --- */
select option {
  background: #f9f0f5;
  color: #2d1325;
}

/* --- Focus styles --- */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-bottom-color: #D4A820 !important;
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .hero-img {
    background-position: center 30%;
  }
}
