/*───────────────────────────────*
 | 🌐 ARENA GLOBAL NETWORK STYLESHEET
 | Theme: Gray + Yellow (Logo Inspired)
 | Author: Flamm Candido / ChatGPT
 *───────────────────────────────*/

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
  color: #222;
}

/*───────────────────────────────*
 | 🔝 TOP LINKS BAR
 *───────────────────────────────*/
.top-links {
  background: #595959;                /* darker gray than header */
  color: #fff;
  text-align: right;
  font-size: 13px;
  padding: 6px 3rem;
  letter-spacing: 0.3px;
}

.top-links a {
  color: #FFEB3B;                     /* yellow accent */
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  transition: opacity 0.3s, color 0.3s;
  opacity: 0.9;
}

.top-links a:hover {
  opacity: 1;
  color: #fff;
}

/*───────────────────────────────*
 | 🧭 MAIN HEADER & NAVIGATION
 *───────────────────────────────*/
#main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: #666666;                /* primary gray */
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

#main-header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
}

#main-header .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

/* Logo image */
#main-header .logo img {
  height: 50px;       /* a bit larger for visibility on header */
  width: auto;
  object-fit: contain;
  display: block;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #FFEB3B;
}

/*───────────────────────────────*
 | ⚙️ HEADER ACTIONS
 *───────────────────────────────*/
.actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#lang-toggle {
  border: 1px solid #FFEB3B;
  background: transparent;
  color: #FFEB3B;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

#lang-toggle:hover {
  background: #FFEB3B;
  color: #333;
}

.donate-btn {
  background: #FFEB3B;
  color: #333;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.donate-btn:hover {
  background: #fff;
  color: #333;
}

/*───────────────────────────────*
 | 🌅 PARALLAX SECTIONS
 *───────────────────────────────*/
.parallax {
  min-height: 100vh;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  color: #fff;
}

.hero { background-image: url('../img/nyc-hero-2.jpg'); } 
.service { background-image: url('../img/service-bg.jpg'); }
.join { background-image: url('../img/global-bg-2.jpg'); }

.overlay {
  background: rgba(0,0,0,0.45);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.overlay h1, .overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/*───────────────────────────────*
 | 🔘 BUTTONS
 *───────────────────────────────*/
.btn {
  padding: 0.8rem 1.6rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  margin: 0.5rem;
  transition: all 0.3s;
  border: none;
  display: inline-block;
}
.primary {
  background: #FFEB3B;
  color: #333;
}
.primary:hover {
  background: #fff;
  color: #333;
}
.secondary {
  background: #fff;
  color: #333;
}
.secondary:hover {
  background: #FFEB3B;
  color: #333;
}

/*───────────────────────────────*
 | 📄 CONTENT SECTIONS
 *───────────────────────────────*/
.section {
  padding: 6rem 3rem;
  background: #f9f9f9;
  text-align: center;
}
.section h2 {
  color: #333;
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section p {
  max-width: 800px;
  margin: 0 auto;
  color: #444;
  line-height: 1.6;
}

/*───────────────────────────────*
 | 🧩 CARDS (Services, Join)
 *───────────────────────────────*/
.service-grid, .join-options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.card {
  background: rgba(255,255,255,0.9);
  color: #222;
  padding: 2rem;
  border-radius: 10px;
  width: 300px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.card h3 {
  color: #333;
  margin-bottom: 10px;
}
.card p {
  color: #555;
  font-size: 14px;
}

/*───────────────────────────────*
 | 🦶 FOOTER
 *───────────────────────────────*/
footer {
  background: #666666;
  color: #fff;
  text-align: center;
  padding: 2rem;
  font-size: 14px;
}
footer h3 {
  color: #FFEB3B;
  margin-bottom: 10px;
}
footer a {
  color: #FFEB3B;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/*───────────────────────────────*
 | 📱 RESPONSIVE DESIGN
 *───────────────────────────────*/
@media (max-width: 1024px) {
  .nav-links {
    gap: 1.2rem;
  }
  .overlay h1, .overlay h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 10px;
  }
  .nav-links {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .actions {
    flex-direction: column;
  }
  .top-links {
    text-align: center;
    padding: 8px 1rem;
  }
  .parallax h1, .parallax h2 {
    font-size: 1.6rem;
  }
}
/*───────────────────────────────*
 | 📩 SUBSCRIBE SECTION (Revised)
 *───────────────────────────────*/
#subscribe {
  /*background: magenta !important; /* or lime, cyan, orange, etc. */
  background-image: url('bg-dark.png');
  background-repeat: repeat;
  background-size: 500px 500px;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  position: relative;
}

/* Dark overlay for readability 
#subscribe::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}
*/

/* Ensure content stays above overlay */
#subscribe * {
  position: relative;
  z-index: 1;
}

/* Headline and paragraph */
#subscribe h2 {
  color: #FFEB3B;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#subscribe p {
  color: #ddd;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 25px;
  line-height: 1.6;
}

/* Consent text */
#subscribe .consent-text {
  color: #bbb;
  font-size: 0.85rem;
  max-width: 600px;
  margin: 10px auto 0;
  line-height: 1.4;
}

/*───────────────────────────────*
 | 💬 SUBSCRIBE FORM
 *───────────────────────────────*/
.subscribe-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 25px;
}

/* Common input styles */
.subscribe-form input[type="text"],
.subscribe-form input[type="email"],
.subscribe-form input[type="tel"],
.subscribe-form select {
  width: 360px;
  max-width: 90%;
  padding: 12px 14px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  background: #fff;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
}

