/* Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Header Base */
.header {
  background: transparent; 
  width: 100%;
  padding: 22px 0;
  position: relative;
  z-index: 999;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 700;
  color: #111827;
}

.logo img {
  height: 110px;
  width: auto;
  object-fit: contain;
}

/* Navigation */
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link,
.dropdown-toggle {
  text-decoration: none;
  color: #374151;
  font-size: 1.2rem;
  font-weight: 700;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hover underline */
.nav-link::after,
.dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #111827;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.dropdown-toggle:hover::after {
  width: 100%;
}

/* Dropdown */
.dropdown {
  position: relative;
}

/* Remove bullets */
.dropdown-menu,
.dropdown-menu li {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

/* Dropdown menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 10px 0;
  min-width: 220px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  z-index: 9999;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: #374151;
  font-size: 1.05rem;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: #f3f4f6;
  color: #111827;
}
/* Responsive */
@media (max-width: 850px) {
  .header-container {
    flex-direction: column;
    gap: 25px;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
  }

  .logo img {
    height: 110px;
    width: auto;
  }

  .logo {
    font-size: 1.6rem;
  }
}



/* CONTACT MODAL OVERLAY */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: 0.35s ease;
  z-index: 9998;
}

/* CONTACT MODAL */
.contact-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 90%;
  max-width: 500px;
  background: #ffffff;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: 0.35s ease;
  z-index: 9999;

  /* subtle glass effect */
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
}

/* Active State */
.contact-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.contact-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Close Button */
.contact-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f3f4f6;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: 0.25s ease;
}

.contact-close:hover {
  background: #e5e7eb;
}

/* Title */
.contact-modal h2 {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 18px;
  text-align: center;
}

/* Contact Details */
.contact-details {
  margin-bottom: 22px;
  text-align: center;
}

.contact-details p {
  font-size: 15px;
  color: #374151;
  margin-bottom: 6px;
}

.contact-details a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Form */
.contact-modal form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Inputs */
.contact-modal input,
.contact-modal textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 15px;
  background: #f9fafb;
  transition: 0.25s ease;
}

.contact-modal input:focus,
.contact-modal textarea:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea {
  height: 140px;
  resize: none;
}

/* Send Button */
.send-btn {
  padding: 14px;
  background: #fff;
  color: #32633E;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

.send-btn:hover {
  background: #32633E;
  transform: translateY(-1px);
  color: #fff;
}
/* ================= CONTACT FORM STATUS ================= */

.form-status {
    width: 100%;
    margin-top: 12px;
    min-height: 22px;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
    transition: all 0.25s ease;
}

.form-status.success {
    color: #237a3b;
    font-weight: 600;
}

.form-status.error {
    color: #c62828;
    font-weight: 600;
}


/* ================= SEND BUTTON ================= */

.send-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 850px) {
  .header-container {
    flex-direction: column;
    gap: 25px;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
  }
 
  .logo {
    font-size: 1.6rem;
  }
}
/* ============================
   MENU BUTTON (Hamburger + X)
============================ */

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
}

.menu-btn span {
  width: 30px;
  height: 3px;
  background: #111827;
  border-radius: 3px;
  transition: 0.3s ease;
}

/* X animation */
.menu-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ============================
   RESPONSIVE HEADER
============================ */

@media (max-width: 850px) {

  /* Show hamburger */
  .menu-btn {
    display: flex;
  }

  /* Header layout */
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 20px;
  }

  /* Hide nav by default */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
    transform: translateY(-200%);
    opacity: 0;
    pointer-events: none;
    transition: 0.35s ease;
    z-index: 9999;
  }

  /* Show nav when active */
  .nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Vertical nav list */
  .nav-list {
    flex-direction: column;
    gap: 18px;
  }

  .nav-link,
  .dropdown-toggle {
    font-size: 1.1rem;
  }

  /* Dropdown inside mobile */
  .dropdown-menu {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    padding: 0;
    margin-top: 10px;
  }

  .dropdown-menu a {
    padding: 10px 0;
    font-size: 1rem;
  }
}

/* DONATE BUTTON WITH MULTIPLE FLOATING HEARTS */
.donate-btn {
    position: relative;
    display: inline-block;
    padding: 10px 26px;
    background: #ffffff;
    color: #000;
    border: 2px solid #000;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    z-index: 1;

    /* Smooth transition */
    transition: background 0.35s ease, 
                color 0.35s ease, 
                border-color 0.35s ease;
}

/* HEARTS — 3 floating hearts */
.donate-btn::before,
.donate-btn::after,
.donate-btn span::before {
    content: "❤";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    opacity: 0;
    animation: floatUp 2s infinite ease-in-out;
    color: red;

    /* Smooth color transition */
    transition: color 0.35s ease;
}

/* Heart 1 */
.donate-btn::before {
    bottom: -12px;
    animation-delay: 0s;
}

/* Heart 2 */
.donate-btn::after {
    bottom: -20px;
    animation-delay: 0.6s;
}

/* Heart 3 */
.donate-btn span::before {
    bottom: -16px;
    animation-delay: 1.2s;
}

