/* The Franklin Insurance Agency LLC — Lehi, Utah
   Theme: Wasatch Front / Utah Lake basin */

:root {
  --ink: #16211f;
  --ink-soft: #43514f;
  --paper: #eff1ef;
  --paper-warm: #e6e9e5;
  --lake: #2f5560;
  --lake-deep: #1e3b45;
  --sedge: #6f7a4f;
  --reed: #b0a37c;
  --stone: #7c858c;
  --line: rgba(22, 33, 31, 0.14);
  --line-strong: rgba(22, 33, 31, 0.28);
  --white: #fbfbfa;

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 68rem;
  --measure: 40rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Addresses never render italic anywhere on the site. The browser default
   for <address> is italic, so this is stated on the element and again on
   every context where an address appears. */
address,
address * {
  font-style: normal;
  margin: 0;
}

a {
  color: var(--lake-deep);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--lake);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3.6vw, 2rem);
}

h3 {
  font-size: 1.13rem;
  font-family: var(--f-body);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.35;
}

p {
  margin: 0 0 1.1em;
  max-width: var(--measure);
}

ul {
  max-width: var(--measure);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.7rem 1rem;
  z-index: 20;
}

.skip:focus {
  left: 0;
}

/* ---------- Contact details: one consistent treatment ---------- */
/* Phone, email and address all render as plain body text — no italics,
   no underlines, no borders. Underline appears only on hover/focus. */

.contact-link {
  color: inherit;
  text-decoration: none;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: inherit;
  text-decoration: underline;
}

/* ---------- Masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.5rem;
  padding-block: 1.1rem;
}

.wordmark {
  font-family: var(--f-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}

.wordmark span {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--stone);
  margin-top: 0.25rem;
}

.masthead-contact {
  margin-left: auto;
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

/* ---------- Hero ---------- */
/* No negative z-index and no isolation here: the photo and veil are simply
   positioned children painted under a relatively-positioned copy block. */

.hero {
  position: relative;
  overflow: hidden;
  background: #2b3a40;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  min-height: clamp(250px, 34vh, 340px);
}

.hero-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

.hero-veil {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(11, 22, 26, 0.9) 0%,
    rgba(11, 22, 26, 0.66) 42%,
    rgba(11, 22, 26, 0.3) 78%,
    rgba(11, 22, 26, 0.2) 100%
  );
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: 2rem 1.9rem;
  color: #f4f6f5;
}

.hero-copy h1 {
  max-width: 21ch;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  color: #ffffff;
  text-wrap: balance;
  margin-bottom: 0.4em;
}

.hero-place {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  color: #bccac7;
  margin: 0 0 0.8rem;
}

.lede {
  font-size: 1.06rem;
  color: #dee6e4;
  max-width: 50ch;
  margin-bottom: 0;
}

/* ---------- Sections ---------- */

.section {
  padding-block: 3rem;
  border-bottom: 1px solid var(--line);
}

.section-lead {
  max-width: var(--measure);
}

/* ---------- Coverage cards ---------- */

.coverage-section {
  background: var(--paper-warm);
}

.coverage {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  max-width: none;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.coverage li {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--lake);
  padding: 1.5rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
}

.coverage .mark {
  width: 29px;
  height: 29px;
  color: var(--lake);
  margin-bottom: 1.05rem;
}

.coverage h3 {
  margin-bottom: 0.45rem;
  font-size: 1.16rem;
}

.coverage p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 40ch;
}

.about-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.detail-list {
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
}

.detail-list div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.detail-list .k {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--stone);
  text-transform: uppercase;
}

.detail-list .v,
.detail-list .v address {
  margin: 0;
  font-size: 0.98rem;
  font-style: normal;
  font-family: var(--f-body);
  color: var(--ink);
}

/* ---------- Form ---------- */

.form-section {
  background: var(--paper);
}

.form-shell {
  background: var(--white);
  border: 1px solid var(--line-strong);
  padding: clamp(1.25rem, 4vw, 2.1rem);
  max-width: 42rem;
  margin-top: 1.6rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.req {
  color: var(--lake-deep);
}

.optional {
  color: var(--stone);
  letter-spacing: 0;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0.7rem 0.75rem;
  line-height: 1.4;
}

textarea {
  min-height: 6.5rem;
  resize: vertical;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: -0.3rem 0 1.35rem;
  padding: 0.95rem 1rem;
  background: var(--paper);
  border-left: 3px solid var(--lake);
}

.consent input[type="checkbox"] {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.22rem 0 0;
  accent-color: var(--lake-deep);
}

.consent label {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
}

.consent label a {
  color: var(--lake-deep);
}

.hp {
  position: absolute !important;
  left: -9999px !important;
}

.btn {
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--lake-deep);
  border: 1px solid var(--lake-deep);
  border-radius: 0;
  padding: 0.8rem 1.6rem;
  cursor: pointer;
}

.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.form-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 1rem 0 0;
  max-width: 48ch;
}

/* ---------- Legal pages ---------- */

.page-head {
  padding-block: 2.6rem 1.4rem;
  border-bottom: 1px solid var(--line);
}

.page-head p {
  color: var(--ink-soft);
  margin: 0;
}

.updated {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--stone);
}

.legal {
  padding-block: 2.4rem 3rem;
  max-width: 44rem;
}

.legal h2 {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 1.32rem;
}

.legal h2:first-of-type {
  margin-top: 1rem;
}

.legal h3 {
  margin-top: 1.6rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal .back {
  display: inline-block;
  margin-top: 2.4rem;
  font-size: 0.95rem;
}

.callout {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--sedge);
  padding: 1.1rem 1.25rem;
  margin: 1.2rem 0 1.6rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #cdd4d1;
  padding-block: 2.6rem 2.2rem;
  font-size: 0.93rem;
}

.site-footer a {
  color: var(--white);
}

.footer-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: 1fr;
}

.site-footer h2 {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8d9a96;
  margin-bottom: 0.7rem;
}

.site-footer p,
.site-footer address {
  margin: 0 0 0.5rem;
  font-style: normal;
  max-width: 34ch;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.colophon {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #8d9a96;
  font-size: 0.85rem;
}

.colophon p {
  max-width: 60ch;
  margin-bottom: 0.4rem;
}

/* ---------- Wider screens ---------- */

@media (min-width: 40rem) {
  .coverage {
    grid-template-columns: 1fr 1fr;
  }

  .detail-list div {
    grid-template-columns: 9rem 1fr;
    gap: 1rem;
    align-items: baseline;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (min-width: 58rem) {
  .about-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 3.5rem;
  }

  .coverage {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .hero-copy {
    padding-block: 4rem 3.2rem;
  }
}

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