/* Clovis Insurance Agency: site stylesheet. Custom-coded by Untamed Web Design, mockup, September 2026. */

/* Concept: "Under the arch". Their own sign is a blue arch rising out of a blue base into red barn boards, the name set inside the arch.
   The page is built from that sign: the header is the barn board, the hero's blue arch rises into a Clovis main street and carries
   the headline where the sign carries their name, and a second arch closes the page at the office door, rising into a barn-red rim.
   Proof is the one paper object every customer keeps in the glovebox: the insurance ID card, with "Insured since" as its date field.
   Type: Zilla Slab (a slab with the weight of their sign lettering and of the stamped type on a policy) + Cabin (humanist sans with
   the warmth of small-town signage, open enough for coverage terms on a phone). Colours by eye from logo/logo.png and the hero street. */
:root {
  --barn: #B3261E;        /* barn-board red of the logo, deepened so white reads 6.4:1 */
  --barn-seam: #7E1A14;   /* the gaps between the boards */
  --arch: #1F3F8F;        /* the logo's arch blue: white text 9.7:1 */
  --arch-deep: #152D69;   /* arch in shadow: menu panel */
  --rim: #C3D0EA;         /* the pale blue of the spaced AGENCY letters, lifted for small text on blue (6.2:1) */
  --ink: #14213D;         /* blue-biased ink, never a mid grey */
  --ink-soft: #3D4A66;    /* secondary text on paper (8.2:1) */
  --paper: #F3F5F9;       /* policy paper, cool */
  --line: #C9D3E6;        /* card edge */
  --sunset: #F2B33D;      /* golden hour on the hero street: the call button and the focus ring on blue */
  --white: #FFFFFF;

  --display: "Zilla Slab", Rockwell, "Roboto Slab", "Courier New", Georgia, serif;
  --body: "Cabin", "Gill Sans", "Gill Sans MT", "Trebuchet MS", system-ui, sans-serif;

  --fs-hero: clamp(2.5rem, 1.55rem + 3.6vw, 4.5rem);   /* 40 px phone, 72 px desktop */
  --fs-h2: clamp(2rem, 1.55rem + 1.6vw, 2.75rem);      /* 32 to 44 */
  --fs-h3: clamp(1.375rem, 1.25rem + .5vw, 1.625rem);
  --fs-body: clamp(1.0625rem, 1rem + .2vw, 1.1875rem); /* 17 to 19 */
  --fs-small: .9375rem;

  --gutter: 16px;
  --max: 1240px;
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2));
  --header: 60px;
  --dome: clamp(40px, 6.5vw, 96px);
  --space: clamp(72px, 9vw, 136px);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 20px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.005em;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--arch); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--arch); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--sunset); }
.site-header :focus-visible { outline-color: var(--white); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  padding: 12px 18px; background: var(--white); color: var(--ink); font-weight: 700;
}
.skip:focus { top: 8px; }

/* Header: the barn boards of their sign */
.site-header {
  position: sticky; top: 0; z-index: 40;
  color: var(--white);
  background-color: var(--barn);
  background-image:
    repeating-linear-gradient(90deg, transparent 0 37px, rgba(126, 26, 20, .55) 37px 39px, rgba(255, 255, 255, .06) 39px 40px),
    linear-gradient(rgba(255, 255, 255, .06), rgba(0, 0, 0, .1));
  border-bottom: 3px solid var(--white);
}
.bar {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  min-height: var(--header);
  width: min(100% - 2 * var(--gutter), 1400px);
  margin-inline: auto;
}
.brand { display: block; flex: none; margin-right: auto; }
.brand img { height: 44px; width: auto; border: 2px solid var(--white); }

.menu-btn {
  display: none; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 12px;
  border: 2px solid rgba(255, 255, 255, .8); background: transparent; color: var(--white);
  font: 600 1rem/1 var(--body); cursor: pointer;
}
.js .menu-btn { display: inline-flex; }
.menu-btn__icon { position: relative; width: 18px; height: 12px; border-block: 2px solid currentColor; }
.menu-btn__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.menu-btn[aria-expanded="true"] { background: var(--arch-deep); }

