/* Google Fonts Import handled in layout.html */

html {
  scroll-behavior: smooth;
}

body {
  padding: 0;
  margin: 0;
  background-color: var(--background-color);
  font-family: var(--font-body);
  color: var(--body-text-color);
  line-height: 1.6;
}

/* COLORS */
:root {
  /* Reference template exact colors */
  --primary-color: #419d9d;
  /* Teal - matches reference */
  --primary-dark: #357f7f;
  --secondary-color: #ff7f5e;
  /* Coral/Salmon - matches reference for CTAs */
  --secondary-dark: #e86a4a;

  --header-text-color: #2f3e3e;
  /* Dark slate for headers */
  --body-text-color: #333333;

  --background-color: #ffffff;
  --background-mint: #e8f6f5;
  --background-grey: #f9f9f9;

  --footer-bg: #2f3e3e;
  --footer-text: #e0e0e0;

  --success-color: #02c3a4;

  /* Typography - Bebas Neue for headlines, Source Serif for body */
  --font-headline: "Bebas Neue", "Barlow Condensed", sans-serif;
  --font-body: "Roboto", sans-serif;
  --font-ui: "Inter", sans-serif;
}

/* TYPOGRAPHY */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headline);
  color: var(--header-text-color);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 20px 0;
  line-height: 1.1;

}

h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: 1px;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h3 {
  font-size: 2.2rem;
}

h4 {
  font-size: 1.8rem;
}

h5 {
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

p {
  font-family: var(--font-body);
  font-size: 18px;
  /* Lora looks smaller, so bump size */
  margin-bottom: 20px;
  color: var(--body-text-color);
}

.intro-text,
.lead {
  font-size: 22px;
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.3s;
}

a:hover {
  color: var(--secondary-color);
}

/* PETITION FORM STYLES */
/* PETITION FORM TO INDEX.HTML */

/* Live Counter Styles */
.live-counter-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 20px;
  border-radius: 50px;
  margin-top: 45px;
  font-family: var(--font-headline);
  letter-spacing: 1px;
  max-width: 300px;
  /* Start hidden */
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.live-counter-badge.visible {
  opacity: 1;
  transform: translateY(0);
}

.counter-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0 10px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Bouncy transition */
  display: inline-block;
}

.counter-label {
  font-size: 1rem;
  color: #f0f0f0;
  text-transform: uppercase;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: var(--secondary-color);
  /* Salmon color */
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(255, 127, 94, 0.4);
  animation: pulse 2s infinite;
}

/* The "Pop" Animation Class */
.pop-anim {
  transform: scale(1.5);
  color: var(--secondary-color);
  /* Flash salmon color on update */
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

/* BUTTONS */

.button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white !important;
  /* Force white text */
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 36px;
  font-size: 16px;
  border: none;
  border-radius: 0px;
  /* Square edges */
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(85, 196, 178, 0.3);
  width: fit-content;
  /* Don't span full width */
  font-size: 18px;
  letter-spacing: 2px;
}

.button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(85, 196, 178, 0.4);
}

.button-secondary {
  background-color: var(--secondary-color);
  box-shadow: 0 4px 10px rgba(255, 115, 91, 0.3);
}

.button-secondary:hover {
  background-color: var(--secondary-dark);
  box-shadow: 0 6px 14px rgba(255, 115, 91, 0.4);
}

.button-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color) !important;
  box-shadow: none;
}

.button-outline:hover {
  background-color: var(--primary-color);
  color: white !important;
}

/* NAV */

