/* ============================================================
   SAP Landscapes — Professional Website Stylesheet
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@600;700&family=Inter:wght@400;500&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --color-dark: #1e5a14;
  --color-charcoal: #2a7a1c;
  --color-accent: #c8a96e;
  --color-accent-hover: #b5924f;
  --color-light: #f5f2ee;
  --color-overlay: rgba(30, 90, 20, 0.62);
  --color-gradient-dark: linear-gradient(135deg, #2a6e1e 0%, #42942d 50%, #49a474 100%);
  --color-gradient-mid: linear-gradient(135deg, #357a25 0%, #459b4d 50%, #4fb1a9 100%);
  --color-green-img: url('../images/animation-bg.png');
  --color-green-overlay-img: url('../images/section-green-overlay.png');
  --color-green-gradient-img: url('../images/contact-hero-bg.png');
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--color-light);
  background: var(--color-dark) var(--color-green-img) center top / cover no-repeat fixed;
  line-height: 1.6;
  animation: pageFadeIn 0.4s ease;
  overflow-x: hidden;
}

body.scroll-locked {
  overflow: hidden;
  height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

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

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

/* --- Loading Overlay --- */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #2a6e1e url('../images/animation-bg.png') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

#loading-overlay p {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  color: var(--color-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* --- Navigation --- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease;
  background: transparent;
}

#navbar.scrolled {
  background: rgba(30, 90, 20, 0.95);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(20, 60, 10, 0.4);
}

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

.nav-logo img {
  height: 45px;
  width: auto;
}

#nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

#nav-menu li a {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 4px;
}

#nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.2s ease;
}

#nav-menu li a:hover::after,
#nav-menu li a.active::after {
  width: 100%;
}

#nav-menu li a:hover,
#nav-menu li a.active {
  color: var(--color-accent);
}

#nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

#nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-light);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-cta {
  margin-left: 10px;
}

.nav-cta .btn-primary {
  background: var(--color-accent);
  color: #1e5a14;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px !important;
  line-height: 1 !important;
}

.nav-cta .btn-primary:hover {
  background: var(--color-accent-hover);
  color: #1e5a14;
  box-shadow: 0 6px 20px rgba(200, 169, 110, 0.35);
}


/* --- Buttons --- */
.btn-primary,
.btn-secondary {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 32px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: #1a5212;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #1a5212;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 169, 110, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--color-light);
  border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: #1a5212;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 169, 110, 0.35);
}

/* --- Hero Section (Index — Canvas Parallax) --- */
#hero-section {
  position: relative;
}

#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
}

#hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay-content {
  max-width: 800px;
  padding: 0 20px;
}

.hero-overlay-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-overlay-content .hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

/* --- Page Hero (Inner Pages) --- */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 0;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25, 75, 15, 0.55);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.page-hero-content h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 15px;
}

.page-hero-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Section Defaults --- */
.section {
  padding: 100px 0;
}

.section-dark {
  background: #2a6e1e url('../images/contact-hero-bg.png') center / cover no-repeat;
}

.section-charcoal {
  background: #357a25 url('../images/section-green-overlay.png') center / cover no-repeat;
}

.section-gradient-dark {
  background: var(--color-gradient-dark);
}

.section-gradient-mid {
  background: var(--color-gradient-mid);
}

.section-title {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 50px;
  color: var(--color-light);
}

.section-title span {
  color: var(--color-accent);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: rgba(245, 242, 238, 0.75);
  margin-top: -35px;
  margin-bottom: 50px;
}

/* --- White Section --- */
.section-white {
  background: #ffffff;
  color: #1e5a14;
}

.section-white .section-title {
  color: #1e5a14;
}

.section-white .section-title span {
  color: #42942d;
}

.section-white p,
.section-white .trust-label,
.section-white .stat-label {
  color: #3a5a30;
}

.section-white .trust-item .counter-value,
.section-white .stat-item .stat-value {
  color: #42942d;
}

.section-white .stat-item {
  border-right-color: rgba(30, 90, 20, 0.15);
}

/* White section — testimonial overrides */
.section-white .testimonial-quote {
  color: #2c2c2c;
}

.section-white .testimonial-quote::before {
  color: #42942d;
}

.section-white .testimonial-author {
  color: #2a6e1e;
}

/* White section — CTA strip overrides */
.section-white.cta-strip h2 {
  color: #2a6e1e;
}

.section-white.cta-strip p {
  color: #2a6e1e;
}

