:root {
  --primary-green-dark: #2E7D32;
  --primary-green-light: #558B2F;
  --accent-yellow: #FFD600;
  --accent-yellow-rgb: 255, 214, 0; 
  --accent-orange: #FF8F00;
  --accent-orange-dark: #F57F17;
  --bg-cream: #FCF8E8;
  --bg-light-green: #E9F5E9;
  --text-dark-brown: #4E342E;
  --text-very-dark-brown: #3E2723;
  --text-light-brown: #795548;
  --text-white: #ffffff;
  --footer-bg: #343a40;
  --footer-text: #EFEBE9;
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Merriweather', serif;
  --shadow-light: rgba(0, 0, 0, 0.08);
  --shadow-medium: rgba(62, 39, 35, 0.12);
  --shadow-dark: rgba(62, 39, 35, 0.20);
  --card-shadow-base: 0 3px 6px rgba(0,0,0,0.05), 0 10px 20px rgba(62, 39, 35, 0.08);
  --card-shadow-hover: 0 6px 12px rgba(0,0,0,0.07), 0 18px 36px rgba(62, 39, 35, 0.12);
  --header-height: 70px;
  --header-height-scrolled: 60px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-cream);
  color: var(--text-dark-brown);
  font-family: var(--font-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

.group-companies-banner {
    width: 100%;
    max-width: 1000px;
    background-color: #fcf8e8;
    padding: 30px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    margin: 20px auto; 
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.title-container h2 {
    color: #2E7D32;
    margin: 0 20px;
    font-size: 26px;
    font-weight: bold;
    white-space: nowrap;
}

.title-container .line {
    height: 2px;
    background-color: #2E7D32;
    flex-grow: 1;
    max-width: 30%;
}

.slider-presentation-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.arrow {
    font-size: 28px;
    color: #2E7D32;
    cursor: default; 
    padding: 0 10px;
    user-select: none;
}

.logo-slider-viewport {
    flex-grow: 1;
    overflow: hidden;
}

.logo-track {
    display: flex;
    width: calc((150px + 20px) * 6 * 2);
    animation: scroll 35s linear infinite;
}

.logo-item {
    flex-shrink: 0;
    width: 150px;
    height: 90px;
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    margin: 0 10px; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

.logo-item a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-1 * (150px + 20px) * 6));
    }
}

.logo-slider-viewport:hover .logo-track {
    animation-play-state: paused;
}

header {
  background: linear-gradient(to right, var(--primary-green-dark), var(--primary-green-light));
  padding: 0 2rem;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 10px var(--shadow-light);
  transition: height 0.3s ease-in-out, background-color 0.3s ease-in-out, padding 0.3s ease-in-out;
}

header.scrolled {
  height: var(--header-height-scrolled);
  background: var(--primary-green-dark);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

header h1 {
  color: var(--text-white);
  font-size: 1.7rem;
  font-weight: 800;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.25);
  font-family: var(--font-secondary);
  transition: font-size 0.3s ease-in-out;
}

header.scrolled h1 {
    font-size: 1.55rem;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
  margin: 0 0.7rem;
  color: var(--text-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  padding: 0.5rem 0.2rem;
  transition: color 0.3s ease, font-size 0.3s ease;
}

header.scrolled nav a {
    font-size: 0.85rem;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2.5px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-yellow);
  border-radius: 1px;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

nav a:hover, nav a.active-link {
  color: var(--accent-yellow);
}

nav a:hover::after, nav a.active-link::after {
  width: 100%;
}

.header-icon {
    font-size: 1.15rem;
    margin-left: 0.6rem;
}

.header-icon:hover {
  color: var(--accent-yellow);
}

.header-icon::after {
    display: none;
}

.hero {
  min-height: 75vh;
  position: relative;
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1;
}

.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  touch-action: pan-y;
}

.mySlides {
  display: none;
  height: 100%;
  width: 100%;
}

