/* Floating Back To Top Button */
#topBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;

    background: #4EE349;
    color: black;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 22px;
    font-weight: bold;

    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

#topBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

/* visible state */
#topBtn.show {
    opacity: 1;
    pointer-events: auto;
}


body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    margin: 0;
    background: #f4f6f8;
    color: #2b2b2b;
}

header {
    background: linear-gradient(135deg, #000, #1a1a1a);
    color: white;
    padding: 1rem;
    text-align: center;
}

html {
    scroll-behavior: smooth;
}


/* Remove underline from material tiles */
.material-tile {
    text-decoration: none;
    color: darkgreen;
}

/* Ensure headings inside links also stay clean */
.material-tile h3 {
    text-decoration: none;
    color: darkgreen;   /* keeps your theme color */
}

/* Optional: keep hover effect but no underline */
.material-tile:hover h3 {
    color: #4EE349;
}

.material-card {
    scroll-margin-top: 90px;
}

.material-card img {
    width: 100%;
    max-width: 400px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px 20px;
}

.material-thumb {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.material-thumb:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.material-thumb img {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 12px;
}

.material-thumb h3 {
    margin-bottom: 8px;
}

.material-thumb p {
    font-size: 0.9rem;
    margin: 5px 0;
}

.material-card {
    background: white;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 25px auto;
    border-radius: 8px;
    max-width: 600px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.material-card h2 {
    color: darkgreen;
    margin-bottom: 10px;
}

.material-card ul {
    list-style: none;
    padding-left: 0;
}

.material-card ul li {
    margin-bottom: 8px;
}

/* Remove underline from material tiles */
.service-tile {
    text-decoration: none;
    color: darkgreen;
}

/* Ensure headings inside links also stay clean */
.service-tile h3 {
    text-decoration: none;
    color: darkgreen;   /* keeps your theme color */
}

/* Keep hover effect but no underline */
.service-tile:hover h3 {
    color: #4EE349;;
}

.service-card {
    background: white;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 25px auto;
    border-radius: 8px;
    max-width: 600px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.service-card h2 {
    color: darkgreen;
    margin-bottom: 10px;
}

.service-card ul {
    list-style: disc;
    padding-left: 20px;
}

.service-card ul li {
    margin-bottom: 8px;
}

.service-card img {
    width: 100%;
    max-width: 400px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- NAV WRAPPER ---------- */
.site-nav {
  background: black;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-inner {
  max-width: 1100px;
  margin: auto;
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------- BRAND ----------
.brand {
  color: #4EE349;
  font-weight: 700;
  letter-spacing: 1px;
  display: none;
} */

/* ---------- LINKS ---------- */
.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: auto;
  padding: 0;
}

.nav-links a {
  color: #bbb;
  text-decoration: none;
  font-weight: 600;
  transition: color .2s ease;
}

.nav-links a:hover,
.current-page a {
  color: #4EE349;
}

/* ---------- HAMBURGER ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #4EE349;
  display: block;
  transition: transform .3s ease, opacity .3s ease;
}

/* ---------- MOBILE MODE ---------- */
@media (max-width: 768px) {

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 42px;
    left: 20px;
    right: 100px;
    background: #050505;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 18px 15px;
    transform: translateY(-120%);
    transition: transform .35s ease;
    display:none;
  }

  .nav-links li a{
    color: white;
    font-size: large;
    font-weight: 600;
    margin-bottom: 5px;
  }

  .nav-links li.current-page a {
    color:#4EE349;
    font-size: large;
    font-weight: 600;
    margin-bottom: 5px;
    cursor: default;
  }

  .nav-links.open {
    transform: translateY(0);
    display:block;
    background-color: #424548;
    color:white;
    font-size:large;
  }
}


section {
    max-width: 1000px;
    margin: auto;
    padding: 45px 20px;
    background: white;
    margin-top: 20px;
}

/* Services Cards with Images */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 12px;
}

.card h3 {
    color: darkgreen;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95rem;
    color: #333;
}

h2 {
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.cta {
    background: #4EE349;
    color: black;
    padding: 14px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 18px;
}

.card {
    border: 1px solid #ddd;
    padding: 22px;
    border-radius: 8px;
    background: #fafafa;
}

footer {
    background: black;
    color: #999;
    text-align: center;
    padding: 25px;
    margin-top: 30px;
}

.hyperlink {
    text-decoration: none;
    color: darkgreen; 
}

.hyperlink:hover {
    color: #4EE349;
}

.tos {
    margin-left: 15px;
    margin-bottom: 25px;
}

.tos-download {
    margin-top: 25px;
}

.tos-download a {
    color: black;
}

.tos-download a:hover {
    color: darkgray;
}

.privacy {
    margin-left: 15px;
    margin-bottom: 25px;
}

.privacy-download {
    margin-top: 25px;
}

.privacy-download a {
    color: black;
}

.privacy-download a:hover {
    color: darkgray;
}

/* ================================
   MODAL SYSTEM (used for TOS + cookies)
   ================================ */

.modal,
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

/* visible state */
.modal.show,
.cookie-modal.show {
  display: flex;
}

/* Modal card */
.modal-content,
.cookie-card {
  background: #111;
  color: #eee;
  padding: 32px;
  width: min(520px, 92vw);
  border-radius: 14px;
  border: 1px solid rgba(78,227,73,0.35);
  box-shadow: 0 25px 70px rgba(0,0,0,0.7);
}

/* Scroll area inside modal */
.modal-scroll {
  max-height: 340px;
  overflow-y: auto;
  margin-bottom: 18px;
}

/* ================================
   COOKIE PANEL STYLES
   ================================ */

.cookie-card h2 {
  margin-top: 0;
}

.cookie-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cookie-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.cookie-row strong {
  color: #4EE349;
}

.cookie-row p {
  margin: 4px 0 0;
  font-size: .85rem;
  opacity: .75;
}

/* Toggle switch */
.switch {
  position: relative;
  width: 46px;
  height: 24px;
}

.switch input {
  display: none;
}

.switch span {
  position: absolute;
  inset: 0;
  background: #333;
  border-radius: 20px;
  transition: .2s;
}

.switch span:before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: .2s;
}

.switch input:checked + span {
  background: #4EE349;
}

.switch input:checked + span:before {
  transform: translateX(22px);
}

/* Cookie modal buttons */
.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.btn-primary {
  background: #4EE349;
  color: #000;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
}

/* ================================
   COOKIE FOOTER BANNER
   ================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #111;
  color: white;
  padding: 16px;
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-right:25px;
}

@media (max-width: 600px) {

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-buttons {
    flex-direction: column;
    gap: 12px;        /* space between Accept & Preferences */
    width: 90%;
    margin-top: 5px;
    margin-left:8px;
  }

  .cookie-buttons button {
    width: 100%;
  }

}

.cookie-banner p {
  margin: 0;
  max-width: 800px;
}

.cookie-banner button {
  background: #4EE349;
  border: none;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  cursor: pointer;
}

/* Utility */
.hidden {
  display: none;
}

.current-page {
  color: #4EE349;
  text-decoration: none;
  font-weight: 600;
}

.current-page a {
  cursor: default;
}

.hyperlink-dark {
    text-decoration: none;
    color: #4EE349; 
}

/* Keep hover effect but no underline */
.hyperlink-dark:hover {
    color: #38c738;
}

#acceptTos {
  background: #4EE349;
  border: none;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  cursor: pointer;
}