/* 
  =============================
    GLOBAL RESETS & BASE STYLES
  =============================
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
  /* Prevent horizontal scrolling on mobile */
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

/* 
  ================
    BRAND COLORS
  ================
*/
:root {
  --gardener-green: #008542; /* main green */
  --gardener-yellow: #ffd400; /* accent yellow */
  --dark-bg: #222;           /* background for dark sections */
}

/* 
  =====================
    HEADER / NAV STYLES
  =====================
*/
header {
  background: var(--gardener-green);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.brand {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 50px;
  margin-right: 1rem;
}

.brand h1 {
  font-size: 1.5rem;
  white-space: nowrap;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-left: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: var(--gardener-yellow);
}

/* Hamburger Menu (hidden checkbox) */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
  margin-left: auto;
}

/* 
  Media Queries for responsiveness in Nav 
*/
@media (max-width: 992px) {
  .brand-container {
    padding: 1rem;
  }
  .nav-logo {
    height: 40px;
  }
}

/* 
  On mobile (max-width: 768px):
   - Hide hamburger
   - Stack brand + nav vertically
   - Wrap nav items so none are cut off
   - Use slightly smaller font
*/
@media (max-width: 768px) {
  .nav-toggle,
  .nav-toggle-label {
    display: none;
  }
  .brand-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  nav ul {
    display: flex;
    flex-wrap: wrap; /* allows items to break onto new line if needed */
    justify-content: center;
    margin-left: 0; /* remove the left margin */
    gap: 0.75rem;   /* slightly smaller gap */
    width: 100%;
    padding: 0.5rem;
    background: var(--gardener-green);
  }
  nav ul li a {
    font-size: 14px;       /* slightly smaller font to fit all text */
    padding: 0.5rem 0.75rem; /* reduce horizontal padding */
    white-space: nowrap;   /* keep each nav label on one line */
  }
}

/* 
  =====================
    HERO SECTION STYLES
  =====================
*/
#hero {
  background: url("assets/banner.jpg") center center/cover no-repeat;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-content {
  color: white;
  text-align: left;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
}

.btn-primary {
  background: var(--gardener-yellow);
  color: var(--gardener-green);
  border-radius: 4px;
}

.btn-primary:hover {
  background: #ffec80;
}

/* 
  =========================
   DARK BACKGROUND SECTIONS
  =========================
*/
.dark-bg {
  background: var(--dark-bg);
  color: white;
  padding: 3rem 0;
}

.dark-bg h2 {
  color: var(--gardener-yellow);
}

/* 
  =========================
      SECTION CONTAINERS
  =========================
*/
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

section h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

/* 
  =============================
     "WE OFFER" (OFFER GRID)
  =============================
*/
.offer-grid {
  display: grid;
  /* 2 columns on wider screens, 1 column on very small screens */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.offer-item {
  background: #333;
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 1rem;
}

.offer-item img.offer-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
}

.offer-item h3 {
  color: var(--gardener-yellow);
  margin: 1rem 0 0.5rem;
}

.offer-item p {
  color: #ccc;
  padding: 0 1rem;
}

/* 
  =========================
     LIGHTBOX MODAL STYLES
  =========================
*/
.lightbox-modal {
  display: none; 
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: rgba(0,0,0,0.8);
}

.lightbox-content {
  position: relative;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  max-width: 80%;
  text-align: center;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
}

#lightbox-image {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

/* Arrows */
.lightbox-arrow {
  color: #fff;
  font-size: 3rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  padding: 0 1rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.lightbox-arrow:hover {
  opacity: 1;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

/* Dots Container */
.lightbox-dots {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.lightbox-dots .dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255,212,0,0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.lightbox-dots .dot.active {
  background-color: var(--gardener-yellow);
}

/* 
  =============================
    OUR SERVICES (SERVICES GRID)
  =============================
*/
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.service-card img {
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
}

.service-card h3 {
  margin: 1rem 0 0.5rem;
  color: var(--gardener-green);
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #666;
}

.service-card button {
  background: var(--gardener-yellow);
  color: var(--gardener-green);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 3px;
  cursor: pointer;
  font-weight: bold;
}

.service-card button:hover {
  background: #ffec80;
}

/* 
  =====================
        GALLERY 
  =====================
*/
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
}

.gallery-description {
  color: #ccc;
  text-align: center;
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
}

.video-wrapper {
  margin-top: 2rem;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* 
  =====================
     MAINTENANCE BTN
  =====================
*/
.maintenance-btn-wrapper {
  text-align: center;
  position: relative;
  margin-top: -2rem; /* Overlap effect if desired */
  margin-bottom: 2rem;
  z-index: 1;
}

.maintenance-btn {
  display: inline-block;
  background: var(--gardener-green);
  color: var(--gardener-yellow);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background 0.2s, color 0.2s;
}

.maintenance-btn:hover {
  background: var(--gardener-yellow);
  color: var(--gardener-green);
}

/* 
  =====================
     QUOTE SECTION 
  =====================
*/
.quote-container {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
  flex-wrap: wrap;
}

.calculator-tabs,
.quote-form {
  flex: 1 1 400px;
}

/* Default order for desktop */
.calculator-tabs {
  order: 1;
}
.quote-form {
  order: 2;
}

/* On mobile (max-width: 768px), calculators above quote form */
@media (max-width: 768px) {
  .calculator-tabs {
    order: 1;
  }
  .quote-form {
    order: 2;
  }
}

.quote-form {
  background-color: #fff;
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#quote-form label {
  font-weight: bold;
  display: block;
  margin-top: 1rem;
}

#quote-form input,
#quote-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 0.25rem;
}

#quote-form button {
  margin-top: 1rem;
  background: var(--gardener-yellow);
  color: var(--gardener-green);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

#quote-form button:hover {
  background: #ffec80;
}

/* Loading Spinner */
#loading-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 8px solid #f3f3f3; 
  border-top: 8px solid var(--gardener-green);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  z-index: 10000;
}

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

