/* ==== Variables & Reset ==== */
:root {
  --green:        #4E6F43;
  --olive:        #B2CB91;
  --neutral:      #F5F5F0;
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;
}
* { margin:0; padding:0; box-sizing:border-box }
html {
  scroll-behavior: smooth;
}

body { 
	font-family:var(--font-body); 
	background-color: #F5F5F0; 
	color:var(--neutral); 
	overflow-x:hidden;
	max-width:100vw;
	}




/* === Navbar === */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #4E6F43;
  z-index: 1000;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  display: inline-block;
  height: 48px; 
}

.logo img {
  height: 100%;
  width: auto;
  display: block;
}


.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
}

.nav-links a {
  font-family: 'Open Sans', sans-serif;
  color: #F5F5F0;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links a.active,
.nav-links a:hover {
  color: #f1ac43;
}

/* Hamburger styles */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #F5F5F0;
  cursor: pointer;
  outline: none;
  box-shadow: none;
}
.hamburger:focus {
  outline: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  -webkit-tap-highlight-color: transparent; /* For mobile devices */
}

.hamburger::-moz-focus-inner {
  border: 0;
}

.hamburger:focus-visible {
  outline: none;
}





/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    width: 100%;
    flex-direction: column;
    background: #4E6F43;
    display: none;
    margin-top: 1rem;
  }

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

  .hamburger {
    display: block;
  }
}








/* ==== Hero Base ==== */
#hero {
  position: relative;
  width: 100%; 
  height: 100vh;
  background-image: url('images/hero.webp');
  background-position: center center;
  background-size: cover;
  /* Remove any inline JS‑driven backgroundPosition changes on scroll: */
  background-attachment: fixed;     /* parallax effect */
  display: flex; 
  align-items: center; 
  justify-content: center;
  text-align: center; 
  overflow: hidden;
}

.hero-overlay {
  position:absolute; inset:0;
  background:rgba(0,0,0,0.7);
  z-index:1;
}

/* ==== Content ==== */
.hero-content {
  position: relative; 
  z-index:2;
  width: 100%; 
  max-width: 1000px;
  padding: 0 1rem;
}
.hero-branding {
  margin-bottom:1rem;
}
.hero-branding img {
  width: 100px; max-width: 25vw; /* scales on small screens */
}
.tagline {

   
  font-size:1.5rem; 
  opacity:0.9;
}

/* ==== Slides ==== */
/* 1. Center the slides container (optional) */
.hero-slides {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 250px;               /* or whatever fixed/minimum height you like */
}

/* 2. Absolutely position each slide at the center */
.slide {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 800px;
  width: 90%;          
  transform: translate(-50%, -50%) translateY(20px);
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  padding: 0 1rem;             /* keep side padding */
  box-sizing: border-box;
  text-align: center;
}

/* 3. When active, undo the Y‑offset and show */
.slide.active {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

/* 4. Typography stays as before */
.slide h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 0.5rem;
}
.slide p {
  font-size: clamp(1rem, 3vw, 1.25rem);
}

/* ==== Controls ==== */
.slide-controls {
  display:flex; 
  justify-content:center; 
  gap:0.75rem; 
  margin-top: 0;              /* reset any unintended defaults */
  padding: 0;
  margin-bottom:2rem;
}
.dot {
  width:12px; height:12px; border-radius:50%;
  background:rgba(255,255,255,0.5); border:none;
  cursor:pointer; transition:background 0.3s ease;
}
.dot.active, .dot:hover {
  background:var(--olive);
}

/* ==== CTA ==== */
.cta {
  font-family:var(--font-heading);
  background:var(--olive); 
  color:var(--green);
  padding:0.75rem 2rem; 
  border:none; 
  border-radius:2rem;
  margin-bottom: 1.5rem;
  cursor:pointer; 
  transition: transform 0.3s ease;
}
.cta:hover { 
  background-color: #836539;
  color:#fff;
  transform:scale(1.05); 
  transition: all 0.8s;
}

/* ==== Scroll Arrow ==== */
.scroll-arrow {
  position:absolute; bottom:2rem; left:50%;
  transform:translateX(-50%); display:flex; flex-direction:column; gap:0.25rem;
}
.scroll-arrow span {
  width:8px; height:8px; border-bottom:2px solid var(--neutral);
  border-right:2px solid var(--neutral); transform:rotate(45deg);
  animation:bounce 1.5s infinite;
}
@keyframes bounce {
  0%,20% { transform:translate(0) rotate(45deg); opacity:1 }
  80%,100% { transform:translateY(15px) rotate(45deg); opacity:0 }
}

