/* =========================================================
   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;
}

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
}

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;
}

.breadcrumb {
  padding: 14px 0;
  background: var(--sand);
  border-bottom: 1px solid rgba(22, 58, 74, 0.08);
  font-size: 0.875rem;
}

.breadcrumb .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.breadcrumb a {
  color: var(--navy);
}

.breadcrumb a:hover {
  color: var(--terracotta);
}

.topical-depth {
  padding: 72px 0;
  background: var(--white);
}

.topical-depth.alt {
  background: var(--sand);
}

.topical-intro {
  max-width: 780px;
  margin-bottom: 34px;
}

.topical-intro h2 {
  margin-top: 8px;
  color: var(--navy-dark);
  font: 800 clamp(1.8rem, 4vw, 2.8rem)/1.15 var(--font-heading);
}

.topical-intro p {
  margin-top: 14px;
  color: var(--text-light);
}

.topical-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.topical-card {
  padding: 25px;
  border: 1px solid rgba(22, 58, 74, 0.12);
  background: var(--white);
}

.topical-card h3 {
  margin-bottom: 9px;
  color: var(--navy-dark);
  font: 700 1.1rem/1.35 var(--font-heading);
}

.topical-card p,
.topical-card li {
  color: var(--text-light);
}

.topical-card ul {
  padding-left: 19px;
}

.topical-card li + li {
  margin-top: 7px;
}

.topical-faq {
  max-width: 900px;
}

.topical-faq details {
  border-bottom: 1px solid rgba(22, 58, 74, 0.14);
  padding: 18px 0;
}

.topical-faq summary {
  cursor: pointer;
  color: var(--navy-dark);
  font-weight: 700;
}

.topical-faq details p {
  margin-top: 10px;
  color: var(--text-light);
}

@media (max-width: 800px) {
  .topical-depth { padding: 52px 0; }
  .topical-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   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%;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-dropdown-trigger::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  order: 2;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger::before,
.nav-dropdown:focus-within .nav-dropdown-trigger::before {
  transform: rotate(225deg) translate(-2px, -1px);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  z-index: 1100;
  width: min(390px, 90vw);
  padding: 12px;
  background: var(--white);
  border: 1px solid rgba(22, 58, 74, 0.1);
  box-shadow: 0 20px 45px rgba(15, 39, 51, 0.16);
  transform: translate(-50%, 10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.main-nav .nav-dropdown-menu a {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 45px;
  padding: 9px 12px;
  color: var(--navy);
  border-bottom: 1px solid rgba(22, 58, 74, 0.08);
}

.main-nav .nav-dropdown-menu a:hover,
.main-nav .nav-dropdown-menu a:focus-visible {
  color: var(--terracotta);
  background: rgba(190, 91, 58, 0.06);
  outline: none;
}

.main-nav .nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu span {
  color: var(--terracotta);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.nav-dropdown-menu strong {
  font-size: 14px;
  font-weight: 600;
}

.main-nav .nav-dropdown-menu .nav-dropdown-all {
  display: flex;
  justify-content: space-between;
  border-bottom: 0;
  font-weight: 600;
}


/* =========================================================
   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);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--navy-dark);
  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);
  }

  .site-header .main-nav.mobile-open .nav-dropdown {
    display: block;
    width: 100%;
    align-self: auto;
  }

  .site-header .main-nav.mobile-open .nav-dropdown-trigger::before {
    display: none;
  }

  .site-header .main-nav.mobile-open .nav-dropdown-menu {
    position: static;
    width: 100%;
    padding: 0 20px 8px;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-header .main-nav.mobile-open .nav-dropdown-menu a {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.92rem;
  }

  /* 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);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  padding: 65px 0 25px;

  background: var(--navy-dark);

  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  align-items: center;
  gap: 48px;
}

.footer-about p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-about .footer-logo {
  width: 170px;
  height: auto;
  margin-bottom: 18px;
}

.footer-contact {
  justify-self: end;
}

.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-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-contact {
    justify-self: start;
  }

  .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;
}
