/* Base Styling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 144px;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: large;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
  max-width: 1600px;
  margin: 0 auto;
  padding: 10px;
}

/* Header and Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #004d40;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background: #004d40;
  color: white;
  padding: 0.5rem 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.logo img {
  height: 40pt;
}

.logo span {
  font-size: 1rem;
  font-weight: 600;
}

/* Always visible horizontal nav links */
.nav-links {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none;
  margin: 0.5rem 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #00bcd4;
}

/* Sections */
section {
  max-width: 1400px;
  margin: 1% auto;
  padding: 0 1rem;
}

h1, h2, h3 {
  color: #004d40;
}

h2 {
  text-align: center;
}

ul {
  padding-left: 1.2rem;
  list-style: none;
}

#value-proposition,
#services {
  text-align: center;
}

/* Highlight */
.highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(512px, 1fr));
  background: #e0f2f1;
  border: 1pt solid #d0fff7;
  border-radius: 8px;
  padding: 1rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.highlight-item img {
  width: 40px;
  height: 40px;
  margin-right: 1rem;
  object-fit: contain;
}

.highlight p {
  font-size: medium;
}

.highlight p strong {
  display: block;
  font-size: 18px;
  color: #111;
}

/* Engagement */
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.engagement {
  background: white;
  border-left: 4px solid #00796b;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.engagement img {
  max-width: 100%;
  display: block;
  margin-bottom: 15px;
}

.engagement strong {
  color: #004d40;
  font-size: 1.1rem;
}

/* Carousel */
.carousel {
  position: relative;
  max-width: 100%;
  margin: 0.25rem auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  height: 600px;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.slide {
  min-width: 100%;
  position: relative;
  height: 100%;
}

.slide-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.caption {
  position: absolute;
  bottom: 10%;
  width: 100%;
  text-align: center;
  color: white;
  background: rgba(0,0,0,0.25);
  padding: 15px 20px;
  border-radius: 5px;
}

.caption h2 {
  margin: 0 0 5px;
  font-size: 28px;
}

.caption p {
  margin: 0;
  font-size: 18px;
}

.controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.control-btn {
  background: rgba(80,134,125,0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 15px;
  pointer-events: auto;
  transition: background 0.3s;
}

.control-btn:hover {
  background: rgba(0,77,64,0.9);
}

.dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.dot {
  width: 8pt;
  height: 8pt;
  background: rgba(191,255,234,0.5);
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.dot:hover {
  transform: scale(1.2);
}

.dot.active {
  background: rgb(0,180,126);
  box-shadow: 0 0 5px rgba(255,255,255,0.8);
}

@keyframes fadeIn {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.slide.active .slide-image {
  animation: fadeIn 0.5s ease-in-out forwards;
}

/* Form */
.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
}

input, textarea {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
}

button {
  padding: 10px 20px;
  background: #28a745;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background: #218838;
}

.message {
  text-align: center;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 6px;
  font-weight: bold;
}

.message.success {
  color: #155724;
  background: #d4edda;
  border: 1px solid #c3e6cb;
}

.message.error {
  color: #721c24;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
}

/* Media Queries (only where necessary) */
@media (max-width: 1200px) {
  .carousel { height: 500px; }
  .caption h2 { font-size: 22px; }
  .caption p { font-size: 16px; }
  
}

@media (max-width: 640px) {
  html { scroll-padding-top: 100px; }
  body { font-size: 1rem; }
  header { padding: 1.2rem; font-size: 1rem; }
  .carousel { height: 300px; }
  .caption h2 { font-size: 1.1rem; }
  .caption p { font-size: 0.9rem; }
  .highlight { grid-template-columns: 1fr; padding: 0.5rem; }
  .highlight-item { flex-direction: column; text-align: center; }
  .highlight-item img { margin: 0 0 0.5rem; }
  .engagement-grid { grid-template-columns: 1fr; }
  .logo img { height: 50pt; }
  .logo span { font-size: 0.9rem; }
  .navbar {
  display: flex;
  justify-content:center; /* keeps logo left and links right */
  align-items: center;
  flex-wrap: wrap;             /* <--- prevent wrapping */
  background: #004d40;
  color: white;
  padding: 0.5rem 1rem;
}
}

@media (max-width: 480px) {
  header { padding: 0.8rem; font-size: 0.9rem; }
  .carousel { height: 200px; }
  .caption h2 { font-size: 1rem; }
  .caption p { font-size: 0.8rem; }
  .control-btn { width: 30px; height: 30px; font-size: 14px; }
}

@media (max-width: 360px) {
  .carousel { height: 150px; }
  .caption h2 { font-size: 0.9rem; }
  .caption p { font-size: 0.7rem; }
  .control-btn { width: 25px; height: 25px; font-size: 12px; }
}