.mySlides img, .mySlides video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 5px 5px 0;
  user-select: none;
  background-color: rgba(0,0,0,0.3);
  z-index: 3;
}

.next {
  right: 0;
  border-radius: 5px 0 0 5px;
}

.prev {
  left: 0;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.6);
}

.hero-text-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-text-content h2 {
  font-family: var(--font-secondary);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  margin-bottom: 1.2rem;
  font-weight: 700;
  text-shadow: 3px 3px 8px rgba(0,0,0,0.75);
  animation: fadeInDown 1s ease-out 0.3s backwards;
}

.hero-text-content p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  max-width: 680px;
  margin: 0 auto 2rem auto;
  line-height: 1.8;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.65);
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

.btn {
  display: inline-block;
  margin-top: 1.25rem;
  background: var(--accent-orange);
  color: var(--text-white);
  padding: 0.9rem 2.5rem;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.28);
  font-size: 0.9rem;
  text-decoration: none; 
}

.btn:hover, .btn:focus {
  background: var(--accent-orange-dark);
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 9px 22px rgba(0,0,0,0.38);
  outline: none;
}

.hero-text-content .btn { 
  animation: fadeInUpBtn 1s ease-out 0.9s backwards;
}

.btn.btn-green { 
    background: var(--primary-green-light);
    font-size: 0.9rem;
    padding: 0.8rem 2rem;
    letter-spacing: 1px;
}

.btn.btn-green:hover {
    background: var(--primary-green-dark);
}

.dots-container {
    text-align: center;
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.dot {
  cursor: pointer;
  height: 13px;
  width: 13px;
  margin: 0 5px;
  background-color: rgba(255,255,255,0.4);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease, transform 0.3s ease;
}

.active, .dot:hover {
  background-color: var(--accent-yellow);
  transform: scale(1.2);
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

.section {
  padding: 5.5rem 2rem; 
  text-align: center;
}

.section h3 {
  font-family: var(--font-secondary);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  color: var(--text-very-dark-brown);
  margin-bottom: 4rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section h3::after {
  content: '';
  position: absolute;
  width: 75%;
  height: 4.5px;
  bottom: 0;
  left: 12.5%;
  background-image: linear-gradient(to right, var(--primary-green-light), var(--accent-yellow));
  border-radius: 3px;
}

.cards {
  display: grid;
  gap: 2rem; 
  justify-items: center; 
  padding: 0 1rem; 
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem; 
    }
}

@media (min-width: 992px) {
    .cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2.8rem;
    }
}

@media (min-width: 1400px) {
    .cards {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1300px;
        margin-left: auto;
        margin-right: auto;
        gap: 2.5rem;
    }
    .cards .card:nth-child(5):nth-last-child(2) {
        grid-column-start: 2;
    }
}

.card { 
  display: flex; 
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none; 
  
  background: var(--text-white);
  padding: 1.6rem; 
  border-radius: 18px; 
  box-shadow: var(--card-shadow-base);
  cursor: pointer;
  overflow: hidden; 
  position: relative;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  max-width: 350px; 
  color: inherit; 
}

.card-inner-content {
    width: 100%; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
  transform: translateY(-10px) scale(1.025);
  box-shadow: var(--card-shadow-hover);
}

.card img {
  width: 80px;
  height: 80px;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  border: 4px solid var(--bg-light-green);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              border-color 0.3s ease,
              box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06); 
}

.card:hover img {
  transform: scale(1.1) translateY(-5px);
  border-color: var(--primary-green-light);
  box-shadow: 0 4px 12px rgba(var(--accent-yellow-rgb), 0.35); 
}

.card h4 {
  font-size: 1.45rem; 
  font-family: var(--font-secondary);
  color: var(--primary-green-dark); 
  margin-bottom: 0.6rem;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.3s ease, transform 0.3s ease-out;
}

.card:hover h4 {
    color: var(--accent-orange);
    transform: translateY(-2px);
}

