/* G'S Garden Path Landscaping - Demo Site */
:root {
  --green-dark: #4E7A3C;
  --green-light: #6FA850;
  --brown: #5E3A2F;
  --orange: #D97A38;
  --tan: #CBA97E;
  --brick: #AE3F38;
  --charcoal: #2B2B2B;
  --white: #FFFFFF;
  --off-white: #F6F8F5;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Offset anchor scrolling for sticky header */
section[id] { scroll-margin-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Language Toggle (in navbar) */
.lang-toggle {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.9);
  padding: 4px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.lang-toggle button {
  padding: 6px 14px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.lang-toggle button.active {
  background: var(--green-dark);
  color: white;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-text {
  font-weight: 700;
  color: var(--green-dark);
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--green-dark); }

.btn-cta {
  background: var(--orange) !important;
  color: white !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600 !important;
}

.mobile-menu-btn { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #F6F8F5 0%, #E8F0E4 100%);
  overflow: hidden;
}

.grass-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
}

.grass-svg { width: 100%; height: 100%; }

/* Grass sway animation */
.blade {
  transform-origin: bottom center;
  animation: sway 3s ease-in-out infinite alternate;
}

.b1 { animation-delay: 0s; }
.b2 { animation-delay: -0.5s; }
.b3 { animation-delay: -1s; }
.b4 { animation-delay: -1.5s; }
.b5 { animation-delay: -2s; }

@keyframes sway {
  from { transform: rotate(-3deg); }
  to { transform: rotate(3deg); }
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 80px 24px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--green-dark);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-sub {
  font-size: 1.3rem;
  max-width: 600px;
  margin-bottom: 32px;
  color: var(--charcoal);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-primary {
  background: var(--green-dark);
  color: white;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(78,122,60,0.3);
}

.btn-secondary {
  background: white;
  color: var(--charcoal);
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--green-dark);
}

.hero-badge {
  display: inline-block;
  background: rgba(78,122,60,0.1);
  color: var(--green-dark);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Services */
.services { padding: 100px 0; }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 60px;
  color: var(--green-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.service-card.large {
  grid-column: span 2;
  background: var(--green-dark);
  color: white;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 16px;
  background: var(--off-white);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.service-icon { margin-bottom: 16px; }
.service-icon svg { display: block; }

.service-card h3 {
  font-size: 1.3rem;
  min-height: 3.8rem; /* reserves room for 2-line headings so body text aligns across cards */
  margin-bottom: 12px;
}

/* About */
.about {
  background: var(--off-white);
  padding: 100px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--green-dark);
}

.about-stats {
  display: grid;
  gap: 32px;
}

.stat { text-align: center; }

.stat-num {
  font-size: 3rem;
  font-weight: 700;
  color: var(--orange);
  display: block;
}

/* Work/Gallery */
.work { padding: 100px 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  background: var(--off-white);
}

.project-svg { width: 100%; height: auto; display: block; }

.gallery-caption {
  padding: 16px;
  font-weight: 500;
}

/* Contact */
.contact {
  background: linear-gradient(135deg, var(--green-dark) 0%, #3A5E2C 100%);
  color: white;
  padding: 100px 0;
}

.contact-inner { text-align: center; }

.contact h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.contact-sub {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 48px;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto 48px;
}

.form-row { display: flex; gap: 16px; }

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  border: none;
  font-family: var(--font-body);
  margin-bottom: 16px;
}

.contact-info { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }

.contact-phone, .contact-email {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--charcoal);
  color: white;
  padding: 48px 0;
}

.footer-inner { text-align: center; }

.footer-logo { margin-bottom: 16px; }

.footer-copy { opacity: 0.7; font-size: 0.9rem; margin-bottom: 16px; }

.footer-links a { color: white; opacity: 0.7; text-decoration: none; margin: 0 12px; }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Quote Calculator */
.quote-calculator {
  margin-top: 60px;
  padding: 32px;
  background: rgba(255,255,255,0.1);
  border-radius: 16px;
  text-align: center;
}

.quote-calculator h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.quote-sub { opacity: 0.9; margin-bottom: 24px; }

.quote-options {
  margin-bottom: 16px;
}

.quote-options label { display: block; margin-bottom: 8px; font-weight: 500; }

.quote-options select {
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  font-family: var(--font-body);
  width: 100%;
  max-width: 300px;
}

#quote-result-container {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#quote-result {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--orange);
}

.quote-note { opacity: 0.85; font-size: 0.85rem; margin-top: 16px; }

/* Chat Widget */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 999; }

.chat-toggle {
  background: var(--green-dark);
  color: white;
  border: none;
  padding: 16px 20px;
  border-radius: 32px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.chat-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 350px;
  height: 450px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
}

.chat-panel.open { display: flex; }

.chat-header { padding: 16px; border-bottom: 1px solid #eee; }

.chat-header h4 { margin-bottom: 4px; color: var(--green-dark); }

.chat-header p { font-size: 0.85rem; opacity: 0.7; }

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

.chat-message {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.chat-message.ai { background: var(--off-white); }

.chat-message.user {
  background: var(--green-dark);
  color: white;
  margin-left: auto;
  max-width: 85%;
}

.chat-input-container {
  padding: 16px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 8px;
}

.chat-input-container input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 24px;
  border: 1px solid #ddd;
  font-family: var(--font-body);
}

.chat-input-container button {
  background: var(--green-dark);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 24px;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  
  .form-row { flex-direction: column; }
  
  .chat-panel { width: calc(100vw - 32px); right: -8px; }
}
