/* =============================================================
   Central Oregon Insurance — high-desert / outdoors theme
   ============================================================= */

:root {
  /* Palette */
  --pine:        #1d3c34;
  --pine-dark:   #12271f;
  --sage:        #7a9b76;
  --sage-soft:   #e5ede0;
  --sand:        #e7d8bd;
  --sand-soft:   #f3ead8;
  --ochre:       #c9763d;
  --ochre-dark:  #ad5f2c;
  --sky:         #5b8aa6;
  --cream:       #faf6ee;
  --paper:       #ffffff;
  --ink:         #232b28;
  --muted:       #5f6b66;
  --line:        #e4ddcf;

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1160px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(18, 39, 31, .06), 0 2px 6px rgba(18, 39, 31, .06);
  --shadow-md: 0 8px 24px rgba(18, 39, 31, .10);
  --shadow-lg: 0 20px 50px rgba(18, 39, 31, .18);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--pine); text-decoration: none; }
a:hover { color: var(--ochre); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--pine-dark); line-height: 1.12; font-weight: 600; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; font-size: .78rem;
  color: var(--ochre); margin-bottom: .8rem;
}
.lead { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }
.center .lead { margin-inline: auto; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.center.section-head { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--ochre); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--ochre-dark); color: #fff; }
.btn--solid { background: var(--pine); color: #fff; }
.btn--solid:hover { background: var(--pine-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn--ghost:hover { background: var(--pine); color: #fff; }
.btn--light { background: #fff; color: var(--pine-dark); }
.btn--light:hover { background: var(--cream); color: var(--pine-dark); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: #fff; color: var(--pine-dark); border-color: #fff; }
.btn--lg { font-size: 1.05rem; padding: 1em 1.8em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 238, .9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand:hover { color: inherit; }
.brand__mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--pine-dark); }
.brand__tag { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ochre); font-weight: 700; }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__links a {
  font-weight: 500; color: var(--ink); padding: .5em .85em; border-radius: 8px;
  font-size: .98rem; transition: background .15s ease, color .15s ease;
}
.nav__links a:hover { background: var(--sage-soft); color: var(--pine-dark); }
.nav__links a.is-active { color: var(--pine-dark); }
.nav__links a.is-active::after {
  content: ""; display: block; height: 2px; border-radius: 2px;
  background: var(--ochre); margin-top: 3px;
}
.nav__cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav__phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--pine-dark); }
.nav__phone svg { width: 18px; height: 18px; color: var(--ochre); }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--pine-dark);
}
.nav__toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__art svg, .hero__art img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(18,39,31,.72) 0%, rgba(18,39,31,.45) 45%, rgba(18,39,31,.15) 100%); }
.hero__inner { position: relative; z-index: 2; padding: clamp(72px, 12vw, 150px) 0 clamp(90px, 12vw, 160px); }
.hero__content { max-width: 640px; }
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(10, 22, 17, .35); }
.hero__sub { font-size: 1.25rem; color: rgba(255,255,255,.92); margin-bottom: 1.8rem; max-width: 52ch; text-shadow: 0 1px 12px rgba(10,22,17,.3); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 1.4rem;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  padding: .45em 1em; border-radius: 999px; font-size: .85rem; font-weight: 600;
  letter-spacing: .04em; backdrop-filter: blur(4px);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ochre); }

/* ---------- Trust bar ---------- */
.trust { background: var(--pine-dark); color: #fff; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 30px 0; }
.trust__item { text-align: center; padding: 6px 10px; }
.trust__num { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: #fff; }
.trust__label { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.72); }

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

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sage-soft); color: var(--pine); margin-bottom: 18px;
}
.card__icon svg { width: 30px; height: 30px; }

/* Service card with link */
.service { display: flex; flex-direction: column; }
.service .card__icon { background: linear-gradient(140deg, var(--sage-soft), var(--sand-soft)); }
.service__more { margin-top: 16px; font-weight: 600; color: var(--ochre); display: inline-flex; align-items: center; gap: 6px; }
.service:hover .service__more { gap: 10px; }
.service__more svg { width: 16px; height: 16px; transition: transform .15s ease; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.split__media svg, .split__media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.checklist { list-style: none; display: grid; gap: 12px; margin: 22px 0 28px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.checklist svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--sage); margin-top: 2px; }

