/* =========================
   BASE LAYOUT
========================= */
body {
  font-family: 'Roboto', sans-serif;
}
* { box-sizing: border-box; }

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   PAGE STRUCTURE
========================= */

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content { flex: 1; }

/* =========================
   MAIN CONTAINERS
========================= */

main, .container, .page-container, .section, .content {
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}

/* =========================
   FLOATING HELP BUTTON
========================= */

.help-button {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: #1faa00;
  color: white;
  padding: 12px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  writing-mode: vertical-rl;
  text-align: center;
  z-index: 999;
}

.help-button:hover { background: #158000; }

/* =========================
   NAVBAR — DESKTOP
========================= */
.navbar {
  display: flex;
  align-items: center;
  gap: 20px; 
  padding: 18px 32px; 
  position: relative;
  background: #fff;
  border-bottom: 1px solid #eee;
  font-family: Roboto, sans-serif;
}

.logo {
  margin-right: auto;
  text-decoration: none;
  color: #0c0c0c;
  font-size: 28px;
  font-weight: 700;
  font-family: Roboto, sans-serif;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: static; /* ← fixes links dropping below navbar */
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #111;
  font-size: 17px;
}

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

.nav-links a.active:not(.cta-btn) {
  color: #18a800;
  font-weight: 600;
  background: none;
  border-radius: 0;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
/* =========================
   BUTTONS
========================= */

.btn-primary {
  background: #18a800;
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn-primary:hover {
  background: #149000;
}

.btn-outline {
  border: 2px solid #2be300;
  padding: 8px 18px;
  border-radius: 20px;
  color: #2be300;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
}
.nav-links .cta-btn {
  background: #18a800 !important;
  color: #ffffff !important;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  transition: 0.2s ease;
}

.nav-links .cta-btn.active {
  background: #18a800 !important;
  color: #ffffff !important;
}

.nav-links .cta-btn:hover {
  background: #149000 !important;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .navbar {
    position: relative;
    display: flex;
    align-items:center;
    height: 60px;
    padding: 0 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
  }

  .hamburger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 16px;
  }

  .hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: #000;
    margin: 5px 0;
    border-radius: 2px;
  }

  .logo {
    font-size: 22px;
    font-weight: 700;
	text-decoration: none;
    color: #000;
  }

  .nav-links {
    display: none;
}

.nav-actions {
    display: none !important;
}

.mobile-actions {
    display: none;
}

  .nav-links.active{
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 30px 20px;
    gap: 28px;
    z-index: 1000;
  }

  .nav-links a:not(.cta-btn),
  .nav-actions a {
    font-size: 18px;
    color: #111;
    text-decoration: none;
  }
	
  .nav-links a:not(.cta-btn) {
    font-weight: 400;
    display: block;
    padding: 0;
    margin: 0;
  }

  .nav-links a.active {
    font-weight: 700;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  .nav-links .cta-btn {
    display: inline-block !important;
    padding: 12px 28px !important;
    background: #18a800 !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
  }
	
  .btn-primary {
  background: #2be300;
  color: #fff;
  padding: 14px 28px;
  border-radius: 30px;
  border: none;
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
}

.btn-outline {
  border: 2px solid #2be300;
  color: #2be300;
  padding: 12px 26px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 600;
  display: inline-block;
}
	
@media (max-width: 480px) {

  h1 { font-size: 30px; }
  h2 { font-size: 24px; }

  .hero-actions { flex-direction: column; gap: 12px; }

  .help-button {
    writing-mode: horizontal-tb;
    top: auto;
    bottom: 20px;
    right: 16px;
    transform: none;
    border-radius: 30px;
    padding: 12px 20px;
  }
}

/* ── HAMBURGER OPEN STATE (X animation) ── */
.hamburger.is-open { color: #2be300; }

/* ── HELP BUTTON PULSE ── */
@keyframes helpPulse {
  0%   { box-shadow: 0 0 0 0 rgba(31,170,0,0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(31,170,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,170,0,0); }
}
.help-button { transition: background 0.2s, transform 0.2s; }
.help-button.pulse { animation: helpPulse 1s ease-out; }
.help-button:hover { transform: scale(1.05); }

/* ── ALERT / ERROR BANNER ── */
.error-message, .alert-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.3s ease;
}
.success-message {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { opacity:0; transform: translateY(-8px); }
  to   { opacity:1; transform: translateY(0); }
}

.nav-links .cta-btn,
.nav-links .cta-btn:visited,
.nav-links .cta-btn:active,
.nav-links .cta-btn.active {
  background: #18a800 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
}