* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

html {
  font-size: 16px; /* Base font size */
}

body {
  color: #222;
  background-color: #f8f9fb;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%; /* Prevent iOS font scaling */
  text-rendering: optimizeLegibility;
}

/* Header */
header {
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
}
.logo-container {
 display: flex;
  align-items: center;
  gap: 8px; /* tightened gap for better alignment */
}

/* Logo size */
.logo {
  display: block; /* removes inline-image descender whitespace */
  width: auto;
  max-height: 72px; /* slightly larger for better presence */
  object-fit: contain;
}

/* Brand name */
.brand-name {
  font-size: 24px;
  font-weight: 700;
  color: #00828c;
  letter-spacing: 0.5px;
  line-height: 1; /* ensure vertical centering next to the logo */
}

/* Slightly reduce logo on small screens so header doesn't feel crowded */
@media (max-width: 480px) {
  .logo {
    max-height: 56px;
  }
  .brand-name {
    font-size: 20px;
  }
}
/* Accessible skip link: hidden visually but visible on keyboard focus */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
  background: #fff;
  color: #007b82;
  padding: 8px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 1000;
}

/* CTA button used in hero */
.cta {
  display: inline-block;
  background: #ff7a00;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.cta:hover,
.cta:focus {
  opacity: 0.95;
}
/* screen-reader only helper */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Responsive navigation */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  position: relative;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle .hamburger::before { top: -7px; }
.nav-toggle .hamburger::after { top: 7px; }

/* nav-links: default desktop layout */
.nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a { display: inline-block; }

/* Mobile: collapse nav into a full-width dropdown */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 12px 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  nav a { color: #333; padding: 10px 8px; display: block; }
}
nav a {
  margin: 0 12px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}
nav a.active, nav a:hover {
  color: #ff7a00;
}

/* Hero */
.hero {
  background: linear-gradient(120deg, #007b82, #009eab);
  color: #fff;
  text-align: center;
  padding: clamp(60px, 10vh, 100px) 20px clamp(40px, 8vh, 80px);
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 2.4rem);
  line-height: 1.2;
}
.hero-content h1 span {
  color: #ffb700;
}
.hero-content .subtitle {
  max-width: 600px;
  margin: 20px auto;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 4vw, 40px);
  margin-top: 40px;
}
.stats h3 {
  font-size: clamp(1.5rem, 4vw, 1.8rem);
}
.stats p {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* Features */
.features {
  padding: clamp(40px, 8vh, 80px) 5%;
  text-align: center;
}
.section-desc {
  color: #555;
  margin-bottom: clamp(24px, 5vh, 40px);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.feature-grid {
  display: grid;
  gap: clamp(16px, 3vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  padding: 0 max(0px, calc((100% - 1200px) / 2));
}
.feature-card {
  background: #fff;
  border-radius: 10px;
  padding: clamp(16px, 4vw, 24px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  text-align: left;
}
.feature-card h3 {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  margin-bottom: 0.5em;
}
.feature-card p {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  color: #444;
}

/* Page Header */
.page-header {
  background: linear-gradient(120deg, #007b82, #009eab);
  color: #fff;
  text-align: center;
  padding: clamp(40px, 8vh, 80px) 20px;
}
.page-header h3 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  margin-bottom: 0.5em;
  line-height: 1.2;
}
.page-header p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 600px;
  margin: 0 auto;
}

/* About */
.about-content {
  padding: clamp(40px, 6vh, 60px) 5%;
  max-width: 1200px;
  margin: 0 auto;
}
.about-content h2 {
  color: #007b82;
  margin-top: clamp(24px, 5vh, 40px);
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
}
.about-content p {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  margin-bottom: 1.2em;
}

/* Contact */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 80px 10%;
}

/* Contact form mobile adjustments */
@media (max-width: 768px) {
  .contact-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 5%;
  }
  .contact-form input, 
  .contact-form textarea {
    padding: 14px 16px; /* Taller on mobile for better touch */
    margin-bottom: 20px;
  }
  .contact-form textarea {
    min-height: 160px; /* Taller on mobile */
  }
  .contact-form button {
    width: 100%; /* Full width on mobile */
    max-width: none;
    margin-top: 8px;
  }
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px; /* Prevents zoom on mobile */
  line-height: 1.4;
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form button {
  background: #007b82;
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  max-width: 200px;
}
.contact-form button:hover {
  background: #005f64;
}

/* Footer */
footer {
  background: #007b82;
  color: #fff;
  padding: clamp(32px, 6vh, 40px) 5% clamp(16px, 3vh, 20px);
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(24px, 5vw, 40px);
  max-width: 1200px;
  margin: 0 auto;
}
.footer-links h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.2rem);
  margin-bottom: 12px;
}
.footer-links a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin: 8px 0;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  padding: 4px 0;
}
.footer-links a:hover {
  text-decoration: underline;
}
.copyright {
  text-align: center;
  margin-top: clamp(16px, 4vh, 20px);
  font-size: clamp(0.85rem, 2.5vw, 0.9rem);
  opacity: 0.9;
}
