/* Bristlecone Insurance Group — shared stylesheet */

:root {
  --pine-900: #1c2b21;
  --pine-800: #24382b;
  --pine-700: #2f4538;
  --pine-600: #3c5a48;
  --gold-500: #c89b3c;
  --gold-600: #a97f2e;
  --cream-50: #f7f5ef;
  --cream-100: #efeadd;
  --stone-800: #2b2b28;
  --stone-600: #55524a;
  --stone-500: #6b675f;
  --stone-300: #cfc9ba;
  --white: #ffffff;
  --danger: #8a2f22;
  --max-width: 1160px;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(28, 43, 33, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--stone-800);
  background: var(--cream-50);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--pine-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--pine-700); }

img { max-width: 100%; }

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

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold-500);
  color: var(--pine-900);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream-50);
  border-bottom: 1px solid var(--stone-300);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #4F6F5A;
}

.brand svg { display: block; }

.brand-logo {
  display: block;
  height: 58px;
  width: auto;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-tree {
  display: block;
  height: 110px;
  width: auto;
  margin-bottom: 10px;
}

.footer-wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--gold-500);
  line-height: 1;
  letter-spacing: 0.02em;
}

.footer-companyname {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--cream-50);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
  border-top: 1px solid rgba(200, 155, 60, 0.4);
  padding-top: 6px;
  display: inline-block;
}

.footer-tagline {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gold-500);
  margin-top: 4px;
}

.brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.03em;
}

.brand-name small {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--gold-600);
  text-transform: uppercase;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--stone-800);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--gold-600);
}

.header-cta {
  display: inline-block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-login-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pine-700);
  text-decoration: none;
  white-space: nowrap;
}
.header-login-link:hover { color: var(--gold-600); }

/* Shown only inside the collapsed mobile nav — the desktop/wide-viewport
   Producer Login link lives in .header-actions instead, to avoid showing
   it twice at once. */
.nav-mobile-only { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--stone-300);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--pine-900);
}
.btn-primary:hover { background: var(--gold-600); }

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

.btn-outline-light {
  background: transparent;
  border-color: var(--cream-100);
  color: var(--cream-50);
}
.btn-outline-light:hover { background: var(--cream-50); color: var(--pine-900); }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--pine-900), var(--pine-700) 70%);
  color: var(--cream-50);
  padding: 88px 0 96px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--gold-500);
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 { color: var(--white); }

.hero .lede {
  font-size: 1.15rem;
  color: var(--cream-100);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.stat-card {
  background: rgba(247, 245, 239, 0.06);
  border: 1px solid rgba(247, 245, 239, 0.18);
  border-radius: var(--radius);
  padding: 22px;
}

.stat-card .stat-num {
  font-family: "Fraunces", serif;
  font-size: 2.1rem;
  color: var(--gold-500);
  display: block;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--cream-100);
}

/* Sections */
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head .eyebrow { display: block; text-align: center; }

.bg-alt { background: var(--cream-100); }
.bg-pine {
  background: var(--pine-900);
  color: var(--cream-100);
}
.bg-pine h2, .bg-pine h3 { color: var(--white); }

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

.card {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--pine-900);
  color: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-family: "Fraunces", serif;
  font-weight: 700;
}

.card h3 { margin-bottom: 8px; }
.card p { color: var(--stone-600); margin-bottom: 0; }

/* Placeholder callouts — visible markers for content that must be replaced before launch */
.placeholder {
  background: #fbf1de;
  border: 1px dashed var(--gold-600);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--stone-600);
}
.placeholder strong { color: var(--gold-600); }

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.logo-slot {
  width: 150px;
  height: 64px;
  border: 1px dashed var(--stone-300);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--stone-500);
  text-align: center;
  padding: 6px;
}

/* Timeline / steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 20px;
}
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--pine-900);
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }

label { font-weight: 600; font-size: 0.9rem; }
label .req { color: var(--danger); }

input, select, textarea {
  font: inherit;
  padding: 11px 12px;
  border: 1px solid var(--stone-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--stone-800);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold-500);
  outline-offset: 1px;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.checkbox-field input { margin-top: 4px; }
.checkbox-field label { font-weight: 400; font-size: 0.85rem; }

.form-note {
  font-size: 0.8rem;
  color: var(--stone-500);
  margin-top: 6px;
}

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
}
.form-status[data-state="success"] { color: var(--pine-700); }
.form-status[data-state="error"] { color: var(--danger); }

/* Quote / person block */
.person-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.person-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--pine-800);
  color: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-size: 2.4rem;
  font-weight: 700;
}

