:root {
  --nav-height: 72px;
}

html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #ffffff;
  color: #374151; /* Charcoal */
  line-height: 1.6;
}

.navbar {
  font-family: "Inter", sans-serif;
  backdrop-filter: blur(10px);
  background: rgba(0, 102, 44, 0.95);
  border-bottom: 2px solid #028337;
}

.navbar .navbar-brand {
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  padding: 0;
  line-height: 1;
}

.navbar-logo {
  display: block;
  width: 190px;
  height: 56px;
  max-width: 45vw;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  transform: scale(2.1) translateY(4px);
  transform-origin: left center;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #ffffff !important;
  text-shadow: 0 0 1px rgba(255,255,255, 0.5);
}

.slider {
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden; /* Hide horizontal slides */
  overflow-y: visible; /* Allow vertical growth */
  position: relative;
}

.slides {
  height: auto; /* Changed from 100% to allow height to grow with active slide */
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.slide {
  min-width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: flex-start; /* Changed from center to allow scrolling long content */
  justify-content: center;
  text-align: center;
  /* Dynamic height: hide inactive slides from document flow height */
  height: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0 2rem;
}

.active-slide {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  padding: calc(var(--nav-height) + 2rem) 2rem 5rem;
}

.slide-title {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  margin-bottom: 1rem;
  color: #111827; /* Ink Black */
}

.slide-title:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 6px;
}

.slide p {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  max-width: 760px;
  margin: 0 auto;
  color: #4b5563; /* Slate grey */
}

.home-content {
  width: min(1160px, 96vw);
  padding: 0.2rem 0.35rem 0.2rem 0;
  text-align: left;
}

.home-hero {
  display: block;
  margin-bottom: 1rem;
}

.home-copy {
  border: 1px solid #edf2f7;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-copy:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.home-kicker {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #00bfa6;
  background: rgba(0, 191, 166, 0.1);
}

.home-copy .slide-title {
  margin-bottom: 0.52rem;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
}

.home-lead {
  max-width: 64ch;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #374151;
}

.home-points li {
  margin-bottom: 0.6rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #4b5563;
  position: relative;
  list-style: none;
}

.home-points li::before {
  content: "✓";
  position: absolute;
  left: -1.2rem;
  color: #00bfa6;
  font-weight: bold;
}

.home-points li:last-child {
  margin-bottom: 0;
}

.home-visual {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  width: 668px;
  height: 446px;
  max-width: 100%;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.home-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.home-gallery-stage {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
}

.home-visual img.gallery-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease-in-out;
}

.home-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 15, 35, 0.01) 0%, rgba(2, 15, 35, 0.4) 50%, rgba(2, 15, 35, 0.8) 100%);
  pointer-events: none;
}

.home-gallery-nav {
  position: absolute;
  top: calc(50% - 30px);
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  padding: 0;
}

.home-gallery-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.05);
}

.home-gallery-nav.prev {
  left: 12px;
}

.home-gallery-nav.next {
  right: 12px;
}

.home-gallery-thumbs {
  position: absolute;
  bottom: calc(1rem + 72px); /* Above the badge */
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  z-index: 10;
  padding: 0 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.home-gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.home-visual .gallery-thumb {
  width: 48px;
  height: 36px;
  min-height: 0; /* override the 320px min-height */
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.3);
  opacity: 0.6;
  transition: all 0.2s;
  flex-shrink: 0;
  display: block;
}

.home-visual .gallery-thumb.active {
  border-color: #00bfa6;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.home-visual .gallery-thumb:hover {
  opacity: 1;
}

.home-visual-badge {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.home-badge-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00bfa6;
}

.home-visual-badge strong {
  font-family: "Outfit", sans-serif;
  font-size: 0.98rem;
  line-height: 1.3;
  color: #111827;
}

.home-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.82rem;
  margin-top: 0.85rem;
}

.home-benefit {
  border: 1px solid #edf2f7;
  border-radius: 14px;
  background: #ffffff;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.home-benefit:hover {
  transform: translateY(-3px);
  border-color: #00bfa6;
}

.home-benefit h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: #111827;
}

.home-benefit p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #4b5563;
}

.home-bottom {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.82rem;
  margin-top: 0.82rem;
}

.home-panel {
  border: 1px solid #edf2f7;
  border-radius: 14px;
  background: #f8f9fa;
  padding: 1rem;
}

.home-panel h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: #111827;
}

.home-panel p {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #4b5563;
}

