:root {
  --font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  --primary-color: #1AA44A;
  --primary-dark: #148a3e;
  --graphite: #333333;
  --white: #ffffff;
  --background-color: #ffffff;
  --text-color: #333333;
}

/* Base Layout */
body {
  font-family: var(--font-family);
  margin: 0;
  background-color: var(--background-color);
  height: 100%;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html, body {
  overflow-x: hidden;
  height: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.layout-page {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.banner .hero-img {
  object-position: 5% 80%; /* 5% from left, 80% from top */
  transform: scale(0.55); /* stronger zoom-out to reveal full pills */
  transition: transform 220ms ease, object-position 220ms ease;
}
@media (max-width: 900px) {
  .banner .hero-img {
    transform: scale(0.78); /* mobile: still zoomed out but less extreme */
    object-position: 5% 60%; /* pin 5% from left on mobile too */
  }
}

#whatsapp-panel {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 280px;
  max-width: 280px;
  background: #fff;
  border: none;
  border-radius: 6px;
  box-shadow: none;
  z-index: 1001;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
#whatsapp-panel.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
}

.panel-body {
  padding: 1em;
  position: relative;
  font-size: 0.95em;
}

.panel-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1em 0;
}

.logo-centered { max-width: 120px; height: auto; }

.welcome { margin-bottom: 1em; }

.hours ul { padding-left: 1em; margin-bottom: 1em; }

.btn-whatsapp-chat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}
.btn-whatsapp-chat:hover { background-color: rgba(26,164,74,0.06); }
.btn-whatsapp-chat img { width: 20px; height: 20px; }
.btn-text { color: var(--primary-color); }

#whatsapp-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
}

.banner .banner-content {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 640px;
  z-index: 3;
  display: flex;
  align-items: center;
}
.banner .about-content { text-align: left; }
.banner .about-logo { max-width: 320px; width: 100%; margin-bottom: 0.8em; }
.banner .about-text { color: var(--graphite); font-size: 1.05em; line-height: 1.6; }

@media (max-width: 900px) {
  .banner .banner-content {
    position: static;
    transform: none;
    width: 100%;
    padding: 1em 1.25em;
    box-sizing: border-box;
  }
  .banner .about-logo { max-width: 220px; margin: 0 auto 0.5em auto; display:block; }
  .banner .about-text { text-align: center; }
}


/* Header Navigation Styles */
.layout-header nav {
  display: flex;
  gap: 2em;
}
.layout-header nav a {
  color: #148a3e;
  text-decoration: none;
  font-size: 1.1em;
}
.layout-header nav a:hover {
  background: #eaf7ef;
  color: #1AA44A;
}

/* Active nav link indicator (added by `main.js` setActiveNavLinks) */
.layout-header nav a.is-active {
  font-weight: 700;
  text-decoration: underline;
  color: var(--primary-dark);
}
/* Header */
.layout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 2em 2em 1em 2em;
  background: #fff;
  box-sizing: border-box;
}
.brand-logo img {
  height: 60px;
  width: auto;
  display: block;
  font-family: var(--font-family);
}

.brand-logo {
  display: flex;
  align-items: center;
  font-family: var(--font-family);
}

.layout-header-right {
  display: flex;
  align-items: center;
  gap: 1.5em;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 1em;
}
.social-links a img {
  width: 32px;
  height: 32px;
}
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10001;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 24px;
  background: #148a3e;
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

#mobile-menu-overlay:not(.hidden) {
  display: flex !important;
}