.call-top {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  background: var(--white); color: var(--barn);
  font-weight: 700; text-decoration: none; white-space: nowrap;
}
.call-top svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.call-top__num { display: none; }
@media (min-width: 540px) { .call-top__num { display: inline; } }
@media (max-width: 379.98px) {
  .bar { gap: 6px; }
  .brand img { height: 36px; }
  .menu-btn { padding: 0 9px; }
  .call-top { padding: 0 10px; }
}

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--white); text-decoration: none; font-weight: 600; }
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] {
  text-decoration: underline; text-decoration-color: var(--sunset);
  text-decoration-thickness: 3px; text-underline-offset: .35em;
}

@media (max-width: 1239.98px) {
  /* Without JavaScript the nav is a plain list on its own row */
  .nav { order: 4; flex-basis: 100%; padding-bottom: 10px; }
  .nav ul { display: flex; flex-wrap: wrap; gap: 0 18px; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; }
  /* With JavaScript it is a panel under the bar */
  .js .nav {
    display: none;
    position: absolute; top: calc(100% + 3px);
    left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
    padding: 8px var(--gutter) 20px;
    background: var(--arch-deep);
    box-shadow: 0 16px 28px rgba(10, 20, 45, .35);
  }
  .js .nav.is-open { display: block; }
  .js .nav ul { display: block; }
  .js .nav li + li { border-top: 1px solid rgba(195, 208, 234, .3); }
  .js .nav a { display: flex; min-height: 52px; font-size: 1.125rem; }
}
@media (min-width: 1240px) {
  .menu-btn, .js .menu-btn { display: none; }
  .brand { margin-right: 0; }
  .nav { margin-left: auto; }
  .nav ul { display: flex; gap: 2px; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 9px; }
  .call-top { margin-left: 10px; }
}

/* Hero: the blue arch rising into the street */
.hero { position: relative; background: var(--arch); color: var(--white); }
.hero__photo img {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  object-position: 62% 50%;
}
.hero__arch {
  position: relative;
  margin-top: calc(-1 * var(--dome));
  padding: calc(var(--dome) * .75 + 8px) 0 56px;
  background: var(--arch);
  border-radius: 50% 50% 0 0 / var(--dome) var(--dome) 0 0;
  box-shadow: 0 -4px 0 var(--white);
}
.hero__in { display: grid; gap: 20px; }
.hero h1 { font-size: var(--fs-hero); color: var(--white); }
.hero__side { display: grid; gap: 20px; }
.hero__deck { color: var(--white); max-width: 34em; }
.hero__act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero__meta { color: var(--rim); font-size: var(--fs-small); }

