/* 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-container {
  background: white;
  padding: 50px;
  border-radius: 2px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  margin: -50px auto 50px auto;
  position: relative;
  z-index: 10;
  border-top: 6px solid var(--secondary-color);
}

.petition-form h3 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.petition-form label {
  font-family: var(--font-headline);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--header-text-color);
  margin-bottom: 8px;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.petition-form input {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  padding: 18px;
  font-size: 16px;
  transition: all 0.3s ease;
  width: 100%;
  /* Fix width */
  box-sizing: border-box;
  /* Fix padding issue */
}

.petition-form input:focus {
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 4px rgba(85, 196, 178, 0.1);
}

.petition-submit {
  width: 100%;
  margin-top: 20px;
  font-size: 20px;
  padding: 20px;
  background-color: var(--secondary-color);
  /* Salmon for semantic action */
  box-shadow: 0 10px 20px rgba(255, 115, 91, 0.25);
}

.petition-submit:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(255, 115, 91, 0.35);
}

.verified-badge {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.verified-icon {
  color: var(--success-color);
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .petition-container {
    padding: 30px 20px;
    margin-top: 0;
  }
}

.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);
}

.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: 60px;
  /* 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-split {
  display: flex;
  min-height: min(85vh, 400px);
  position: relative;
}

.hero-left {
  flex: 1;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 100px;
  /* More breathing room */
  position: relative;
  overflow: hidden;
}



.hero-left>* {
  position: relative;
  z-index: 1;
}

.hero-right {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 500px;
}

.hero-left h1,
.hero-left h2,
.hero-left p {
  color: white;
}

/* Hero CTA Button - Outlined style like reference */
.button-hero {
  background-color: transparent !important;
  border: 2px solid white !important;
  color: white !important;
  box-shadow: none;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 1px;
}

.button-hero:hover {
  background-color: white !important;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .hero-split {
    flex-direction: column;
  }

  .hero-left {
    padding: 60px 20px;
    text-align: center;
    align-items: center;
  }

  .hero-right {
    min-height: 300px;
  }

  .hero-left::before {
    display: none;
  }
}

/* BUTTON REFINEMENTS */
.button {
  width: fit-content;
  /* Don't span full width */
  padding: 18px 40px;
  /* Larger click area */
  font-size: 18px;
  letter-spacing: 2px;
}

/* NAV REFINEMENTS */
.nav {
  gap: 40px;
}

.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: 1.8rem;
  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: 0.95rem;
  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.1rem;
  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: 0.95rem;
  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: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

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

.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 1fr;
    gap: 30px;
  }

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

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

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