/* Import Outfit and Open Sans from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* Color Variables */
:root {
  --color-primary: #76A072;       /* Sage Green */
  --color-secondary: #3A6B45;     /* Soft Emerald */
  --color-accent: #F3D06D;        /* Warm Soft Gold */
  --color-bg-neutral: #F8F9FA;    /* Off-white Neutral */
  --color-text-neutral: #2B302A;  /* Deep Charcoal Green-Gray */
  --color-white: #FFFFFF;
  --color-slate-900: #1b221a;     /* Ultra Dark Forest Charcoal for top bar */
  
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-neutral);
  color: var(--color-text-neutral);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--color-secondary);
}

/* Accessibility Focus States */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Custom Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg-neutral);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.preloader-logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
}

.preloader-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  z-index: 10;
  animation: logoPulse 2s infinite ease-in-out;
}

.preloader-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid var(--color-primary);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

.preloader-text {
  margin-top: 24px;
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-secondary);
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fadeInText 1s forwards 0.3s;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(118, 160, 114, 0.4)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 20px rgba(243, 208, 109, 0.6)); }
}

@keyframes fadeInText {
  to { opacity: 1; }
}

/* Glassmorphic Navbar Layer */
.glass-nav {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* Custom Scroll snap for reviews */
.reviews-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
}

.reviews-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.review-card {
  scroll-snap-align: start;
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .review-card {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (min-width: 1024px) {
  .review-card {
    flex: 0 0 calc(33.333% - 1rem);
  }
}

/* Interactive Wizard Styling */
.wizard-step {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.wizard-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.step-indicator {
  transition: all 0.3s ease;
}

.step-indicator.active {
  border-color: var(--color-accent);
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.step-indicator.completed {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Sticky Mobile Quick-Contact */
.sticky-contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  background-color: rgba(27, 34, 26, 0.95);
  backdrop-filter: blur(8px);
  border-top: 2px solid var(--color-accent);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.sticky-contact-btn {
  flex: 1;
  text-align: center;
  padding: 0.85rem 1rem;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.sticky-contact-btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sticky-contact-btn-secondary {
  background-color: var(--color-accent);
  color: var(--color-slate-900);
}

.sticky-contact-btn:hover {
  filter: brightness(1.1);
}

/* Custom styles for grid, hover highlights and marquee */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px -10px rgba(58, 107, 69, 0.15);
}

/* Infinite scrolling marquee */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  background-color: var(--color-secondary);
  color: var(--color-accent);
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-content {
  display: inline-block;
  animation: marquee 90s linear infinite;
  padding-left: 100%;
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-right: 3rem;
  text-transform: uppercase;
}

/* Form inputs styling */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(118, 160, 114, 0.3);
  border-radius: 8px;
  background-color: var(--color-white);
  color: var(--color-text-neutral);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(58, 107, 69, 0.15);
}
