/* Andrew Jewell Insurance Agency — site styles
   Palette: logo navy + Farmers-inspired blue/red accents.
   Jewell Insurance logo only. No Farmers marks. */

:root {
  --navy: #102840;
  --navy-deep: #0a1b2c;
  --navy-mid: #1a3a5c;
  --blue: #1e4e8c;
  --blue-bright: #2459a4;
  --red: #c8102e;
  --red-dark: #9e0d24;
  --cream: #f6f3ee;
  --cream-dark: #ece6db;
  --white: #ffffff;
  --ink: #1a2330;
  --muted: #4a5360;
  --line: #8b929c;
  --shadow: 0 10px 30px rgba(16, 40, 64, 0.08);
  --radius: 14px;
  --max: 1120px;
  --focus: #c8102e;
  --focus-on-dark: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Calibri, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--red-dark); }
h1, h2, h3 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 200;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}
.skip:focus, .skip:focus-visible {
  top: 12px;
  outline: 3px solid var(--focus-on-dark);
  outline-offset: 3px;
}

/* Visible focus for all interactive elements (WCAG 2.4.7) */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.topbar {
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0 55%, var(--blue) 55% 78%, var(--red) 78% 100%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #c5c9d0;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}
.logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.logo-link img {
  height: 56px;
  width: auto;
}

/* Mobile menu toggle: hidden on desktop; visually hidden checkbox stays focusable on small screens */
.nav-toggle,
.nav-toggle-label {
  display: none;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.2rem 1.15rem;
}
nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0;
}
nav a:hover { color: var(--red-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-red {
  background: var(--red);
  color: #fff !important;
  border-color: var(--red);
}
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-navy {
  background: var(--navy);
  color: #fff !important;
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--blue); border-color: var(--blue); }
.btn-outline {
  background: transparent;
  color: #fff !important;
  border-color: #ffffff;
}
.btn-outline:hover { background: #fff; color: var(--navy) !important; }
.btn-outline-navy {
  background: #fff;
  color: var(--navy) !important;
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: #fff !important; }

.hero :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible,
.btn-red:focus-visible,
.btn-outline:focus-visible {
  outline-color: var(--focus-on-dark);
}
.site-header :focus-visible,
.btn-outline-navy:focus-visible,
.services :focus-visible,
.locations :focus-visible,
#about :focus-visible,
#awards :focus-visible,
#team :focus-visible {
  outline-color: var(--focus);
}

/* Hero */
.hero {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-decor {
  position: absolute;
  right: -40px;
  top: 10%;
  width: 280px;
  height: 360px;
  background:
    linear-gradient(135deg, transparent 48%, rgba(200,16,46,0.22) 48% 52%, transparent 52%),
    linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.06) 48% 52%, transparent 52%);
  background-size: 40px 40px;
  pointer-events: none;
  clip-path: polygon(50% 4%, 94% 18%, 94% 58%, 50% 96%, 6% 58%, 6% 18%);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.2rem 1.25rem 4.5rem;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0c9cf;
  margin-bottom: 0.85rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  font-weight: 600;
  max-width: 16ch;
  margin-bottom: 0.55rem;
}
.hero .lede {
  font-size: 1.2rem;
  max-width: 44rem;
  color: #e2e5e8;
  margin-bottom: 1.6rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  font-size: 0.95rem;
  color: #d3d8dc;
}
.hero-meta a { color: #fff; text-decoration: underline; font-weight: 600; text-underline-offset: 2px; }
.hero-meta a:hover { color: #ffd4da; }

/* Sections */
.section {
  padding: 4.25rem 1.25rem;
}
.wrap { max-width: var(--max); margin: 0 auto; }
.section-head {
  margin-bottom: 2rem;
  max-width: 42rem;
}
.section-head .rule {
  width: 3rem;
  height: 3px;
  background: var(--red);
  margin: 0 0 1rem;
  border: 0;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); margin-bottom: 0.4rem; }
.section-head p { color: var(--muted); margin: 0; }

/* Services */
.services { background: var(--cream); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--navy);
}
.card:hover { border-top-color: var(--red); }
.card .icon {
  width: 38px;
  height: 38px;
  margin-bottom: 0.75rem;
  color: var(--blue);
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}
.about-copy p:last-child { margin-bottom: 0; }
.about-aside {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  border-left: 4px solid var(--red);
}
.about-aside h3 { font-size: 1.15rem; }
.about-aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-aside li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--cream-dark);
  color: var(--ink);
}
.about-aside li:last-child { border-bottom: 0; }