/* ---------- Locations ---------- */
.loc-card { display: flex; flex-direction: column; gap: 4px; position: relative; }
.loc-card .badge {
  position: absolute; top: 22px; right: 22px; background: var(--ochre); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .3em .7em; border-radius: 999px;
}
.loc-card h3 { display: flex; align-items: center; gap: 8px; }
.loc-card h3 svg { width: 20px; height: 20px; color: var(--ochre); }
.loc-card address { font-style: normal; color: var(--muted); margin: 4px 0 14px; }
.loc-card .loc-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: auto; padding-top: 8px; }
.loc-card .loc-links a { font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; }
.loc-card .loc-links svg { width: 16px; height: 16px; }
.loc-map { margin-top: 16px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.loc-map iframe { display: block; width: 100%; filter: saturate(1.05); }

/* ---------- Carriers (Companies we represent) — scrolling marquee ---------- */
.carriers-marquee {
  overflow: hidden; padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.carriers-track {
  display: flex; align-items: center; width: max-content;
  animation: carriers-scroll 38s linear infinite;
}
.carriers-track:hover { animation-play-state: paused; }
.carriers-track img {
  height: 52px; width: auto; margin: 0 46px; flex: 0 0 auto; display: block;
  -webkit-user-drag: none; user-select: none;
}
@keyframes carriers-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .carriers-marquee { overflow-x: auto; }
  .carriers-track { animation: none; }
}

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--pine); color: #fff; }
.cta-band__art { position: absolute; inset: 0; opacity: .5; z-index: 0; }
.cta-band__art svg, .cta-band__art img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
details.faq-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 22px; box-shadow: var(--shadow-sm);
}
details.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 1.08rem;
  color: var(--pine-dark); display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-display);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+"; font-size: 1.5rem; color: var(--ochre); font-family: var(--font-body);
  line-height: 1; transition: transform .2s ease; flex-shrink: 0;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--pine-dark); }
.field .req { color: var(--ochre); }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .8em .95em; border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream);
  transition: border-color .15s ease, box-shadow .15s ease; resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(122,155,118,.25); background: #fff;
}
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.form-status { margin-top: 14px; padding: 12px 16px; border-radius: 12px; font-weight: 500; display: none; }
.form-status.is-ok { display: block; background: var(--sage-soft); color: var(--pine-dark); border: 1px solid var(--sage); }
.form-status.is-err { display: block; background: #fbe9e2; color: #9a3b16; border: 1px solid #e6b59f; }

.info-card { background: var(--pine); color: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 36px); }
.info-card h3 { color: #fff; }
.info-block { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.info-block:last-child { border-bottom: 0; }
.info-block h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 6px; color: var(--sand); }
.info-block a { color: #fff; }
.info-block a:hover { color: var(--sand); }
.info-block p, .info-block address { margin: 0; color: rgba(255,255,255,.9); font-style: normal; }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; color: #fff; overflow: hidden; background: var(--pine-dark); }
.page-hero__art { position: absolute; inset: 0; z-index: 0; opacity: .6; }
.page-hero__art svg, .page-hero__art img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .container { position: relative; z-index: 1; padding: clamp(56px, 9vw, 110px) 24px clamp(48px, 7vw, 88px); }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 60ch; font-size: 1.15rem; margin: 0; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; letter-spacing: .02em; }
.breadcrumb a { color: rgba(255,255,255,.9); }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine-dark); color: rgba(255,255,255,.78); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 16px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 32ch; font-size: .95rem; }
.footer-contact { list-style: none; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--sand); flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.6);
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.footer-logo .brand__mark { width: 40px; height: 40px; }

/* ---------- Wave / divider ---------- */
.wave { display: block; width: 100%; height: auto; }
.bg-sand { background: var(--sand-soft); }
.bg-sage { background: var(--sage-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 760px) {
  .nav__links, .nav__phone { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px; box-shadow: var(--shadow-md);
  }
  .nav.is-open .nav__links a { padding: .8em .6em; font-size: 1.05rem; }
  .nav.is-open .nav__links a.is-active::after { display: none; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  body { font-size: 16px; }
}

@media (max-width: 420px) {
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
}

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