/* Hero Section */
.hero {
  margin-bottom: 2em;
  padding: 0.75em 0 2em 0;
  width: 100%;
  box-sizing: border-box;
}
.hero-img-container {
  position: relative;
  width: 100%;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Slightly zoom out banner image and adjust focal point */
.banner .hero-img {
  /* fix image to the left edge and keep vertical focus near shadows */
  /* pin image very close to the left edge (small horizontal percent) */
  object-position: 5% 80%; /* 5% from left, 80% from top */
  transform: scale(0.55); /* stronger zoom-out to reveal full pills */
  transition: transform 220ms ease, object-position 220ms ease;
}
@media (max-width: 900px) {
  .banner .hero-img {
    transform: scale(0.78); /* mobile: still zoomed out but less extreme */
    object-position: 5% 60%; /* pin 5% from left on mobile too */
  }
}
.hero-gradient-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(26,164,74,0.10) 0%, rgba(255,255,255,0.0) 60%, rgba(0,0,0,0.10) 100%);
  z-index: 1;
}
.hero-overlay-text.gradient-style {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #222;
  z-index: 2;
  width: 100%;
  max-width: 700px;
  padding: 0 2em;
}
.hero-overlay-text.gradient-style h1 {
  font-size: 3.0em;
  font-weight: 700;
  margin-bottom: 0.5em;
  letter-spacing: 1px;
  color: #148a3e;
  text-shadow: 0 2px 16px rgba(255,255,255,0.5), 0 2px 8px rgba(0,0,0,0.10);
}
.hero-overlay-text.gradient-style .hero-tagline {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 1em;
  color:#333333;
  text-shadow: 0 2px 8px rgba(255,255,255,0.5);
}
.cta-btn {
  display: inline-block;
  background: #1AA44A;
  color: #fff;
  font-weight: 600;
  padding: 0.75em 2em;
  border: none;
  border-radius: 0.25em;
  font-size: 1em;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(26,164,74,0.10);
  transition: background 0.2s;
}
.cta-btn:hover {
  background: #148a3e;
}
@media (max-width: 900px) {
  .hero-img-container {
    height: 180px;
  }
  .hero-overlay-text.gradient-style {
    padding: 0 1em;
    font-size: 1em;
  }
  .hero-overlay-text.gradient-style h1 {
    font-size: 1.5em;
  }
}

/* Footer layout and responsive styles */
.layout-footer {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.04);
  padding: 2rem 1rem;
}
.layout-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.layout-footer-left,
.layout-footer-center,
.layout-footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  margin-right: 0.75rem;
}
.nav-footer a:hover {
  text-decoration: underline;
}
.nav-footer a {
  color: var(--graphite);
  text-decoration: none;
  font-weight: 400; /* normal weight */
  margin-right: 0.75rem;
}
.nav-footer a:hover {
  text-decoration: underline;
}
.social-links ul {
  display: flex;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
  align-items: center;
}
.social-links img {
  width: 28px;
  height: 28px;
  display: block;
}
.layout-footer-right p {
  margin: 0;
  font-size: 0.95em;
  color: var(--graphite);
  font-weight: 600;
}
.layout-footer-right p {
  margin: 0;
  font-size: 0.95em;
  color: var(--graphite);
  font-weight: 400; /* remove bold */
}

/* Push nav links more to the left within the footer container */
.layout-footer-left { justify-content: flex-start; }
.nav-footer { margin-right: auto; }
@media (max-width: 900px) {
  .layout-footer-inner { justify-content: center; text-align: center; }
  .layout-footer-left, .layout-footer-center, .layout-footer-right { width: 100%; justify-content: center; margin-bottom: 0.5rem; }
  .nav-footer a { margin: 0 0.5rem; display: inline-block; }
}
.content-wrapper { padding: 1em 1vw; }
/* keep other lists responsive */
.features-list,
.services-list,
.contact-details {
  flex-direction: column;
  gap: 1.5em;
  align-items: center;
}

/* Overlay for Mobile Menu */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: flex-end;
  /* place overlay above header controls (hamburger) */
  z-index: 10002;
  transition: opacity 0.3s ease;
}

