/* -----------------------
   1. Base Page Styling
------------------------*/
:root {
  --primary: #3a5c40; /* Earthy green */
  --secondary: #8b5a2b; /* Warm brown */
  --accent: #e8c07d; /* Gold accent */
  --light: #f9f5eb; /* Cream background */
  --dark: #2c2c2c; /* Dark text */
  --text: #4a4a4a; /* Main text */
}

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

body {
  font-family: 'Lora', serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--light);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--primary);
}

a {
  text-decoration: none;
  color: var(--secondary);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* -----------------------
   2. Header & Navigation
------------------------*/
header {
  background-color: var(--primary);
  color: white;
  padding: 15px 0;
  position: fixed;      /* lock it to top */
  top: 0;
  left: 0;
  width: 100%;          /* stretch across screen */
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: white;
  font-weight: 500;
  position: relative;
}

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

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

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: white;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--primary);
  z-index: 1001;
  transition: right 0.3s ease;
  padding: 20px;
  box-shadow: -5px 0 15px rgba(0,0,0,0.2);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 50px;
}

.mobile-links a {
  color: white;
  font-size: 1.1rem;
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* -----------------------
   3. Hero Sections
------------------------*/
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
              url('images/hero-bg.jpg') no-repeat center center/cover;
  margin-bottom: 50px;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent);
  color: var(--dark);
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);   /* strong green border */
  color: var(--primary);              /* matching green text */
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}


/* Optional light outline variant for use on dark backgrounds (e.g. hero)
 * where a white outline is preferable. Apply this class in markup when
 * needed instead of .btn-outline.
 */
.btn-outline-light {
  background-color: transparent;
  border: 2px solid white;
  color: white;
  margin-left: 15px;
}

.btn-outline-light:hover {
  background-color: white;
  color: var(--primary);
}

/* Notification toast for cart actions. Initially hidden offscreen,
 * it slides into view when triggered by cart.js and fades out after
 * a short period. The styling uses the accent colour for the
 * background to maintain brand consistency.
 */
#cart-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  background-color: var(--primary);
  color: white;
  padding: 12px 20px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

#cart-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/*
 * When outline buttons are used within hero sections (which typically have a
 * dark overlay), override their colours to ensure sufficient contrast. We
 * keep the white border and text and apply the standard hover inversion.
 */
.hero .btn-outline {
  border-color: white;
  color: white;
}

.hero .btn-outline:hover {
  background-color: white;
  color: var(--primary);
}

/* -----------------------
   4. About Section
------------------------*/
.about-section {
  padding: 80px 0;
  background-color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-title h2 {
  margin-bottom: 28px; /* creates more breathing room below heading */
  position: relative;  /* ensures ::after is positioned relative to the h2 */
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--accent);
  bottom: -14px; /* lower underline so it clears the text */
  left: 50%;
  transform: translateX(-50%);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.about-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

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

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 15px;
}

/* -----------------------
   5. Services Section
------------------------*/
.services-section {
  padding: 80px 0;
  background-color: var(--light);
}

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

.service-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-img {
  height: 200px;
  overflow: hidden;
}

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

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.service-content {
  padding: 20px;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-content p {
  margin-bottom: 20px;
}

/* -----------------------
   6. Testimonials
------------------------*/
.testimonials-section {
  padding: 80px 0;
  background-color: white;
}

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

.testimonial-card {
  background-color: var(--light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 4rem;
  font-family: 'Playfair Display', serif;
  color: rgba(0,0,0,0.05);
  line-height: 1;
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.author-info p {
  font-size: 0.9rem;
  color: var(--text);
  font-style: normal;
}

/* -----------------------
   7. Contact Section
------------------------*/
.contact-section {
  padding: 80px 0;
  background-color: var(--light);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.contact-item i {
  font-size: 1.2rem;
  color: var(--accent);
  margin-right: 15px;
  margin-top: 3px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--accent);
  color: var(--dark);
  transform: translateY(-3px);
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 20px;
}

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

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Lora', serif;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* -----------------------
   8. Newsletter
------------------------*/
.newsletter-section {
  padding: 60px 0;
  background-color: var(--primary);
  color: white;
  text-align: center;
}

.newsletter-section h2 {
  color: white;
  margin-bottom: 20px;
}

.newsletter-section p {
  max-width: 600px;
  margin: 0 auto 30px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 30px 0 0 30px;
  font-family: 'Lora', serif;
}

.newsletter-form button {
  padding: 12px 25px;
  background-color: var(--accent);
  color: var(--dark);
  border: none;
  border-radius: 0 30px 30px 0;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background-color: white;
}

/* -----------------------
   9. Footer
------------------------*/
footer {
  background-color: var(--dark);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* -----------------------
   10. Animations
------------------------*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* -----------------------
   11. Responsive Design
------------------------*/
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero {
    height: 70vh;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 10px 20px;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 60vh;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .btn-outline {
    margin-left: 0;
  }
}

/* -----------------------
   12. Utility Classes
------------------------*/
.text-center {
  text-align: center;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-30 {
  margin-bottom: 30px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mb-50 {
  margin-bottom: 50px;
}

/* -----------------------
   13. Chatbot Enhancements
------------------------*/
#chat-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary);
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

#chat-button i {
  margin-right: 10px;
}

#chat-button:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

#chatbot-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  max-width: 90%;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 1000;
  overflow: hidden;
  display: none;
  animation: fadeInUp 0.3s ease;
}

#chat-header {
  background-color: var(--primary);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chat-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: white;
}

#close-chat {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

#chatbox {
  height: 400px;
  display: flex;
  flex-direction: column;
}

#chatOutput {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.message {
  margin-bottom: 15px;
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 15px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.user-message {
  background-color: var(--light);
  margin-left: auto;
  border-bottom-right-radius: 5px;
}

.bot-message {
  background-color: var(--primary);
  color: white;
  margin-right: auto;
  border-bottom-left-radius: 5px;
}

#chat-input {
  display: flex;
  padding: 15px;
  border-top: 1px solid #eee;
}

#userInput {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 30px;
  outline: none;
  font-family: 'Lora', serif;
}