/* Floating animation */
@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    40% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-28px);
    }
}

/* HOVER EFFECT — smooth transition */
.donate-btn:hover {
    background: red;
    color: #fff;
    border-color: red;
}

/* Hearts turn white smoothly */
.donate-btn:hover::before,
.donate-btn:hover::after,
.donate-btn:hover span::before {
    color: #ffffff;
}


/* Small Mobile */
@media (max-width: 480px) {
  .logo img {
    height: 70px;
    width: auto;
  }

  .nav-link,
  .dropdown-toggle {
    font-size: 1rem;
  }

  .nav-list {
    gap: 14px;
  }
}

/* ============================
   RESPONSIVE TRAINING SECTION
============================ */

@media (max-width: 1024px) {
  .training-section h1 {
    font-size: 2.8rem;
  }

  .training-section h2 {
    font-size: 1.8rem;
  }

  .training-section p,
  .training-section li {
    font-size: 1.15rem;
  }
}

@media (max-width: 768px) {
  .training-container {
    padding: 0 20px;
  }

  .training-section h1 {
    font-size: 2.4rem;
    text-align: center;
  }

  .training-section h2 {
    font-size: 1.6rem;
    text-align: center;
  }

  .training-section p {
    text-align: center;
  }

  .training-list {
    margin-left: 10px;
  }

  .training-image {
    padding: 16px;
  }

  .caption {
    font-size: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .training-section {
    padding: 60px 0;
  }

  .training-section h1 {
    font-size: 2rem;
  }

  .training-section h2 {
    font-size: 1.4rem;
  }

  .training-section p,
  .training-section li {
    font-size: 1.05rem;
  }

  .training-list {
    margin-left: 5px;
  }
}
/* ============================
   RESPONSIVE HERO SECTION
============================ */

/* Tablets */
@media (max-width: 1024px) {
  .hero-section {
    height: 750px;
  }

  .hero-text h1 {
    font-size: 4rem;
  }

  .hero-text p {
    font-size: 1.2rem;
  }

  .call-us {
    font-size: 1.5rem;
  }

  .hero-btn {
    font-size: 1.15rem;
    padding: 14px 32px;
  }
}

/* Mobile */
@media (max-width: 850px) {
  .hero-section {
    height: 650px;
  }

  .hero-text {
    top: 15%;
    left: 6%;
    max-width: 90%;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  .call-us {
    font-size: 1.3rem;
  }

  .hero-btn {
    font-size: 1.1rem;
    padding: 12px 28px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-section {
    height: 520px;
  }

  .hero-text {
    top: 18%;
    left: 5%;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }

  .hero-text p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .call-us {
    font-size: 1.1rem;
  }

  .hero-btn {
    font-size: 1rem;
    padding: 10px 24px;
  }
}

/* ============================
   RESPONSIVE TRAINING SECTION
============================ */

@media (max-width: 1024px) {
  .training-section h1 {
    font-size: 2.8rem;
  }

  .training-section h2 {
    font-size: 1.8rem;
  }

  .training-section p,
  .training-section li {
    font-size: 1.15rem;
  }
}

@media (max-width: 768px) {
  .training-container {
    padding: 0 20px;
  }

  .training-section h1 {
    font-size: 2.4rem;
    text-align: center;
  }

  .training-section h2 {
    font-size: 1.6rem;
    text-align: center;
  }

  .training-section p {
    text-align: center;
  }

  .training-list {
    margin-left: 10px;
  }

  .training-image {
    padding: 16px;
  }

  .caption {
    font-size: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .training-section {
    padding: 60px 0;
  }

  .training-section h1 {
    font-size: 2rem;
  }

  .training-section h2 {
    font-size: 1.4rem;
  }

  .training-section p,
  .training-section li {
    font-size: 1.05rem;
  }

  .training-list {
    margin-left: 5px;
  }
}



/* HERO */
.services-hero {
  background: url("images/Safety-Mountaineer.jpeg") center/cover no-repeat;
  padding: 600px 30px;
  text-align: center;
  color: white;
  background-color: #111827; /* fallback */
}

.services-hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.services-hero p {
  font-size: 1.4rem;
  opacity: 0.9;
}
/* ============================
   SERVICES SECTION (PRO LEVEL)
   ============================ */
/* ============================
   SERVICES SECTION (PRO LEVEL)
   ============================ */

.services-section {
  padding: 100px 0;
  background: #f9fafb;
}

/* Section Title */
.services-title {
  text-align: center;
  font-size: 3.2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 60px;
  letter-spacing: -1px;
}

/* Grid */
.services-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 45px;
}

/* BIGGER PRO CARDS */
.service-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;

  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;

  min-height: 500px; /* bigger box */
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.14);
}

/* IMAGE ABOVE TITLE — BIGGER */
.service-img {
  width: 100%;
  height: 220px; /* bigger image */
  object-fit: cover;
  display: block;
}

/* Title */
.service-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111827;
  margin: 22px 26px 12px 26px;
}

/* Description */
.service-card p {
  font-size: 1.15rem;
  color: #4b5563;
  line-height: 1.65;
  margin: 0 26px 25px 26px;
}