.overlay:not(.hidden) {
  display: flex;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10001;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 24px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Mobile Menu Drawer */
.nav-mobile {
  /* make the mobile drawer fixed and full viewport height so overlay covers header */
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: var(--white);
  padding: 1.5em 1.25em;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: center;
  gap: 1em;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  border-radius: 0;
  z-index: 10003; /* sit above overlay */
  overflow-y: auto;
}

.menu-close {
  background: none;
  border: none;
  font-size: 1.5em;
  align-self: flex-end;
  cursor: pointer;
  color: var(--primary-color);
}

.nav-mobile a {
  font-family: var(--font-family);
  display: block;
  width: 100%;
  font-weight: 400;
  color: var(--primary-color);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1em;
  padding: 0.2rem 0;
}

.nav-language-switcher {
  display: flex;
  gap: 0.75em;
  justify-content: center;
  margin-top: auto;
  padding-bottom: 1.5rem;
  border-top: 1px solid #148a3e;
  padding-top: 1rem;
}

.nav-language-switcher img {
  width: 20px;
  cursor: pointer;
  height: auto;
}

.menu-static-text {
  font-size: 0.9em;
  color: var(--graphite);
  text-align: left;
  margin-top: 1em;
  padding: 1.5rem 0;
  text-align: center;
  line-height: 1.4;
}

/* Social Media Links */
.social-links img {
  width: 24px;
  height: 24px;
  transition: opacity 0.3s ease;
}

.social-links a:hover img {
  opacity: 0.7;
}

/* Features Section */
.features {
  margin-bottom: 3em;
  background: none;
  padding: 0;
}
.features h2 {
  text-align: center;
  font-size: 2em;
  color: var(--primary-dark);
  margin-bottom: 1.5em;
  letter-spacing: 1px;
}
/* Make services heading match features heading */
.services h2 {
  text-align: center;
  font-size: 2em;
  color: var(--primary-dark);
  margin-bottom: 1.5em;
  letter-spacing: 1px;
}
.features-intro {
  text-align: center;
  color: var(--graphite);
  font-size: 1.15em;
  max-width: 700px;
  margin: 0 auto 2em auto;
  line-height: 1.6;
  font-weight: 400;
}
.features-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2em;
  width: 100%;
  margin: 0 auto;
  align-items: stretch;
  justify-content: center;
}
.feature {
  background: #fff;
  border-radius: 0.5em;
  box-shadow: 0 2px 12px rgba(26,164,74,0.07);
    padding: 2em 1.5em 1.5em 1.5em;
    text-align: center;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #e0e0e0;
  perspective: 900px;
  min-height: 320px;
  height: 100%;
  overflow: visible;
  background: #fff;
  border-radius: 0.75em;
  box-shadow: 0 2px 12px rgba(26,164,74,0.07);
  padding: 2.5em 1.5em 2em 1.5em;
  text-align: center;
  min-width: 220px;
  max-width: 320px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;
  perspective: 900px;
  min-height: 320px;
  height: 100%;
  flex: 1 1 220px;
  overflow: visible;
}
@media (max-width: 900px) {
  .features-list {
    flex-direction: column;
    gap: 1.2em;
    align-items: stretch;
    width: 100%;
    max-width: 100vw;
    margin: 0;
  }
  .feature {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 2em 1em 1.5em 1em;
  }
}
.feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75em;
  width: 56px;
  height: 56px;
  margin-bottom: 1em;
  display: block;
}
.feature h3 {
  font-size: 1.1em;
  color: var(--primary-color);
  margin-bottom: 0.5em;
  text-align: center;
  font-size: 1.25em;
  color: #1AA44A;
  margin-bottom: 0.5em;
  text-align: center;
  font-weight: 700;
}
.features-intro {
  text-align: center;
  color: var(--graphite);
  font-size: 1.15em;
  max-width: 700px;
  margin: 0 auto 2em auto;
  line-height: 1.6;
  font-weight: 400;
  font-size: 1em;
  color: #333;
  margin: 0.5em 0 0 0;
  text-align: center;
}

