/* ============================================================
           LIGHT THEME – Forest Green Palette (same as navbar)
           60% Primary   : #1B5E20, #2E7D32, #43A047, #66BB6A, #A5D6A7
           30% Secondary : #E8F5E9, #F1F8E4, #C8E6C9
           10% Accent    : #FB8C00, #FFA726
           ============================================================ */
:root {
  /* ----- Primary (Forest Green) – 60% ----- */
  --primary-900: #1b5e20;
  --primary-800: #2e7d32;
  --primary-600: #43a047;
  --primary-400: #66bb6a;
  --primary-200: #a5d6a7;

  /* ----- Secondary (Soft Green) – 30% ----- */
  --secondary-100: #e8f5e9;
  --secondary-50: #f1f8e4;
  --secondary-200: #c8e6c9;

  /* ----- Accent (Warm Orange) – 10% ----- */
  --accent-700: #fb8c00;
  --accent-400: #ffa726;

  /* ----- Light Theme UI vars ----- */
  --bgprimary: #f5f8f0;
  --bgsecondary: #ffffff;
  --bgtertiary: #f1f8e4;
  --bgcard: #ffffff;

  --textprimary: #1b5e20;
  --textsecondary: #2e7d32;
  --textmuted: #43a047;

  --borderlight: #c8e6c9;
  --borderaccent: #a5d6a7;

  --accent: #ffa726;
  --accent-dark: #fb8c00;
  --shadowaccent: 0 0 20px rgba(255, 167, 38, 0.3);
  --shadowaccent-soft: 0 0 12px rgba(255, 167, 38, 0.2);
  --shadowcard: 0 8px 30px rgba(27, 94, 32, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "Inter",
    -apple-system,
    sans-serif;
  background-color: var(--bgprimary);
  color: var(--textprimary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- PAGE SPACER (so footer is visible) ---------- */
.page-spacer {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
}
.page-spacer h1 {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--textsecondary);
  opacity: 0.6;
}
.page-spacer h1 span {
  color: var(--accent-dark);
  font-weight: 700;
}

/* ============================================================
           FOOTER – Light Theme, Forest Green
           ============================================================ */
.footer {
  background: var(--bgsecondary);
  border-top: 1px solid var(--borderlight);
  padding: 4rem 4rem 2rem;
  margin-top: auto;
  box-shadow: 0 -4px 30px rgba(27, 94, 32, 0.04);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

/* ----- Brand Column ----- */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-brand .logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand .logo-wrap img {
  height: 100px;
  width: auto;
  display: block;
}
.footer-brand .logo-text {
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--primary-900);
  text-transform: uppercase;
  border-left: 2px solid var(--primary-200);
  padding-left: 14px;
  line-height: 1.2;
}
.footer-brand .logo-text span {
  color: var(--accent-dark);
  font-weight: 900;
}

.footer-brand p {
  color: var(--textsecondary);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 340px;
  margin-top: 0.25rem;
}

.footer-brand .social-icons {
  display: flex;
  gap: 10px;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.footer-brand .social-icon {
  width: 38px;
  height: 38px;
  background: var(--bgprimary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--borderlight);
  color: var(--primary-600);
  transition: 0.3s;
  cursor: pointer;
  text-decoration: none;
  border-radius: 4px;
}
.footer-brand .social-icon:hover {
  background: var(--accent);
  color: var(--bgsecondary);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadowaccent);
}

/* ----- Footer Columns ----- */
.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  color: var(--accent-dark);
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-col ul li a {
  color: var(--textsecondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
  display: inline-block;
  font-weight: 500;
}
.footer-col ul li a:hover {
  color: var(--accent-dark);
  transform: translateX(6px);
  font-weight: 600;
}

/* ----- Contact Column ----- */
.footer-col .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1rem;
  color: var(--textsecondary);
  font-size: 0.9rem;
  line-height: 1.5;
}
.footer-col .contact-item .icon {
  color: var(--accent-dark);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.4;
  flex-shrink: 0;
}

/* ----- Newsletter ----- */
.footer-newsletter p {
  color: var(--textsecondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-newsletter .input-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-newsletter input {
  flex: 1;
  min-width: 160px;
  background: var(--bgprimary);
  border: 1px solid var(--borderlight);
  padding: 0.9rem 1.2rem;
  color: var(--textprimary);
  outline: none;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: 0.3s;
  font-family: inherit;
}
.footer-newsletter input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 167, 38, 0.12);
}
.footer-newsletter input::placeholder {
  color: var(--textmuted);
  opacity: 0.7;
}

.footer-newsletter .sub-btn {
  background: var(--accent);
  color: var(--bgsecondary);
  border: none;
  padding: 0.9rem 1.8rem;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.3s;
  font-family: inherit;
  white-space: nowrap;
}
.footer-newsletter .sub-btn:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadowaccent);
  transform: scale(1.02);
}

