/* :root {
  --bg: #55a37b;
  --card: #ffffff;
  --text: #03301a;
  --muted: #859ca0;
  --accent: #1f8f58;
  --border: #d1d9d3;
} */
:root {
  --bg: #55a37b;
  --card: #ffffff;
  --text: #094429;
  --muted: #357d68;
  --accent: #2d694c;
  --border: #dbe5df;
}
/* ==========================
   GLOBAL RESET
   ========================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* at least full screen */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  padding-top: 2rem;
}
/* ==========================
   SHARED WIDTH CONTAINER
   ========================== */

.container {
  max-width: 1200px;
  margin: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
/* ==========================
   HEADER
   ========================== */

/* .site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;

  max-width: 1200px;
  margin: auto;
  padding: 2rem 1.5rem;

  background-color: var(--card);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
} */

/* Desktop layout */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap; /* allow wrapping on small screens */
  margin: auto;
  padding: 2rem 1.5rem;

  background-color: var(--card);
  border-radius: 12px;
}

@media screen and (max-width: 480px) {
  .site-header {
    flex-direction: column !important;  
    align-items: center;
    text-align: center;
    /* padding: 5px 10px; */
    display: flex;
    margin: auto;
    padding: 2rem 1.5rem;
  }

  .header-left {
    width: 100% !important;            
    display: flex;
    flex-direction: column !important;
    align-items: center;
  }
  
  
  .logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 6px;
  }
  
  .header-left h1 {
    font-size: 20px; 
    margin: 0 0 6px 8px;
  }

  .main-nav{
    order: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 8px 0;
    margin: 6px 0 8px;
    font-size: 15px;
  }

  .main-nav a{
    display: inline-block;
    font-size: 15px;
    padding: 4px 0;
  }

  .header-right {
    width: 100%;            
    margin-top: 6px;
  }

  .header-right p,
  .header-right a {
    font-size: 12px;
    margin: 2px 0;
    word-break: break-word;
  }
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 100px;
  width: auto;
  border-radius: 8px;
}

.header-left h1 {
  font-size: 2rem;
  font-weight: 700;
}

.header-right {
  text-align: right;
  font-size: 0.95rem;
  color: var(--muted);
}

.header-right a {
  color: var(--accent);
  text-decoration: none;
}

.header-right a:hover {
  text-decoration: underline;
}

/* ==========================
   NAVIGATION
   ========================== */

.main-nav {
  margin-top: 0.5rem;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--accent);
}

.main-nav a:hover {
  text-decoration: underline;
}

.main-nav a.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================
   MAIN CONTENT
   ========================== */

main {
  flex: 1;
  padding: 3rem 0 2rem;
}

.section,
.about,
.contact {
  width: 100%;
  margin: 3rem 0;
  padding: 3rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
/* ==========================
   SERVICE TILES
   ========================== */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  min-height: 260px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.tile h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.tile p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.tile a {
  align-self: flex-start;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.tile a:hover {
  text-decoration: underline;
}

/* ==========================
   ABOUT SECTION
   ========================== */

.about h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ==========================
   MODALS
   ========================== */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.modal-content {
  background: white;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.modal-content h1,
.modal-content h2 {
  color: var(--text);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.modal-content p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================
   CONTACT SECTION
   ========================== */



.contact h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.contact-details {
  display: grid;
  gap: 1rem;
  color: var(--muted);
  font-size: 1rem;
}

.contact-details strong {
  color: var(--text);
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto 0;
  display: grid;
  gap: 1.25rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  margin-top: 0.4rem;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:hover {
  opacity: 0.9;
}

/* ==========================
   FOOTER
   ========================== */

footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0rem; 
}
/* ==========================
   FOOTER LINKS
   ========================== */

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-logos img {
  height: 50px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-logos img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.home-only {
  display: flex; /* ensure it’s visible */
}

/* ==========================
   RESPONSIVE
   ========================== */

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-right {
    text-align: left;
    margin-top: 1rem;
  }
}

/* ==========================
   MODAL LIST STYLING
   ========================== */

.modal-content ul {
  list-style: none;
  margin-bottom: 1.25rem;
  padding: 0;
}

.modal-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
  line-height: 1.6;
}

.modal-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--muted);
}