/* Services list layout */
.services-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2em;
  width: 100%;
  margin: 0 auto;
  align-items: stretch;
  justify-content: center;
}
.service {
  background: #fff;
  border-radius: 0.75em;
  box-shadow: 0 2px 12px rgba(26,164,74,0.07);
  padding: 2.5em 1.5em 2em 1.5em;
  text-align: center;
  min-width: 220px;
  max-width: 320px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;
  perspective: 900px;
  min-height: 320px;
  height: 100%;
  flex: 1 1 220px;
  overflow: visible;
}
.service .service-icon {
  width: 56px;
  height: 56px;
  display: block;
  margin-bottom: 1em;
}
.service-top { display:flex; justify-content:center; }
.service-top-box {
  background: #fff;
  border-radius: 12px;
  padding: 0.6em 1.1em;
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8em;
  width: 160px;
  height: 48px;
}
.service-top-box img { width: 40px; height: 40px; display:block; }
.service h3 { text-align: center; font-size: 1.25em; color: #1AA44A; margin-bottom: 0.5em; font-weight: 700; }
.service h3 { color: var(--primary-color); margin: 0; font-size: 1.1em; font-weight: 700; }
.service ul { margin: 0.5em 0 0 1.1em; color: #444; }
@media (max-width: 900px) {
  .services-list { flex-direction: column; gap: 1.2em; align-items: stretch; }
  .service { width: 100%; max-width: 100%; }
}

/* Lift + Accent Bar effect for service cards (hover/focus) */
.service {
  position: relative;
  overflow: visible;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
/* Accent bar removed from service cards */
.service:hover,
.service:focus-within {
  transform: translateY(-6px);
  /* combine elevated drop shadow with an amplified green glow */
  box-shadow: 0 12px 28px rgba(0,0,0,0.12), 0 6px 32px rgba(26,164,74,0.10);
}
.service:focus-within {
  outline: 3px solid rgba(26,164,74,0.08);
  outline-offset: 6px;
}


/* Drop-down details for service cards (replaces flip behavior) */
.services .feature-flip-inner {
  position: relative;
  width: 100%;
  display: block;
}
.services .feature-flip-front,
.services .feature-flip-back {
  position: relative;
  width: 100%;
  display: block;
  border-radius: 0.75em; /* match .feature radius */
  background: #fff;
  border: none;
  padding: 1.25em 1.5em;
}
.services .feature-flip-front {
  z-index: 2;
}
.services .feature-flip-back {
  z-index: 1;
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  transition: max-height 0.35s ease, padding-top 0.25s ease;
}
/* Improve bullet/list styling inside service cards */
.services .feature-flip-back,
.service {
  /* ensure flipped-back content reads left-aligned for lists */
  text-align: left;
}
.services .feature-flip-back ul,
.service ul {
  list-style: none;
  margin: 0.6rem 0 0.8rem 0;
  padding: 0 0 0 0.9rem; /* reserve space for custom marker */
}
.services .feature-flip-back ul li,
.service ul li {
  position: relative;
  padding-left: 1.05rem;
  margin-bottom: 0.5rem;
  color: #444;
  line-height: 1.45;
  font-size: 0.98rem;
}
.services .feature-flip-back ul li::before,
.service ul li::before {
  content: '';
  position: absolute;
  /* nudge marker slightly left and a bit higher than exact center */
  left: -2px;
  top: 44%;
  transform: translateY(-44%);
  width: 14px; /* marker size */
  height: 14px;
  background-image: url('Public/icons/arrow-icon.svg');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 14px 14px;
}
/* Slightly reduce padding for very small screens so lists don't feel cramped */
@media (max-width: 480px) {
  .services .feature-flip-back ul,
  .service ul { padding-left: 0.6rem; }
  .services .feature-flip-back ul li,
  .service ul li { padding-left: 0.7rem; }
}

/* Subtle slide-in animation for service list items when details open */
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-10px) translateY(8px); }
  to   { opacity: 1; transform: translateX(0) translateY(0); }
}

/* Start list items hidden and slightly left-shifted */
.services .feature-flip-back ul li,
.service ul li {
  opacity: 0;
  transform: translateX(-8px) translateY(6px);
}

/* Animate when card details are revealed (hover/focus or .is-open) */
.services .interactive-card:hover .feature-flip-back ul li,
.services .interactive-card:focus-within .feature-flip-back ul li,
.services .interactive-card.is-open .feature-flip-back ul li {
  animation: slide-in-left 360ms cubic-bezier(.22,.9,.33,1) forwards;
}

/* Staggered delays for nicer rhythm */
.services .interactive-card:hover .feature-flip-back ul li:nth-child(1),
.services .interactive-card:focus-within .feature-flip-back ul li:nth-child(1),
.services .interactive-card.is-open .feature-flip-back ul li:nth-child(1) { animation-delay: 0.06s; }
.services .interactive-card:hover .feature-flip-back ul li:nth-child(2),
.services .interactive-card:focus-within .feature-flip-back ul li:nth-child(2),
.services .interactive-card.is-open .feature-flip-back ul li:nth-child(2) { animation-delay: 0.12s; }
.services .interactive-card:hover .feature-flip-back ul li:nth-child(3),
.services .interactive-card:focus-within .feature-flip-back ul li:nth-child(3),
.services .interactive-card.is-open .feature-flip-back ul li:nth-child(3) { animation-delay: 0.18s; }
.services .interactive-card:hover .feature-flip-back ul li:nth-child(4),
.services .interactive-card:focus-within .feature-flip-back ul li:nth-child(4),
.services .interactive-card.is-open .feature-flip-back ul li:nth-child(4) { animation-delay: 0.24s; }

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .services .feature-flip-back ul li,
  .service ul li { animation: none !important; opacity: 1 !important; transform: none !important; }
}
/* Show details on hover, focus-within, or when toggled with .is-open */
.services .interactive-card:hover .feature-flip-back,
.services .interactive-card:focus-within .feature-flip-back,
.services .interactive-card.is-open .feature-flip-back {
  max-height: 520px; /* large enough to reveal content; keeps animation smooth */
  padding-top: 1em;
}