.header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  /* Or sticky if preferred */
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  /* Increased spacing */
  padding: 15px 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav a {
  font-family: var(--font-headline);
  /* Changed to Barlow Condensed */
  color: var(--body-text-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  /* Slightly larger */
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav a:hover {
  color: var(--secondary-color);
}

.nav-link-active {
  color: var(--secondary-color) !important;
  border-bottom: 3px solid var(--secondary-color);
  padding-bottom: 5px;
}

.nav-logo {
  height: 50px;
  /* Adjust as needed */
  width: auto;
}

/* LAYOUT UTILS */
.contained {
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}

.padded-v-lg {
  padding-top: 100px;
  padding-bottom: 100px;
}

.padded-v {
  padding-top: 60px;
  padding-bottom: 60px;
}

.bg-mint {
  background-color: var(--background-mint);
}

.bg-white {
  background-color: white;
}

.bg-grey {
  background-color: var(--background-grey);
}

.lrcontainer {
  display: flex;
  gap: 40px;
  align-items: center;
}

.tri-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.quad-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

@media (max-width: 992px) {
  .quad-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .lrcontainer {
    flex-direction: column;
  }

  .tri-col {
    grid-template-columns: 1fr;
  }

  .quad-col {
    grid-template-columns: 1fr;
  }
}

/* CARDS */
.card {
  background: white;
  border-radius: 0px;
  /* Square */
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* HERO BLOCKS */
/* HERO BLOCKS MOVED TO INDEX.HTML */

.nav-dsk {
  display: flex;
}

.menu-button {
  display: none;
  /* Hidden on desktop */
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--header-text-color);
}

.mobile-menu {
  display: none;
  /* Hidden default */
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  padding: 20px 0;
  z-index: 999;
}

.mobile-menu a {
  padding: 15px 30px;
  border-bottom: 1px solid #eee;
  display: block;
  color: var(--header-text-color);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

.menu-row {
  display: none;
  /* Hidden on desktop */
  padding: 10px 20px;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .nav {
    display: none;
    /* Hide desktop nav */
  }

  .menu-row {
    display: flex;
    /* Show mobile header row */
  }

  .menu-button {
    display: block;
  }
}

.nav-logo {
  height: 60px;
  object-fit: contain;
}

/* PAGE HEADERS */
.page-header {
  background-color: var(--footer-bg);
  color: white;
  padding: 100px 20px;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.page-header h1 {
  color: white;
}

/* CARD REFINEMENTS */
.card {
  border: none;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* STATS CARDS - Matches reference template style */
.stat-card {
  background: white;
  padding: 40px 30px;
  border-radius: 0;
  box-shadow: none;
  border: 2px dashed #ccc;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
  text-align: left;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.stat-card .stat-number {
  font-family: var(--font-ui);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--body-text-color);
  margin-bottom: 5px;
}

.stat-card h4 {
  font-family: var(--font-headline);
  color: var(--header-text-color);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.stat-card p {
  font-size: 15px;
  margin-bottom: 0;
  color: #666;
}

/* FOOTER STYLES */
.footer {
  background-color: var(--footer-bg);
  color: #ffffff;
  padding: 60px 0 30px;
  font-family: var(--font-ui);
  margin-top: auto;
}

.footer a {
  color: #7dd1c5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--secondary-color);
}

.footer-branding {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-text {
  font-family: var(--font-headline);
  font-size: 2.2rem;
  color: var(--secondary-color);
  letter-spacing: 2px;
  font-weight: 700;
}

/* FOOTER ICONS */
.footer-contact-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-contact-info i {
  color: var(--primary-color);
  width: 18px;
  text-align: center;
}

.footer-contact-info a,
.footer-contact-info span {
  color: rgba(255, 255, 255, 0.85);
}

.footer-contact-info a:hover {
  color: var(--secondary-color);
}

.footer-logo {
  height: 50px;
  filter: brightness(0) invert(1);
}

.footer-brand-name {
  font-family: var(--font-headline);
  font-size: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h5 {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--secondary-color);
  letter-spacing: 1.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-bar p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
}

.footer-bottom-bar a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-bar a:hover {
  color: var(--secondary-color);
}

.footer-legal-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-legal-links .divider {
  color: rgba(255, 255, 255, 0.3);
}

.vertical-line {
  width: 1px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }

  .footer-branding {
    justify-content: center;
  }

  .footer-legal-links {
    justify-content: center;
  }
}

.caseload-description {
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #555;
}

.caseload-graph {
  max-width: 100%;
  width: 800px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  padding: 20px;
}

.caseload-source {
  font-size: 0.9rem;
  color: #777;
  max-width: 800px;
  margin: 0 auto;
}

/* Container Layout */
.petition-container-alt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 400px;
  margin: auto 0;
  margin-top: 36px;
  padding: 40px;
  padding-top: 80px;
  background-color: #0d0d0d;
  /* Matches the demo's dark background */
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  /* Standard modern font */
}

/* Heading Styles */
.eb-ah-title {
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.eb-ah-subtitle {
  color: #fff;
  font-size: 24px;
  font-family: var(--font-headline);
  margin: 0;
}

/* Progress Bar Structure */
.eb-column-wrapper {
  flex: 1;
}

.eb-progressbar-line {
  width: 100%;
  height: 12px;
  background-color: #fff;
  /* Dark track color */
  border-radius: 50px;
  position: relative;
  overflow: visible;
}

/* The Progress Fill */
.eb-progressbar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff7f5e 0%, #ff7f5e 100%);
  /* Demo's signature green gradient */
  border-radius: 50px;
  position: relative;
  transition: width 1.5s ease-in-out;
}

/* The Percentage Bubble (Tooltip) */
.eb-progressbar-count {
  position: absolute;
  right: -20px;
  top: -40px;
  background: var(--secondary-color);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
}

.eb-advance-heading-wrapper {
  color: #fff;
  margin-top: 6px;
}

/* Triangle for the bubble */
.eb-progressbar-count::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--secondary-color);
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
  .petition-container-alt {
    flex-direction: column;
    text-align: center;
  }

  .eb-progressbar-count {
    right: 50%;
    transform: translateX(50%);
  }
}

.left-side.visible {
  animation: slideInLeft 1.5s forwards;
}

.right-side.visible {
  animation: slideInRight 1.5s forwards;
}

.popInChildren>*.visible {
  animation: popIn 1s forwards;
}

.pulseChildren>*.visible {
  animation: pulse 0.7s forwards;
}

.slideFadeInChildren>*.visible {
  animation: slideFadeIn 1s forwards;
}

.animated.visible {
  animation-fill-mode: forwards;
}

nav.visible {
  animation: slideFadeIn 1s forwards;
}

.footer-text.visible {
  animation: slideFadeIn 1s forwards;
}

p.visible {
  animation: fadeIn 1s forwards;
}

h1.visible {
  animation: slideFadeIn 1s forwards;
}

h2.visible {
  animation: slideFadeIn 1s forwards;
}

h3.visible {
  animation: slideFadeIn 1s forwards;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes slideFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-30%);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }

  25% {
    transform: translateY(-10px);
  }

  50% {
    transform: translateY(0);
  }

  75% {
    transform: translateY(-5px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    scale: 1;
    opacity: 0;
  }

  70% {
    scale: 1.05;
    opacity: 0.8;
  }

  100% {
    scale: 1;
    opacity: 1;
  }
}