/* About Section Styling */
.about-section {
  background-color: #F5F5F0; /* Neutral Light */
  padding: 4rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-content {
  display: flex;
  flex-direction: row;
  max-width: 1200px;
  gap: 2rem;
  align-items: center;
}

.text-content {
  flex: 1;
}

.text-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #4E6F43; /* Primary Green */
  margin-bottom: 1rem;
}

.text-content p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.125rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #836539; /* Accent Brown */
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: var(--olive); 
  color:var(--green);
  font-weight: 600;
}

.image-content {
  flex: 1;
}

.image-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* ==== Responsive ==== */
/* iOS full‑height hack */
@supports (-webkit-touch-callout: none) {
  #hero {
    height: -webkit-fill-available;
  }
}

@media (max-width: 1024px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .image-content {
    order: -1;
  }
}

/* Base Section Styles */
#services {
  position: relative;
  padding: 5rem 2rem 6rem;
  background: linear-gradient(180deg, #a3b77a 0%, #f9f9f9 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2e5d34;
  clip-path: polygon(
    0% 20px,
    5% 10px,
    10% 20px,
    15% 10px,
    20% 20px,
    25% 10px,
    30% 20px,
    35% 10px,
    40% 20px,
    45% 10px,
    50% 20px,
    55% 10px,
    60% 20px,
    65% 10px,
    70% 20px,
    75% 10px,
    80% 20px,
    85% 10px,
    90% 20px,
    95% 10px,
    100% 20px,
    100% 100%,
    0% 100%
  );
}


/* Header */
.services-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.services-header h2 {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: 1.1px;
  margin-bottom: 0.4rem;
}

.services-header p {
  font-size: 1.1rem;
  font-weight: 400;
  color: #4a7041;
  opacity: 0.8;
}

/* Wrapper - Grid layout for 4 cards */
.services-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
  width: 85%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card base */
.service-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(46, 93, 52, 0.12);
  perspective: 1200px;
  height: 360px;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
  overflow: visible;
}

/* Soft scale on hover */
.service-card:hover {
  transform: scale(1.04);
  box-shadow: 0 20px 40px rgba(46, 93, 52, 0.2);
}

/* Flip container */
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 16px;
}

.service-card:hover .card-inner {
  transform: rotateY(180deg);
}

/* Front and Back shared */
.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  backface-visibility: hidden;
  padding: 2rem 2rem 2.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  user-select: none;
}

/* Front styling */
.card-front {
  background: #f7fbf2;
  color: #2e5d34;
  box-shadow: inset 0 0 20px #d6e6be33;
}

/* Icon container */
.icon-wrap {
  background-color: #c8dfad;
  width: 68px;
  height: 68px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  margin-bottom: 1.3rem;
  box-shadow: 0 2px 8px rgba(46, 93, 52, 0.15);
}

.icon-wrap svg {
  width: 36px;
  height: 36px;
  stroke-width: 3.2;
  stroke: #3f6430;
}

/* Titles and text */
.card-front h3 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.card-front p {
  font-size: 1rem;
  line-height: 1.5;
  color: #4a7041;
  opacity: 0.85;
  flex-grow: 1;
}

/* Back styling */
.card-back {
  background: #dde9cd;
  color: #2e5d34;
  transform: rotateY(180deg);
  box-shadow: inset 0 0 15px #b7cd88cc;
  padding-top: 2.5rem;
}

.card-back h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.card-back p {
  font-size: 1rem;
  line-height: 1.5;
  color: #3f6430;
}

/* Fade-in animation */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}


#products {
  background: linear-gradient(to bottom, #F9F9F5, #F5F5F0, #E8E8DD, #DADACF);
  padding: 4rem 1.5rem;
  font-family: 'Segoe UI', sans-serif;
  color: #2e5d34;
  position: relative;
  overflow-x: hidden;
}

#products h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #4e6f43;
  margin-bottom: 2rem;
}

.scroll-controls {
  position: relative;
}

.products-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 2rem;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.products-scroll::-webkit-scrollbar {
  display: none; /* Chrome */
}

.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: start;
  box-shadow: 0 4px 8px rgba(163, 183, 122, 0.2), 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.product-card h3 {
  font-size: 1.2rem;
  margin: 0.75rem 1rem 0.3rem;
  color: #4e6f43;
}

.product-card p {
  margin: 0 1rem 1rem;
  font-size: 0.95rem;
  color: #5d5d5d;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(163, 183, 122, 0.3);
  z-index: 2;
}

/* Scroll arrows */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #a3b77a;
  color: white;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.scroll-btn.left {
  left: -10px;
}

