/* ========================================
   ANDREJ STAVBY — Custom Styles
   Design: Sharp & Corporate / Earth Tones
   ======================================== */

:root {
  --primary: #C17817;
  --secondary: #1C2331;
  --accent: #D4922A;
  --dark: #0F1419;
  --light: #F5F2ED;
  --text: #2D3748;
  --text-light: #8A94A6;
}

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

body {
  overflow-x: hidden;
}

::selection {
  background: var(--primary);
  color: white;
}

/* ---- Navbar ---- */
.navbar {
  padding: 1.25rem 0;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

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

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

.navbar.scrolled .nav-link {
  color: var(--text);
}

.navbar.scrolled .nav-link:hover {
  color: var(--primary);
}

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

.navbar.scrolled .nav-logo {
  color: var(--secondary);
}

.navbar:not(.scrolled) .nav-cta {
  background: var(--primary);
  color: #fff;
}

.navbar.scrolled .nav-cta {
  background: var(--primary);
  color: #fff;
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

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

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

/* ---- Mobile Menu ---- */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.hamburger-line {
  transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ---- Hero ---- */
.hero-overlay {
  background: rgba(15, 20, 25, 0.65);
}

/* ---- Section label ---- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 3rem;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2px;
  background: var(--primary);
}

/* ---- Service number ---- */
.service-number {
  font-family: 'Archivo', sans-serif;
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(193, 120, 23, 0.08);
  position: absolute;
  top: -0.5rem;
  left: 0;
}

/* ---- Feature check ---- */
.feature-icon-wrap {
  width: 56px;
  height: 56px;
  background: rgba(193, 120, 23, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrap {
  background: var(--primary);
}

.feature-card:hover .feature-icon-wrap svg {
  color: white;
}

/* ---- Process connector ---- */
.process-step {
  position: relative;
}

.process-connector {
  position: absolute;
  left: 2rem;
  top: 4.5rem;
  bottom: -1.5rem;
  width: 2px;
  background: rgba(193, 120, 23, 0.15);
}

/* ---- CTA Banner ---- */
.cta-overlay {
  background: rgba(15, 20, 25, 0.75);
}

/* ---- Contact form ---- */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(193, 120, 23, 0.15);
}

.form-input.error {
  border-color: #ef4444;
}

/* ---- Map ---- */
.map-container {
  border-radius: 12px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Scroll to top ---- */
#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Footer ---- */
.footer-link {
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary);
}

/* ---- Dot pattern decoration ---- */
.dot-pattern {
  background-image: radial-gradient(circle, rgba(193, 120, 23, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ---- 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;
  }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .service-number {
    font-size: 3.5rem;
  }

  .section-label {
    padding-left: 2.5rem;
  }

  .section-label::before {
    width: 1.5rem;
  }
}
