/* -- RESET BASICS -- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;  
}

/* -- FULL HEIGHT SETUP -- */
html, body {
  height: 100%;
  /* font Sriracha */
  font-family: "Sriracha", cursive;
  font-weight: 400;
  font-style: normal;
}

/* -- BODY AND FLEX SETUP TO PUSH FOOTER DOWN -- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
 background-color: #f8f9fa;
  color: #333;
  padding-top: 70px; /* space for fixed navbar */
}

/* -- MAIN CONTENT -- */
main {
  flex: 1;
}

/* -- CONTENT WRAPPER (for About and other pages) -- */
.content-wrapper {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 20px;
  background: white;
  /* background-color: rgba(255,0,127,0.3); */
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* -- ABOUT SECTION -- */
#about {
  color: #2f4f4f; /* dark slate color */
  line-height: 1.6;
  font-size: 1.1rem;
}

#about h1 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  color: #4caf50; /* use theme green */
  font-weight: 700;
}

#about p {
  margin-bottom: 18px;
  text-align: justify;
  letter-spacing: 0.02em;
}

/* -- NAVBAR -- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #4caf50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  z-index: 1000;
  height: 70px;
}

/* -- LOGO -- */
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  /* color: white; */
  color: #8c51af;
  
  /* White 2pt (approx 2px) outer stroke using multiple text-shadows */
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff,
    0 -1px 0 #fff,
    1px 0 0 #fff,
    0 1px 0 #fff,
    -1px 0 0 #fff;
}

.logo a{
  text-decoration: none;
  color: inherit;  
}

.logo a:hover {
  opacity: 0.6; /* Slightly dim on hover */
}

.logo img {
  height: 30px;
  vertical-align: text-bottom;
  margin-right: 8px;  
}

/* -- CONTACT INFO -- */
.contact-info {
  color: white;
  font-size: 0.9rem;
  margin-left: 20px;
  white-space: nowrap;
}

.contact-info a {
  color: #dff0d8;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* -- NAV LINKS CONTAINER -- */
.nav-links {
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #c8e6c9;
}

/* -- HAMBURGER MENU BUTTON -- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

/* -- HERO SECTION -- */
.hero {
  position: relative;
  text-align: center;
  min-height: calc(100vh - 70px - 60px); /* navbar + footer */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 20px 20px;
  overflow: hidden;
  color: #fff;
  background-color: #000; /* fallback black */
  /* z-index: -1; */
}

/* Background image layer with 0.5 opacity */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/mast-building.png') center center / cover no-repeat;
  opacity: 0.5;
  /* z-index: -2; */
}

/* Black overlay layer with 0.2 opacity */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.2);
  /* z-index: -1; */
}

/* Content container inside hero */
.hero-content {
  position: relative;
  z-index: 2000;
  max-width: 700px;
  padding: 20px;
}

/* Headline */
.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

/* Subheadline */
.hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
}

/* CTA Button */
.cta-button {
  background-color: #8c51af;
  color: #fff;
  padding: 15px 30px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.cta-button:hover,
.cta-button:focus {
  background-color: #e85c00;
  outline: none;
}


/* CTA Button Mini*/
.cta-button-mini {
  background-color: #ff6b00;
  color: #fff;
  padding: 5px 10px;
  font-size: 1rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.cta-button-mini:hover,
.cta-button-mini:focus {
  background-color: #e85c00;
  outline: none;
}

/* -- SECTION GENERIC STYLING -- */
section {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

/* -- FOOTER -- */
footer {
  background-color: #4caf50;
  color: white;
  text-align: center;
  padding: 15px 10px;
  font-size: 0.9rem;
  height: 60px;
  line-height: 30px;
}

/* -- CONTACT FORM -- */
.contact-form {
  max-width: 600px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  font-weight: bold;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #4caf50;
  outline: none;
}

.contact-form button {
  background-color: #8c51af;
  color: white;
  padding: 12px;
  border: none;
  font-size: 1em;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #388e3c;
}

/* -- ERROR & SUCCESS MESSAGES -- */
.error {
  color: #d93025;
  font-size: 0.9em;
}

.success-message {
  color: #2e7d32;
  font-weight: bold;
  margin-bottom: 15px;
}

.error-message {
  color: #d93025;
  font-weight: bold;
  margin-bottom: 15px;
}

/* -- RESPONSIVE STYLES -- */
@media (max-width: 768px) {
  /* Show hamburger button */
  .menu-toggle {
    display: block;
  }

  /* Mobile nav links styling */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #4caf50;
    padding: 10px 0;
    z-index: 999;
  }

  /* When active, show mobile nav */
  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    margin: 10px 0;
    padding: 10px 20px;
    width: 100%;
  }

  /* Hide contact info on mobile */
  .contact-info {
    display: none;
  }

  /* Adjust hero padding and height */
  .hero {
    padding: 60px 15px 20px;
    min-height: 100vh;
  }

  /* Smaller headline font */
  .hero h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 15px;
  }

  /* Smaller subheadline font */
  .hero p {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  /* Full width CTA button on mobile */
  .cta-button {
    width: 100%;
    max-width: 280px;
    padding: 14px 20px;
    font-size: 1rem;
  }

  .hero-content {
    padding: 0 10px;
  }

  /* About page content tweaks */
  .content-wrapper {
    margin: 0 10px 40px;
    padding: 15px;
  }

  #about h1 {
    font-size: 1.8rem;
  }

  #about p {
    font-size: 1rem;
  }
}