/* Awards */
.awards { background: var(--cream); }
.award-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.award-badge {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--red);
  color: var(--navy);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}
.award-kicker {
  display: block;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-dark);
  margin-bottom: 0.35rem;
}

/* Team */
.team-lead {
  border: 2px solid var(--navy);
  max-width: 240px;
  margin-bottom: 2rem;
}
.team-lead h3 {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--navy);
}
.team-lead > p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--red-dark);
}
.team-groups {
  display: grid;
  gap: 2rem;
}
.team-group h3 {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin: 0 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--navy);
}
.team-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.team-card {
  background: #fff;
  border: 1px solid #c5c9d0;
  border-radius: var(--radius);
  padding: 1.15rem 0.9rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}
.team-name {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Locations */
.locations { background: var(--cream); }
.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.loc-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.loc-card h3 { margin-bottom: 0.15rem; }
.loc-card .city-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-dark);
  margin-bottom: 0.35rem;
}
.loc-card address { font-style: normal; margin: 0 0 0.75rem; }
.hours {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #eef0f3;
}
.hours .closed { color: var(--muted); }
.lunch-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: -0.4rem 0 1rem;
}

/* Contact */
.contact {
  background: var(--navy);
  color: #fff;
}
.contact .section-head h2 { color: #fff; }
.contact .section-head p { color: #cfd4d8; }
.contact .rule { background: var(--red); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.contact a { color: #fff; }
.contact a:hover { color: #ffd4da; }
.contact-list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.contact-list li { margin: 0 0 0.85rem; }
.contact-list span {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0c9cf;
  margin-bottom: 0.15rem;
}
.contact-list a, .contact-list .val {
  font-size: 1.15rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.quote-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
}
.quote-box h3 { color: #fff; font-size: 1.25rem; }
.quote-box p { color: #d3d8dc; }
.quote-box .btn { margin-top: 0.3rem; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #dadcdf;
  padding: 2.2rem 1.25rem 2.5rem;
  font-size: 0.9rem;
  line-height: 1.55;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.footer-brand img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 0.5px #fff);
}
.footer-brand p { margin: 0; color: #fff; font-weight: 650; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.35);
  padding-top: 1rem;
  max-width: 58rem;
}
.footer-legal p:last-child { margin-bottom: 0; }

@media (max-width: 800px) {
  .logo-link img { height: 48px; }
  .nav-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    /* remain in the accessibility tree and tab order */
  }
  .nav-toggle-label {
    display: flex;
    width: 44px;
    height: 44px;
    border: 2px solid var(--navy);
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: #fff;
    flex: 0 0 auto;
  }
  .nav-toggle-label .bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--navy);
  }
  .nav-toggle:focus + .nav-toggle-label,
  .nav-toggle:focus-visible + .nav-toggle-label {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
  }
  nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid #c5c9d0;
    padding: 0.5rem 1.25rem 1rem;
  }
  nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  nav li { width: 100%; }
  nav a { display: block; padding: 0.7rem 0; }
  nav .btn { width: 100%; margin-top: 0.4rem; }
  .nav-toggle:checked ~ nav { display: block; }
  .about-grid, .loc-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-decor { display: none; }
  .hero-inner { padding: 2.6rem 1.25rem 3rem; }
  .section { padding: 3rem 1.25rem; }
  .hours li { flex-direction: column; gap: 0.15rem; }
  .team-lead { max-width: none; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