/* BUTTON — bigger + pro */
.service-btn {
  display: inline-block;
  margin-left: 26px;
  padding: 12px 30px;
  background: #32633E;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 2px solid #32633E;
}

.service-btn:hover {
  background: #ffffff;
  color: #32633E;
  transform: translateY(-3px);
}


/* ============================
   CONTACT SECTION (PRO LEVEL)
============================ */

.contact-section {
  padding: 120px 40px;
  background: #ffffff;
}

.contact-wrapper {
  max-width: 1300px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 90px;
  flex-wrap: wrap;
}

/* Logo (now an <a> tag) */
.contact-logo {
  display: inline-block; /* ensures proper spacing */
  text-decoration: none; /* removes underline */
}

.contact-logo img {
  width: 500px;
  height: auto;
  display: block; /* removes unwanted spacing under image */
}

/* Text */
.contact-text h2 {
  font-size: 3.2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 20px;
}

.contact-text p {
  font-size: 1.3rem;
  color: #374151;
  max-width: 650px;
  line-height: 1.75;
  margin-bottom: 25px;
}


/* Contact Info */
.contact-info p {
  font-size: 1.35rem;
  font-weight: 600;
  color: #111827;
  margin: 8px 0;
}


/* ============================
   RESPONSIVE — SERVICES SECTION
============================ */

/* Tablets */
@media (max-width: 1024px) {
  .services-title {
    font-size: 2.8rem;
  }

  .services-container {
    padding: 0 30px;
    gap: 35px;
  }

  .service-card {
    min-height: 400px;
  }

  .service-card h3 {
    font-size: 1.6rem;
  }

  .service-card p {
    font-size: 1.1rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .services-title {
    font-size: 2.4rem;
    margin-bottom: 40px;
  }

  .services-container {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 30px;
  }

  .service-card {
    min-height: auto;
  }

  .service-img {
    height: 200px;
  }

  .service-card h3 {
    font-size: 1.5rem;
    margin: 18px 20px 10px 20px;
  }

  .service-card p {
    margin: 0 20px 20px 20px;
    font-size: 1.05rem;
  }

  .service-btn {
    margin-left: 20px;
    padding: 10px 26px;
    font-size: 1rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .services-title {
    font-size: 2rem;
  }

  .service-img {
    height: 170px;
  }

  .service-card h3 {
    font-size: 1.35rem;
  }

  .service-card p {
    font-size: 1rem;
  }

  .service-btn {
    padding: 10px 22px;
    font-size: 0.95rem;
  }
}


/* ============================
   RESPONSIVE — CONTACT SECTION
============================ */

/* Tablets */
@media (max-width: 1024px) {
  .contact-section {
    padding: 100px 30px;
  }

  .contact-text h2 {
    font-size: 2.8rem;
  }

  .contact-text p {
    font-size: 1.2rem;
  }

  .contact-info p {
    font-size: 1.25rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 50px;
  }

  .contact-logo img {
    width: 180px;
  }

  .contact-text h2 {
    font-size: 2.4rem;
  }

  .contact-text p {
    max-width: 100%;
    font-size: 1.15rem;
  }

  .contact-info p {
    font-size: 1.2rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .contact-section {
    padding: 80px 20px;
  }

  .contact-text h2 {
    font-size: 2rem;
  }

  .contact-text p {
    font-size: 1.05rem;
  }

  .contact-info p {
    font-size: 1.1rem;
  }
}

/* Footer Base */
.mg-footer {
  width: 100%;
  background: #32633E; /* dark green */
  color: #fff;
  padding: 55px 20px;
  font-family: system-ui, sans-serif;
}

/* Layout */
.mg-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 45px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Columns */
.mg-column {
  flex: 1;
  min-width: 260px;
}

.mg-column h3 {
  margin-bottom: 18px;
  font-size: 1.5rem; /* slightly bigger */
  color: #fff;
}

/* Info Links */
.mg-column a {
  display: block;
  margin-bottom: 12px;
  color: #e6e6e6;
  text-decoration: none;
  font-size: 1.2rem; /* bigger but clean */
  transition: 0.25s ease;
}

.mg-column a:hover {
  color: #6dab78; /* light green */
}

/* Contact Text */
.mg-column p {
  margin-bottom: 12px;
  font-size: 1.2rem; /* bigger */
  color: #f2f2f2;
}

/* Social Icons */
.mg-social-icons {
  display: flex;
  gap: 18px;
  margin-top: 12px;
}

.mg-social-icons a {
  width: 50px;   /* slightly bigger */
  height: 50px;
  background: #6dab78; /* light green */
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px; /* bigger icon */
  transition: 0.25s ease;
}

.mg-social-icons a:hover {
  background: #fff;
  color: #32633E; /* dark green */
}

/* Copyright */
.mg-copy {
  text-align: center;
  margin-top: 45px;
  font-size: 1.15rem; /* slightly bigger */
  color: #e6e6e6;
}

/* Responsive */
@media (max-width: 768px) {
  .mg-container {
    flex-direction: column;
    text-align: center;
  }

  .mg-social-icons {
    justify-content: center;
  }
}
