/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.6;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.logo {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #111;
  white-space: nowrap;
  text-decoration: none; /* Prevent underline */
  cursor: pointer;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: #000;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  height: 1px;
  width: 0%;
  background-color: #111;
  transition: width 0.3s ease;
}

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

/* Contact Button Styling */
.contact-trigger {
  font-size: 1rem;
  font-weight: 500;
  color: #111;
  cursor: pointer;
  padding-bottom: 2px;
  position: relative;
  background: none;
  border: none;
  text-shadow: none;
  border-radius: 0;
  transition: all 0.3s ease;
}

/* Underline Hover Effect */
.contact-trigger::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  height: 1px;
  width: 0%;
  background-color: #111;
  transition: width 0.3s ease;
}

.contact-trigger:hover::after {
  width: 100%;
}

/* Mobile Rounded Button */
@media (max-width: 768px) {
  .contact-trigger {
    display: inline-block;
    padding: 0.4rem 1.25rem;
    background: #e6f2e6;
    border: 1px solid #bcd9bc;
    border-radius: 999px;
    text-shadow: none;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.5);
  }

  .contact-trigger::after {
    display: none;
  }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile Nav Active Styles */
.nav-links.active {
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  flex-direction: column;
  background: #f7f9f7;
  padding: 1rem 0.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.nav-links.active a {
  margin: 0.5rem 0;  /* Reduce spacing between links */
}

/* Contact Button Styling (Mobile Active Menu) */
.nav-links.active .contact-trigger {
  margin-top: 1rem;
  padding: 0.4rem 1.25rem;
  background: #e6f2e6;
  border: 1px solid #bcd9bc;
  border-radius: 999px;
  text-shadow: none;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.5);
  font-weight: 500;
  display: inline-block;
  cursor: pointer;
}

/* Contact Trigger Styling (Desktop - Inline Link Look) */
.nav-links:not(.active) .contact-trigger {
  all: unset; /* Reset all button styles */
  font-size: 1rem;
  font-weight: 500;
  color: #111;
  position: relative;
  cursor: pointer;
  padding-bottom: 2px;
  text-shadow: none;
}

/* Underline Hover Effect for Desktop Contact Trigger */
.nav-links:not(.active) .contact-trigger::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  height: 1px;
  width: 0%;
  background-color: #111;
  transition: width 0.3s ease;
}

.nav-links:not(.active) .contact-trigger:hover::after {
  width: 100%;
}

/* Contact Overlay */
.contact-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: white;
  box-shadow: -2px 0 12px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  z-index: 9999;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-overlay.active {
  right: 0;
}

.contact-panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  padding: 2rem;
}

.contact-panel h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.contact-panel p {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: #333;
}

.contact-panel input,
.contact-panel textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-panel input:focus,
.contact-panel textarea:focus {
  outline: none;
  border-color: #a5d6a7; /* subtle forest green border */
  box-shadow: 0 0 0 3px rgba(165, 214, 167, 0.2);
}

.contact-panel .btn {
  background: #111;
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s;
}

.contact-panel .btn:hover {
  background: #333;
  transform: translateY(-2px);
}

.close-contact {
  background: none;
  border: none;
  font-size: 1.5rem;
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 85vh;
  overflow: hidden;
}

.slides {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 1rem;
}

.dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: white;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.dot.active {
  opacity: 1;
}

.snow-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0,0,0,0.45);
}

.hero h1 {
  position: relative;
  font-size: 2.4rem;
  font-weight: 480;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  margin-top: 1.5rem;
  z-index: 1;
}

.btn {
  background: #fff;
  color: #111;
  padding: 0.75rem 1.5rem;
  margin: 0 0.5rem;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #eee;
}

.btn.outline {
  background: transparent;
  border: 1px solid white;
  color: white;
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  padding: 4rem 3rem;
}

.service {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.service:hover {
  transform: translateY(-4px);
}

.service img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.left-service-img {
  object-position: center bottom;
}

.service-content {
  padding: 1.5rem;
}

.service h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.service p {
  margin-bottom: 1rem;
}

.btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border: none;
  background: #000;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn.small:hover {
  background: #333;
}

#formSuccess {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background-color: #e6f2e6;
  color: #111;
  border: 1px solid #bcd9bc;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
}

/* Testimonials */
.testimonials {
  padding: 4rem 3rem;
  background: #f8f8f8;
  text-align: center;
}

.testimonials h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  padding: 2rem 3rem;
  background: #111;
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  header {
    padding: 1rem 1.5rem;
  }
}