#sendButton {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#sendButton:hover {
  background-color: var(--secondary);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  padding: 10px 15px;
  background-color: #f1f1f1;
  border-radius: 15px;
  margin-bottom: 15px;
  width: fit-content;
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  background-color: #666;
  border-radius: 50%;
  display: inline-block;
  margin: 0 2px;
  animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* -----------------------
   14. Modal Enhancements
------------------------*/
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.7);
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: white;
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: all 0.3s ease;
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  color: var(--primary);
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  text-align: right;
}

/* -----------------------
   15. Quote Calculator
------------------------*/
.quote-calculator {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin: 30px 0;
}

.calculator-form .form-group {
  margin-bottom: 15px;
}

.calculator-results {
  margin-top: 20px;
  padding: 15px;
  background-color: var(--light);
  border-radius: 5px;
  display: none;
}

.calculator-results h4 {
  margin-bottom: 10px;
  color: var(--primary);
}

/* -----------------------
   16. Image Gallery
------------------------*/
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin: 30px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* -----------------------
   17. Scroll to Top
------------------------*/
#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

#scrollToTop.active {
  opacity: 1;
  visibility: visible;
}

#scrollToTop:hover {
  background-color: var(--secondary);
}
.services-hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('images/services-hero.jpg') no-repeat center center/cover;
}
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-color: var(--primary); /* Removed image, now using a flat color */
  margin-bottom: 50px;
}
.about-hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
              url('images/about-hero-bg.jpg') no-repeat center center/cover;
              
}
/* --- Services Detail Section --- */
.services-detail-section {
  padding: 80px 0;
  background-color: var(--light);
}

/* Service Category Grid */
.service-category {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* Each Service Item Card */
.service-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  padding: 32px 22px 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.23s, box-shadow 0.23s;
  min-height: 390px;
}

.service-item:hover {
  transform: translateY(-7px) scale(1.015);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.service-icon {
  font-size: 2.7rem;
  color: var(--primary);
  margin-bottom: 18px;
}

.service-item h3 {
  font-size: 1.18rem;
  color: var(--primary);
  margin-bottom: 12px;
  text-align: center;
}

.service-item p {
  text-align: center;
  margin-bottom: 14px;
  color: var(--text);
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: auto;
  width: 100%;
}

.service-features li {
  padding: 6px 0;
  border-bottom: 1px solid #f1f1f1;
  font-size: 1rem;
  color: var(--dark);
}

.service-features li:last-child {
  border-bottom: none;
}

/* Responsive Tweaks */
@media (max-width: 800px) {
  .service-category {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .service-item {
    padding: 24px 12px;
    min-height: 350px;
  }
}
@media (max-width: 600px) {
  .service-category {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .service-item {
    padding: 16px 8px;
    min-height: 0;
  }
}
/* --- Firewood Section --- */
.firewood-section {
  padding: 80px 0;
  background-color: var(--light);
}

.firewood-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
  margin-top: 36px;
}

.firewood-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
  padding: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.22s, box-shadow 0.22s;
}

.firewood-card:hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 10px 28px rgba(0,0,0,0.17);
}

