/* ============================================
   1. GLOBAL BASE STYLES
============================================ */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background-color: #e5e2e2;
}

.container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h1,
h2 {
  font-family: "Playfair Display", serif;
  color: #1a3c2f;
  margin-bottom: 1rem;
}

/* ============================================
   2. GLOBAL HEADER + NAVIGATION — UPDATED
============================================ */

header {
  background-color: #1a3c2f;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Full-bleed wrapper for header */
.header-wrapper {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.site-title {
  margin: 0;
  font-size: 2rem;
  color: white;
  line-height: 1.2;
}

/* Prevent header text from wrapping on mid-size screens */
@media (max-width: 1300px) {
  .site-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 1100px) {
  .site-title {
    font-size: 1.5rem;
  }
}

/* Desktop nav */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* HAMBURGER MENU */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 3px;
}

/* ============================================
   MOBILE NAVIGATION — UPDATED
============================================ */

@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background-color: #1a3c2f;
    padding: 1rem 0;
    width: 100%;
    margin-top: 10px;
    border-radius: 6px;
  }

  nav ul.open {
    display: flex;
  }

  nav ul li a {
    padding: 12px 20px;
    font-size: 1.1rem;
    text-align: left;
    width: 100%;
    display: block;
  }

  nav ul li + li a {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
}

/* Compact mobile title */
@media (max-width: 480px) {
  .site-title {
    font-size: 1.4rem;
    line-height: 1.2;
  }

  header {
    padding: 12px 18px;
  }
}

/* ============================================
   3. GLOBAL FOOTER
============================================ */

.footer {
  background-color: #353333;
  color: #eee;
  padding-top: 30px;
  border-top: 1px solid #444;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-left: 20px;
}

.footer-contact,
.footer-sitemap {
  flex: 1 1 300px;
}

