@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700&display=swap');

:root {
  --green: #0b7d1c;
  --orange: #f9a602;
  --black: #080809;
  --white: #ffffff;
  --font: "DM Sans", sans-serif;
  --icon-font: "Font Awesome 6 Free";
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--black);
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ===============================
   TOP BAR
================================ */
.header-top {
  background: var(--green);
  height: 40px;
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 26px;
  color: #fff;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  white-space: nowrap;
}

.top-left,
.top-center,
.top-right {
  display: inline-flex;
  align-items: center;
}

.top-left {
  gap: 6px;
}

.top-left a {
  color: #fff;
  transition: color .2s ease;
}

.top-left a:hover {
  color: var(--black);
}

.top-center {
  opacity: .95;
}

.top-center .tc-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-center .tc-item i {
  font-size: 13px;
  color: #fff;
}

.top-center .tc-item a {
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  transition: color .2s ease;
}

.top-center .tc-item a:hover {
  color: var(--black);
}

.top-center .tc-sep {
  margin: 0 14px;
  opacity: .7;
  font-size: 16px;
  color: #fff;
}

.top-right {
  gap: 10px;
}

.top-right a {
  color: #fff;
}

/* ===============================
   MAIN HEADER
================================ */
.menu-area {
  background: var(--white);
  padding: 26px 0;
}

.header-grid {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  align-items: center;
}

.logo img {
  height: 52px;
  display: block;
}

/* MENU */
.main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.main-menu > ul > li {
  margin: 0 24px;
  position: relative;
}

.main-menu > ul > li > a {
  display: inline-flex;       /* CRITICAL */
  align-items: center;        /* CRITICAL */
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1;             /* prevents baseline issues */
  text-decoration: none;
}


/* REMOVE + / − FROM MENU (JS WILL HANDLE LATER) */
.menu-item-has-children > a::after {
  content: none !important;
}
/* REMOVE UNDERLINE FROM MAIN MENU */
.main-menu a {
  text-decoration: none;
}

.main-menu a:hover {
  text-decoration: none;
}


/* SUB MENU + LEAF */
.sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;

  min-width: 240px;
  background: #fff;
  padding: 14px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);

  opacity: 0;
  transform: translateY(-28px);   /* 👈 more travel */
  pointer-events: none;

  transition:
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease;
}

.menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.menu-item-has-children {
  position: relative;
}

/* invisible hover bridge */
.menu-item-has-children::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 32px;              /* 👈 hover safety zone */
  background: transparent;
}



.sub-menu a {
  display: block;
  padding: 8px 24px;
  font-size: 14px;
  line-height: 26px;
  position: relative;
}

.sub-menu a::before {
  content: "\f06c";
  font-family: var(--icon-font);
  font-weight: 900;
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  color: var(--green);
  transition: .3s;
}

.sub-menu a:hover {
  padding-left: 46px;
}

.sub-menu a:hover::before {
  opacity: 1;
  left: 24px;
}

/* CTA */
.header-button {
  display: flex;
  justify-content: flex-end;
}

.header-button a {
  background: var(--orange);
  color: #ffffff;

  padding: 0 30px;
  height: 46px;

  border-radius: 999px;

  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600; /* ✅ DM Sans 600 */

  display: inline-flex;
  align-items: center;
  gap: 8px; /* ✅ space between text and >> */

  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

/* 🔥 THIS IS THE MISSING PIECE */
.header-button a i {
  font-size: 12px;
  font-weight: 900;        /* REQUIRED for Font Awesome */
  display: inline-block;
  color: currentColor;     /* inherits text color */
  position: relative;
  top: 1px;                /* optical alignment */
}

.header-button .double-arrow {
  display: inline-flex;
  align-items: center;
  
  font-size: 13px;
}


/* MOBILE */
@media (max-width: 991px) {
  .header-grid {
    grid-template-columns: 1fr;
  }

  .main-menu {
    display: none;
  }
}
