/* Integrity Insurance Solutions — built by CJ Built Designs */
:root {
  --maroon: #7A2331;
  --maroon-dark: #5C1A25;
  --wine: #3A1218;
  --wine-deep: #24080D;
  --gold: #C79A3F;
  --gold-soft: #EFD9B4;
  --cream: #FAF6EF;
  --white: #FFFFFF;
  --ink: #232323;
  --body: #514E48;
  --muted: #6A675F;
  --line: #ECE3D2;
  --radius: 12px;
  --shadow: 0 16px 40px rgba(58, 18, 24, 0.14);
  --display: 'Fraunces', Georgia, serif;
  --sans: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--cream);
  padding-bottom: 72px; /* room for mobile call bar */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); }
a:hover { color: var(--maroon-dark); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9A7424; margin-bottom: .6rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 24px; border-radius: 8px;
  font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--maroon); color: var(--white); }
.btn-primary:hover { background: var(--maroon-dark); color: var(--white); }
.btn-outline { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-outline:hover { background: var(--maroon); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--wine); }
.btn-gold:hover { background: #B58830; color: var(--wine); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .btn-row .btn { flex: 1 1 100%; } }

/* Top bar */
.topbar { background: var(--wine); color: var(--gold-soft); font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; }
.topbar a { color: var(--gold-soft); font-weight: 600; text-decoration: none; }
@media (max-width: 599px) { .topbar .loc { display: none; } .topbar .wrap { justify-content: center; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand svg { flex-shrink: 0; width: 44px; height: 44px; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.1rem; line-height: 1.25; }
.brand-tag { display: block; margin-top: 3px; font-family: var(--sans); font-size: .66rem; font-weight: 700; letter-spacing: .14em; color: var(--maroon); }
@media (min-width: 600px) { .brand-name { font-size: 1.3rem; } .brand svg { width: 48px; height: 48px; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08);
}
.site-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 20px; }
.site-nav li a {
  display: block; padding: 14px 4px; font-weight: 500; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.site-nav li a[aria-current="page"] { color: var(--maroon); font-weight: 700; }
.site-nav .nav-cta { margin-top: 16px; }
.site-nav .nav-cta a { border: 0; }

@media (min-width: 1140px) {
  .nav-toggle { display: none; }
  .mobile-only { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; box-shadow: none; border: 0; }
  .site-nav ul { display: flex; align-items: center; gap: 22px; padding: 0; }
  .site-nav li a { border: 0; padding: 8px 0; font-size: .95rem; }
  .site-nav li a:hover { color: var(--maroon); }
  .site-nav .nav-cta { margin: 0; }
  .site-nav .nav-cta a { padding: 10px 18px; min-height: 44px; font-size: .92rem; }
}

/* Hero */
.hero { padding: clamp(40px, 8vw, 88px) 0; }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero p.lead { font-size: 1.1rem; max-width: 34em; }
.hero-img { border-radius: 14px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.page-hero { background: var(--wine); color: var(--gold-soft); padding: clamp(40px, 7vw, 72px) 0; }
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.page-hero p { font-size: 1.1rem; max-width: 40em; margin: 0; }
.page-hero .eyebrow { color: var(--gold); }

/* Trust strip */
.trust { background: var(--maroon); color: var(--gold-soft); }
.trust .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 26px; text-align: center; }
@media (min-width: 700px) { .trust .wrap { grid-template-columns: repeat(4, 1fr); } }
.trust strong { display: block; font-family: var(--display); font-size: 1.7rem; color: var(--white); line-height: 1.1; }
.trust span { font-size: .85rem; }

/* Sections */
.section { padding: clamp(52px, 9vw, 96px) 0; }
.section.white { background: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }

.about { display: grid; gap: 32px; align-items: center; }
@media (min-width: 800px) { .about { grid-template-columns: 340px 1fr; gap: 56px; } }
.about img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-width: 380px; aspect-ratio: 4/5; object-fit: cover; object-position: top; margin: 0 auto; }

/* Cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid.two, .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
.card p { font-size: .98rem; color: var(--muted); margin: 0; }
.card .more { margin-top: auto; padding-top: 6px; font-weight: 600; text-decoration: none; }
.card-link { text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card-link:hover { border-color: var(--gold); box-shadow: 0 10px 28px rgba(122,35,49,.08); transform: translateY(-2px); }
.card.feature { background: var(--maroon); border-color: var(--maroon); color: var(--gold-soft); justify-content: center; }
.card.feature h3 { color: var(--white); }
.card.feature p { color: var(--gold-soft); }
.card.feature .more { color: var(--white); }
.icon { width: 40px; height: 40px; color: var(--maroon); }

.quote { background: var(--cream); border-radius: var(--radius); padding: 28px; margin: 0; }
.section:not(.white) .quote { background: var(--white); }
.quote p { font-style: italic; color: #3A3733; }
.quote cite { font-style: normal; font-weight: 700; color: var(--maroon); display: block; }
.quote .verified { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.quote .verified svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Content pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; margin-bottom: .35em; color: var(--maroon); font-family: var(--sans); font-weight: 700; font-size: 1.1rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.content-grid { display: grid; gap: 40px; }
@media (min-width: 980px) { .content-grid { grid-template-columns: 1fr 320px; gap: 64px; align-items: start; } }
.aside {
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px;
}
@media (min-width: 980px) { .aside { position: sticky; top: 96px; } }
.aside h2 { font-size: 1.35rem; }
.aside .btn { width: 100%; margin-top: 10px; }
.notice { background: #FFF8EA; border: 1px solid #EBD6A8; border-radius: 10px; padding: 16px 18px; font-size: .92rem; }
.notice-band { background: var(--white); padding: 20px 0 0; }
.notice-band .notice { margin: 0; font-size: .95rem; color: var(--ink); }

/* Offices */
.office h3 { margin-bottom: .3em; }
.office address { font-style: normal; color: var(--muted); margin-bottom: 8px; }
.office a { font-weight: 600; }
.map { width: 100%; aspect-ratio: 16/10; border: 0; border-radius: 10px; margin-top: 14px; background: var(--line); }

/* CTA band */
.cta-band { background: var(--wine); color: var(--gold-soft); padding: clamp(44px, 8vw, 72px) 0; }
.cta-band .wrap { display: grid; gap: 22px; align-items: center; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: var(--white); margin-bottom: .2em; }
.cta-band p { margin: 0; }
.cta-band .btn-outline { border-color: var(--gold-soft); color: var(--gold-soft); }
.cta-band .btn-outline:hover { background: var(--gold-soft); color: var(--wine); }

/* Form */
.form { display: grid; gap: 18px; }
@media (min-width: 640px) { .form .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; /* 16px stops iOS zoom */
  color: var(--ink); background: var(--white); border: 1.5px solid #D9CFBC; border-radius: 8px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--maroon); outline: none; box-shadow: 0 0 0 3px rgba(122,35,49,.15); }
.fine { font-size: .85rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--wine-deep); color: #C2A888; font-size: .92rem; padding: 52px 0 28px; }
.site-footer a { color: #D9C4A3; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand { font-family: var(--display); font-size: 1.2rem; color: var(--white); }
.social-row { display: flex; gap: 10px; margin-top: 4px; }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  color: #D9C4A3; transition: background .15s, color .15s;
}
.social-row a:hover { background: var(--gold); color: var(--wine); }
.social-row svg { width: 18px; height: 18px; }
.disclaimer { border-top: 1px solid #3A1218; margin-top: 36px; padding-top: 20px; font-size: .85rem; line-height: 1.65; color: #D2BC9D; }
.credit { font-size: .78rem; color: #8C7259; margin-top: 10px; }

/* Mobile call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0,0,0,.06);
}
.callbar .btn { min-height: 48px; padding: 10px; font-size: .95rem; }
@media (min-width: 900px) { .callbar { display: none; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Nav CTA button keeps button styling inside the menu */
.site-nav .nav-cta a.btn { display: flex; justify-content: center; color: var(--white); font-weight: 600; }
.site-nav .nav-cta a.btn:hover { color: var(--white); }

/* Spacing inside paired form fields on phones */
.form .two-col { display: grid; gap: 18px; }
@media (min-width: 640px) { .form .two-col { grid-template-columns: 1fr 1fr; } }

/* Desktop nav stays on one line */
@media (min-width: 1140px) {
  .brand-name, .site-nav li a { white-space: nowrap; }
  .site-nav ul { gap: 20px; }
  .hero .wrap { grid-template-columns: 1.15fr 1fr; }
}
