
/* =========================================================
   TREK & TREAT - MAIN STYLESHEET
   File: css/style.css
========================================================= */

/* -------------------------
   1. ROOT / RESET
-------------------------- */

:root {
  --navy: #0d2f4f;
  --navy-dark: #08233a;
  --blue: #176d8f;
  --teal: #1796a5;
  --teal-dark: #117987;
  --sky: #eaf7fb;
  --soft-blue: #f2f9fc;
  --white: #ffffff;

  --text: #183247;
  --text-light: #637788;
  --border: #dce7ee;

  --success: #1b6d3b;
  --success-bg: #e9f7ef;

  --shadow-sm: 0 8px 22px rgba(15, 56, 83, 0.08);
  --shadow-md: 0 14px 38px rgba(15, 56, 83, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --container: 1200px;
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--container), calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}


/* -------------------------
   2. TYPOGRAPHY / COMMON
-------------------------- */

.section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-label,
.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2,
.volunteer-form-wrapper h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.section-heading p,
.volunteer-form-wrapper > p {
  margin: 0;
  color: var(--text-light);
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 800;
  transition: transform var(--transition),
              box-shadow var(--transition),
              background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 8px 18px rgba(23, 150, 165, 0.25);
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-dark {
  color: var(--white);
  background: var(--navy);
}

.btn-dark:hover {
  background: var(--navy-dark);
}

.btn-full {
  width: 100%;
}

.text-link {
  color: var(--teal);
  font-weight: 800;
}

.text-link:hover {
  color: var(--teal-dark);
}


/* -------------------------
   3. HEADER / NAVIGATION
-------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
}

.nav-wrapper {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  color: var(--navy);
  font-size: 1.18rem;
}

.brand-text span {
  margin-top: 4px;
  color: var(--text-light);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 700;
  transition: color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--teal);
}

.main-nav .nav-cta {
  padding: 10px 15px;
  color: var(--white);
  background: var(--teal);
  border-radius: var(--radius-sm);
}

.main-nav .nav-cta:hover {
  color: var(--white);
  background: var(--teal-dark);
}

.menu-toggle {
  display: none;
  padding: 4px 6px;
  color: var(--navy);
  background: transparent;
  border: 0;
  font-size: 1.7rem;
}


/* -------------------------
   4. HERO / SLIDER
-------------------------- */

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(7, 31, 51, 0.84) 0%,
      rgba(7, 31, 51, 0.56) 48%,
      rgba(7, 31, 51, 0.28) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 690px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  padding: 90px 0 120px;
  color: var(--white);
}

.hero-copy .eyebrow {
  color: #c7f4f7;
}