.btn-call {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px;
  background: var(--sunset); color: var(--ink);
  font: 700 1.25rem/1 var(--display);
  text-decoration: none;
  border-bottom: 4px solid #B9801A;
}
.btn-call svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-call:hover { background: #F6C55F; }
.on-dark a:not(.btn-call) { color: var(--white); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; overflow-wrap: anywhere; }

@media (min-width: 900px) {
  .hero__photo img {
    aspect-ratio: auto;
    height: clamp(420px, 70vh, 760px);
    object-position: 50% 42%;
  }
  .hero__arch { margin-top: calc(-1 * (var(--dome) + 2rem)); padding-bottom: 72px; }
  .hero__in { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
  .hero h1 { grid-column: 1 / 8; }
  .hero__side { grid-column: 8 / 13; }
}

/* Your side of the desk */
.desk { padding-top: var(--space); }
.desk__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 62% 50%; }
.desk__text { display: grid; gap: 22px; padding-top: 32px; }
.desk__lede { font-size: 1.1875rem; max-width: 34em; }
.asks { margin: 8px 0 0; border-left: 3px solid var(--barn); padding-left: 20px; display: grid; gap: 18px; }
.asks dt { font: 700 1.25rem/1.25 var(--display); }
.asks dd { margin: 4px 0 0; max-width: 34em; }
@media (min-width: 900px) {
  .desk {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(32px, 4vw, 72px);
    align-items: center;
    padding-right: var(--edge);
  }
  .desk__text { width: auto; margin: 0; padding-top: 0; }
}

/* What we cover: shown as places and people */
.lines { padding-top: var(--space); }
.lines__grid { display: grid; gap: 36px; }
.line { display: grid; gap: 12px; align-content: start; }
.line img { width: 100%; object-fit: cover; }
.line h3 a { color: var(--ink); text-decoration-color: var(--barn); text-decoration-thickness: 2px; }
.line h3 a:hover { color: var(--arch); }
.line p { max-width: 32em; }
.line--personal img { aspect-ratio: 4 / 3; object-position: 50% 60%; }
.line--commercial img { aspect-ratio: 4 / 5; object-position: 36% 50%; }
.line--life { margin-top: clamp(48px, 7vw, 112px); }
.line--life .line__text { display: grid; gap: 12px; margin-bottom: 20px; }
.line--life img { aspect-ratio: 4 / 3; object-position: 45% 70%; }
.line img { transition: transform .5s ease; }
@media (min-width: 900px) {
  .lines__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
  .lines h2 { grid-column: 1 / 9; }
  .line--personal { grid-column: 1 / 8; }
  .line--commercial { grid-column: 9 / 13; margin-top: 160px; }
  .line--life img { aspect-ratio: 21 / 8; }
}

/* Insured since: the ID cards */
.since { padding-top: var(--space); }
.since__grid { display: grid; }
.since__head { display: grid; gap: 14px; margin-bottom: 28px; }
.since__head p { max-width: 30em; color: var(--ink-soft); }
.since__photo { margin: 28px 0 8px; }
.since__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 45%; }

.idcard {
  position: relative;
  margin: 0 0 18px;
  max-width: 600px;
  background-color: var(--white);
  background-image:
    repeating-radial-gradient(circle at 104% -12%, transparent 0 9px, rgba(31, 63, 143, .07) 9px 10px),
    repeating-radial-gradient(circle at -6% 112%, transparent 0 13px, rgba(179, 38, 30, .06) 13px 14px);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 30px -22px rgba(20, 33, 61, .55);
  transition: transform .35s ease;
}
.idcard--1994, .idcard--2005, .idcard--2008b { --tilt: -1.1deg; }
.idcard--1999, .idcard--2008a { --tilt: .9deg; margin-left: auto; }
.idcard { transform: rotate(var(--tilt, 0deg)); }
.idcard:hover { transform: rotate(0deg) translateY(-3px); }
.idcard__band {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px;
  padding: 9px 18px;
  background: var(--arch); color: var(--white);
  font-size: .8125rem; font-weight: 600; letter-spacing: .02em;
}
.idcard__band::before { content: "Clovis Insurance Agency, Inc."; }
.idcard__band::after { content: "CA Lic. 0D26852"; color: var(--rim); }
.idcard figcaption {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 28px;
  padding: 16px 76px 0 18px;
}
.idcard__field { display: flex; flex-direction: column; }
.idcard__label { font: italic 500 .9375rem/1.3 var(--display); color: var(--ink-soft); }
.idcard__year {
  font: 700 clamp(2.75rem, 2.1rem + 2.2vw, 3.5rem)/1 var(--display);
  color: var(--arch); font-variant-numeric: lining-nums;
}
.idcard__name { font: 600 1.1875rem/1.3 var(--display); }
.idcard::after { /* the arch seal, where a real card carries its hologram */
  content: ""; position: absolute; right: 18px; top: 56px;
  width: 42px; height: 24px;
  background: var(--arch);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  box-shadow: 0 -3px 0 var(--barn);
}
.idcard blockquote { margin: 0; padding: 12px 18px 22px; }
.idcard blockquote p { font-size: 1.0625rem; line-height: 1.55; }