.firewood-img {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  margin-bottom: 18px;
}

.firewood-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.firewood-card:hover .firewood-img img {
  transform: scale(1.08);
}

.firewood-card h3 {
  font-size: 1.18rem;
  margin: 0 0 10px 0;
  color: var(--primary);
  text-align: center;
}

.firewood-card .price {
  font-weight: bold;
  color: var(--secondary);
  margin-bottom: 4px;
  margin-top: -2px;
  font-size: 1rem;
}

.firewood-card p {
  text-align: center;
  margin: 0 0 10px 0;
  color: var(--text);
  font-size: 1rem;
}

.firewood-card ul {
  list-style: disc inside;
  text-align: left;
  margin: 10px 0 18px 0;
  padding-left: 20px;
  color: var(--dark);
}

.firewood-card li {
  font-size: 1rem;
  margin-bottom: 6px;
}

.firewood-card .btn {
  margin-top: auto;
}

@media (max-width: 800px) {
  .firewood-types {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .firewood-img {
    height: 180px;
  }
}
@media (max-width: 600px) {
  .firewood-types {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .firewood-img {
    height: 135px;
  }
}
/* --- Firewood Info Grid --- */
.firewood-info {
  margin-top: 30px;
}

.firewood-info h3 {
  text-align: center;
  margin-bottom: 28px;
  font-size: 1.5rem;
  color: var(--primary);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.info-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
  padding: 32px 20px 22px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.22s, transform 0.22s;
  min-height: 210px;
}

.info-item:hover {
  box-shadow: 0 10px 26px rgba(0,0,0,0.16);
  transform: translateY(-4px) scale(1.012);
}

.info-item i {
  font-size: 2.1rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.info-item h4 {
  margin-bottom: 10px;
  font-size: 1.07rem;
  color: var(--secondary);
  font-weight: 700;
}

.info-item p {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .info-item {
    padding: 20px 10px 16px 10px;
    min-height: 170px;
  }
}
@media (max-width: 480px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}
/* --- Service Area Section (Modern List) --- */
.service-area-section {
  padding: 70px 0 50px 0;
  background-color: var(--light);
}

.service-area-section h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 2.2rem;
}

.service-area-section > p {
  text-align: center;
  margin-bottom: 30px;
  color: var(--text);
  font-size: 1.08rem;
}

.area-coverage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  margin: 0 auto 15px auto;
  max-width: 800px;
  border-top: 1.5px solid #ece4d6;
  border-bottom: 1.5px solid #ece4d6;
  padding: 34px 0;
}

.area-list {
  flex: 1 1 240px;
  max-width: 340px;
}

.area-list h3 {
  font-size: 1.13rem;
  color: var(--primary);
  margin-bottom: 13px;
  letter-spacing: 0.03em;
  font-weight: 700;
  text-align: left;
  border-left: 3px solid var(--accent);
  padding-left: 9px;
}

.area-list ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.area-list li {
  position: relative;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 9px;
  padding-left: 21px;
}

.area-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.note {
  text-align: center;
  color: var(--secondary);
  font-size: 1.05rem;
  margin-top: 26px;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .area-coverage {
    flex-direction: column;
    align-items: stretch;
    gap: 25px;
    max-width: 96vw;
    padding: 25px 0;
  }
  .area-list {
    max-width: 100%;
  }
}
#phone-reveal-label {
  font-size: 0.98em;
  color: #444;
  margin-bottom: 6px;
}
#footer-phone-li {
  margin-bottom: 12px;
  list-style: none;
  padding-left: 0;
}
#recaptcha-phone-footer {
  margin: 0 auto 8px auto;
  min-height: 78px;
  display: block;
  max-width: 250px;
}
#phone-footer-number {
  font-size: 1.13em;
  font-weight: 600;
  color: #21844d;
  letter-spacing: 0.03em;
  margin-left: 0;
}
#phone-footer-number i.fas {
  margin-right: 6px;
  color: #21844d;
}
#phone-reveal-label {
  font-size: 0.98em;
  color: #eee;
  margin-bottom: 6px;
}

/* === Product & Cart Styles === */
.product-section {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  padding: 60px 0;
}
/* Product gallery on the product page. Use a responsive CSS grid to
   automatically arrange images into equal columns and constrain their
   height so they don’t dominate the page. */