/* When details are shown, hide the front summary to avoid duplicate icon/title */
.services .interactive-card:hover .feature-flip-front,
.services .interactive-card:focus-within .feature-flip-front,
.services .interactive-card.is-open .feature-flip-front {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.2s ease;
}

/* Extra hide rules to ensure icons/headings fully disappear when open */
.services .interactive-card:hover .feature-flip-front .service-top,
.services .interactive-card:focus-within .feature-flip-front .service-top,
.services .interactive-card.is-open .feature-flip-front .service-top {
  display: none !important;
}
.services .interactive-card:hover .feature-flip-front h3,
.services .interactive-card:focus-within .feature-flip-front h3,
.services .interactive-card.is-open .feature-flip-front h3 {
  display: none !important;
}
.services .interactive-card:hover .feature-flip-front .service-icon,
.services .interactive-card:focus-within .feature-flip-front .service-icon,
.services .interactive-card.is-open .feature-flip-front .service-icon {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .feature-flip-back {
    transition: none;
  }
  .interactive-card:hover .feature-flip-front,
  .interactive-card:focus-within .feature-flip-front,
  .interactive-card.is-open .feature-flip-front {
    transition: none;
  }
}

/* Restore 3D flip behavior for the features section only */
.features .feature-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(.4,2,.3,1);
  -webkit-transition: -webkit-transform 0.6s cubic-bezier(.4,2,.3,1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform;
  transform-origin: center;
}
.features .interactive-card:hover .feature-flip-inner,
.features .interactive-card:focus .feature-flip-inner {
  transform: rotateY(180deg);
}
.features .feature-flip-front,
.features .feature-flip-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 0.75em; /* match .feature radius to avoid inner edge */
  box-shadow: none;
  background: #fff;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2em 1.5em 1.5em 1.5em;
}
.features .feature-flip-front { z-index: 2; transform: rotateY(0deg); }
.features .feature-flip-back { transform: rotateY(180deg); z-index: 1; }

/* Contact Section */
.contact-info {
  margin: 3.25em 0 2em 0;
  text-align: center;
  padding: 0.5em 0 1.25em 0;
}
.contact-info h2 {
  font-size: 2em;
  color: var(--primary-dark);
    margin-bottom: 1.25rem;
}
/* Ensure heading and content sit above the full-bleed background pseudo-element */
.contact-info h2 {
  position: relative;
  z-index: 3;
}
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 1.5em auto;
  justify-content: center;
  align-items: stretch;
  padding: 0 0.5em;
}
.contact-block {
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  flex: 0 1 220px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}
.contact-block img {
  width: 42px;
  height: 42px;
  margin-bottom: 0.4rem;
}
.contact-block p, .contact-block a {
  font-size: 1em;
  color: var(--graphite);
  margin: 0;
  text-align: center;
  word-break: break-word;
}
.contact-block a { color: var(--primary-color); text-decoration: none; }
.contact-block a:hover { text-decoration: underline; }

@media (min-width: 900px) {
  .contact-details { flex-wrap: nowrap; justify-content: space-between; align-items: center; }
  .contact-block { flex: 1 1 0; max-width: 220px; }
}

/* Map block styling to match cards */
.map-block { max-width: 1100px; margin: 1.25rem auto 0 auto; padding: 0 0.5rem; }
.map-block iframe { border: 0; border-radius: 8px; width: 100%; height: 300px; box-shadow: 0 8px 20px rgba(0,0,0,0.06); }

/* Visual added to contact area: photo above the map */
.contact-visual { max-width: 1100px; margin: 0.5rem auto 0 auto; padding: 0 0.5rem; }
.contact-image { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

@media (min-width: 900px) {
  /* Slightly constrain visual height on very wide screens */
  .contact-image { max-height: 360px; object-fit: cover; }
}

/* Layout: place contact cards beside the visual/map on large screens */
.contact-grid { display: block; }
@media (min-width: 900px) {
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr; /* single column — unified single-image look */
    gap: 1.5rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto 0 auto;
    padding: 0 0.5rem;
  }
  .contact-left { position: relative; z-index: 1; }
  .contact-right .contact-visual { margin: 0; }
  .contact-right .map-block iframe { margin-top: 1rem; }
}

