:root {
    --river-blue: #1e40af;
    --river-light: #3b82f6;
    --sand: #fef3c7;
    --brick: #dc2626;
    --forest: #059669;
    --forest-light: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --white: #ffffff;
    --gray-light: #f9fafb;
    --gray-border: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f0f9ff 0%, #fef3c7 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.logo {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--river-blue) 0%, var(--forest) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--river-blue);
    font-weight: 700;
}

.description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.feature .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--river-blue);
    font-weight: 600;
}

.feature p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cta {
    background: linear-gradient(135deg, var(--river-blue) 0%, var(--river-light) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: 1rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.cta h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.cta .emphasis {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.newsletter {
    max-width: 500px;
    margin: 0 auto;
    margin-top: 2rem;
}

.newsletter p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

#newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

#newsletter-form input:focus {
    outline: none;
    border-color: var(--white);
    background: var(--white);
}

#newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: var(--forest);
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

#newsletter-form button:hover {
    background: var(--forest-light);
}

.form-message {
    font-size: 0.9rem;
    min-height: 1.5rem;
}

.locations {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.locations > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.location-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.location-list span {
    padding: 0.5rem 1rem;
    background: var(--gray-light);
    border-radius: 2rem;
    color: var(--river-blue);
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid var(--gray-border);
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--gray-border);
}

footer p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.charity-note {
    color: var(--forest);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cta {
        padding: 2rem 1.5rem;
    }
    
    .cta h3 {
        font-size: 2rem;
    }
    
    #newsletter-form {
        flex-direction: column;
    }
    
    #newsletter-form button {
        width: 100%;
    }
    
    .location-list {
        gap: 0.5rem;
    }
    
    .location-list span {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

/* =========================
   Friendly Form Styles
   Works with your existing vars
   ========================= */

/* Layout helpers for your existing forms */
#searchForm,
#businessForm,
#newsletter-form {
  gap: 0.75rem;
}

/* Base fields */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
select,
textarea {
  width: 100%;
  appearance: none;
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-primary);
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  border-radius: 0.625rem; /* 10px */
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.02);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.8;
}

/* Focus ring */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--river-light);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); /* river-light */
  background: #ffffff;
}

/* Disabled / read-only */
input[disabled],
select[disabled],
textarea[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--gray-light);
}

/* Validation states (use aria-invalid="true" or .is-invalid) */
[aria-invalid="true"],
.is-invalid {
  border-color: var(--brick);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.help,
.form-hint {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

.error,
.form-error {
  font-size: 0.92rem;
  color: var(--brick);
  margin-top: 0.35rem;
  font-weight: 600;
}

/* Buttons */
button,
input[type="submit"],
input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  border-radius: 0.625rem;
  cursor: pointer;
  background: linear-gradient(180deg, var(--forest), var(--forest-light));
  color: var(--white);
  transition: transform .06s ease, filter .2s ease, opacity .2s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  filter: brightness(1.05);
}

button:active,
input[type="submit"]:active,
input[type="button"]:active {
  transform: translateY(1px);
}

button[disabled],
input[type="submit"][disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Secondary / subtle button style */
.button-secondary {
  background: var(--gray-light);
  color: var(--text-primary);
  border: 1px solid var(--gray-border);
}

/* Select arrow (nice on WebKit/Blink) */
select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%),
    linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position:
    calc(100% - 20px) calc(1em - 2px),
    calc(100% - 15px) calc(1em - 2px),
    calc(100% - 2.5rem) 0.5em;
  background-size: 5px 5px, 5px 5px, 0 0;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

/* Textarea sizing */
textarea {
  resize: vertical;
  min-height: 120px;
}

/* Make the search bar grid breathe a bit on larger screens */
#searchForm {
  grid-template-columns: 1.2fr 0.9fr 0.9fr auto;
  align-items: center;
}

/* Business form grid */
#businessForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Full-width rows in business form */
#businessForm textarea {
  grid-column: 1 / -1;
}

/* Spacing between fields */
#businessForm > * {
  margin: 0; /* rely on grid gap */
}

/* Mobile tweaks */
@media (max-width: 900px) {
  #searchForm { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  #searchForm { grid-template-columns: 1fr; }
  #businessForm { grid-template-columns: 1fr; }
  button, input[type="submit"], input[type="button"] { width: 100%; }
}