.product-gallery {
  flex: 1 1 400px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.product-gallery img {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  object-fit: cover;
}
.product-details {
  flex: 1 1 400px;
}
.product-details .price {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.product-details ul {
  list-style: none;
  margin: 15px 0;
}
.product-details ul li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}
.product-details ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.buy-options {
  margin-top: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
.buy-options label {
  margin-right: 5px;
  font-weight: 600;
}
.buy-options input[type="number"] {
  width: 80px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Features list inside the product details */
.features-list {
  list-style: none;
  margin: 15px 0;
  padding: 0;
}
.features-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
  font-size: 1rem;
  color: #333;
}
.features-list li i {
  color: var(--accent);
  margin-right: 8px;
  font-size: 1.1rem;
  line-height: 1.2;
}

/* Why Choose section styling */
.why-choose {
  background: #f9f9f9;
  padding: 60px 0;
}
.why-choose h2 {
  text-align: center;
  margin-bottom: 30px;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}
.feature-card {
  flex: 1 1 200px;
  max-width: 250px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.feature-card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 10px;
}
.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--primary);
}
.feature-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}
.why-choose .disclaimer {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #666;
  text-align: center;
}

/* Cart table styling */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.cart-table th,
.cart-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}
.cart-table th {
  background-color: var(--primary);
  color: white;
}
.cart-table input[type="number"] {
  width: 60px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.cart-table button {
  padding: 5px 10px;
  background-color: var(--secondary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.cart-table button:hover {
  background-color: var(--accent);
}
.cart-section form label {
  display: block;
  margin: 12px 0 5px;
  font-weight: 600;
}
.cart-section form input,
.cart-section form textarea,
.cart-section form select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.cart-section form button {
  margin-top: 20px;
}

/* Tree gallery used on services page */
.tree-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}
.tree-gallery img {
  width: calc(25% - 15px);
  border-radius: 8px;
  height: 150px;
  object-fit: cover;
}

/* === Product Showcase Section === */
/* This section highlights our featured product (mixed hardwood logs) on the
   homepage. It uses a flexible row layout that wraps on smaller
   screens, with an image and text side by side on larger screens. */
.product-showcase {
  padding: 60px 0;
}
.product-showcase-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}
.product-showcase-image,
.product-showcase-text {
  flex: 1 1 400px;
}
.product-showcase-image img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}
.product-showcase-text .price {
  font-size: 1.8rem;
  color: var(--accent);
  margin-top: 10px;
  margin-bottom: 20px;
}
/* Success page card */
.success-card {
  background: #fff;
  border-radius: 14px;
  padding: 38px 28px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.08);
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  animation: fadeInUp 0.5s ease;
}

.success-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.success-card h2 {
  color: var(--primary);
  margin-bottom: 10px;
}

.success-card p {
  color: var(--text);
}

.success-card .error-msg {
  margin-top: 10px;
  color: #c0392b;
  font-weight: 600;
}
/* --- Mobile-specific fixes --- */
@media (max-width: 768px) {
  /* Prevent any layout from spilling horizontally */
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Hero section: reduce height on smaller screens */
  .hero {
    height: 55vh;
    min-height: 300px;
    background-size: cover;
    background-position: center;
  }

  /* Product images: smaller on mobile */
  .firewood-img {
    height: 160px; /* was 250px */
  }
  .product-gallery img {
    height: 140px; /* was 200px */
  }
}

@media (max-width: 480px) {
  .hero {
    height: 45vh;
    min-height: 220px;
  }

  .firewood-img {
    height: 120px;
  }
  .product-gallery img {
    height: 110px;
  }
}
/* --- Fix mobile zoom-in on chat input --- */
.chat-box input,
.chat-box textarea,
.chat-box .chat-input {
  font-size: 16px !important;  /* prevent iOS/Android zoom */
  line-height: 1.4;
  padding: 10px 12px;
}
.nav-phone a {
  color: white;            /* make the text visible on green background */
  font-weight: 700;        /* bold for readability */
  font-size: 1rem;         /* slightly bigger */
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-phone a:hover {
  color: var(--accent);    /* gold on hover */
}

.nav-phone i {
  color: var(--accent);    /* keep the phone icon gold */
}
/* --- Fixed header: mobile-safe spacing & layering --- */
:root { --header-h: 72px; }           /* desktop header height */

header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1100;                      /* keep above everything */
}

/* Push page content below the fixed header (handles iOS safe area too) */
body {
  padding-top: calc(var(--header-h) + env(safe-area-inset-top));
}

/* Mobile adjustments */
@media (max-width: 768px) {
  :root { --header-h: 64px; }         /* slightly smaller header on mobile */
  body { padding-top: calc(var(--header-h) + env(safe-area-inset-top)); }
  .mobile-menu {
    top: var(--header-h);             /* slide-out begins under header */
    height: calc(100vh - var(--header-h));
  }
  .menu-toggle { z-index: 1102; }     /* keep burger button clickable */
}