/* Calculator Tabs */
.calculator-tabs {
  background-color: #fff;
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.tab-buttons {
  display: flex;
  border-bottom: 2px solid var(--gardener-green);
  margin-bottom: 1rem;
}

.tab-buttons button {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: bold;
  cursor: pointer;
  color: var(--gardener-green);
  transition: border-color 0.3s, background 0.3s;
}

.tab-buttons button:hover {
  background: #f1f1f1;
}

.tab-buttons button.active {
  border-bottom-color: var(--gardener-green);
  background: var(--gardener-yellow);
  color: var(--gardener-green);
}

.tab-content {
  padding-top: 1rem;
}

.calculator-content {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

.calculator-content.active {
  display: flex;
}

.calculator-content label {
  font-weight: bold;
  margin-top: 0.5rem;
}

.calculator-content input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.calculator-content button {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background-color: var(--gardener-yellow);
  color: var(--gardener-green);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.calculator-content button:hover {
  background-color: #ffec80;
}

.calculator-content p {
  margin: 0.5rem 0 0;
  font-weight: bold;
  color: var(--gardener-green);
}

.sod-actions-row {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
}

.inline-checkbox {
  display: flex;
  align-items: center;
  margin-right: 1rem;
}

.inline-checkbox input[type="checkbox"] {
  margin-left: 0.5rem;
}

#calculation-tips {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #444;
}

#calculation-tips ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

#sod-tips {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #444;
}

#sod-tips ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

/* 
  =====================
     CONTACT SECTION
  =====================
*/
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-info div h3 {
  margin-bottom: 0.5rem;
  color: var(--gardener-green);
}

.contact-info div p {
  font-size: 1rem;
  color: #444;
  font-weight: bold;
}

/* 
  ================
   MODAL / CHAT 
  ================
*/
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  margin: 5% auto;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  width: 90%;
  height: 600px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  resize: both;
  overflow: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gardener-green, #008542);
}

.modal-header h2 {
  display: inline-block;
  background-color: rgba(255, 212, 0, 0.7);
  color: var(--gardener-green, #008542);
  padding: 5px 10px;
  border-radius: 4px;
  margin: 0;
}

.modal-header .close {
  font-size: 35px;
  cursor: pointer;
  color: var(--gardener-green, #008542);
  position: relative;
}

.chat-log {
  position: relative;
  flex: 1;
  max-height: 500px;
  overflow-y: auto;
  margin: 20px 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
}

.chat-log::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  background: url("assets/the_gardener_logo.png") no-repeat center center;
  background-size: contain;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.chat-input-container {
  display: flex;
}

.chat-input-container input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-right: 10px;
  font-size: 14px;
}

.chat-input-container button {
  padding: 10px 20px;
  background: var(--gardener-green, #008542);
  color: var(--gardener-yellow, #ffd400);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.chat-message {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  max-width: 80%;
  clear: both;
  white-space: pre-wrap;
}

.chat-message.assistant {
  background: var(--gardener-green, #008542);
  color: var(--gardener-yellow, #ffd400);
  float: left;
}

.chat-message.user {
  background: var(--gardener-green, #008542);
  color: var(--gardener-yellow, #ffd400);
  float: right;
}

.copy-btn {
  margin-top: 5px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  border: none;
  background: rgba(255,255,255,0.8);
  color: var(--gardener-green, #008542);
  border-radius: 5px;
  float: right;
  position: relative;
}

.copy-tooltip {
  position: absolute;
  top: -25px;
  right: 0;
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0.9;
}

/* 
  ================
     FOOTER
  ================
*/
footer {
  background: var(--gardener-green);
  color: white;
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
}

/* 
  ==========================
   RESPONSIVE BREAKPOINTS 
  ==========================
*/
@media (max-width: 992px) {
  #hero {
    min-height: 50vh;
  }
  .hero-content h2 {
    font-size: 2.2rem;
  }
  .brand h1 {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 1.8rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}