.scroll-btn.right {
  right: -10px;
}

.scroll-btn:hover {
  background-color: #4e6f43;
}

/* ==========================================================================
   Gallery Section - Scoped Styles (Revised)
   ========================================================================== */

   #gallery {
    background: linear-gradient(to bottom, #4E6F43 0%, #B2CB91 100%);
    padding: 4rem 2rem 6rem;
    color: #F5F5F0;
    font-family: 'Open Sans', sans-serif;
    position: relative;
    overflow: visible;
  }
  
  /* Heading */
  #gallery h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 2rem;
    color: inherit;
  }
  
  /* Masonry-style columns */
  #gallery .gallery-grid {
    column-count: 1;
    column-gap: 1.5rem;
  }
  @media (min-width: 600px) { #gallery .gallery-grid { column-count: 2; } }
  @media (min-width: 900px) { #gallery .gallery-grid { column-count: 3; } }
  @media (min-width: 1200px) { #gallery .gallery-grid { column-count: 4; } }
  
  /* Each item container with consistent aspect ratio */
  #gallery .gallery-grid .item {
    position: relative;
    break-inside: avoid;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    aspect-ratio: 4/3; /* Ensures all items have the same shape */
    background: #d4d4d4; /* fallback color while image loads */
  }
  
  /* Image fills the container proportionally */
  #gallery .gallery-grid .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.4s ease;
  }
  
  #gallery .gallery-grid .item:hover {
    transform: translateY(-5px);
  }
  #gallery .gallery-grid .item:hover img {
    transform: scale(1.05);
  }
  
  /* Overlay label on hover */
  #gallery .gallery-grid .item::after {
    content: attr(data-label);
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 0.75rem;
    background: rgba(131, 101, 57, 0.85);
    color: #F5F5F0;
    text-align: center;
    font-weight: 600;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  #gallery .gallery-grid .item:hover::after {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Lightbox backdrop */
  #gallery #lightbox {
    position: fixed;
    inset: 0;
    background: rgba(78, 111, 67, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1000;
  }
  #gallery #lightbox.hidden {
    display: none;
  }
  
  /* Lightbox image */
  #gallery #lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    object-fit: contain;
  }
  
  /* Close & nav buttons */
  #gallery #lightbox .close,
  #gallery #lightbox .nav {
    position: absolute;
    background: none;
    border: none;
    color: #F5F5F0;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
  }
  #gallery #lightbox .close:hover,
  #gallery #lightbox .nav:hover {
    color: #B2CB91;
  }
  #gallery #lightbox .close { top: 1.5rem; right: 2rem; }
  #gallery #lightbox .prev { left: 2rem; top: 50%; transform: translateY(-50%); }
  #gallery #lightbox .next { right: 2rem; top: 50%; transform: translateY(-50%); }
  
  /* Fade-in on scroll just for #gallery */
  #gallery.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  #gallery.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
/* === Contact Section (no map) === */
#contact {
  background: linear-gradient(135deg, #B2CB91 0%, #F5F5F0 100%);
  padding: 4rem 1.5rem;
  color: #2E5D34;
  font-family: 'Open Sans', sans-serif;
  text-align: center;
  overflow: hidden;
}

#contact h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 2.5rem;
  color: #4E6F43;
}

/* Cards container */
.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Individual card */
.info-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  flex: 1 1 280px;
  max-width: 320px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  word-break: break-word;
}

.info-card svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: #4E6F43;
}

.info-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: #3F6430;
}

.info-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #555;
}

.info-card a {
  color: #4E6F43;
  text-decoration: none;
  font-size: 0.95rem;
  word-wrap: break-word;
  transition: color 0.2s ease;
}

.info-card a:hover {
  color: #836539;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* === Responsive Fixes === */
@media (max-width: 768px) {
  .info-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .info-card h3 {
    font-size: 1rem;
  }

  .info-card p,
  .info-card a {
    font-size: 0.9rem;
  }

  .info-card svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  #contact {
    padding: 3rem 1rem;
  }

  .contact-cards {
    gap: 1rem;
  }

  .info-card {
    padding: 1.25rem;
    gap: 0.75rem;
  }

  .info-card svg {
    width: 24px;
    height: 24px;
  }

  .info-card h3 {
    font-size: 0.95rem;
  }

  .info-card p,
  .info-card a {
    font-size: 0.85rem;
  }
}

/* ==============================
   Footer Styles (only CSS)
   ============================== */

#footer {
  background-color: #4E6F43; /* Primary Green */
  color: #F5F5F0;            /* Neutral Light */
  padding: 3rem 2rem 2rem;
  font-family: 'Open Sans', sans-serif;
}

