/* ==================================================
   Site CSS — Oswald font, theme vars, layout
   ================================================== */

/* ---------------------- */
/*  FONT: OSWALD          */
/* ---------------------- */
@font-face {
  font-family: 'Oswald';
  src: url('/fonts/Oswald-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: 'Oswald', sans-serif;
}

/* ---------------------- */
/*  ROOT VARIABLES        */
/* ---------------------- */
:root {
  --primary: #055505;
  --secondary: #26a69a;
  --accent: #9c27b0;

  --dark: #1d1d1d;
  --dark-page: #121212;

  --positive: #21ba45;
  --negative: #c10015;
  --info: #31ccec;
  --warning: #f2c037;

  --content-max: 900px;
  --card-radius: 18px;
}

/* ---------------------- */
/*  GLOBAL LAYOUT         */
/* ---------------------- */
html, body { height: 100%; margin: 0; }

body {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.5;
  background: #fafafa;
  color: white;
  background-image: url('/img/pexels-pixabay-459411.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

main { flex: 1; }

/* Generic container */
.container,
.content-wrapper {
  background-color: var(--primary);
  max-width: var(--content-max);
  margin: 3rem auto;
  padding: 1rem;
  border-radius: 10px;
}

/* Utility */
.text-center { text-align: center; }

/* ---------------------- */
/* HEADINGS & TEXT        */
/* ---------------------- */
h1, h2, h3 { margin-top: 1.2rem; color: white; }
p { margin: 1rem 0; color: rgba(255,255,255,0.95); }

/* ---------------------- */
/* NAVBAR                 */
/* ---------------------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1rem;
  background-color: var(--primary);
  color: white;
  position: relative;
  z-index: 20;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo { height: 36px; width: auto; display:block; }

.navbar-links ul {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  align-items: center;
  font-size: 1.1rem;
}

.navbar-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.navbar-links a:hover {
  background-color: #0d700d;
  color: #ffffff;
}

.toggle-button {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ---------------------- */
/* SITE FOOTER            */
/* ---------------------- */
.site-footer {
  background-color: var(--primary);
  color: white;
  padding: .6rem 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-btn {
  background: none;
  color: white;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  padding: .25rem .6rem;
}

/* ---------------------- */
/* MODALS                 */
/* ---------------------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: var(--primary);
  color: white;
  padding: 1.6rem;
  max-width: 680px;
  width: 92%;
  border-radius: 10px;
  max-height: 70vh;
  overflow-y: auto;
}

.close-btn {
  margin-top: 1rem;
  background: white;
  border: none;
  padding: .5rem 1rem;
  color: var(--primary);
  cursor: pointer;
  border-radius: 6px;
}

/* Modal form */
#modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

#modal-form label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

#modal-form label:hover {
  background-color: #24ac24;
  transform: translateY(-1px);
}

#modal-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0d700d;
  cursor: pointer;
}

#modal-form button {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#modal-submit {
  background-color: #007bff;
  color: white;
}

#modal-submit:hover { background-color: #0069d9; }

#modal-close {
  background-color: #e63946;
  color: white;
}

#modal-close:hover { background-color: #d62839; }

/* ---------------------- */
/* CONTENT CARDS          */
/* ---------------------- */
.content-card {
  background: var(--primary);
  color: white;
  padding: 2rem;
  border-radius: var(--card-radius);
  box-shadow: none;
  line-height: 1.7;
}

.content-card h1, .content-card h2, .content-card h3 { color: white; }

/* ---------------------- */
/* HOMEPAGE               */
/* ---------------------- */
.homepage-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
}

.home-logo { width: 90px; height: 90px; margin: 0 auto 1rem; display:block; }

.cta-button {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.9rem 1.6rem;
  background-color: #c71f1f;
  color: #000000;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cta-button:hover { background-color: #cf3b3b; }

.homepage-container, .homepage-container * { color: white !important; }

.packages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem auto;
  align-items: center;
}

@media (min-width: 850px) {
  .packages { flex-direction: row; justify-content: center; gap: 1.5rem; }
}

.package-card {
  padding: 1.4rem;
  border-radius: 14px;
  color: white;
  text-align: center;
  width: 100%;
  max-width: 300px;
}

.package-card.basic    { background: #0077ff; }
.package-card.standard { background: #8b5cf6; }
.package-card.ultimate  { background: #10b981; }

.addons { margin-top: 1.5rem; text-align:left; max-width:420px; margin-left:auto; margin-right:auto; }

/* ---------------------- */
/* PROJECTS PAGE          */
/* ---------------------- */
.projects-section {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 2rem 1rem;
}

.page-header { text-align:center; margin-bottom: 1.5rem; }
.page-header p { color: #e6f4e6; opacity: .95; max-width: 680px; margin: 0 auto; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.project-card {
  border-radius: 12px;
  padding: 1.25rem;
  color: white;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height: 220px;
  transition: transform .18s ease, background-color .18s ease;
}

.project-card:hover { transform: translateY(-6px); background-color: rgba(255,255,255,0.06); }

.project-card a {
  display:inline-block;
  padding: .45rem .9rem;
  border-radius: 8px;
  background: #fff;
  color:#000;
  text-decoration:none;
}

.bg-red    { background: #c62828; }
.bg-orange { background: #ef6c00; }
.bg-blue   { background: #1565c0; }
.bg-green  { background: #2e7d32; }
.bg-purple { background: #6a1b9a; }

/* ---------------------- */
/* CONTACT PAGE           */
/* ---------------------- */
.contact-section { max-width: 700px; margin: 0 auto 3rem; padding: 2rem 1rem; }
.contact-card {
  background: rgba(5,85,5,0.95);
  border-radius: 12px;
  padding: 1.6rem;
  color: white;
}

.contact-form { display:flex; flex-direction:column; gap: .6rem; }
.contact-form label { color: #fff; font-weight:600; }
.contact-form input, .contact-form textarea {
  border: none;
  border-radius: 8px;
  padding: .75rem;
  font-size: 1rem;
  color: #000;
  background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid rgba(255,255,255,0.75); }

.submit-btn {
  margin-top: .6rem;
  padding: .8rem 1rem;
  border-radius: 8px;
  background: #fff;
  color:#000;
  border: none;
  cursor:pointer;
}

.success-message { color: var(--positive); margin-top: .6rem; font-weight:700; text-align:center; }

/* ---------------------- */
/* MOBILE NAVBAR          */
/* ---------------------- */
@media (max-width: 768px) {
  .navbar {
    position: relative; /* make sure toggle z-index works */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
  }

  .toggle-button {
    display: block;
    z-index: 50; /* always on top */
    font-size: 1.6rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }

  /* links under navbar */
  .navbar-links {
    position: relative; /* no absolute positioning */
    top: auto;
    left: auto;
    transform: none;
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--primary);
    border-radius: 0 0 8px 8px;
    margin-top: 0; /* directly below navbar */
    z-index: 10;
  }

  .navbar-links.active {
    display: flex;
  }

  .navbar-links ul {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    text-align: center;
  }

  .navbar-links a {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    color: white;
  }

  .navbar-links a:hover {
    background-color: #0d700d;
  }
}