/* -- CLIENTS SECTION -- */
#clients {
  background-color: #ffffff;
  padding: 60px 20px;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

#clients h2 {
  font-size: 2.2rem;
  color: #4caf50;
  margin-bottom: 20px;
}

#clients p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 20px;
}

#clients ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#clients li {
  font-size: 1rem;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  color: #333;
}

#clients li::before {
  content: "✔";
  color: #4caf50;
  margin-right: 10px;
}

/* -- RESPONSIVE: CLIENTS SECTION -- */
@media (max-width: 768px) {
  #clients {
    padding: 40px 15px;
  }

  #clients h2 {
    font-size: 1.6rem;
  }

  #clients p {
    font-size: 1rem;
  }

  #clients li {
    font-size: 0.95rem;
  }
}

/* -- INTRO SECTION -- */
.intro {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
  background-color: #ffffff;
}

.intro h2 {
  font-size: 2.2rem;
  color: #4caf50;
  margin-bottom: 20px;
}

.intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.intro .cta-button {
  margin-top: 20px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .intro {
    padding: 40px 15px;
  }

  .intro h2 {
    font-size: 1.6rem;
  }

  .intro p {
    font-size: 1rem;
  }
}

/* === PRODUCTS PAGE === */
#products {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #fff;
  color: #333;
}

#products h1 {
  font-size: 2.5rem;
  color: #4caf50;
  text-align: center;
  margin-bottom: 20px;
}

#products > p {
  font-size: 1.1rem;
  text-align: left;
  margin-bottom: 40px;
  color: #555;
}

.product-columns {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.column {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.product-category h2 {
  font-size: 1.8rem;
  color: #388e3c;
  border-bottom: 2px solid #c8e6c9;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.product-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-category ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-category li {
  font-size: 1rem;
  padding: 12px;
  background-color: #f1f8e9;
  border-left: 4px solid #4caf50;
  border-radius: 4px;
  color: #333;
  transition: background-color 0.2s ease;
}

.product-category li:hover {
  background-color: #e8f5e9;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .product-columns {
    flex-direction: column;
  }

  .column {
    flex: 1 1 100%;
  }

  #products h1 {
    font-size: 2rem;
  }

  .product-category h2 {
    font-size: 1.5rem;
  }

  .product-image {
    max-width: 100%;
  }
}

/* === SCROLL TO TOP BUTTON === */
/* Base style for desktop/tablet */
#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  font-size: 20px;
  background-color: #8c51af;
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}
/* === RESPONSIVE === */
/* On mobile: reduce right margin to 15px */
@media (max-width: 600px) {
  #scrollToTopBtn {
    width: 30px;
    height: 30px;
    right: 10px;
    bottom: 20px; /* Optional: also bring it up slightly */
  }
}
#scrollToTopBtn:hover {
  background-color: #4caf50;
  border: solid #8c51af;
}

/* === MODAL === */
/* ========== General Modal Styles (Shared) ========== */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
}

/* ========== Modal Content (PDF or Image) ========== */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  height: 80vh;
  max-width: 1000px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* ========== Close Button ========== */
.close {
  position: absolute;
  top: 30px;
  right: 35px;
  color: #ff0000;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer; 
}

.close:hover,
.close:focus {
  color: #ccc;
  text-decoration: none;
}

/* ========== Optional Responsive Adjustment ========== */
@media (max-width: 768px) {
  .modal-content {
    width: 90%;
    height: 70vh;
  }

  .close {
    top: 20px;
    right: 25px;
    font-size: 32px;
  }
}