/* ==========================================================================
   Hill Country Insurance Services
   Colours and typography taken from the existing gotyourinsurance.com site
   and sampled directly from the agency logo.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  /* sampled from the logo */
  --navy:        #000968;
  --navy-deep:   #02005a;
  --navy-soft:   #1b2a6b;
  --gold:        #ab8a55;
  --gold-dark:   #8f7143;
  --gold-light:  #c9ad7d;

  --ink:         #222222;
  --body:        #4a4a4a;
  --muted:       #767676;
  --line:        #e0e0e0;
  --bg:          #ffffff;
  --bg-alt:      #f6f6f6;

  --head:        'Roboto', Arial, Helvetica, sans-serif;
  --text:        'Nunito', Arial, Helvetica, sans-serif;

  --radius:      3px;
  --shadow:      0 1px 6px rgba(0,0,0,.10);
  --shadow-lg:   0 4px 18px rgba(0,0,0,.14);
  --wrap:        1170px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--head);
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--head);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 .5em;
  font-weight: 400;
}

/* the old site sets major headings in navy caps */
h1, h2 { text-transform: uppercase; letter-spacing: .01em; font-weight: 500; }
h1 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
h2 { font-size: clamp(1.15rem, 2vw, 1.55rem); }
h3 { font-family: var(--text); font-size: 1.25rem; font-weight: 500; text-transform: none; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 44px 0; }

.lede { font-size: 1rem; max-width: 74ch; line-height: 1.75; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

.section-head { margin-bottom: 40px; }
.eyebrow {
  display: inline-block;
  font-family: var(--head);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--head);
  padding: 13px 30px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: .92rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--gold); color: #fff; }