/* Larger leadership portrait layout (vertical image beside bio) */
.person-card-large {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.person-portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--pine-800);
  color: var(--cream-100);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
}
.person-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Table (compliance page) */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--stone-300);
  font-size: 0.92rem;
}
th { color: var(--pine-900); }

.disclosure-block {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
}
.disclosure-block h3 { margin-bottom: 10px; }
.disclosure-block p, .disclosure-block li { color: var(--stone-600); font-size: 0.95rem; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--pine-800), var(--pine-700));
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: var(--cream-100); max-width: 56ch; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer {
  background: var(--pine-900);
  color: var(--stone-300);
  padding: 56px 0 28px;
  margin-top: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.site-footer h4 {
  color: var(--cream-50);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--stone-300); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--gold-500); }
.site-footer .brand-name { color: var(--cream-50); }
.site-footer .brand-name small { color: var(--gold-500); }

.footer-legal {
  border-top: 1px solid rgba(247, 245, 239, 0.12);
  padding-top: 24px;
  font-size: 0.78rem;
  color: var(--stone-500);
  line-height: 1.7;
}
.footer-legal p { margin-bottom: 10px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--stone-500);
  margin-top: 16px;
}

/* Brand-verb pillar blocks (Think BIG / Plan BIG / Grow BIG) */
.verb-card {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.verb-card .verb {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gold-600);
  display: block;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.verb-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.verb-card p { color: var(--stone-600); margin-bottom: 0; }

/* Bristlecone story / full-width feature section */
.story-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.story-tree-img {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.story-section blockquote {
  margin: 20px 0;
  padding-left: 18px;
  border-left: 3px solid var(--gold-500);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--cream-50);
}

/* Resources articles */
.article-block {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.article-block h2 { margin-bottom: 6px; }
.article-block .article-kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-600);
  margin-bottom: 10px;
}
.article-block h3 { margin-top: 1.4em; }
.article-block p, .article-block li { color: var(--stone-600); }

/* Coming-soon tag for Resources placeholders */
.tag-soon {
  display: inline-block;
  background: rgba(200, 155, 60, 0.15);
  color: var(--gold-600);
  border: 1px solid var(--gold-500);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

/* Sub-navigation tabs for anchor-sectioned pages (Solutions, Products) */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.subnav a {
  text-decoration: none;
  background: var(--cream-100);
  color: var(--pine-800);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
}
.subnav a:hover { background: var(--gold-500); color: var(--pine-900); }

/* Auth pages (login / reset password) */
.auth-section {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  padding: 56px 0;
}
.auth-wrap {
  max-width: 420px;
  margin: 0 auto;
}
.auth-wrap .brand {
  justify-content: center;
  margin-bottom: 28px;
}
.auth-wrap h1 {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 8px;
}
.auth-wrap .auth-sub {
  text-align: center;
  color: var(--stone-600);
  margin-bottom: 28px;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 0.88rem;
}
.auth-alert {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.88rem;
  margin-bottom: 18px;
  display: none;
}
.auth-alert[data-state="error"] {
  display: block;
  background: #fbeae7;
  border: 1px solid var(--danger);
  color: var(--danger);
}
.auth-alert[data-state="success"] {
  display: block;
  background: #eaf1ec;
  border: 1px solid var(--pine-600);
  color: var(--pine-700);
}
.btn-block { width: 100%; text-align: center; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* Portal dashboard */
.portal-topbar {
  background: var(--pine-900);
  color: var(--cream-100);
  padding: 14px 0;
}
.portal-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.portal-user {
  font-size: 0.88rem;
  color: var(--cream-100);
}
.portal-user strong { color: var(--white); }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dashboard-card {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dashboard-card .icon { margin-bottom: 4px; }
.dashboard-card h3 { margin-bottom: 0; }
.dashboard-card p { color: var(--stone-600); font-size: 0.92rem; margin-bottom: 4px; }
.dashboard-card .tag-soon { align-self: flex-start; }
.dashboard-card a.card-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}

/* Utility */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }

/* Responsive */
@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .person-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .person-card-large { grid-template-columns: 1fr; text-align: center; }
  .person-card-large .person-portrait { max-width: 260px; margin: 0 auto; }
  .story-section { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1150px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-50);
    border-bottom: 1px solid var(--stone-300);
    padding: 16px 24px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 16px; }
  .header-actions { display: none; }
  .nav-mobile-only { display: list-item; }
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .portal-topbar .container { flex-direction: column; align-items: flex-start; }
}