.card p {
  font-size: 0.88rem;
  color: var(--text-light-brown); 
  line-height: 1.6;
  transition: opacity 0.3s ease, transform 0.3s ease-out;
  max-width: 90%; 
  padding: 0 0.2rem; 
  margin-top: 0.3rem; 
}

.card:hover p {
    opacity: 0.85;
    transform: translateY(-1px);
}

#About-us { 
  background: var(--bg-light-green);
  padding-top: 6rem;
  padding-bottom: 6rem;
}

#About-us .section-content {
    max-width: 800px;
    margin: auto;
    background: rgba(255,255,255,0.7);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

#About-us p {
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--text-dark-brown);
}

footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 3.5rem 1.25rem;
  font-size: 0.95rem;
}

footer p {
  margin-bottom: 0.9rem;
}

footer a {
  color: var(--primary-green-light);
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease, transform 0.2s ease;
  margin: 0 0.6rem;
  display: inline-block;
}

footer a:hover {
  color: var(--accent-yellow);
  text-decoration: underline;
  text-underline-offset: 5px;
  transform: translateY(-3px) scale(1.05);
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUpBtn {
  from { opacity: 0; transform: translateY(50px) scale(0.85); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s ease-out, transform 0.9s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.cards .card { 
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0s, 
                box-shadow 0.5s ease; 
}

.cards .card.visible {
    opacity: 1;
    transform: scale(1); 
}

.cards .card:nth-child(1).visible { transition-delay: 0.1s; }
.cards .card:nth-child(2).visible { transition-delay: 0.2s; }
.cards .card:nth-child(3).visible { transition-delay: 0.3s; }
.cards .card:nth-child(4).visible { transition-delay: 0.4s; }

.cards .card {
    opacity: 0; 
    transform: scale(0.85); 
}

@media (max-width: 767px) {
    header {
        padding: 0 0.8rem; 
        height: calc(var(--header-height) - 10px);
    }
    header.scrolled {
        height: calc(var(--header-height-scrolled) - 8px);
    }
    header h1 {
        font-size: 1.3rem;
    }
    header.scrolled h1 {
        font-size: 1.2rem;
    }
    nav a {
        margin: 0 0.25rem; 
        font-size: 0.75rem; 
        padding: 0.3rem 0.1rem;
    }
    header.scrolled nav a {
        font-size: 0.7rem;
    }
    .header-icon {
        font-size: 1rem; 
        margin-left: 0.3rem; 
    }

    .hero-text-content h2 {
            font-size: clamp(2rem, 5vw, 3rem);
    }
    .hero-text-content p {
            font-size: clamp(1rem, 2.5vw, 1.2rem);
    }
        .hero-text-content .btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.8rem;
    }

    .section {
        padding: 3.5rem 1rem;
    }
    .section h3 {
        margin-bottom: 2.5rem;
        font-size: clamp(1.8rem, 4.5vw, 2.5rem); 
    }
    #About-us .section-content {
        padding: 1.5rem;
    }
    #About-us p {
        font-size: 1rem; 
    }
    .btn.btn-green { 
        font-size: 0.8rem;
        padding: 0.7rem 1.5rem;
    }

    footer {
        padding: 2.5rem 1rem;
    }
    footer p {
        font-size: 0.8rem;
    }
    footer a {
        margin: 0 0.4rem;
    }
}
@media (max-width: 480px) { 
    header h1 {
        font-size: 1.2rem;
    }
    header.scrolled h1 {
        font-size: 1.1rem;
    }
    nav a {
        margin: 0 0.15rem;
        font-size: 0.65rem;
    }
    .header-icon {
            font-size: 0.9rem;
    }
    .dots-container {
        bottom: 15px;
    }
    .dot {
        height: 10px;
        width: 10px;
        margin: 0 3px;
    }
    .card {
        padding: 1.2rem;
    }
    .card h4 {
        font-size: 1.3rem;
    }
    .card p {
        font-size: 0.8rem;
    }
    .card img {
        width: 70px;
        height: 70px;
    }
}