.btn--primary:hover { background: var(--gold-dark); color: #fff; }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); color: #fff; }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

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

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line);
}
/* Homepage: header floats over the hero image, like the current site */
body.home .site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,.75);
  border-bottom: 0;
}
body.home { padding-top: 0; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 148px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand { display: block; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { height: 118px; width: auto; }

.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.callus {
  font-family: var(--head);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 300;
  color: var(--navy);
  letter-spacing: .01em;
  white-space: nowrap;
}
.callus:hover { text-decoration: none; color: var(--navy-deep); }

.nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.nav-list > li { position: relative; }

.nav-list > li > a {
  display: block;
  padding: 8px 13px;
  font-family: var(--head);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li > a[aria-current="page"] { color: var(--gold-dark); text-decoration: none; }

.has-drop > a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}

.drop {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .16s ease;
}
.has-drop:hover .drop, .has-drop:focus-within .drop {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.drop a {
  display: block;
  padding: 9px 12px;
  font-size: .88rem;
  color: var(--body);
}
.drop a:hover { background: var(--bg-alt); color: var(--navy); text-decoration: none; }

.paynow-link { padding: 4px 10px !important; display: flex; align-items: center; }
.paynow-link img { height: 32px; width: auto; transition: opacity .18s ease; }
.paynow-link:hover img { opacity: .85; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 13px;
  cursor: pointer;
  font-size: 1.15rem;
  color: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-deep);
  overflow: hidden;
  text-align: center;
  padding: 195px 0 120px;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 66s infinite;
}
.hero-slide:nth-child(1) { animation-delay:  0s; }
.hero-slide:nth-child(2) { animation-delay: 11s; }
.hero-slide:nth-child(3) { animation-delay: 22s; }
.hero-slide:nth-child(4) { animation-delay: 33s; }
.hero-slide:nth-child(5) { animation-delay: 44s; }
.hero-slide:nth-child(6) { animation-delay: 55s; }

@keyframes heroFade {
   0%    { opacity: 0; }
   2.5%  { opacity: 1; }   /* ~1.6s crossfade */
  15%    { opacity: 1; }   /* ~8s hold */
  17.5%  { opacity: 0; }
 100%    { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; }
  .hero-slide:nth-child(1) { opacity: 1; }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.28);
  z-index: 1;
}
.hero .wrap { position: relative; z-index: 2; }

.hero-panel {
  display: inline-block;
  background: rgba(0,0,0,.75);
  border-radius: 25px;
  padding: 26px 46px;
  max-width: 560px;
}
.hero-panel h1 {
  color: #fff;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  letter-spacing: .02em;
  margin-bottom: .6em;
}
.hero-panel p { color: #e8e8e8; font-size: 1rem; margin-bottom: 1.2em; }

.hero--sub {
  min-height: 0;
  padding: 54px 0;
  text-align: left;
}
.hero--sub h1 { color: #fff; margin-bottom: .3em; }
.hero--sub p { color: #dbe0ee; max-width: 62ch; }

.crumbs { font-size: .84rem; color: #b9c0d6; margin-bottom: 12px; }
.crumbs a { color: #dbe0ee; }
.crumbs span { opacity: .55; margin: 0 7px; }

/* ---------- Service badge bar ---------- */
.servicebar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;          /* sit above the hero overlay so badges aren't clipped */
}
.servicebar .wrap { padding: 0 24px; }
.servicebar ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.servicebar li { border-right: 1px solid var(--line); }
.servicebar li:last-child { border-right: 0; }
.servicebar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 10px 26px;
  text-align: center;
}
.servicebar a:hover { text-decoration: none; background: #fafafa; }
.badge {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background .18s ease;
  margin-top: -50px;
  border: 5px solid #fff;
}
.servicebar a:hover .badge { background: var(--gold); }
.badge svg { width: 32px; height: 32px; }
.servicebar .label {
  font-family: var(--head);
  font-size: .84rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy);
}
/* keep the glyph white regardless of sibling label rules */
.servicebar .badge { color: #fff; }
.servicebar .badge svg { stroke: #fff; }

/* ---------- Photo band (matches the current site's photo sections) ---------- */
.photoband {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.photoband::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,.62);
}
.photoband .wrap { position: relative; z-index: 2; }
.photoband h2, .photoband .eyebrow { color: #fff; }
.photoband .eyebrow { color: var(--gold-light); }
.photoband .card {
  background: rgba(255,255,255,.96);
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: all .18s ease;
}
.card:hover { box-shadow: var(--shadow-lg); border-color: #cfcfcf; }
.card h3 { margin-bottom: 8px; color: var(--navy); }
.card p { font-size: .95rem; }
.card .more {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--head);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.card .more::after { content: " \203A"; font-size: 1.15em; }

.icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.icon svg { width: 24px; height: 24px; }

/* ---------- Value props (gold line icons, like the old site) ---------- */
.value { text-align: center; padding: 8px; }
.value .icon {
  margin: 0 auto 16px;
  background: none;
  color: var(--gold);
  width: 62px; height: 62px;
}
.value .icon svg { width: 46px; height: 46px; stroke-width: 1.4; }
.value h3 { font-size: 1rem; color: var(--navy); }
.value p { font-size: .93rem; }

/* ---------- Testimonials ---------- */
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 26px;
}
.quote p { font-style: italic; color: var(--ink); }
.quote footer { margin-top: 14px; font-size: .88rem; color: var(--muted); font-style: normal; }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }

/* ---------- CTA band ---------- */
.band { background: var(--navy); color: #fff; padding: 52px 0; }
.band h2 { color: #fff; }
.band p { color: #ccd2e6; }
.band .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: 1.35fr .85fr; gap: 42px; align-items: start; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-family: var(--head);
  font-size: .84rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}
.field .req { color: #b3261e; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .8rem; }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #c4c4c4;
  border-radius: var(--radius);
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 116px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0,0,100,.10);
}

.fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: 8px 0 0; }
.fieldset legend {
  font-family: var(--head);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  padding: 0;
  margin-bottom: 13px;
}

.check {
  grid-column: 1 / -1;
  display: flex; gap: 11px; align-items: flex-start;
  font-size: .86rem; color: var(--body); line-height: 1.5;
}
.check input { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; }

.form-actions { grid-column: 1 / -1; margin-top: 8px; }
.form-note { font-size: .83rem; color: var(--muted); margin-top: 13px; }

/* ---------- Sidebar ---------- */
.side { display: flex; flex-direction: column; gap: 20px; }
.side-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.side-card h3 { font-size: 1.02rem; color: var(--navy); }
.side-card--navy { background: var(--navy); border-color: var(--navy); }
.side-card--navy h3 { color: #fff; }
.side-card--navy p { color: #ccd2e6; }
.side-card .phone {
  display: block;
  font-family: var(--head);
  font-size: 1.5rem;
  font-weight: 300;
  color: #fff;
  margin: 6px 0 4px;
}
.side-card .phone:hover { text-decoration: none; }

.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { border-bottom: 1px solid var(--line); }
.linklist li:last-child { border-bottom: 0; }
.linklist a { display: block; padding: 11px 0; font-size: .93rem; }

/* ---------- Prose / tables ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: .5em; }

.info-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.info-table th, .info-table td {
  text-align: left; padding: 12px 0;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.info-table th { width: 40%; color: var(--navy); font-weight: 600; }

/* ---------- Quick form ---------- */
.quick-form {
  background: #fff;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-lg);
}
.quick-form h3 { font-size: 1.2rem; margin-bottom: 6px; color: var(--navy); }
.quick-form > p { font-size: .92rem; margin-bottom: 20px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quick-grid .form-note { margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #b6bdd4;
  padding: 54px 0 0;
  font-size: .92rem;
}
.site-footer h4 {
  font-family: var(--head);
  color: #fff;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer a { color: #d5daea; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 42px;
}
.footer-brand strong { display: block; color: #fff; font-size: 1.08rem; margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.13);
  padding: 20px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: #949cb6;
}

/* ---------- Sticky mobile call bar ---------- */
.callbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-header .wrap { flex-wrap: wrap; min-height: 0; padding-top: 14px; padding-bottom: 10px; }
  .nav-list > li > a { padding: 8px 9px; font-size: .76rem; }
}

@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .form-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .servicebar ul { grid-template-columns: repeat(3, 1fr); }
  .servicebar li:nth-child(3) { border-right: 0; }
  .badge { margin-top: 0; }
  .servicebar a { padding: 22px 10px; }
}

/* Fix: between 761px and 899px the nav wraps onto its own row and the header
   grows to ~243px, covering the top of the hero panel. Stop overlaying there too. */
@media (max-width: 899px) {
  body.home .site-header { position: static; background: #fff; border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .section { padding: 46px 0; }
  .hero { min-height: 0; padding: 56px 0 70px; }
  .hero-panel { padding: 24px 22px; }

  /* Fix: header should not overlay hero on mobile */
  body.home .site-header { position: static; background: #fff; border-bottom: 1px solid var(--line); }

  .brand img { height: 74px; }
  .callus { font-size: 1.1rem; }
  .paynow-link { padding: 4px 10px !important; display: flex; align-items: center; }
.paynow-link img { height: 32px; width: auto; transition: opacity .18s ease; }
.paynow-link:hover img { opacity: .85; }

.nav-toggle { display: block; }
  .nav {
    display: none;
    width: 100%;
    order: 3;
    border-top: 1px solid var(--line);
    margin-top: 10px;
    padding-top: 8px;
  }
  .site-header.open .nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list > li > a { padding: 12px 2px; border-bottom: 1px solid var(--line); }
  .has-drop > a::after { float: right; margin-top: 8px; }
  .drop {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    margin: 4px 0 8px 8px; padding: 0 0 0 8px; min-width: 0;
  }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .servicebar ul { grid-template-columns: repeat(2, 1fr); }
  .servicebar li { border-bottom: 1px solid var(--line); }
  .servicebar li:nth-child(2n) { border-right: 0; }
  .form-grid, .quick-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .band .wrap { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }

  .callbar {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    box-shadow: 0 -2px 14px rgba(0,0,0,.2);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    padding: 15px 10px;
    font-family: var(--head);
    font-weight: 500; font-size: .95rem; letter-spacing: .04em;
    text-transform: uppercase;
    background: var(--gold); color: #fff;
  }
  .callbar a:hover { text-decoration: none; }
  .callbar svg { width: 19px; height: 19px; }
  .callbar-alt { background: var(--navy) !important; }
  .site-footer { padding-bottom: 74px; }
}

@media print {
  .site-header, .band, .site-footer, .callbar, .servicebar { display: none; }
}
