/* Bome Home Insurance Group - global styles */

:root {
  --navy: #0a1f44;
  --navy-dark: #060f26;
  --navy-light: #1a3a6b;
  --gold: #c9a961;
  --gold-soft: #e3c98a;
  --gold-dark: #a88a3e;
  --rust: #b04e2e;
  --cream: #f7f3ec;
  --cream-soft: #faf7f1;
  --bg: #f7f3ec;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --border: #e5dfd3;
  --shadow-sm: 0 1px 2px rgba(10, 31, 68, 0.05);
  --shadow: 0 4px 16px rgba(10, 31, 68, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 31, 68, 0.12);
  --radius: 10px;
  --radius-lg: 20px;
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--rust);
}

/* Visible keyboard-focus indicator (shown only for keyboard navigation) */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.coverage-option input:focus-visible + .coverage-mark {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip-to-content link — hidden until focused by keyboard */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1.25rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

main:focus {
  outline: none;
}

h1, h2 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.025em;
}

h3, h4 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 em, h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--rust);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; color: var(--text-muted); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}

.logo img {
  height: 96px;
  width: auto;
}

@media (max-width: 480px) {
  .logo img { height: 68px; }
  .footer-logo { height: 68px; }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
  color: var(--navy);
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a:not(.btn) {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav a:not(.btn):hover, .nav a.active:not(.btn) {
  color: var(--navy);
}

.nav a.active:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  border: 1.5px solid transparent;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--rust);
  color: #ffffff;
  border-color: var(--rust);
}

.btn-secondary {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--rust);
  color: var(--cream);
  border-color: var(--rust);
}

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

.btn-outline:hover {
  background: var(--rust);
  color: #ffffff;
  border-color: var(--rust);
}

/* Pill-shaped buttons (matches quote page nav style) */
.btn-pill {
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
}

/* Centered button group (used in CTA banners and post-submit page) */
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

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

@media (max-width: 880px) {
  .mobile-call-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background: var(--navy);
    color: #fff;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.95rem 1rem;
    text-decoration: none;
    border-top: 2px solid var(--gold);
    box-shadow: 0 -4px 16px rgba(10, 31, 68, 0.18);
  }

  .mobile-call-bar:active {
    background: var(--rust);
    color: #fff;
  }

  /* Keep the fixed bar from covering page content / footer */
  body {
    padding-bottom: 60px;
  }
}

/* ---------- Eyebrow label ---------- */
.eyebrow-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--rust);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--rust);
}

/* Centered eyebrow variant (for page-hero/cta-banner) */
.eyebrow-center {
  justify-content: center;
  margin: 0 auto 1.25rem;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--cream);
  color: var(--text);
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 32rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 25px 60px -20px rgba(10, 31, 68, 0.18), 0 0 0 1px rgba(10, 31, 68, 0.04);
  color: var(--text);
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--gold), transparent 40%, transparent 60%, var(--gold));
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.4;
}

.hero-card h3 {
  margin-bottom: 1rem;
  color: var(--navy);
}

.hero-card ul {
  list-style: none;
  padding: 0;
}

.hero-card li {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text);
}

.hero-card li::before {
  content: '✓';
  color: var(--rust);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--surface);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-header p {
  font-size: 1.1rem;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--rust));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px -20px rgba(10, 31, 68, 0.18);
  border-color: var(--gold);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-icon {
  width: 56px;
  height: 56px;
  background: var(--cream-soft);
  color: var(--navy);
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
}

.product-card h3 { margin-bottom: 0.5rem; }

.product-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--rust);
  font-weight: 600;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.product-card .learn-more::after {
  content: '→';
  transition: transform 0.2s ease;
}

.product-card:hover .learn-more::after {
  transform: translateX(4px);
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--navy);
  color: var(--cream);
  padding: 3.5rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
  text-align: center;
}

.trust-item .num {
  font-family: 'Lora', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.trust-item .label {
  color: rgba(247, 243, 236, 0.75);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

/* ---------- Inner page hero ---------- */
.page-hero {
  background: var(--cream-soft);
  color: var(--text);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero .container { position: relative; }

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.coverage-list {
  list-style: none;
  padding: 0;
}

.coverage-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.coverage-list li:last-child { border-bottom: none; }

.coverage-list .check {
  color: var(--gold-dark);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.coverage-list strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.info-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--gold-dark);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-body {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
}

/* ---------- Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}

.form {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}

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

.form button[type="submit"] {
  width: 100%;
  margin-top: 0.5rem;
}

.contact-info {
  background: var(--navy);
  color: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
}

.contact-info h3 { color: var(--surface); margin-bottom: 1.5rem; }

.contact-info .info-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info .info-row:last-child { margin-bottom: 0; }

.contact-info .info-icon {
  width: 40px;
  height: 40px;
  background: rgba(201, 169, 97, 0.2);
  color: var(--gold);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-info .info-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 0.15rem;
}

.contact-info .info-value {
  color: var(--surface);
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-info .info-value a {
  color: var(--surface);
}

.contact-info .info-value a:hover {
  color: var(--gold);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--cream-soft);
  color: var(--text);
  padding: 4.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.13) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner .container { position: relative; }

.cta-banner h2 { color: var(--navy); margin-bottom: 0.75rem; }
.cta-banner p { color: var(--text-muted); margin-bottom: 1.75rem; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-grid h4 {
  color: var(--surface);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
}

.footer-grid li {
  padding: 0.35rem 0;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-grid a:hover { color: var(--gold); }

.footer-brand p { color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; }

.footer-logo {
  height: 96px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Bio cards ---------- */
.bio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.bio-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 1px solid var(--border);
}

.bio-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    padding: 1rem 1.5rem;
    gap: 0;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: none; }

  .hero { padding: 3rem 0 4rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form { padding: 1.75rem; }
  .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}