.hero-copy h1 {
  margin: 0 0 20px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 28px;
  color: #edf5f8;
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  color: var(--white);
  background: rgba(8, 35, 58, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  font-size: 1.45rem;
  transition: background var(--transition);
}

.slider-arrow:hover {
  background: rgba(8, 35, 58, 0.65);
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  transition: width var(--transition), background var(--transition);
}

.slider-dot.active {
  width: 28px;
  background: var(--white);
}


/* -------------------------
   5. IMPACT
-------------------------- */

.impact-section {
  background: linear-gradient(180deg, #edf9fd 0%, #f9fcfe 100%);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.impact-card {
  padding: 28px 18px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.impact-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: #e4f7f9;
  border-radius: 14px;
  font-size: 1.55rem;
  font-weight: 900;
}

.impact-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.impact-number {
  display: block;
  margin: 10px 0 5px;
  color: var(--blue);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.impact-card p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.92rem;
}


/* -------------------------
   6. PREVIOUS PROJECTS
-------------------------- */

.projects-section {
  background: var(--white);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition),
              box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.project-image-link {
  display: block;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 225px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image {
  transform: scale(1.04);
}

.project-content {
  padding: 20px;
}

.project-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  color: var(--teal-dark);
  background: #e7f7f8;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.project-content h3,
.trip-content h3 {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 1.25rem;
}

.project-location {
  margin: 0 0 8px;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 700;
}

.project-content p {
  margin-top: 0;
  color: #536a7a;
}

.section-action {
  margin-top: 34px;
  text-align: center;
}


/* -------------------------
   7. UPCOMING TRIPS
-------------------------- */

.upcoming-section {
  background: linear-gradient(180deg, #edf8fb 0%, #f9fcfd 100%);
}

.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.trip-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition),
              box-shadow var(--transition);
}

.trip-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.trip-image-wrapper {
  position: relative;
  overflow: hidden;
}

.trip-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.trip-card:hover .trip-image {
  transform: scale(1.04);
}

.trip-status {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 10px;
  color: var(--white);
  background: var(--navy);
  border-radius: 9px;
  font-size: 0.74rem;
  font-weight: 800;
}

.trip-content {
  padding: 20px;
}

.trip-content p {
  margin-top: 0;
  color: #536a7a;
}


/* -------------------------
   8. VOLUNTEER SECTION
-------------------------- */

.volunteer-section {
  background: var(--white);
}

.volunteer-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.volunteer-image {
  min-height: 630px;
  background: #d9e7ec;
}

.volunteer-image img {
  width: 100%;
  height: 100%;
  min-height: 630px;
  object-fit: cover;
}

.volunteer-form-wrapper {
  padding: 40px;
}

.volunteer-form {
  margin-top: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--text);
  background: var(--white);
  border: 1px solid #c9d8e1;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border var(--transition),
              box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(23, 150, 165, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  color: var(--success);
  background: var(--success-bg);
  border-radius: var(--radius-sm);
  font-weight: 700;
}


/* -------------------------
   9. FOOTER
-------------------------- */

.site-footer {
  padding: 54px 0 22px;
  color: #dce9f1;
  background: var(--navy-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 38px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
}

.footer-brand strong {
  color: var(--white);
  font-size: 1.2rem;
}

.footer-brand span {
  margin-top: 4px;
  color: #a9c0d0;
  font-size: 0.72rem;
}

.footer-about p {
  max-width: 460px;
  color: #b9ccd8;
}

.footer-links h3,
.footer-contact h3 {
  margin-top: 0;
  color: var(--white);
}

.footer-links a {
  display: block;
  margin: 7px 0;
  color: #dce9f1;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #8de0e7;
}

.footer-contact p {
  margin: 8px 0;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #a9bdca;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}


/* -------------------------
   10. RESPONSIVE - TABLET
-------------------------- */

@media (max-width: 980px) {

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav .nav-cta {
    width: 100%;
    text-align: center;
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-grid,
  .upcoming-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .volunteer-layout {
    grid-template-columns: 1fr;
  }

  .volunteer-image,
  .volunteer-image img {
    min-height: 380px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* -------------------------
   11. RESPONSIVE - MOBILE
-------------------------- */

@media (max-width: 680px) {

  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 58px 0;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-text strong {
    font-size: 1rem;
  }

  .brand-text span {
    font-size: 0.62rem;
  }

  .hero,
  .hero-content {
    min-height: 620px;
  }

  .hero-copy {
    padding: 80px 0 110px;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 13vw, 4.4rem);
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .slider-arrow {
    display: none;
  }

  .impact-grid,
  .project-grid,
  .upcoming-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .project-image,
  .trip-image {
    height: 220px;
  }

  .volunteer-form-wrapper {
    padding: 28px 20px;
  }

  .volunteer-image,
  .volunteer-image img {
    min-height: 300px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* -------------------------
   12. VERY SMALL SCREENS
-------------------------- */

@media (max-width: 420px) {

  .hero-copy h1 {
    font-size: 2.75rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .impact-card {
    padding: 24px 16px;
  }

  .volunteer-form-wrapper {
    padding: 24px 16px;
  }
}


/* =========================================================
   13. STAFF LOGIN PAGE
   Works with: login.html
========================================================= */

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top right, rgba(23, 150, 165, 0.10), transparent 35%),
    linear-gradient(180deg, #f4fbfd 0%, #eef6f9 100%);
}

.login-main {
  flex: 1;
}

.login-section {
  padding: 64px 0;
}

.login-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.login-intro {
  padding: 22px 10px;
}

.login-intro h1 {
  margin: 0 0 16px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 4.4rem);
  line-height: 1.02;
}

.login-intro > p {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--text-light);
  font-size: 1.08rem;
}

.login-role-list {
  display: grid;
  gap: 12px;
}

.login-role-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: start;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.login-role-item strong {
  color: var(--teal-dark);
}

.login-role-item span {
  color: var(--text-light);
  font-size: 0.93rem;
}

.login-card {
  width: 100%;
  max-width: 510px;
  margin-left: auto;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.login-card-header {
  margin-bottom: 26px;
  text-align: center;
}

.login-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  object-fit: contain;
}

.login-card-header h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.login-card-header p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

.login-form .form-group {
  margin-bottom: 18px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 76px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  padding: 6px 9px;
  color: var(--teal-dark);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 800;
}

.password-toggle:hover {
  background: #eef8fa;
}

.login-options {
  margin: 4px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.remember-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.remember-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.forgot-password-link {
  padding: 0;
  color: var(--teal-dark);
  background: transparent;
  border: 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.forgot-password-link:hover {
  text-decoration: underline;
}

.login-message {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
}

.login-message.success {
  display: block;
  color: var(--success);
  background: var(--success-bg);
}

.login-message.error {
  display: block;
  color: #a12c2c;
  background: #fdecec;
}

.login-help {
  margin-top: 22px;
  padding-top: 18px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.login-help p {
  margin: 3px 0;
  color: var(--text-light);
  font-size: 0.88rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(23, 150, 165, 0.35);
  outline-offset: 2px;
}

button:disabled,
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.login-page .site-footer {
  padding-top: 28px;
}

.login-page .footer-bottom {
  margin-top: 0;
}

@media (max-width: 980px) {
  .login-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .login-card {
    max-width: 620px;
    margin: 0 auto;
  }
  .login-intro {
    text-align: center;
  }
  .login-intro > p {
    margin-left: auto;
    margin-right: auto;
  }
  .login-role-list {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .login-section {
    padding: 42px 0;
  }
  .login-intro h1 {
    font-size: 2.5rem;
  }
  .login-role-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .login-card {
    padding: 26px 20px;
    border-radius: var(--radius-md);
  }
  .login-options {
    align-items: flex-start;
    flex-direction: column;
  }
  .login-page .nav-wrapper {
    min-height: 68px;
  }
  .login-page .nav-wrapper > .btn {
    padding: 10px 12px;
    font-size: 0.86rem;
  }
}

@media (max-width: 420px) {
  .login-intro {
    padding-left: 0;
    padding-right: 0;
  }
  .login-card {
    padding: 22px 16px;
  }
  .login-card-header h2 {
    font-size: 1.75rem;
  }
  .login-logo {
    width: 62px;
    height: 62px;
  }
}


.loading-message {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-light);
  padding: 30px 0;
}

.auth-checking {
  visibility: hidden;
}
