/* David VanDyke Insurance - Landing Page Styles */

/* ===== CSS Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

a {
  color: #1a5f7a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  line-height: 1.3;
  color: #1a3a4a;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }

img {
  max-width: 100%;
  height: auto;
}

/* ===== Site Header & Navigation ===== */
.site-header {
  background: #1a3a4a;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.site-nav a:hover {
  text-decoration: none;
  border-bottom-color: #4da6c4;
}

/* ===== Main Content ===== */
.site-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-main section {
  padding: 4rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.site-main section:last-child {
  border-bottom: none;
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 3rem 0;
}

.hero-copy {
  margin-bottom: 2.5rem;
}

.hero-copy h1 {
  margin-bottom: 1rem;
  color: #1a3a4a;
}

.hero-copy p {
  font-size: 1.125rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.primary-cta {
  text-align: center;
}

a.primary-cta {
  display: inline-block;
  background: #1a5f7a;
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 6px;
  font-size: 1.125rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

a.primary-cta:hover {
  background: #145267;
  text-decoration: none;
  transform: translateY(-2px);
}

.cta-subtext {
  margin-top: 0.75rem;
  color: #666;
  font-size: 0.95rem;
}

.cta-variant-toggle {
  display: flex;
  gap: 0.5rem;
}

.cta-variant-toggle button {
  background: #e8f4f8;
  border: 1px solid #c5dce4;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  color: #1a5f7a;
  transition: background 0.2s;
}

.cta-variant-toggle button:hover {
  background: #d5eaf1;
}

.secondary-cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1rem;
}

.secondary-cta a {
  color: #1a5f7a;
}

/* ===== Services Section ===== */
.services-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.services-list li {
  background: #f7fafb;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  border-left: 4px solid #1a5f7a;
  font-weight: 500;
  color: #1a3a4a;
}

/* ===== About Section ===== */
.about-david,
.about-shield {
  margin-bottom: 3rem;
}

.about-david:last-child,
.about-shield:last-child {
  margin-bottom: 0;
}

.about-david-headshot {
  float: right;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 0 1.5rem 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-david p,
.about-shield p {
  margin-bottom: 1rem;
  color: #444;
}

.about-david p:last-child,
.about-shield p:last-child {
  margin-bottom: 0;
}

/* ===== Testimonials Section ===== */
.testimonial {
  background: #f7fafb;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #4da6c4;
}

.testimonial:last-child {
  margin-bottom: 0;
}

.testimonial h3 {
  color: #1a3a4a;
  margin-bottom: 0.5rem;
}

.testimonial p {
  margin-bottom: 0.5rem;
  color: #444;
}

.testimonial-reply {
  font-style: italic;
  color: #666;
  font-size: 0.9rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
}

/* ===== FAQ Section ===== */
.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.faq-item h3 {
  color: #1a3a4a;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: #444;
}

/* ===== Contact Section ===== */
.contact-form {
  max-width: 500px;
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
  color: #1a3a4a;
  margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: #1a5f7a;
  box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.15);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.state-helper {
  font-size: 0.875rem;
  color: #666;
}

.submit-btn {
  background: #1a5f7a;
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.submit-btn:hover {
  background: #145267;
  transform: translateY(-2px);
}

#contact-confirmation {
  text-align: center;
  margin-bottom: 2rem;
}

#contact-confirmation p {
  background: #d4edda;
  color: #155724;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  border: 1px solid #c3e6cb;
}

.direct-contact {
  text-align: center;
  color: #555;
}

.direct-contact p {
  margin-bottom: 0.5rem;
}

/* ===== Footer ===== */
#footer {
  background: #1a3a4a;
  color: #ccc;
  padding: 2rem;
  text-align: center;
}

.footer-legal {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-legal a {
  color: #9fc5d8;
}

.footer-legal a:hover {
  color: #fff;
}

.footer-legal p {
  width: 100%;
  margin-top: 0.5rem;
}

.footer-coverage {
  font-size: 0.875rem;
  color: #9fb8c4;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }

  .site-nav {
    gap: 1rem;
  }

  .site-main section {
    padding: 3rem 0;
  }

  .about-david-headshot {
    float: none;
    display: block;
    margin: 0 auto 1.5rem;
  }

  .services-list {
    grid-template-columns: 1fr;
  }

  .cta-variant-toggle {
    flex-direction: column;
  }
}