/* White section — trust strip overrides */
.section-white.trust-strip .trust-label {
  color: #2c2c2c;
}

.section-white.trust-strip .stars {
  color: #c8a96e;
}

/* Dark green CTA button */
.btn-green {
  background: #2a6e1e;
  color: #fff;
}

.btn-green:hover {
  background: #1e5a14;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 90, 20, 0.35);
}

.section-white .review-card {
  background: #f5f2ee;
  border-color: rgba(30, 90, 20, 0.12);
}

.section-white .review-card:hover {
  border-color: #42942d;
}

.section-white .review-card .review-text {
  color: #3a5a30;
}

.section-white .review-card .review-author {
  color: #2a6e1e;
}

.section-white .review-card .review-project {
  color: rgba(30, 90, 20, 0.5);
}

.section-white .review-card .review-stars {
  color: #c8a96e;
}

/* --- Filterable Gallery --- */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 24px;
  border: 2px solid #42942d;
  background: transparent;
  color: #42942d;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-btn:hover {
  background: rgba(66, 148, 45, 0.1);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: #2a6e1e;
  color: #fff;
  border-color: #2a6e1e;
}

.filterable-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.filterable-grid .gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.filterable-grid .gallery-card.hidden {
  display: none;
}

.filterable-grid .gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 10px;
}

.filterable-grid .gallery-card:hover img {
  transform: scale(1.06);
}

.filterable-grid .gallery-card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(25, 75, 15, 0.8));
  border-radius: 0 0 10px 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.filterable-grid .gallery-card:hover .card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.filterable-grid .gallery-card .card-overlay span {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Image Background Section --- */
.image-bg-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.image-bg-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25, 75, 15, 0.6);
}

.image-bg-section .container {
  position: relative;
  z-index: 2;
}

/* --- Service Highlights (Homepage) --- */
.service-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.service-card {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 30px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25, 75, 15, 0.6);
  transition: background 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(20, 60, 10, 0.5);
}

.service-card:hover::before {
  background: rgba(25, 75, 15, 0.75);
}

.service-card-content {
  position: relative;
  z-index: 2;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--color-accent);
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.service-card .card-link {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  color: var(--color-accent);
}

.service-card .card-link:hover {
  color: var(--color-accent-hover);
}

/* --- Trust Strip --- */
.trust-strip {
  padding: 80px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.trust-item {
  padding: 30px 15px;
}

.trust-item .counter-value {
  font-family: 'Oswald', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-accent);
  display: block;
  margin-bottom: 10px;
}

.trust-item .trust-label {
  font-size: 0.95rem;
  color: rgba(245, 242, 238, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
}

.trust-item .stars {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

/* --- Testimonial Block --- */
.testimonial-section {
  text-align: center;
  padding: 100px 0;
}

.testimonial-quote {
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 30px;
  color: rgba(245, 242, 238, 0.9);
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--color-accent);
  display: block;
  margin-bottom: -10px;
  font-family: 'Oswald', sans-serif;
}

.testimonial-author {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- Wavy Testimonial Banner --- */
.wave-testimonial {
  background: #f5f2ee;
  padding: 0;
  overflow: hidden;
}

.wave-testimonial__bg {
  position: relative;
}

.wave-top,
.wave-bottom {
  display: block;
  width: 100%;
  height: 60px;
}

.wave-top {
  margin-bottom: -1px;
}

.wave-bottom {
  margin-top: -1px;
}

.wave-testimonial__body {
  background: #2d6a2d;
  padding: 50px 0;
}

.wave-testimonial__inner {
  display: flex;
  align-items: center;
  gap: 45px;
}

.wave-testimonial__avatar {
  flex-shrink: 0;
}

.wave-testimonial__avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.wave-testimonial__content {
  flex: 1;
}

.wave-testimonial__quote {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}

.wave-testimonial__name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.wave-testimonial__subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .wave-testimonial__inner {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .wave-testimonial__avatar img {
    width: 100px;
    height: 100px;
  }

  .wave-testimonial__quote {
    font-size: 1rem;
  }

  .wave-top,
  .wave-bottom {
    height: 40px;
  }

  .wave-testimonial__body {
    padding: 35px 0;
  }
}

/* --- Gallery Teaser --- */
.gallery-section {
  padding: 100px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 15px;
  height: 500px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item:first-child {
  grid-row: 1 / 3;
}

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

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

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25, 75, 15, 0);
  transition: background 0.3s ease;
}

.gallery-item:hover::after {
  background: rgba(25, 75, 15, 0.3);
}

.gallery-item .gallery-caption {
  position: absolute;
  bottom: 15px;
  left: 15px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

/* --- Branded Statement --- */
.branded-section {
  text-align: center;
  padding: 120px 0;
}

.branded-section h2 {
  font-size: 2.8rem;
  margin-bottom: 25px;
  color: #fff;
}

.branded-section p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 35px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

/* --- CTA Strip --- */
.cta-strip {
  padding: 80px 0;
  text-align: center;
}

.cta-strip h2 {
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: var(--color-light);
}

.cta-strip p {
  font-size: 1.05rem;
  color: rgba(245, 242, 238, 0.75);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Services Page --- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 450px;
  overflow: hidden;
}

.service-block:nth-child(even) .service-block-image {
  order: 2;
}

.service-block:nth-child(even) .service-block-content {
  order: 1;
}

.service-block-image {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 400px;
}

.service-block-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25, 75, 15, 0.2);
}

