/* Allen and Company Insurance — Design 1: Classic, client-revised
   Charcoal top/bottom and agent section, ivory cards, gold buttons. */
:root {
  --ink: #1c2229;
  --ink-light: #485261;
  --cream: #faf7f0;
  --ivory: #fffaf0;
  --paper: #ffffff;
  --gold: #d7b36a;
  --gold-hover: #edcc87;
  --accent: #526981;
  --accent-dark: #354b61;
  --accent-light: #eef3f7;
  --charcoal: #35383b;
  --charcoal-dark: #272a2d;
  --carrier-gray: #dee1de;
  --line: #ddd5c7;
  --max-width: 1190px;
  --shadow: 0 14px 35px rgba(13, 26, 41, .15);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: 'Segoe UI', Arial, sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.17; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 3.65vw, 3.15rem); }
h3 { font-size: 1.2rem; }
.container { width: min(calc(100% - 48px), var(--max-width)); margin: 0 auto; }
.section { padding: 90px 0 100px; }
.skip-link { position: fixed; left: 14px; top: -80px; z-index: 300; background: white; color: black; padding: 12px; }
.skip-link:focus { top: 12px; }
.eyebrow { font-size: .72rem; letter-spacing: .18em; font-weight: 800; color: #7f602d; text-transform: uppercase; margin: 0 0 18px; }
.eyebrow--light { color: #f0d49d; }
.gold-rule { background: var(--gold); width: 75px; height: 3px; margin: 24px 0 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 14px 22px; min-height: 51px; text-decoration: none; border: 2px solid transparent; border-radius: 3px; font-size: .85rem; font-weight: 750; letter-spacing: .015em; text-align: center; transition: background-color .18s, transform .18s; }
.button:hover { transform: translateY(-2px); }
.button--gold { background: var(--gold); border-color: var(--gold); color: #1c1c1c; }
.button--gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.button--large { padding: 17px 24px; font-size: .94rem; }

/* Discreet preview ribbon; it is separate from the client site. */
.preview-banner { min-height: 34px; background: var(--charcoal-dark); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 24px; row-gap: 3px; color: #e8e2d5; font-size: .66rem; letter-spacing: .08em; padding: 7px 18px; text-transform: uppercase; }
.preview-banner a { color: #f2d8a6; font-weight: 700; }

/* Header */
.site-header { position: sticky; top: 0; background: #f4f4f4; z-index: 110; border-bottom: 1px solid var(--line); box-shadow: 0 2px 15px rgba(0,0,0,.05); }
.site-header__inner { display: flex; align-items: center; gap: 26px; min-height: 103px; }
.brand { display: block; flex-shrink: 0; }
.brand img { width: 112px; height: 91px; object-fit: contain; mix-blend-mode: normal; }
.primary-nav { display: flex; flex: 1; gap: clamp(12px, 2vw, 28px); justify-content: center; align-items: center; }
.primary-nav a { white-space: nowrap; text-decoration: none; color: #243042; font-size: .84rem; font-weight: 650; }
.primary-nav a:hover { color: #81602c; }
.header-call { white-space: nowrap; color: #181818; text-decoration: none; background: var(--gold); padding: 11px 16px; font-size: .79rem; font-weight: 750; border-radius: 3px; }
.header-call:hover { background: var(--gold-hover); }

/* Hero */
.hero { overflow: hidden; color: white; background: radial-gradient(circle at 75% 50%, rgba(255,255,255,.085), transparent 27%), linear-gradient(122deg, var(--charcoal-dark) 5%, var(--charcoal) 65%, #45494c 100%); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px,.72fr); align-items: center; gap: 9%; padding-top: 105px; padding-bottom: 100px; }
.hero h1 { font-size: clamp(2.7rem, 5vw, 4.65rem); max-width: 730px; margin: 0 0 25px; }
.hero__description { max-width: 660px; color: #e7ebee; font-size: 1.08rem; line-height: 1.85; margin: 0 0 33px; }
.hero__actions { display: flex; gap: 27px; align-items: center; flex-wrap: wrap; }
.text-link { text-decoration: none; color: #f3e0b3; font-size: .9rem; font-weight: 700; }
.text-link:hover { text-decoration: underline; }
.hero__small { margin: 43px 0 0; font-size: .73rem; letter-spacing: .1em; color: #d6dce4; text-transform: uppercase; }
.hero__signature { color: var(--ink); background: var(--ivory); outline: 1px solid rgba(215,179,106,.3); outline-offset: 12px; border: 1px solid #dfd2b7; padding: 50px 32px 45px; display: flex; flex-direction: column; gap: 1px; text-align: center; box-shadow: 0 20px 55px rgba(0,0,0,.11); transform: translateY(7px); }
.hero__signature-label { font-family: 'Segoe UI', Arial, sans-serif; font-size: .66rem; font-weight: 800; letter-spacing: .18em; color: #98713a; margin: 0 0 22px; }
.hero__signature > span:not(.hero__signature-label):not(.hero__signature-line) { font-family: Georgia,'Times New Roman',serif; font-size: clamp(1.4rem,2.15vw,1.85rem); line-height: 1.45; }
.hero__signature-line { height: 2px; width: 54px; background: var(--gold); align-self: center; margin-top: 24px; }
.trust-strip { background: #f0e8d8; border-bottom: 1px solid var(--line); }
.trust-strip__inner { display: flex; justify-content: center; align-items: center; gap: clamp(14px,2.5vw,36px); min-height: 65px; color: #584b3d; font-size: .76rem; font-weight: 700; letter-spacing: .045em; text-align: center; }
.trust-strip__dot { width: 5px; height: 5px; background: #aa8646; border-radius: 50%; flex-shrink: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(45px,8vw,110px); align-items: start; }
.section-intro h2 { max-width: 490px; }
.section-lead { color: var(--ink-light); line-height: 1.9; margin-bottom: 27px; font-size: 1.04rem; }
.about-copy { border-left: 2px solid var(--gold); padding: 8px 0 0 34px; color: #414a53; }
.about-copy p { margin-bottom: 19px; font-size: .96rem; line-height: 1.86; }
.about-copy p:last-child { margin-bottom: 0; }

/* Coverage */
.coverage-section { background: #fff; border-top: 1px solid #eee6da; }
.section-heading { max-width: 780px; margin-bottom: 52px; }
.section-heading--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading h2 { margin-bottom: 17px; }
.section-heading p:not(.eyebrow) { color: var(--ink-light); line-height: 1.86; max-width: 720px; margin: 0 auto; }
.support-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.support-item { padding: 34px 24px 29px; border-right: 1px solid var(--line); }
.support-item:first-child { padding-left: 0; }
.support-item:last-child { padding-right: 0; border-right: 0; }
.support-item__number { display: inline-block; font-family: Georgia,serif; color: #9a7845; font-size: 1.8rem; margin-bottom: 15px; }
.support-item h3 { margin-bottom: 13px; }
.support-item p { font-size: .88rem; line-height: 1.8; color: var(--ink-light); margin: 0; }

/* Agent section — client-requested charcoal background, 8 ivory cards, gold buttons. */
.agents-section { background: linear-gradient(125deg, var(--charcoal-dark), var(--charcoal)); }
.section-heading--inverse h2 { color: white; }
.section-heading--inverse p:not(.eyebrow) { color: #f0f2f5; }
.agent-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 23px; }
.agent-card { display: grid; grid-template-columns: 36% minmax(0,1fr); min-height: 360px; background: var(--ivory); border: 1px solid #dfd6c6; box-shadow: var(--shadow); overflow: hidden; }
.agent-card__portrait { background: #e8e2da; min-height: 100%; }
.agent-card__portrait img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; object-position: center 30%; }
.agent-card__content { display: flex; flex-direction: column; align-items: flex-start; padding: 26px 25px 26px; }
.agent-card__name { font-family: Georgia,serif; font-size: clamp(1.25rem,1.65vw,1.58rem); font-weight: 500; letter-spacing: -.025em; margin-bottom: 5px; color: #1c2530; }
.agent-card__npn { font-size: .72rem; letter-spacing: .065em; font-weight: 800; text-transform: uppercase; color: #7d633b; margin-bottom: 18px; }
.agent-card__bio { color: #39444d; font-size: .83rem; line-height: 1.7; flex: 1; margin-bottom: 22px; overflow-wrap: anywhere; }
.agent-card__action { gap: 10px; width: 100%; padding: 12px 13px; font-size: .8rem; line-height: 1.3; }
.agent-card__action .sherpa-icon { display: block; width: 89px; height: auto; max-height: 25px; object-fit: contain; }
.agent-card__pending { font-size: .79rem; color: #6c5b44; border-top: 1px solid #d8ceb9; width: 100%; padding-top: 13px; margin: auto 0 0; }

/* Service areas/carriers */
.details-section { background: var(--cream); }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,7vw,92px); }
.details-grid h2 { font-size: clamp(1.8rem,3vw,2.55rem); margin-bottom: 16px; }
.details-grid p:not(.eyebrow) { color: var(--ink-light); font-size: .96rem; line-height: 1.75; }
.states-list, .carrier-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.states-list__item { border: 1px solid #d9d0c4; background: white; color: #303b48; padding: 7px 12px; font-size: .78rem; font-weight: 600; }
.carrier-panel { padding: 38px; background: var(--carrier-gray); border-top: 3px solid var(--gold); }
.carrier-list__item { border-bottom: 1px solid #d1d5d2; color: #343b40; padding: 5px 3px; margin-right: 9px; font-size: .85rem; font-weight: 600; }
.carrier-note { margin: 28px 0 0; font-size: .75rem !important; }

/* Contact/footer */
.contact-section { background: linear-gradient(125deg,var(--charcoal-dark),var(--charcoal)); color: white; padding: 70px 0 75px; }
.contact-section__inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.contact-section h2 { font-size: clamp(2rem,3.7vw,3.4rem); margin-bottom: 17px; }
.contact-section p:not(.eyebrow) { color: #e9edf1; margin: 0; }
.contact-actions { display: flex; align-items: center; flex-direction: column; gap: 12px; flex-shrink: 0; }
.contact-email { color: #f3e0b3; font-size: .9rem; font-weight: 600; }
.contact-email[hidden] { display: none; }
.site-footer { background: #f4f4f4; padding: 30px 0; border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-brand img { width: 91px; height: 84px; object-fit: contain; mix-blend-mode: normal; }
.footer-brand p { max-width: 200px; font-size: .78rem; color: #545e68; margin: 0; }
.footer-right { text-align: right; }
.footer-right a { font-size: .86rem; font-weight: 750; color: #203145; }
.footer-right p { font-size: .75rem; color: #677078; margin: 9px 0 0; }

@media (max-width: 1120px) {
  .site-header__inner { gap: 13px; }
  .header-call { display: none; }
  .agent-card { grid-template-columns: 32% minmax(0,1fr); }
  .agent-card__content { padding: 23px 19px; }
  .agent-card__action .sherpa-icon { width: 77px; }
}
@media (max-width: 950px) {
  .hero__inner { gap: 5%; grid-template-columns: 1.4fr .8fr; }
  .support-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .support-item { border-bottom: 1px solid var(--line); }
  .support-item:nth-child(2) { border-right: 0; padding-right: 0; }
  .support-item:nth-child(3) { padding-left: 0; border-bottom: 0; }
  .support-item:nth-child(4) { border-right: 0; border-bottom: 0; }
  .agent-grid { grid-template-columns: 1fr; }
  .agent-card { grid-template-columns: 225px minmax(0,1fr); }
  .agent-card__bio { font-size: .92rem; }
  .agent-card__content { padding: 28px; }
  .agent-card__action .sherpa-icon { width: 105px; }
}
@media (max-width: 730px) {
  html { scroll-padding-top: 155px; }
  .container { width: min(calc(100% - 34px), var(--max-width)); }
  .section { padding: 65px 0 70px; }
  .site-header__inner { flex-direction: column; gap: 7px; padding: 8px 0 15px; }
  .brand img { width: 105px; height: 78px; }
  .primary-nav { gap: 11px 19px; flex-wrap: wrap; justify-content: center; }
  .primary-nav a { font-size: .78rem; }
  .hero__inner { display: block; padding: 75px 0 70px; }
  .hero__description { font-size: 1rem; }
  .hero__signature { display: none; }
  .hero__small { margin-top: 28px; }
  .trust-strip__inner { flex-wrap: wrap; gap: 7px 15px; padding: 15px 0; }
  .about-grid, .details-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-copy { padding-left: 22px; }
  .carrier-panel { padding: 25px; }
  .contact-section__inner { flex-direction: column; align-items: flex-start; }
  .contact-actions { align-items: flex-start; }
}
@media (max-width: 530px) {
  .preview-banner { font-size: .58rem; gap: 2px 10px; }
  .hero h1 { font-size: clamp(2.3rem,9vw,3.25rem); }
  .support-grid { grid-template-columns: 1fr; }
  .support-item, .support-item:first-child, .support-item:nth-child(2), .support-item:nth-child(3), .support-item:nth-child(4) { padding: 22px 0; border: 0; border-bottom: 1px solid var(--line); }
  .support-item:last-child { border-bottom: 0; }
  .agent-card { grid-template-columns: 1fr; }
  .agent-card__portrait, .agent-card__portrait img { min-height: 0; }
  .agent-card__portrait img { height: 285px; object-position: center 25%; }
  .agent-card__content { padding: 25px; }
  .agent-card__bio { font-size: .89rem; }
  .site-footer__inner { flex-direction: column; text-align: center; }
  .footer-right { text-align: center; }
  .footer-brand { flex-direction: column; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

/* Phone UX: phone number is text on desktop; tap-to-call only on narrow layouts. */
.header-phone { white-space: nowrap; font-weight: 750; font-size: .95rem; color: var(--ink); }
.desktop-phone { display: inline; font-size: 1rem; }
.contact-actions .desktop-phone { color: var(--gold); font-size: 1.1rem; }
.footer-right .desktop-phone { color: #203145; font-size: .86rem; font-weight: 650; }
.mobile-call { display: none !important; }
@media (max-width: 1120px) { .header-phone { display: none; } }
@media (max-width: 730px) {
  .desktop-phone { display: none !important; }
  .mobile-call { display: inline-flex !important; }
  .footer-right .mobile-call { display: inline !important; }
}

/* Standalone contact dialog — matches approved palette */
.contact-email { cursor:pointer; font:inherit; color:inherit; background:none; border:0; padding:0; text-decoration:underline; text-underline-offset:4px; }
.contact-email:focus-visible { outline:3px solid var(--gold); outline-offset:4px; }
.contact-dialog { border:1px solid var(--gold); border-radius:12px; width:min(92vw,510px); max-height:90dvh; overflow-y:auto; padding:28px; background:var(--ivory); color:var(--ink); box-shadow:0 25px 90px rgba(0,0,0,.38); }
.contact-dialog::backdrop { background:rgba(18,22,27,.72); }
.contact-dialog__head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.contact-dialog__head h2 { font-size:clamp(1.5rem,3.5vw,2rem); margin:0 0 12px; }
.contact-dialog__close { border:0; background:transparent; color:var(--ink); font-size:2rem; cursor:pointer; line-height:1; padding:0 4px; }
.contact-dialog p { margin:0 0 14px; }
.contact-dialog form { display:grid; gap:7px; }
.contact-dialog label { font-size:.9rem; font-weight:700; }
.contact-dialog input,.contact-dialog textarea { width:100%; padding:10px 12px; border:1px solid #bcb5a8; border-radius:4px; background:white; color:var(--ink); font:inherit; margin-bottom:7px; }
.contact-dialog textarea { resize:vertical; }
.contact-dialog input:focus-visible,.contact-dialog textarea:focus-visible { outline:2px solid var(--gold); outline-offset:1px; }
.contact-dialog__privacy { font-size:.78rem; color:var(--ink-light); }
.contact-dialog__status { min-height:1.5em; font-size:.9rem; font-weight:700; }
.contact-dialog__status[data-error="true"] { color:#912525; }
.contact-dialog__submit { cursor:pointer; width:100%; }
.contact-dialog__submit:disabled { opacity:.65; cursor:wait; }
.contact-dialog__trap { position:absolute; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden; }
@media(max-width:530px) { .contact-dialog { padding:18px; } }