.home-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.home-tags span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 0.75rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #4b5563;
  background: #f3f4f6;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
}

.home-tags span:hover {
  background: #e2e8f0;
  color: #2d3748;
}

.home-contact-line {
  margin-top: 0.2rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #374151;
}

.home-contact-line a {
  color: #00bfa6;
  font-weight: 600;
  text-decoration: none;
}

.home-contact-line a:hover {
  text-decoration: underline;
}

/* Home Detailed Toggle */
.home-details-toggle {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.home-details-content {
  max-height: 2000px; /* Large enough for full content */
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  position: relative;
}

.home-details-content.collapsed {
  max-height: 0;
  opacity: 0;
}

.home-details-inner h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #111827;
  margin-top: 1.5rem;
}

.home-details-inner h3:first-child {
  margin-top: 0;
}

.home-details-inner p {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 1rem;
}

.home-points-lite {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

.home-points-lite li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #4b5563;
  list-style: disc;
}

.reference-list {
  columns: 2;
  column-gap: 2rem;
  padding-left: 1.2rem;
  list-style: disc;
}

@media (max-width: 768px) {
  .reference-list {
    columns: 1;
  }
}

.reference-list li {
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  color: #4b5563;
}

.about-content {
  width: min(1140px, 95vw);
  padding-right: 0.35rem;
  text-align: left;
}

.about-content > .slide-title,
.about-content > p {
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.about-box {
  border: 1px solid #edf2f7;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  padding: 1.2rem;
  text-align: left;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: #00bfa6;
}

.about-head {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  margin-bottom: 0.48rem;
}

.about-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.about-box h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0;
  color: #111827;
}

.about-box p {
  margin: 0 0 0.7rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #374151;
}

.about-box p:last-child {
  margin-bottom: 0;
}

.about-list {
  margin: 0 0 0.7rem 1rem;
  padding: 0;
}

.about-list li {
  margin-bottom: 0.4rem;
  font-size: 0.96rem;
  line-height: 1.5;
  color: #374151;
}

.about-list li:last-child {
  margin-bottom: 0;
}

.contact-content {
  width: min(980px, 95vw);
  padding-right: 0.35rem;
  text-align: left;
}

.contact-content > .slide-title,
.contact-content > p {
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0.9rem;
}

.contact-card {
  border: 1px solid #edf2f7;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  padding: 1.2rem;
}

.contact-photo {
  width: 120px;
  height: 126px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.contact-card h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  color: #111827;
}

.contact-card p {
  margin: 0 0 0.55rem;
  font-size: 0.97rem;
  line-height: 1.5;
  color: #636e72;
}

.contact-list {
  margin: 0 0 0.8rem;
  padding-left: 1rem;
}

.contact-list li {
  margin-bottom: 0.24rem;
  font-size: 0.95rem;
  line-height: 1.36;
  color: #374151;
}

.contact-list li:last-child {
  margin-bottom: 0;
}

.contact-card a {
  color: #00bfa6;
  text-decoration: none;
  font-weight: 500;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.contact-note {
  display: flex;
  flex-direction: column;
}

.info-card {
  margin-top: 0;
}

.info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  color: #111827;
}

.info-table-wrapper {
  overflow-x: auto;
  margin: 0 -0.5rem;
  padding: 0 0.5rem;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  color: #374151;
}

.info-table tr {
  border-bottom: 1px solid #f3f4f6;
}

.info-table tr:last-child {
  border-bottom: none;
}

.info-table td {
  padding: 0.85rem 0.75rem;
  vertical-align: top;
}

.info-table td:first-child {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: #111827;
  width: 180px;
  padding-left: 0;
}

.info-table td:last-child {
  padding-right: 0;
}

@media (max-width: 767.98px) {
  .info-table td {
    display: block;
    width: 100% !important;
    padding: 0.4rem 0;
  }
  
  .info-table td:first-child {
    padding-bottom: 0.1rem;
    color: #00bfa6;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .info-table tr {
    padding: 0.75rem 0;
    display: block;
  }
}


.services-content {
  width: min(1140px, 95vw);
  padding-right: 0.35rem;
  text-align: left;
}

.services-content > .slide-title,
.services-content > p {
  text-align: center;
}

.service-box {
  height: 100%;
  min-height: 150px;
  padding: 1.25rem;
  text-align: left;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-box:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: #00bfa6;
}

.service-head {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  margin-bottom: 0.48rem;
}

.service-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.service-box h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
  color: #111827;
}

.service-box p {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #374151;
}