.service-block-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 50px;
  background: #2a7a1c url('../images/contact-hero-bg.png') center / cover no-repeat;
}

.service-block-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.service-block-content p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 25px;
  color: rgba(245, 242, 238, 0.85);
}

/* --- About Page --- */
.about-intro {
  padding: 100px 0;
  text-align: center;
  background: #ffffff;
}

.about-intro h2 {
  font-size: 2.6rem;
  margin-bottom: 30px;
  color: #2a6e1e;
}

.about-intro p {
  font-size: 1.05rem;
  max-width: 800px;
  margin: 0 auto 20px;
  color: #3a5a30;
  line-height: 1.8;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: 50px 20px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item .stat-value {
  font-family: 'Oswald', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-accent);
  display: block;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(245, 242, 238, 0.7);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pillar-card {
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 35px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25, 75, 15, 0.6);
  transition: background 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(20, 60, 10, 0.5);
}

.pillar-card:hover::before {
  background: rgba(25, 75, 15, 0.75);
}

.pillar-card-content {
  position: relative;
  z-index: 2;
}

.pillar-card h3 {
  font-size: 1.6rem;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.pillar-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.accreditations-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 30px 0;
}

.accreditations-row img {
  height: 70px;
  width: auto;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

.accreditations-row img:hover {
  filter: brightness(1.1);
}

/* --- Portfolio Grid --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

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

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item .portfolio-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 15px;
  background: linear-gradient(transparent, rgba(25, 75, 15, 0.85));
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-light);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-item:hover .portfolio-caption {
  opacity: 1;
  transform: translateY(0);
}

/* --- Reviews Page --- */
.rating-bar {
  text-align: center;
  padding: 60px 0;
}

.rating-bar .rating-stars {
  font-size: 3rem;
  display: block;
  margin-bottom: 10px;
}

.rating-bar .rating-score {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent);
}

.rating-bar .rating-text {
  font-size: 1rem;
  color: rgba(245, 242, 238, 0.7);
  margin-top: 8px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.review-card {
  background: rgba(42, 122, 28, 0.7);
  backdrop-filter: blur(4px);
  padding: 35px 30px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s ease, transform 0.25s ease;
}

.review-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.review-card .review-stars {
  font-size: 1.2rem;
  margin-bottom: 15px;
  display: block;
}

.review-card .review-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(245, 242, 238, 0.85);
  margin-bottom: 20px;
  font-style: italic;
}