/* ----- Footer Bottom ----- */
.footer-bottom {
  max-width: 1400px;
  margin: 2.5rem auto 0;
  padding-top: 1.8rem;
  border-top: 1px solid var(--borderlight);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--textmuted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.footer-bottom p strong {
  color: var(--primary-800);
  font-weight: 700;
}

.footer-bottom .legal-links {
  display: flex;
  gap: 1.8rem;
}
.footer-bottom .legal-links a {
  color: var(--textmuted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: 0.3s;
  letter-spacing: 0.02em;
}
.footer-bottom .legal-links a:hover {
  color: var(--accent-dark);
}

/* ============================================================
           BACK TO TOP BUTTON
           ============================================================ */
#backToTop {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 167, 38, 0.35);
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#backToTop:hover {
  background: var(--accent-dark);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 35px rgba(255, 167, 38, 0.5);
}

#backToTop:active {
  transform: translateY(0) scale(0.95);
}

#backToTop svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

#backToTop:hover svg {
  transform: translateY(-2px);
}

/* ----- RESPONSIVE FOOTER ----- */
@media (max-width: 1024px) {
  .footer {
    padding: 3rem 2.5rem 1.8rem;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer-brand .logo-wrap img {
    height: 55px;
  }
  .footer-brand .logo-text {
    font-size: 0.85rem;
  }
  #backToTop {
    width: 44px;
    height: 44px;
    bottom: 2rem;
    right: 2rem;
  }
  #backToTop svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 640px) {
  .footer {
    padding: 2.5rem 1.5rem 1.5rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-brand .logo-wrap img {
    height: 48px;
  }
  .footer-brand .logo-text {
    font-size: 0.75rem;
    padding-left: 10px;
  }
  .footer-brand p {
    max-width: 100%;
  }
  .footer-newsletter .input-group {
    flex-direction: column;
  }
  .footer-newsletter input {
    min-width: auto;
  }
  .footer-newsletter .sub-btn {
    width: 100%;
    text-align: center;
    padding: 0.9rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }
  .footer-bottom .legal-links {
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  #backToTop {
    width: 40px;
    height: 40px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  #backToTop svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 2rem 1rem 1.2rem;
  }
  .footer-brand .logo-wrap img {
    height: 38px;
  }
  .footer-brand .logo-text {
    font-size: 0.6rem;
    padding-left: 6px;
    border-left-width: 1.5px;
  }
  .footer-col h4 {
    font-size: 0.7rem;
  }
  .footer-col ul li a {
    font-size: 0.8rem;
  }
  .footer-col .contact-item {
    font-size: 0.8rem;
  }
  .footer-newsletter p {
    font-size: 0.8rem;
  }
  #backToTop {
    width: 36px;
    height: 36px;
    bottom: 1.2rem;
    right: 1.2rem;
  }
  #backToTop svg {
    width: 16px;
    height: 16px;
  }
}