.service-box p:last-child {
  margin-bottom: 0;
}

.service-list {
  margin: 0 0 0.7rem 1rem;
  padding: 0;
}

.service-list li {
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #374151;
}

.service-list li:last-child {
  margin-bottom: 0;
}

#services[aria-hidden="false"] .service-box,
#about[aria-hidden="false"] .about-box {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#services .row > div:nth-child(1) .service-box, #about .about-grid > article:nth-child(1) { transition-delay: 0.1s; }
#services .row > div:nth-child(2) .service-box, #about .about-grid > article:nth-child(2) { transition-delay: 0.2s; }
#services .row > div:nth-child(3) .service-box, #about .about-grid > article:nth-child(3) { transition-delay: 0.3s; }
#services .row > div:nth-child(4) .service-box { transition-delay: 0.4s; }
#services .row > div:nth-child(5) .service-box { transition-delay: 0.5s; }
#services .row > div:nth-child(6) .service-box { transition-delay: 0.6s; }
#services .row > div:nth-child(7) .service-box { transition-delay: 0.7s; }
#services .row > div:nth-child(8) .service-box { transition-delay: 0.8s; }

.slide {
  background: #ffffff;
}

#home {
  background: 
    radial-gradient(circle at 10% 10%, rgba(0, 191, 166, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(0, 123, 255, 0.05) 0%, transparent 40%);
}

.slider-control {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1030;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}

.slider-control:hover {
  background: rgba(0, 0, 0, 0.55);
}

.slider-control.prev { left: 1rem; }
.slider-control.next { right: 1rem; }

.dot-nav {
  position: fixed;
  left: 50%;
  bottom: 3.5rem;
  transform: translateX(-50%);
  z-index: 1030;
  display: flex;
  gap: 0.5rem;
}

.dot-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: transparent;
  padding: 0;
  transition: all 0.3s ease;
}

.dot-btn.active {
  background: #00bfa6;
  border-color: #00bfa6;
  transform: scale(1.2);
}

body.is-transitioning .nav-link,
body.is-transitioning .dot-btn {
  pointer-events: none;
}

@media (max-width: 991.98px) {
  .slide {
    padding-top: calc(var(--nav-height) + 4rem);
  }

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

  .about-box h3 {
    font-size: 1rem;
  }

  .about-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .about-box p,
  .about-list li {
    font-size: 0.9rem;
    line-height: 1.32;
  }

  .home-cta {
    flex-wrap: wrap;
  }

  .home-hero {
    display: block;
  }

  .home-copy {
    padding: 1rem 0.95rem 0.9rem;
  }

  .home-kicker {
    font-size: 0.74rem;
  }

  .home-copy .slide-title {
    font-size: clamp(1.55rem, 5.4vw, 2.2rem);
  }

  .home-lead {
    font-size: 0.95rem;
    line-height: 1.36;
  }

  .home-points li {
    font-size: 0.88rem;
    line-height: 1.3;
  }

  .home-visual {
    min-height: 250px;
  }

  .home-visual img {
    min-height: 250px;
  }

  .home-visual-badge strong {
    font-size: 0.9rem;
  }

  .home-benefits {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .home-benefit h3 {
    font-size: 0.95rem;
  }

  .home-benefit p {
    font-size: 0.88rem;
    line-height: 1.3;
  }

  .home-bottom {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .home-panel h3 {
    font-size: 0.95rem;
  }

  .home-panel p,
  .home-contact-line {
    font-size: 0.88rem;
    line-height: 1.3;
  }

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

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

  .contact-card p,
  .contact-list li {
    font-size: 0.9rem;
    line-height: 1.32;
  }

  .services-content {
    max-height: calc(100vh - var(--nav-height) - 4.5rem);
  }

  .service-box {
    min-height: 136px;
    padding: 0.82rem 0.88rem;
  }

  .service-box h3 {
    font-size: 0.99rem;
  }

  .service-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .service-box p {
    font-size: 0.9rem;
    line-height: 1.34;
  }

  .service-list li {
    font-size: 0.88rem;
    line-height: 1.32;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slides {
    transition: none;
  }

  .service-box {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

.app-footer {
  position: relative; /* Changed from fixed to allow it to sit at the end of long content */
  background: rgba(0, 102, 44, 0.95);
  backdrop-filter: blur(10px);
  border-top: 2px solid #028337;
  z-index: 1030;
  margin-top: auto;
  font-family: "Inter", sans-serif;
}

.footer-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #ffffff;
}