.review-card .review-author {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.review-card .review-project {
  font-size: 0.85rem;
  color: rgba(245, 242, 238, 0.5);
  margin-top: 5px;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.contact-form-section h2,
.contact-details-section h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #2a6e1e;
}

/* White contact section overrides */
.section-white .form-group label {
  color: #1e5a14;
}

.section-white .form-group input,
.section-white .form-group select,
.section-white .form-group textarea {
  background: rgba(30, 90, 20, 0.06);
  border: 1px solid rgba(30, 90, 20, 0.25);
  color: #1e5a14;
}

.section-white .form-group input:focus,
.section-white .form-group select:focus,
.section-white .form-group textarea:focus {
  border-color: #42942d;
}

.section-white .form-group input::placeholder,
.section-white .form-group textarea::placeholder {
  color: rgba(30, 90, 20, 0.4);
}

.section-white .form-group select option {
  background: #fff;
  color: #1e5a14;
}

.section-white .detail-item .detail-label {
  color: #42942d;
}

.section-white .detail-item .detail-value {
  color: #1e5a14;
}

.section-white .detail-item a {
  color: #1e5a14;
}

.section-white .detail-item a:hover {
  color: #42942d;
}

.section-white .form-success h3 {
  color: #2a6e1e;
}

.section-white .form-success p {
  color: #3a5a30;
}

.section-white .radio-group label {
  color: #3a5a30;
}

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

.form-group label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--color-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  color: var(--color-light);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23c8a96e' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: #2a7a1c;
  color: var(--color-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.radio-group {
  display: flex;
  gap: 25px;
  margin-top: 5px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.radio-group input[type="radio"] {
  width: auto;
  accent-color: var(--color-accent);
}

.contact-details-section .detail-item {
  margin-bottom: 25px;
}

.detail-item .detail-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
  margin-bottom: 5px;
}

.detail-item .detail-value {
  font-size: 1rem;
  color: var(--color-light);
  line-height: 1.6;
}

.detail-item .detail-value.large {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.detail-item a {
  color: var(--color-light);
}

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

.map-container {
  width: 100%;
  margin-top: 0;
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success.show {
  display: block;
}

.form-success h3 {
  font-size: 1.8rem;
  color: var(--color-accent);
  margin-bottom: 15px;
}

.form-success p {
  color: rgba(245, 242, 238, 0.8);
}

/* --- Footer --- */
.site-footer {
  background: #1a5212 url('../images/animation-bg.png') center / cover no-repeat;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p {
  font-size: 0.9rem;
  color: rgba(245, 242, 238, 0.6);
  line-height: 1.7;
}

.footer-col .footer-logo {
  height: 40px;
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(245, 242, 238, 0.6);
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--color-accent);
}

.footer-contact-item {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: rgba(245, 242, 238, 0.6);
}

.footer-contact-item a {
  color: rgba(245, 242, 238, 0.6);
}

.footer-contact-item a:hover {
  color: var(--color-accent);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-light);
  font-size: 1rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.social-icons a:hover {
  background: var(--color-accent);
  color: #1e5a14;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(245, 242, 238, 0.4);
}

.footer-bottom a {
  color: var(--color-accent);
}

/* --- Mobile Phone Bar --- */
#mobile-phone-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: var(--color-accent);
  animation: slideUpBar 0.4s 2s ease both;
}

#mobile-phone-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  color: #1a5212;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 0;
}

.phone-icon {
  animation: phonePulse 4s infinite;
}

@keyframes slideUpBar {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes phonePulse {
  0%, 90%, 100% { transform: scale(1); }
  93% { transform: scale(1.2); }
  96% { transform: scale(1); }
}

/* --- Animation Classes --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible,
.fade-left.visible,
.fade-right.visible,
.scale-in.visible {
  opacity: 1;
  transform: none;
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children > *.visible {
  opacity: 1;
  transform: none;
}

.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.5s; }
.stagger-children > *:nth-child(7) { transition-delay: 0.6s; }
.stagger-children > *:nth-child(8) { transition-delay: 0.7s; }

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .service-highlights {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filterable-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #nav-toggle {
    display: flex;
  }

  #nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(30, 90, 20, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  #nav-menu.open {
    transform: translateX(0);
  }

  #nav-menu li a {
    font-size: 1.4rem;
  }

  .nav-cta {
    margin-left: 0;
  }

  .hero-overlay-content h1 {
    font-size: 2.2rem;
  }

  .hero-overlay-content .hero-subtitle {
    font-size: 1rem;
  }

  .page-hero-content h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .service-highlights {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 280px;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }

  .gallery-item:first-child {
    grid-row: auto;
  }

  .gallery-item {
    height: 250px;
  }

  .service-block {
    grid-template-columns: 1fr;
  }

  .service-block:nth-child(even) .service-block-image,
  .service-block:nth-child(even) .service-block-content {
    order: unset;
  }

  .service-block-image {
    min-height: 250px;
  }

  .service-block-content {
    padding: 40px 25px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-right: none;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filterable-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  #mobile-phone-bar {
    display: block;
  }

  .section {
    padding: 60px 0;
  }

  .branded-section {
    padding: 80px 0;
  }

  .branded-section h2 {
    font-size: 2rem;
  }

  body {
    padding-bottom: 60px;
  }
}

@media (max-width: 480px) {
  .hero-overlay-content h1 {
    font-size: 1.8rem;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .filterable-grid {
    grid-template-columns: 1fr;
  }

  .radio-group {
    flex-direction: column;
    gap: 10px;
  }
}
