/* =========================================================
   ATPM — GLOBAL CSS
   Shared by every page
========================================================= */


/* =========================================================
   ROOT / COLORS
========================================================= */

:root {
  --navy: #163A4A;
  --navy-dark: #102F3D;

  --terracotta: #B65F3C;

  --sand: #F5F2ED;

  --white: #FFFFFF;

  --text: #172026;
  --text-light: #5E6A70;

  --font-heading: "Manrope", sans-serif;
  --font-body: "Inter", sans-serif;

  --container: 1240px;
}


/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid rgba(22, 58, 74, 0.08);

  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  min-height: 88px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}


/* =========================================================
   ATPM LOGO
========================================================= */

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;

  flex: 0 0 auto;

  width: 190px;
  height: auto;

  line-height: 0;
}

.logo img {
  display: block;

  width: 190px;
  height: auto;

  max-width: none;
}

.logo svg {
  display: block;

  width: 190px;
  height: auto;

  max-width: none;
}


/* =========================================================
   NAVIGATION
========================================================= */

.main-nav {
  display: flex;
  align-items: center;

  gap: 28px;

  margin-left: auto;
}

.main-nav a {
  position: relative;

  font-size: 15px;
  font-weight: 500;

  color: var(--text);

  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -8px;

  width: 0;
  height: 1px;

  background: var(--terracotta);

  transition: width 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--terracotta);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 10px;

  padding: 14px 22px;

  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;

  text-transform: uppercase;
  letter-spacing: 0.4px;

  border: none;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--terracotta);
  transform: translateY(-2px);
}

/* =====================================================
   MOBILE NAVIGATION GLOBAL STYLES
   ===================================================== */

@media (max-width: 900px) {
  /* Hide the desktop nav by default on mobile */
  .site-header .main-nav {
    display: none;
  }

  /* When JS adds .mobile-open, display it as a dropdown */
  .site-header .main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white, #ffffff);
    padding: 20px 0;
    border-bottom: 1px solid rgba(22, 58, 74, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
  }

  /* Style the links inside the open mobile menu */
  .site-header .main-nav.mobile-open a {
    padding: 12px 24px;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    color: var(--text-color, #163a4a);
  }

  /* Optional: Highlight active page inside mobile view */
  .site-header .main-nav.mobile-open a.active {
    font-weight: bold;
    color: var(--primary-color, #0056b3);
  }

  /* Ensure the header container allows absolute positioning of the dropdown */
  .site-header .header-container {
    position: relative;
  }
}
/* Ensure the hamburger button is fully clickable and on top */
.menu-toggle {
  position: relative;
  z-index: 1001; /* Higher than the dropdown menu */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
}

/* Make sure the inner lines don't block the click event */
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color, #163a4a);
  pointer-events: none; 
  transition: all 0.3s ease;
}
/* =========================================================
   MOBILE MENU
========================================================= */

.menu-toggle {
  display: none;

  width: 44px;
  height: 44px;

  padding: 0;

  background: transparent;

  border: none;

  cursor: pointer;
}

.menu-toggle span {
  display: block;

  width: 24px;
  height: 2px;

  margin: 5px auto;

  background: var(--navy);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  padding: 65px 0 25px;

  background: var(--navy-dark);

  color: var(--white);
}

.footer-main {
  display: grid;

  grid-template-columns: 2fr 1.3fr 1fr 1fr;

  gap: 60px;

  padding-bottom: 55px;
}


/* =========================================================
   FOOTER BRAND
========================================================= */

.footer-logo {
  display: inline-block;

  margin-bottom: 12px;

  font-family: var(--font-heading);

  font-size: 32px;
  font-weight: 800;

  letter-spacing: -1px;

  color: var(--white);
}

.footer-brand > p {
  margin-bottom: 12px;

  color: rgba(255, 255, 255, 0.72);

  font-size: 13px;
  line-height: 1.7;
}

.footer-brand .footer-description {
  max-width: 310px;

  color: rgba(255, 255, 255, 0.48);
}


/* =========================================================
   FOOTER COLUMNS
========================================================= */

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 10px;
}

.footer-column h3 {
  margin-bottom: 8px;

  color: var(--white);

  font-size: 11px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.62);

  font-size: 12px;

  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--white);
}


/* =========================================================
   FOOTER BOTTOM
========================================================= */

.footer-bottom {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 25px;

  padding-top: 22px;

  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.42);

  font-size: 10px;
}

.footer-bottom-links {
  display: flex;

  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.42);

  font-size: 10px;
}

.footer-bottom-links a:hover {
  color: var(--white);
}


/* =========================================================
   FLOATING WHATSAPP
========================================================= */

.floating-whatsapp {
  position: fixed;

  right: 22px;
  bottom: 22px;

  z-index: 999;

  display: flex;
  align-items: center;

  gap: 10px;

  padding: 10px 16px 10px 10px;

  background: var(--navy);
  color: var(--white);

  border-radius: 50px;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.18);

  font-size: 11px;
  font-weight: 600;

  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.floating-whatsapp:hover {
  background: var(--terracotta);

  transform: translateY(-3px);
}

.floating-whatsapp-icon {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--white);
  color: var(--navy);

  border-radius: 50%;

  font-size: 18px;
}

.floating-whatsapp-text {
  line-height: 1.25;
}


/* =========================================================
   GLOBAL RESPONSIVE
========================================================= */

@media (max-width: 900px) {

  .main-nav,
  .header-container > .btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-container {
    min-height: 76px;
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);

    gap: 45px;
  }
}


@media (max-width: 600px) {

  .container {
    width: min(100% - 32px, var(--container));
  }

  .logo {
    width: 150px;
  }

  .logo img,
  .logo svg {
    width: 150px;
  }

  .site-footer {
    padding-top: 55px;
  }

  .footer-main {
    grid-template-columns: 1fr;

    gap: 35px;
  }

  .footer-bottom {
    flex-direction: column;

    align-items: flex-start;
  }

  .floating-whatsapp {
    right: 15px;
    bottom: 15px;

    padding: 10px;
  }

  .floating-whatsapp-text {
    display: none;
  }
}
/* =========================================================
   MOBILE MENU DROPDOWN (Added logic)
========================================================= */
@media (max-width: 900px) {
  .main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid rgba(22, 58, 74, 0.08);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }

  .main-nav.mobile-open a {
    padding: 15px 25px;
    width: 100%;
    text-align: left;
  }
}

.logo img, 
.header-container .logo img {
  height: 40px; /* Adjust this value (e.g., 35px or 45px) to fit your header height */
  width: auto;
  object-fit: contain;
  display: block;
}

.logo img,
.header-container .logo img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}