.subscribe-form input:focus,
.subscribe-form select:focus {
  outline: 2px solid #FFEB3B;
  box-shadow: 0 0 10px rgba(255, 235, 59, 0.4);
}

/* Country + phone in one line */
.phone-field {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 360px;
  max-width: 90%;
}

/* Dropdown styling */
.phone-field select {
  flex: 1.2;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23333' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 35px;
}

.phone-field input[type="tel"] {
  flex: 1.8;
}

/* Responsive stacking */
@media (max-width: 480px) {
  .phone-field {
    flex-direction: column;
  }

  .phone-field select,
  .phone-field input[type="tel"],
  .subscribe-form input[type="text"],
  .subscribe-form input[type="email"] {
    width: 100%;
    max-width: 320px;
  }
}

/* Checkboxes */
.subscribe-options {
  margin-top: 10px;
  text-align: left;
  width: 360px;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subscribe-form label {
  color: #ddd;
}

/* Button */
.subscribe-form button {
  background: #FFEB3B;
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.subscribe-form button:hover {
  background: #f5d900;
}

.subscribe-message {
  margin-top: 15px;
  font-weight: 500;
  color: #FFEB3B;
}

/*───────────────────────────────*
 | 🌍 LANGUAGE POPUP (centered modal)
 *───────────────────────────────*/
#lang-popup {
  position: fixed;
  inset: 0; /* fill viewport */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4); /* subtle dim */
  backdrop-filter: blur(4px);
  z-index: 9999;
  animation: fadeIn 0.4s ease;
}

/* inner box (if not using Tailwind classes) */
#lang-popup > div {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  text-align: center;
  width: 300px;
  animation: fadeInUp 0.4s ease;
}

#lang-popup p {
  color: #333;
  font-size: 15px;
  margin-bottom: 16px;
}

#lang-popup span {
  color: #777;
  font-size: 13px;
}

#lang-popup button {
  padding: 8px 16px;
  margin: 0 6px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s ease;
}

#btn-en {
  background: #2563eb; /* blue-600 */
}
#btn-en:hover {
  background: #1e40af; /* blue-800 */
}
#btn-pt {
  background: #16a34a; /* green-600 */
}
#btn-pt:hover {
  background: #166534; /* green-800 */
}

/* animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hidden {
  display: none !important;
}

/**** WhatsApp & SMS Checkboxes ****/

.subscribe-options {
  display: flex;
  flex-direction: row;
  justify-content: center;     /* center horizontally inside the form */
  align-items: center;         /* vertical alignment of checkboxes */
  gap: 1.5rem;                 /* space between SMS and WhatsApp */
  flex-wrap: wrap;             /* wrap if narrow */
  margin: 10px 0;
}

.subscribe-options label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: #fff;                 /* adjust if needed for dark background */
}

/* --- Hamburger Icon Styling (visible and aligned) --- */
.menu-toggle {
  display: none; /* hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1rem; /* spacing from logo */
  z-index: 1001;     /* stay on top of background */
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #FFEB3B; /* yellow bars */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animate into X when active */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-only {
  display: none;
}

/* Show on mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
}

/********** new mobile part *********/

/*───────────────────────────────*
 | 📱 MOBILE MENU — CLEAN VERSION
 *───────────────────────────────*/
@media (max-width: 768px) {

  /* show hamburger */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 1rem;
    z-index: 2000;
  }

  .menu-toggle span {
    display: block;
    height: 3px;
    background: #FFEB3B;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* hide desktop menus by default */
  .nav-links,
  .actions {
    display: none;
  }

  /* overlay menu when open */
  .nav-links.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.2rem;
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    height: calc(100vh - 90px);
    background: rgba(51, 51, 51, 0.97);
    z-index: 1500;
    padding: 2rem 0;
    overflow-y: auto;
  }

  /* links inside overlay */
  .nav-links.active a {
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    position: relative;
    z-index: 2;
  }

  /* add background layer */
  .nav-links.active::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(51, 51, 51, 0.97);
    z-index: 0;
  }

  /* actions (Donate + PT) appear at bottom of overlay */
  .actions.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.25);
    background: transparent;
    position: relative;
    z-index: 2;
  }

  .actions.active #lang-toggle {
    border-color: #FFEB3B;
    color: #FFEB3B;
    background: transparent;
  }

  .actions.active .donate-btn {
    background: #FFEB3B;
    color: #333;
  }

  /* hide top-links bar on mobile */
  .top-links { display: none; }

  /* dashboard login inside menu */
  .mobile-only { display: block; }
  .nav-links.active .mobile-only a {
    color: #FFEB3B;
    font-weight: 600;
    font-size: 1.1rem;
  }

  .login-bottom {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  /* stacking + popup fixes */
  #menuToggle { z-index: 2000; }
  #lang-popup { z-index: 3000 !important; }

  /* parallax fix for mobile */
  .parallax {
    background-attachment: scroll !important;
    height: 60vh !important;
    background-size: cover !important;
    background-position: center !important;
  }
  @media (max-width: 768px) {
  /* Pull .actions into the same overlay layer */
  .nav-links.active + .actions.active {
    position: fixed;
    bottom: 40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    z-index: 1600; /* above nav-links background */
  }

  .nav-links.active + .actions.active #lang-toggle {
    border-color: #FFEB3B;
    color: #FFEB3B;
    background: transparent;
  }
  .nav-links.active + .actions.active .donate-btn {
    background: #FFEB3B;
    color: #333;
  }
}

@media (max-width: 768px) {
  #main-header nav {
    position: relative;
  }
  .menu-toggle {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
  }
}