/* Use the contact photo as a background behind the left column cards on desktop */
@media (min-width: 900px) {
  /* full-bleed background behind the contact area */
  .contact-info { position: relative; overflow: visible; }
  .contact-info::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 100vw;
    height: 100%;
    background-image: linear-gradient(rgba(255,255,255,0.56), rgba(255,255,255,0.56)), url('Public/images/kai-wei-RelBtl-Iht4-unsplash.jpg');
    background-size: cover;
    background-position: center center;
    z-index: 0;
  }
  .contact-left {
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: none;
  }

  /* Make individual contact cards semi-transparent so the background shows through */
  .contact-left .contact-details {
    background: transparent;
    padding: 0;
    gap: 1.25rem;
    display: grid;
    /* three equal columns, centered under the heading */
    grid-template-columns: repeat(3, 320px);
    grid-auto-rows: 180px; /* equal row height */
    justify-content: center; /* center the whole grid */
    justify-items: center;   /* center items in each cell */
    align-items: center;
  }

  /* Center the bottom row of contact cards (wrap them in .contact-row) */
  .contact-left .contact-row {
    grid-column: 1 / -1; /* span all columns */
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 0.6rem;
  }
  .contact-left .contact-row .contact-block { max-width: 320px; flex: 0 0 auto; height: 180px; }

  /* Increased transparency and stronger blur for a more unified single-image look */
  .contact-left .contact-block {
    /* slightly more transparent so the background shows through more */
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.30);
    box-shadow: 0 10px 28px rgba(6,25,15,0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    z-index: 2;
    padding: 1rem 1.25rem;
    max-width: 320px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-sizing: border-box;
  }

  /* Entrance animation + hover/focus lift for contact cards */
  @keyframes card-pop {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .contact-left .contact-details > .contact-block,
  .contact-left .contact-row .contact-block {
    opacity: 0;
    transform: translateY(12px);
    animation: card-pop 420ms cubic-bezier(.22,.9,.33,1) forwards;
  }

  /* Staggered delays for a pleasant sequential entrance */
  .contact-left .contact-details > .contact-block:nth-child(1) { animation-delay: 0.05s; }
  .contact-left .contact-details > .contact-block:nth-child(2) { animation-delay: 0.12s; }
  .contact-left .contact-details > .contact-block:nth-child(3) { animation-delay: 0.19s; }
  .contact-left .contact-row .contact-block:nth-child(1) { animation-delay: 0.28s; }
  .contact-left .contact-row .contact-block:nth-child(2) { animation-delay: 0.34s; }

  .contact-left .contact-block {
    transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
  }
  .contact-left .contact-block:hover,
  .contact-left .contact-block:focus-within {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 18px 36px rgba(6,25,15,0.08);
  }
  .contact-left .contact-block:focus-visible {
    outline: 3px solid rgba(26,164,74,0.12);
    outline-offset: 6px;
  }

  /* Respect users who prefer reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .contact-left .contact-details > .contact-block,
    .contact-left .contact-row .contact-block {
      animation: none !important;
      transform: none !important;
      opacity: 1 !important;
    }
    .contact-left .contact-block { transition: none !important; }
  }
}

/* On small screens keep opaque cards for legibility */
@media (max-width: 899px) {
  .contact-left .contact-block { background: #fff; border: none; box-shadow: 0 8px 20px rgba(0,0,0,0.06); backdrop-filter: none; }
}
@media (max-width: 899px) {
  .contact-left .contact-details { grid-template-columns: 1fr; }
  .contact-left .contact-row { display: block; }
}

/* Full-width map below contact section */
.full-width-map {
  width: 100%;
  margin-top: 1.5rem;
}
.full-width-map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* About Us Section */
.about-us {
  margin: 4em 0 3em 0;
  text-align: center;
}

.about-us h2 {
  font-size: 1.6em;
  color: var(--primary-dark);
  margin: 0 0 1em 0;
  background: none; /* remove large colored hero background */
  padding: 0; /* remove big vertical padding */
  min-height: auto;
  display: block;
  text-align: center;
}
.about-logo {
  max-width: 280px;
  width: 100%;
    font-size: 1.05em;
    color: var(--graphite);
    line-height: 1.6;
  }

.about-text {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05em;
  color: var(--graphite);
  line-height: 1.6;
}

/* About: place media (pills) next to the descriptive text on wide screens */
.about-content {
  display: flex;
  align-items: center;
  gap: 2.25em;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1em 0;
  box-sizing: border-box;
  flex-wrap: nowrap;
}
.about-media {
  display: block;
    /* slightly reduce the media column so the text can be wider */
    flex: 0 0 560px;
}
.about-image {
    width: 100%;
    max-width: 560px; /* scale up image on wide screens */
  height: auto;
  display: block;
  object-fit: contain;
}
.about-text {
  flex: 1 1 440px;
  text-align: center;
  max-width: 560px; /* limit line length for readability */
  margin: 0 auto;
}

.about-title {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.4px;
}

@media (max-width: 900px) {
  .about-content {
    flex-direction: column;
    gap: 1em;
    padding: 0.5em 0;
  }
  .about-media { flex: 0 0 auto; }
  .about-text { text-align: center; }
}

@media (min-width: 1400px) {
  /* Cap media column on very wide screens to avoid over-large images */
  .about-media { flex: 0 0 680px; }
  .about-image { max-width: 680px; }
  .about-logo { max-width: 360px; }
}

/* Widen the about text column so paragraph lines are longer on desktop */
.about-text {
  flex: 1 1 520px;
  max-width: 560px; /* base max width for smaller desktops */
}

/* Responsive max-widths for better editorial measure */
@media (min-width: 900px) {
  .about-text { max-width: 640px; }
}
@media (min-width: 1200px) {
  .about-text { max-width: 760px; }
}
@media (min-width: 1400px) {
  .about-text { max-width: 880px; }
}

/* Contact form styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}
.contact-form label {
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  padding: 0.6em;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1em;
}
.form-actions {
  display: flex;
  gap: 0.6em;
  margin-top: 0.5em;
}
.form-actions button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0.6em 1em;
  border-radius: 6px;
  cursor: pointer;
}
.form-actions button#copy-btn { background: #666; }
.form-message { margin-bottom: 0.5em; }
.form-message.error { color: #c62828; }
.form-message.success { color: #1aa44a; }
.thank-you { padding: 1.5em; background: #f6fff6; border: 1px solid #e6f4e9; border-radius: 8px; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Privacy warning style for contact form */
.privacy-warning {
  font-size: 0.95rem;
  color: #6b6b6b;
  margin-top: 0.6em;
  font-style: italic;
}

/* -----------------------------
   Component tidy: small responsive tweaks
   - Keep changes additive and safe
   - Reduces hero font on very small screens
 ------------------------------*/

@media (max-width: 480px) {
  .hero-overlay-text.gradient-style h1 {
    font-size: 1.2em;
  }
  .hero-overlay-text.gradient-style .hero-tagline {
    font-size: 0.95em;
  }
  .content-wrapper {
    padding: 0.75em 1vw;
  }
}

/* small visual improvement for active nav on small screens */
@media (max-width: 600px) {
  .layout-header nav a.is-active {
    text-decoration: none;
    border-bottom: 2px solid var(--primary-dark);
    padding-bottom: 0.15em;
  }
}

/* Make banner taller than the main hero so the image has more vertical space */
.banner .hero-img-container {
  height: 460px; /* taller than hero to reduce cropping */
}
@media (max-width: 900px) {
  .banner .hero-img-container {
    height: 260px; /* mobile-friendly banner height */
  }
}

/* WhatsApp widget: fixed toggle button and compact icon */
#component-whatsapp-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
}

#whatsapp-toggle {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--primary-color);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  cursor: pointer;
  padding: 0;
}

#whatsapp-toggle img {
  width: 34px;
  height: 34px;
  display: block;
}

#component-whatsapp-widget .btn-whatsapp-chat img {
  width: 20px;
  height: 20px;
}

/* Remove any visible border/outline around the widget so only the circular icon shows */
#component-whatsapp-widget,
#component-whatsapp-widget * {
  border: none !important;
  background-clip: padding-box !important;
}

#component-whatsapp-widget { background: transparent; padding: 0; margin: 0; }

#whatsapp-toggle {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
}

#whatsapp-toggle:focus,
#whatsapp-toggle:active {
  outline: none !important;
  box-shadow: none !important;
}