@media (min-width: 900px) {
  .since__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .since__head { grid-column: 1 / 6; grid-row: 1; margin-bottom: 32px; }
  .since__photo { grid-column: 1 / 6; grid-row: 2 / 7; margin: 0; position: sticky; top: calc(var(--header) + 32px); }
  .since__photo img { aspect-ratio: 4 / 5; object-position: 46% 50%; }
  .idcard { margin: 0 0 -6px; max-width: none; }
  .idcard--1994 { grid-column: 6 / 12; grid-row: 1 / 3; align-self: start; }
  .idcard--1999 { grid-column: 7 / 13; grid-row: 3; }
  .idcard--2005 { grid-column: 6 / 12; grid-row: 4; }
  .idcard--2008a { grid-column: 7 / 13; grid-row: 5; }
  .idcard--2008b { grid-column: 6 / 12; grid-row: 6; }
  .since__grid > .idcard { margin-bottom: 22px; }
}

/* The place */
.place { padding-top: var(--space); }
.place__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; }
.towns {
  list-style: none; margin: 0;
  display: flex; flex-wrap: wrap; gap: 4px 0;
  padding: 18px var(--edge) 22px;
  background: var(--arch); color: var(--white);
  font: 600 clamp(1.25rem, 1.05rem + .9vw, 1.75rem)/1.35 var(--display);
}
.towns li { display: inline-flex; align-items: center; }
.towns li:not(:last-child)::after {
  content: ""; display: inline-block; width: 16px; height: 9px; margin: 0 14px;
  background: var(--rim); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.towns li:last-child { color: var(--rim); font-weight: 500; font-style: italic; }
.place__text { display: grid; gap: 14px; padding-top: 36px; }
.place__text p { max-width: 36em; }
@media (min-width: 900px) {
  .place__photo img { aspect-ratio: 21 / 8; object-position: 50% 32%; }
  .place__text { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding-top: 48px; }
  .place__text > * { grid-column: 1 / 9; }
}

/* Closing arch: the office door */
.visit {
  position: relative;
  margin-top: calc(var(--space) + var(--dome));
  padding: calc(var(--dome) * .75 + 24px) 0 var(--space);
  background: var(--arch); color: var(--white);
  border-radius: 50% 50% 0 0 / var(--dome) var(--dome) 0 0;
  box-shadow: 0 -6px 0 var(--barn);
}
.visit__grid { display: grid; gap: 28px; }
.visit__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 60%; }
.visit__text { display: grid; gap: 18px; align-content: start; justify-items: start; }
.visit__addr { font: 600 1.375rem/1.35 var(--display); }
.visit__list { margin: 6px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.visit__list dt { color: var(--rim); }
.visit__list dd { margin: 0; overflow-wrap: anywhere; }
.visit__history { color: var(--rim); font-size: var(--fs-small); max-width: 32em; }
@media (min-width: 900px) {
  .visit__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .visit__photo { grid-column: 7 / 13; grid-row: 1; }
  .visit__photo img { aspect-ratio: 4 / 3; }
  .visit__text { grid-column: 1 / 6; grid-row: 1; }
}

/* Footer */
.site-footer { background: var(--ink); color: var(--white); padding: 56px 0 28px; font-size: var(--fs-small); }
.foot { display: grid; gap: 32px; }
.foot__id { display: grid; gap: 12px; align-content: start; }
.foot__id img { width: 150px; height: auto; border: 2px solid var(--white); }
.foot__phone { display: inline-flex; align-items: center; min-height: 44px; font: 700 1.25rem/1 var(--display); }
.foot nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.foot nav a { display: inline-flex; align-items: center; min-height: 40px; }
.foot__legal { display: grid; gap: 10px; color: var(--rim); }
.mockup { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(195, 208, 234, .25); color: var(--rim); font-size: .8125rem; }
@media (min-width: 900px) {
  .foot { grid-template-columns: 5fr 3fr 4fr; column-gap: 40px; }
}

/* Stubs */
.hero--stub .hero__photo img { aspect-ratio: 16 / 10; }
@media (min-width: 900px) {
  .hero--stub .hero__photo img { aspect-ratio: auto; height: clamp(320px, 48vh, 520px); }
}

/* Motion, lightly: a card straightens when you point at it; nothing moves under reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .idcard:hover { transform: rotate(var(--tilt, 0deg)); }
}