.footer-sitemap nav a {
  color: #eee;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}

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

.footer-bottom {
  text-align: center;
  padding: 10px 0;
  background-color: #1a3c2f;
  color: #ccc;
}

/* ============================================
   4. ABOUT PAGE ONLY
============================================ */

.about-intro {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.about-intro h1 {
  font-family: "Playfair Display", serif;
  color: #1a3c2f;
  margin-bottom: 1rem;
  font-size: 2.2rem;
}

.about-intro p {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 1.05rem;
}

.about-sectors-flex {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.photo-left {
  flex: 0 0 260px;
  text-align: center;
}

.photo-left img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.caption {
  font-style: italic;
  color: #555;
  margin-top: 0.75rem;
}

.sectors-content {
  max-width: 420px;
}

.sectors-content h2 {
  font-family: "Playfair Display", serif;
  color: #1a3c2f;
  margin-bottom: 1rem;
}

.sectors-content ul {
  padding-left: 1.2rem;
}

.sectors-content ul li {
  margin-bottom: 8px;
  font-size: 1rem;
}

/* ============================================
   5. SERVICES PAGE ONLY
============================================ */

.service-section {
  margin: 40px 0;
  padding: 0;
  border: none;
}

.service-section h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.service-section p {
  margin: 0;
}

.service-section + .service-section {
  margin-top: 50px;
}

/* Services table */
.services-table {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 1rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.services-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.services-table th,
.services-table td {
  padding: 12px 16px;
  border: 1px solid #ccc;
  text-align: left;
}

.services-table th {
  background-color: #1a3c2f;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
}

.services-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* CTA */
.cta {
  text-align: center;
  margin: 50px 0;
}

.cta p {
  font-size: 20px;
  margin-bottom: 15px;
}

.cta a {
  display: inline-block;
  padding: 12px 24px;
  background-color: #1a3c2f;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 16px;
}

.cta a:hover {
  background-color: #44564d;
}

/* Mobile table formatting */
@media (max-width: 768px) {
  .services-table table,
  .services-table thead,
  .services-table tbody,
  .services-table th,
  .services-table td,
  .services-table tr {
    display: block;
  }

  .services-table tr {
    margin-bottom: 20px;
  }

  .services-table th {
    display: none;
  }

  .services-table td {
    border: none;
    padding: 8px 0;
  }

  .services-table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
  }
}

/* ============================
   HOMEPAGE — ORIGINAL DESIGN (RESTORED)
============================ */

/* FULL-WIDTH HERO (NO WHITE/GRAY BORDER) */
.hero {
  position: relative;
  width: 100vw;
  height: 420px;
  overflow: hidden;
  font-family: "Open Sans", sans-serif;

  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0;
  background: none;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  position: relative;
}

/* HERO TEXT BOX — ORIGINAL POLISHED LOOK */
.hero-text {
  position: absolute;
  background-color: rgba(23, 22, 22, 0.75);
  color: white;
  padding: 20px 35px;
  max-width: 620px;
  border: none;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* DESKTOP POSITIONING */
.home-hero .hero-text {
  bottom: 18%;
  left: 5%;
  transform: none;
  text-align: left;
}

.services-hero .hero-text {
  bottom: 120px;
  left: 60px;
  transform: none;
  text-align: left;
}

/* HERO CTA BUTTONS — RESTORE ORIGINAL LOOK */

.hero-text h2 {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.9rem; /* adjust if you want it bigger */
  margin-top: 0;
  margin-bottom: 12px;
}

.cta-buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.cta-buttons a {
  background-color: #1a3c2f; /* deep green */
  color: white;
  padding: 12px 22px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.cta-buttons a:hover {
  background-color: #2d5a47; /* slightly lighter green */
}

/* ============================
   HOMEPAGE — MOBILE HERO
============================ */

/* Fix hero height on tablets */
@media (max-width: 1024px) {
  .hero {
    height: auto;
    min-height: 420px;
    padding-bottom: 40px;
  }

  .hero-img {
    height: 100%;
    min-height: 420px;
  }
}

/* Fix hero height on small phones */
@media (max-width: 480px) {
  .hero {
    height: auto;
    min-height: 480px;
    padding-bottom: 60px;
  }
}

@media (max-width: 1024px) {
  .home-hero .hero-text {
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    text-align: center;
    max-width: 90%;
  }

  .services-hero .hero-text {
    bottom: 40px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    text-align: center;
    max-width: 90%;
  }
}
@media (max-width: 480px) {
  .home-hero .hero-text,
  .services-hero .hero-text {
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    text-align: center;
    max-width: 95%;
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ============================================
   6. CONTACT PAGE ONLY
============================================ */

.contact-card,
.contact-info,
.contact-message {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-card {
  padding: 30px;
  max-width: 800px;
  margin: 40px auto;
}

.contact-info p {
  margin: 0.5rem 0;
}

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

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

.contact-form {
  margin: 40px auto;
  max-width: 800px;
}

.contact-form form {
  max-width: 600px;
  margin: auto;
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 1rem;
}

.contact-form button {
  background-color: #1a3c2f;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
}

.contact-form button:hover {
  background-color: #145c45;
}

.confirmation-message {
  max-width: 600px;
  margin: 20px auto;
  padding: 15px;
  background-color: #dff0e8;
  border-left: 5px solid #1a3c2f;
  font-weight: bold;
  display: none;
  border-radius: 6px;
}

.contact-footer {
  text-align: center;
  margin: 40px auto;
}

.contact-image {
  max-width: 300px;
  height: auto;
  margin-bottom: 15px;
}

.contact-tagline {
  font-style: italic;
  color: #555;
  font-size: 1.1rem;
}

.contact-intro {
  background: #f7f7f7;
  border-left: 6px solid #1a3c2f;
  padding: 25px 30px;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ============================================
   7. TESTIMONIALS PAGE — UPDATED
============================================ */

body.testimonials-page {
  background: linear-gradient(to bottom, #e6e3e3, #dcdcdc);
}

.testimonial-spotlight {
  background-color: #eceaea;
  padding: 100px 30px 60px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  margin: 60px auto;
  max-width: 1000px;
}

/* FLEX LAYOUT */
.testimonial-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.testimonial-graphic-wrapper {
  flex: 0 0 40%;
  text-align: center;
}

.testimonial-carousel-wrapper {
  flex: 1;
}

.testimonial-graphic {
  max-width: 260px;
  height: auto;
}

/* MOBILE STACK */
@media (max-width: 900px) {
  .testimonial-flex {
    flex-direction: column;
    text-align: center;
  }

  .testimonial-graphic {
    max-width: 220px;
    margin-bottom: 20px;
  }
}

.quote-box {
  max-width: 650px;
  margin: 0 auto;
  padding: 40px 45px;
  background-color: #667c74;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.quote-icon {
  font-size: 2.4rem;
  color: #f1f1f1;
  margin-bottom: 10px;
  display: block;
}

.quote-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  color: #f9f9f9;
  text-shadow: 1px 2px rgba(0, 0, 0, 0.4);
}

.quote-author {
  font-weight: bold;
  font-size: 1.05rem;
  margin-top: 1rem;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.quote-role {
  font-style: italic;
  font-size: 0.95rem;
  color: #f2f2f2;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(100%);
}

@media (max-width: 768px) {
  .testimonial-graphic {
    max-width: 260px;
    margin-bottom: 30px;
  }

  .quote-box {
    padding: 30px 25px;
  }

  .quote-text {
    font-size: 1rem;
  }
}
