/* --- ROOT VARIABLES --- */
:root {
  --primary-color: #227C5A;
  --primary-dark: #195e45;
  --accent-color: #E6F2EE;
  --text-dark: #1F1F1F;
  --gray-light: #F8F9FA;
  --footer-bg: #222;
  --footer-text: #ccc;
  --footer-muted: #666;

  --font-main: 'Open Sans', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-brand: 'Poppins', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 5px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 10px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.15);
}

/* --- BASE STYLES --- */
* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: var(--gray-light);
  font-family: var(--font-main);
  font-size: clamp(1rem, 0.9vw + 0.6rem, 1.2rem);
  line-height: 1.6;
  color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.75em;
}

h1 { font-size: clamp(1.8rem, 2vw + 1rem, 3rem); color: var(--primary-color); }
h2 { font-size: clamp(1.5rem, 1.5vw + 0.8rem, 2.2rem); }
h3 { font-size: clamp(1.3rem, 1vw + 0.6rem, 1.8rem); }
h4, h5, h6 { font-size: clamp(1.1rem, 0.8vw + 0.6rem, 1.4rem); }

p, li {
  font-size: clamp(1rem, 0.8vw + 0.6rem, 1.2rem);
  line-height: 1.6;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* --- NAVBAR --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background-color: #fff;
  padding: 0.3rem 1rem;
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(1.4rem, 1vw + 1rem, 2.5rem);
  letter-spacing: 0.5px;
  color: #222;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 45px;
  margin-right: 8px;
}

.navbar-nav .nav-link {
  padding: 0.3rem 0.8rem;
  font-size: 0.95rem;
}

.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(34,34,34, 0.95)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* --- HERO SECTION --- */
.header {
  position: relative;
  background: url('images/header-background.jpg') no-repeat center center;
  background-size: cover;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 5vh, 5rem) 1rem;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.description {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

.description h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 5vw, 3.75rem);
  color: var(--primary-color);
  line-height: 1.2;
  white-space: nowrap;
}

.description p {
  font-size: clamp(1rem, 0.8vw + 0.6rem, 1.3rem);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.description button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  font-size: clamp(0.9rem, 0.8vw + 0.5rem, 1.1rem);
  padding: clamp(0.5rem, 1vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
  border-radius: 2rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.description button:hover {
  background-color: var(--primary-dark);
}

/* --- FEATURES/SERVICES --- */
.features {
  margin: 4em auto;
  padding: 2em;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.feature,
.service {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1 1 30%;
  max-width: 32%;
  min-width: 280px;
}

.feature:hover,
.service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-title {
  font-size: clamp(1.2rem, 1vw + 0.8rem, 1.6rem);
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.features img {
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .feature, .service { max-width: 100%; flex: 1 1 100%; }
}

/* --- TEAM SECTION --- */
.background {
  background: #dedec8;
  padding: 4em 0;
}

.team {
  padding: 0 15px;
  color: #5e5e55;
  max-width: 1200px;
  margin: auto;
}

.team .card-columns { column-count: 3; }

/* --- CARD COMPONENT --- */
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: none;
  padding: clamp(0.8rem, 1vw, 1.2rem);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-title {
  font-size: clamp(1rem, 0.9vw + 0.6rem, 1.35rem);
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.card-text {
  line-height: 1.65;
  font-size: 1rem;
}

.card-img-top {
  max-width: 150px;
  width: 60%;
  margin: 0 auto;
  height: auto;
}

.custom-img {
  height: 280px;
  object-fit: contain;
  background: var(--gray-light);
  padding: 8px;
  margin-bottom: 1rem;
  transition: transform 0.4s ease;
}

.card:hover .custom-img { transform: scale(1.03); }

.card-body:last-child { flex-grow: 1; }

/* --- FOOTER --- */
.page-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 30px;
  text-align: center;
  font-size: clamp(0.9rem, 0.7vw + 0.5rem, 1rem);
}

.footer-copyright {
  color: var(--footer-muted);
  padding: 30px 0;
  font-size: clamp(0.8rem, 0.7vw + 0.4rem, 0.9rem);
}

/* --- MODAL --- */
#demo-modal .modal-content {
  border-radius: 6px;
  padding: 2rem;
}

#demo-modal .modal-header { border-bottom: none; }

#demo-modal h4 {
  color: #000;
  font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem);
  font-weight: bold;
  margin-bottom: 1rem;
}

#demo-modal .close {
  background: #c0c3c8;
  border-radius: 50%;
  color: #fff;
  font-size: 19px;
  height: 30px;
  width: 30px;
  opacity: 0.5;
  text-align: center;
  position: absolute;
  top: 26px;
}

/* --- UTILITIES --- */
:target::before {
  content: "";
  display: block;
  height: 70px;
  margin-top: -70px;
}

[id] { scroll-margin-top: 80px; }

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 15px;
  justify-items: center;
}

.logo-grid img {
  width: 70px;
  height: auto;
}

html { scroll-behavior: smooth; }
