/* ============================================
   Výškové práce Liptov — Custom Styles
   Design: Rustic & Craft
   Colors: Forest Green, Wood Brown, Burnt Orange
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary: #2D5F3A;
  --primary-dark: #234D2E;
  --secondary: #3D2B1F;
  --accent: #D4772A;
  --accent-light: #E08F3E;
  --dark: #1C1C18;
  --light: #F5F0E8;
  --parchment: #EDE6DA;
  --text: #2A2520;
  --text-light: #7A7265;
  --card-bg: #FFFFFF;
  --card-border: #DDD5C8;
}

/* ---------- Global ---------- */
* { box-sizing: border-box; }

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

body {
  overflow-x: hidden;
}

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

/* ---------- Section Labels ---------- */
.section-label {
  display: inline-block;
  font-family: 'DM Serif Display', serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ---------- About Drop Cap ---------- */
.about-dropcap::first-letter {
  font-family: 'DM Serif Display', serif;
  font-size: 3.5rem;
  float: left;
  line-height: 0.8;
  margin-right: 0.5rem;
  margin-top: 0.15rem;
  color: var(--primary);
  font-weight: 400;
}

/* ---------- Navbar ---------- */
#nav_1 {
  background: transparent;
}

#nav_1.scrolled {
  background: rgba(245, 240, 232, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(61, 43, 31, 0.06);
}

#nav_1.scrolled .nav-logo span {
  color: var(--secondary) !important;
}

#nav_1.scrolled .nav-link {
  color: var(--text) !important;
}

#nav_1.scrolled .nav-link:hover {
  color: var(--primary) !important;
}

#nav_1.scrolled #mobile-menu-btn {
  color: var(--secondary) !important;
}

/* Logo accent bar */
.nav-logo {
  position: relative;
}

.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: white;
}

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

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

.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  color: rgba(255,255,255,0.7);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  background: rgba(212, 119, 42, 0.1);
  color: var(--accent);
}

/* ---------- Stats Section ---------- */
.stat-item {
  text-align: center;
  padding: 8px;
}

.stat-value {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@media (min-width: 1024px) {
  .stat-value {
    font-size: 4rem;
  }
}

/* ---------- About Highlights ---------- */
.highlight-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 12px;
  padding: 14px;
  background: var(--light);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.highlight-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(45, 95, 58, 0.08);
  transform: translateY(-2px);
}

.highlight-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.highlight-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

/* ---------- Service Zigzag Rows ---------- */
.service-row {
  transition: all 0.3s ease;
}

.service-row-image {
  border-radius: 8px;
  overflow: hidden;
}

.service-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-row:hover .service-row-image img {
  transform: scale(1.05);
}

.service-number {
  font-family: 'DM Serif Display', serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(45, 95, 58, 0.08);
}

@media (min-width: 1024px) {
  .service-number {
    font-size: 7rem;
  }
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* ---------- Gallery Swiper ---------- */
.gallery-swiper {
  padding-bottom: 48px;
}

.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
  color: var(--primary);
  background: var(--card-bg);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.gallery-swiper .swiper-button-next:hover,
.gallery-swiper .swiper-button-prev:hover {
  background: var(--primary);
  color: white;
}

.gallery-swiper .swiper-button-next::after,
.gallery-swiper .swiper-button-prev::after {
  font-size: 16px;
  font-weight: bold;
}

.gallery-swiper .swiper-pagination-bullet {
  background: var(--card-border);
  opacity: 1;
  width: 10px;
  height: 10px;
}

.gallery-swiper .swiper-pagination-bullet-active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

.gallery-slide-inner {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.gallery-slide-inner img {
  transition: transform 0.5s ease;
}

.gallery-slide-inner:hover img {
  transform: scale(1.05);
}

/* ---------- Timeline ---------- */
.timeline-line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--card-border);
}

@media (min-width: 1024px) {
  .timeline-line {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  padding-left: 64px;
  margin-bottom: 48px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .timeline-item {
    padding-left: 0;
    display: flex;
    justify-content: flex-start;
  }

  .timeline-item:nth-child(even) {
    justify-content: flex-end;
  }

  .timeline-item .timeline-content {
    width: calc(50% - 48px);
  }
}

.timeline-dot {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 34px;
  height: 34px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--parchment), 0 0 0 6px var(--primary);
}

@media (min-width: 1024px) {
  .timeline-dot {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 24px;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(45, 95, 58, 0.08);
  transform: translateY(-2px);
}

/* ---------- Testimonials ---------- */
.testimonial-active {
  transition: opacity 0.4s ease;
}

.testimonial-active.fading {
  opacity: 0;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--card-border);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.testimonial-dot.active {
  background: var(--primary);
  transform: scale(1.4);
}

.testimonial-dot:hover {
  background: var(--primary);
}

/* ---------- Contact Dark Cards ---------- */
.contact-card-dark {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
}

a.contact-card-dark:hover {
  padding-left: 6px;
}

.contact-card-dark-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 8px;
  background: rgba(212, 119, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.contact-card-dark-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-card-dark-value {
  font-family: 'DM Serif Display', serif;
  color: white;
  font-size: 1rem;
}

/* ---------- Footer ---------- */
.footer-link {
  display: block;
  color: rgba(255,255,255,0.45);
  font-size: 0.875rem;
  text-decoration: none;
  padding: 4px 0;
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: var(--accent);
  padding-left: 8px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.45);
  font-size: 0.875rem;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-item a:hover {
  color: var(--accent);
}

/* ---------- Scroll to Top ---------- */
#scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---------- Form Success Animation ---------- */
@keyframes checkmark {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

#form-success:not(.hidden) {
  animation: checkmark 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .stat-value {
    font-size: 2rem;
  }

  .service-number {
    font-size: 4rem;
  }
}

@media (max-width: 480px) {
  .stat-value {
    font-size: 1.75rem;
  }
}

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

  .service-row-image img,
  .gallery-slide-inner img {
    transform: none !important;
  }
}