#footer .footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

#footer .footer-about,
#footer .footer-links,
#footer .footer-social {
  flex: 1 1 220px;
  min-width: 200px;
}

/* Logo + blurb */
#footer .footer-about .footer-logo {
  width: 120px;
  margin-bottom: 1rem;
}
#footer .footer-about p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Section headings */
#footer h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: #B2CB91; /* Secondary Olive */
}

/* Quick Links */
#footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#footer .footer-links li {
  margin-bottom: 0.5rem;
}
#footer .footer-links a {
  color: #F5F5F0;
  text-decoration: none;
  transition: color 0.2s ease;
}
#footer .footer-links a:hover {
  color: #6FA8DC; 
  font-size: 1.1rem;
}

/* Social Links */
#footer .social-links {
  display: flex;
  gap: 1rem;
}
#footer .social-links a {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border: 1px solid #F5F5F0;
  border-radius: 4px;
  color: #F5F5F0;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
#footer .social-links a:hover {
  background-color: #B2CB91; /* Secondary Olive */
  color: #4E6F43;
  border-color: transparent;
}

/* Footer bottom bar */
#footer .footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid rgba(245,245,240,0.2);
  padding-top: 1rem;
  color: rgba(245,245,240,0.7);
}
/* Style for the "Site developed by" footer text */
.footer-developed {
  text-align: center; 
  font-size: 0.875rem; 
  color: #F5F5F0; 
  margin: 0.5rem 0; 
  font-family: 'Open Sans', sans-serif; 
}

.footer-developed span a{
  font-weight: 600; 
  color: #f1ac43; 
  text-decoration: none;
}
.footer-developed span a:hover{
 color:rgba(245,245,240,0.7);
}
/* Responsive adjustments */
@media (max-width: 768px) {
  #footer .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  #footer .footer-about,
  #footer .footer-links,
  #footer .footer-social {
    max-width: 100%;
  }
  #footer .social-links {
    justify-content: center;
  }
}


/* Fade-in on scroll for contact */
#contact.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
#contact.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-cards { flex-direction: column; gap: 2rem; }
}


/* Tablets - 2 per row */
@media (max-width: 1024px) {
  .services-wrapper {
    grid-template-columns: repeat(2, 1fr);
    width: 90%;
  }
  .service-card {
    height: 320px;
  }
}
/* Small tablets and large phones - 1 per row */
@media (max-width: 700px) {
  .services-wrapper {
    grid-template-columns: 1fr;
    width: 95%;
  }
  .service-card {
    height: auto;
    min-height: 320px;
  }
  
  .card-front, .card-back {
    padding: 1.8rem 1.6rem 2rem;
  }
  
  .icon-wrap {
    width: 56px;
    height: 56px;
  }
  .icon-wrap svg {
    width: 28px;
    height: 28px;
  }
  
  .card-front h3 {
    font-size: 1.3rem;
  }
  .card-back h4 {
    font-size: 1.2rem;
  }
}

/* Phones and small screens */
@media (max-width: 450px) {
  #services {
    padding: 3rem 1rem 4rem;
  }
  
  .services-header h2 {
    font-size: 2rem;
  }
  
  .services-header p {
    font-size: 1rem;
  }
  
  .icon-wrap {
    width: 48px;
    height: 48px;
  }
  .icon-wrap svg {
    width: 24px;
    height: 24px;
  }
  
  .card-front h3,
  .card-back h4 {
    font-size: 1.1rem;
  }
  
  .card-front p,
  .card-back p {
    font-size: 0.95rem;
  }
}


/* Mobile up to 768px: disable parallax */
@media (max-width: 768px) {
  
  #hero {
    background-attachment: scroll;  /* mobile‑friendly */
  }
}

/* Small tablets and up (≥481px): restore cover & parallax */
@media (min-width: 481px) {
  
  #hero {
    background-attachment: fixed;
    background-size: cover;
  }
}

/* Small tablets and up (≥321px): adjust branding */
@media (min-width: 321px) {
  
  .hero-branding img {
    width: 120px;
  }
}


/* ==== Scroll-to-Top Button ==== */
#scrollTop {
  --size: 3rem;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: var(--size);
  height: var(--size);
  background: var(--olive);
  color: var(--neutral);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: calc(var(--size) / 2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

#scrollTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollTop:hover {
  background: var(--green);
}

/* Mobile tweak */
@media (max-width: 480px) {
  #scrollTop {
    --size: 2.5rem;
    bottom: 1rem;
    right: 1rem;
  }
}
