/* Graham Veysey for Land Bank - Custom Styles */

/* Color palette */
:root {
  --bg-olive: #5B6B4F;
  --bg-olive-dark: #4A5840;
  --bg-olive-light: #6B7D5E;
  --green-bright: #4ADE80;
  --green-heading: #3CCF6E;
  --cyan-accent: #06B6D4;
  --cream: #F5F0E8;
  --cream-dark: #E8E0D0;
  --text-dark: #1A1A1A;
  --text-light: #F5F0E8;
  --white: #FFFFFF;
}

/* Base styles */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-olive);
  color: var(--text-light);
  overflow-x: hidden;
}

/* Typography */
.font-display {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Hero section */
.hero-gradient {
  background: linear-gradient(135deg, var(--bg-olive-dark) 0%, var(--bg-olive) 50%, var(--bg-olive-light) 100%);
}

/* Photo cards */
.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-card:hover img {
  transform: scale(1.05);
}

.photo-card .card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--white);
}

/* Section styling */
.section-olive {
  background-color: var(--bg-olive);
}

.section-cream {
  background-color: var(--cream);
  color: var(--text-dark);
}

.section-dark {
  background-color: var(--bg-olive-dark);
}

/* Countdown timer */
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--cyan-accent);
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cream-dark);
  margin-top: 4px;
}

/* Reason cards */
.reason-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 24px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.reason-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* Donate section */
.donate-cta {
  background: linear-gradient(135deg, var(--green-bright), var(--cyan-accent));
  color: var(--text-dark);
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.2rem;
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.donate-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74, 222, 128, 0.3);
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(74, 88, 64, 0.98);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.mobile-nav a:hover {
  color: var(--green-bright);
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar */
.navbar {
  backdrop-filter: blur(12px);
  background: rgba(74, 88, 64, 0.9);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

/* Election info card */
.election-card {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(74, 222, 128, 0.15));
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 16px;
  padding: 32px;
}

/* Responsive image with overlay text */
.bio-image-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.bio-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hamburger icon */
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  margin: 6px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Subtle text glow for headings */
.text-glow {
  text-shadow: 0 0 40px rgba(74, 222, 128, 0.2);
}

/* Divider */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--green-bright), var(--cyan-accent));
  border-radius: 2px;
}

.countdown-dark {
  color: var(--bg-olive) !important;
}

.countdown-label-dark {
  color: var(--bg-olive-light) !important;
}

/* Skip to main content link (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  background: var(--green-bright);
  color: var(--text-dark);
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* Focus-visible styles for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan-accent);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .countdown-number {
    font-size: 1.8rem;
  }

  .photo-card .card-label {
    font-size: 1.1rem;
    padding: 12px;
  }
}
