/* ===== David Walker Insurance LLC — Baseball Themed Site ===== */

:root {
  --navy: #0f2748;
  --navy-dark: #081527;
  --red: #c8102e;
  --red-dark: #9e0c23;
  --cream: #f6f1e2;
  --white: #ffffff;
  --gray-700: #3c4551;
  --gray-500: #6b7280;
  --gray-100: #eef0f2;
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 10px 30px rgba(15, 39, 72, 0.12);
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--gray-500);
  max-width: 620px;
  margin: 0 auto 48px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.35);
}
.btn-primary:hover { background: var(--red-dark); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-small { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; margin-top: 12px; }

.btn-call {
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  font-size: 0.9rem;
}
.btn-call:hover { background: var(--navy-dark); }
.icon { width: 16px; height: 16px; fill: currentColor; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.logo-text {
  font-family: var(--font-head);
  color: var(--navy);
  font-size: 1.05rem;
}
.logo-text strong { display: block; font-size: 0.8rem; color: var(--red); letter-spacing: 0.04em; }

.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { font-weight: 600; color: var(--gray-700); font-size: 0.95rem; }
.main-nav a:hover { color: var(--red); }

.header-call { margin-left: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: radial-gradient(circle at 20% 20%, #16345e 0%, var(--navy) 45%, var(--navy-dark) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 100px 0 90px;
}
.hero-stitch-bg {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(255,255,255,0.5) 18px 20px),
    repeating-linear-gradient(-45deg, transparent 0 18px, rgba(255,255,255,0.5) 18px 20px);
  mask-image: radial-gradient(circle at 80% 20%, black, transparent 60%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-inner { text-align: left; }
.hero-badge { display: flex; justify-content: center; }
.hero-badge-img {
  width: 100%;
  max-width: 320px;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-sub { color: #d7deea; font-size: 1.1rem; margin-bottom: 0; }

/* ===== Home run banner ===== */
.banner {
  background: var(--red);
  color: var(--white);
  padding: 22px 0;
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
}
.going-gone {
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ===== Services ===== */
.services { padding: 90px 0; background: var(--cream); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red);
  transition: transform 0.15s ease;
}
.card:hover { transform: translateY(-4px); }
.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { color: var(--gray-500); font-size: 0.95rem; }

/* ===== About ===== */
.about { padding: 90px 0; }
.about-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text p { margin-bottom: 16px; color: var(--gray-700); }
.about-stats {
  display: flex;
  gap: 36px;
  margin-top: 28px;
  list-style: none;
}
.about-stats li { display: flex; flex-direction: column; }
.about-stats strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--red); }
.about-stats span { font-size: 0.85rem; color: var(--gray-500); }

.about-badge { display: flex; justify-content: center; }
.about-photo { position: relative; width: 260px; }
.about-photo-img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
  border: 4px solid var(--white);
  outline: 3px dashed var(--red);
  outline-offset: 6px;
  box-shadow: var(--shadow);
}
.baseball-badge {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px dashed var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.baseball-badge span { font-size: 0.85rem; letter-spacing: 0.1em; color: var(--gray-500); }
.baseball-badge strong { font-family: var(--font-head); font-size: 2.6rem; color: var(--navy); }

.baseball-badge-small {
  position: absolute;
  bottom: -14px;
  right: -22px;
  width: 92px;
  height: 92px;
}
.baseball-badge-small span { font-size: 0.55rem; }
.baseball-badge-small strong { font-size: 1.25rem; }

/* ===== Partners ===== */
.partners { padding: 90px 0; background: var(--gray-100); }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 50px;
}
.partner-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
  box-shadow: var(--shadow);
}
.partner-logo-link { display: inline-block; margin-bottom: 16px; }
.partner-logo { height: 80px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto; }
.partner-caption { color: var(--gray-500); font-size: 0.9rem; }

/* ===== Contact ===== */
.contact { background: var(--navy); padding: 90px 0; }
.contact-inner { display: flex; justify-content: center; }
.contact-icon { font-size: 1.3rem; }
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 440px;
}
.contact-card h3 { margin-bottom: 10px; }
.contact-card p { color: var(--gray-500); margin-bottom: 20px; font-size: 0.95rem; }

.contact-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 18px;
  color: var(--gray-500);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-divider::before, .contact-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-100);
}

.hidden-field { position: absolute; left: -9999px; }

.contact-form { display: flex; flex-direction: column; gap: 4px; }
.contact-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 10px;
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  background: var(--cream);
  color: var(--gray-700);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
}
.contact-form button { margin-top: 16px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: #9fb0c8; padding: 34px 0 26px; text-align: center; font-size: 0.85rem; }
.footer-inner p { margin: 4px 0; }
.footer-contact {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-contact li { display: flex; align-items: center; gap: 8px; color: #c9d4e4; font-size: 0.9rem; }
.footer-contact a { color: #c9d4e4; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact a:hover { color: var(--white); }
.footer-contact .contact-icon { font-size: 1rem; }

/* ===== Inactivity popup ===== */
.inactivity-popup {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  width: 260px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red);
  padding: 22px 20px 20px;
  display: none;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.inactivity-popup.is-visible {
  display: block;
  transform: translateY(0);
  opacity: 1;
}
.inactivity-text { font-weight: 600; color: var(--navy); margin-bottom: 14px; }
.inactivity-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--gray-500);
  cursor: pointer;
  line-height: 1;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .about-inner, .hero-grid { grid-template-columns: 1fr; }
  .about-badge { order: -1; }
  .hero-inner { text-align: center; }
  .hero-badge-img { max-width: 220px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    display: none;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .header-call span { display: none; }
  .logo-text { display: none; }
}
