:root {
  --primary-color: #2c5282;
  --secondary-color: #2b6cb0;
  --accent-color: #4299e1;
  --text-color: #2d3748;
  --light-bg: #f7fafc;
}

* {
  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-color);
}

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

/* Header */
header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  padding: 1rem 0;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.contact-info .phone {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

/* Hero Section */
.hero {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Buttons */
.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: bold;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: var(--secondary-color);
}

/* Counties Grid */
.counties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.county-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.3s;
}

.county-card:hover {
  transform: translateY(-4px);
  background-color:  #ba3434;
  color: white;
}

#contact {
  background-color: #25283a;
}

#valuation-title {
  color: white;
  align-items: center;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
}

.submit-button {
  width: 100%;
  padding: 1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: var(--secondary-color);
}

#arb-header {
  max-height: 60px;
}

/* Footer */
footer {
  background-color: var(--light-bg);
  padding-top: 4em;
}

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

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-color);
  text-decoration: none;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

/* Form Row for City/State/Zip */
.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.thank-you-message {
  text-align: center;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin: 2rem auto;
  max-width: 600px;
}

.thank-you-message h2 {
  color: #28a745;
  margin-bottom: 1rem;
}

.thank-you-message p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.thank-you-message a {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

.thank-you-message a:hover {
  text-decoration: underline;
}

/* Hero Section Styles */
.hero {
  position: relative;
  color: white;
  padding: 80px 20px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #25283a;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  mix-blend-mode: overlay;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.hero h1 span {
  display: block;
  color: #60a5fa;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
}

.button-primary {
  background-color: #3b82f6;
  color: white;
}

.button-primary:hover {
  background-color: #2563eb;
}

.button-secondary {
  border: 1px solid white;
  color: white;
}

.button-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 60px;
}

.feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 15px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .form-row {
      grid-template-columns: 1fr;
      gap: 1rem;
  }
  
  .form-row .form-group {
      margin-bottom: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .counties-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}