/* ============================================
   AKGutters — Custom Styles
   Classic & Elegant | Plum + Amber Palette
   ============================================ */

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

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

body {
  font-family: 'Lato', system-ui, sans-serif;
  color: #4A2C5A;
  background-color: #ffffff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background-color: #D4A04A;
  color: #1e1126;
}

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

.nav.scrolled {
  background: rgba(30, 17, 38, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav.scrolled .nav-text-dark {
  display: block;
}

.nav.scrolled .nav-text-light {
  display: none;
}

.nav-text-dark {
  display: none;
}

.nav-text-light {
  display: block;
}

.nav.scrolled .nav-text-dark {
  display: block;
}

.nav.scrolled .nav-text-light {
  display: none;
}

.nav-logo-dark {
  display: block;
}

.nav-logo-light {
  display: none;
}

.nav.scrolled .nav-logo-dark {
  display: block;
}

.nav.scrolled .nav-logo-light {
  display: none;
}

.nav-link {
  position: relative;
}

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

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(30, 17, 38, 0.92) 0%,
    rgba(74, 44, 90, 0.85) 50%,
    rgba(30, 17, 38, 0.90) 100%
  );
}

.hero-content {
  will-change: transform;
}

.hero-badge {
  opacity: 0;
  animation: fadeInDown 0.8s 0.3s forwards;
}

.hero-headline {
  opacity: 0;
  animation: fadeInUp 0.8s 0.5s forwards;
}

.hero-subtitle {
  opacity: 0;
  animation: fadeInUp 0.8s 0.7s forwards;
}

.hero-cta {
  opacity: 0;
  animation: fadeInUp 0.8s 0.9s forwards;
}

.hero-trust {
  opacity: 0;
  animation: fadeInUp 0.8s 1.1s forwards;
}

.hero-scroll {
  opacity: 0;
  animation: fadeIn 0.8s 1.5s forwards;
}

/* ---------- Section Shared ---------- */
.section {
  position: relative;
}

.section-header {
  opacity: 1;
}

.section-tag {
  opacity: 1;
}

.section-title {
  opacity: 1;
}

.section-desc {
  opacity: 1;
}

/* ---------- Services ---------- */
.services-grid {
  opacity: 1;
}

.service-card {
  opacity: 1;
}

/* ---------- About ---------- */
.about-images {
  opacity: 1;
}

.about-text {
  opacity: 1;
}

/* ---------- Why Us ---------- */
.why-grid {
  opacity: 1;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  opacity: 1;
}

/* ---------- Contact ---------- */
.contact-grid {
  opacity: 1;
}

.contact-info {
  opacity: 1;
}

.contact-form-wrapper {
  opacity: 1;
}

/* ---------- Footer ---------- */
.footer {
  opacity: 1;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* ---------- Buttons ---------- */
.btn-primary,
.btn-secondary,
.btn-cta,
.btn-submit {
  position: relative;
  overflow: hidden;
}

.btn-primary::before,
.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before,
.btn-cta:hover::before {
  left: 100%;
}

/* ---------- Inputs ---------- */
.input:focus {
  border-color: #D4A04A !important;
  box-shadow: 0 0 0 3px rgba(212, 160, 74, 0.15) !important;
}

select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A2C5A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

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

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

.mobile-link {
  opacity: 1;
}

/* ---------- Gallery Hover ---------- */
.gallery-overlay {
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

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

/* ---------- Scroll Reveal (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);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
