/* Lifetime Insurance Partners — site styles */
:root {
  --blue: #1d3b6b;        /* Heritage Blue */
  --blue-dark: #142a4d;
  --copper: #b06a32;      /* Burnished Copper */
  --copper-dark: #8f5326;
  --sand: #d9c4a0;        /* Sandstone */
  --sand-light: #ece0c9;
  --slate: #4a4f55;       /* Slate Grey */
  --ivory: #f8f3e8;       /* Ivory */
  --white: #fffdf8;
  --text: #2c3036;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 59, 107, 0.10);
  --head: "Bitter", Georgia, serif;
  --body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--copper); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--blue); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.section { padding: 80px 0; }
.section--sand { background: var(--sand-light); }
.section--white { background: var(--white); }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--copper); margin-bottom: .6em;
}
.lead { font-size: 1.15rem; color: var(--slate); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.6em; border-radius: 999px;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--copper { background: var(--copper); color: #fff; }
.btn--copper:hover { background: var(--copper-dark); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); color: #fff; }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--light { border-color: #fff; color: #fff; background: transparent; }
.btn--light:hover { background: #fff; color: var(--blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6em; }

/* Top bar */
.topbar { background: var(--blue); color: #e9eef6; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--sand); }
.topbar span + span { margin-left: 18px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 243, 232, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(176, 106, 50, .25);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 58px; height: auto; }
.brand-name { font-family: var(--head); font-weight: 700; color: var(--blue); font-size: 1.25rem; line-height: 1.1; letter-spacing: .02em; }
.brand-name small { display: block; font-family: var(--body); font-size: .62rem; letter-spacing: .2em; color: var(--copper); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--slate); font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); background: var(--sand-light); }
.nav .btn { margin-left: 8px; padding: .65em 1.3em; color: #fff; }
.nav .btn:hover { background: var(--copper-dark); color: #fff; }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: .45em; border: 0; background: transparent;
  color: var(--slate); font: 600 .95rem var(--body); padding: 8px 12px; border-radius: 8px; cursor: pointer;
}
.nav-dropdown-toggle span { color: var(--blue); font-size: 1.15em; line-height: 1; transition: transform .2s; }
.nav-dropdown.open .nav-dropdown-toggle span { transform: rotate(180deg); }
.nav-dropdown-toggle:hover, .nav-dropdown.open .nav-dropdown-toggle { color: var(--blue); background: var(--sand-light); }
.mega-menu {
  position: absolute; top: calc(100% + 15px); left: 50%; transform: translateX(-50%); z-index: 60;
  display: none; grid-template-columns: repeat(3, minmax(165px, 1fr)); gap: 30px;
  width: min(780px, 78vw); padding: 26px 28px 28px; background: var(--white);
  border: 1px solid rgba(29,59,107,.12); border-radius: 0 0 22px 22px;
  box-shadow: 0 18px 45px rgba(20,42,77,.18); text-align: left;
}
.mega-menu::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-dropdown.open .mega-menu, .nav-dropdown:hover .mega-menu, .nav-dropdown:focus-within .mega-menu { display: grid; }
.mega-column { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
.mega-column h3 { margin: 0 0 10px; color: var(--slate); font: 700 .75rem var(--body); letter-spacing: .14em; text-transform: uppercase; }
.mega-column .mega-subhead { margin-top: 16px; }
.mega-column a { padding: 7px 10px; border-radius: 7px; color: var(--text); font-size: .9rem; font-weight: 500; white-space: nowrap; }
.mega-column a:hover { color: var(--blue); background: var(--sand-light); }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--blue); color: var(--blue);
  border-radius: 8px; padding: 6px 12px; font-weight: 700; font-family: var(--body); cursor: pointer;
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 85% 20%, #fff8ea 0%, transparent 60%),
              linear-gradient(180deg, var(--ivory) 0%, var(--sand-light) 100%);
  padding: 80px 0 170px;
}
.hero .container { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(380px, 100%); filter: drop-shadow(0 18px 30px rgba(29,59,107,.18)); }
.hero-fields { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 150px; z-index: 1; }
.page-hero { padding: 70px 0 140px; }
.page-hero .container { grid-template-columns: 1fr; max-width: 860px; }
.page-hero .hero-fields { height: 120px; }

/* Trust strip */
.trust { background: var(--blue); color: #fff; }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 0; }
.trust div { text-align: center; }
.trust strong { display: block; font-family: var(--head); font-size: 1.35rem; color: var(--sand); }
.trust span { font-size: .9rem; color: #dbe3ef; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow); border-top: 4px solid var(--copper);
  display: flex; flex-direction: column;
}
.card p { color: var(--slate); }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--copper); }
.card .more:hover { color: var(--blue); }
.icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--sand-light);
  display: grid; place-items: center; margin-bottom: 16px; color: var(--blue);
}
.icon svg { width: 28px; height: 28px; }
.services { margin-top: 40px; }
.services .card:last-child:nth-child(3n + 2) { grid-column: span 1; }

/* Split / about */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.portrait {
  width: min(100%, 420px); justify-self: center;
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
  border: 6px solid var(--white); outline: 2px solid var(--sand);
}
.portrait img { width: 100%; height: auto; }
.signature { font-family: var(--head); font-style: italic; color: var(--copper); font-size: 1.3rem; }

/* Steps */
.steps { counter-reset: step; margin-top: 40px; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--copper); color: #fff; font-family: var(--head); font-weight: 700; font-size: 1.2rem;
  display: grid; place-items: center;
}

/* States */
.states { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; padding: 0; list-style: none; }
.states li {
  background: var(--white); border: 1px solid var(--sand); border-radius: 999px;
  padding: 8px 18px; font-weight: 600; color: var(--blue);
}
.states li.home { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding-left: 32px; position: relative; margin-bottom: .6em; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--copper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* FAQ */
.faq { max-width: 820px; margin: 32px auto 0; }
.faq details {
  background: var(--white); border-radius: 12px; margin-bottom: 12px; padding: 18px 24px;
  box-shadow: 0 4px 14px rgba(29, 59, 107, .06);
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--blue); list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -4px; font-size: 1.5rem; color: var(--copper); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--slate); }

/* CTA band */
.cta-band { background: var(--blue); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe3ef; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }

/* Quote form */
.quote-wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: start; }
.form-card { background: var(--white); border-radius: 18px; padding: 36px; box-shadow: var(--shadow); border-top: 5px solid var(--copper); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .92rem; color: var(--blue); }
.field input, .field select {
  font: inherit; padding: 12px 14px; border-radius: 10px; border: 1.5px solid #cdbf9f; background: #fff; color: var(--text);
}
.field input:focus, .field select:focus { outline: 3px solid rgba(176, 106, 50, .3); border-color: var(--copper); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--slate); grid-column: 1 / -1; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--copper); }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 16px; padding: 14px 16px; border-radius: 10px; display: none; }
.form-msg.ok { display: block; background: #e7f0e3; color: #2f5a2a; }
.form-msg.err { display: block; background: #f8e3dc; color: #8a2f17; }
.side-card { background: var(--blue); color: #fff; border-radius: 18px; padding: 32px; }
.side-card h3 { color: #fff; }
.side-card a { color: var(--sand); font-weight: 700; }
.side-card p { color: #dbe3ef; }

/* Footer */
.site-footer { background: var(--blue-dark); color: #cfd8e6; padding: 56px 0 28px; font-size: .92rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sand); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--sand); font-family: var(--body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand img { width: 90px; background: var(--ivory); border-radius: 14px; padding: 8px; margin-bottom: 14px; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: .78rem; color: #a9b6c9; }
.disclaimer p { margin-bottom: .7em; }

.notice { background: var(--white); border-left: 4px solid var(--copper); padding: 16px 20px; border-radius: 8px; font-size: .9rem; color: var(--slate); margin-top: 28px; }

/* Life & Photos gallery */
.gallery-intro { max-width: 680px; margin: -12px auto 34px; color: var(--slate); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.photo-card { margin: 0; background: var(--ivory); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(176,106,50,.18); }
.photo-button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.photo-button img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.photo-button:hover img, .photo-button:focus-visible img { transform: scale(1.03); }
.photo-button:focus-visible { outline: 3px solid var(--copper); outline-offset: -3px; }
.photo-card figcaption { padding: 16px 18px 20px; color: var(--blue); font-family: var(--head); font-weight: 600; line-height: 1.35; }
.gallery-closing { max-width: 760px; margin: 54px auto 0; }
.gallery-closing p { color: var(--slate); font-style: italic; }
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: minmax(44px, 8vw) minmax(0, 1fr) minmax(44px, 8vw); align-items: center; gap: 8px; padding: 36px 12px; background: rgba(20,42,77,.94); }
.lightbox-content { min-width: 0; text-align: center; }
.lightbox-content img { max-width: min(100%, 1100px); max-height: 74vh; width: auto; margin: 0 auto; object-fit: contain; border: 4px solid var(--white); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.lightbox-content p { color: var(--white); margin: 16px auto 0; max-width: 65ch; }
.lightbox-count { color: var(--sand) !important; font-size: .85rem; margin-top: 6px !important; }
.lightbox-close, .lightbox-prev, .lightbox-next { border: 0; background: transparent; color: var(--white); cursor: pointer; font-family: Georgia, serif; font-size: 3.4rem; line-height: 1; padding: 10px; }
.lightbox-close { position: absolute; top: 12px; right: 18px; font-family: var(--body); font-size: 2.2rem; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--sand); }
.lightbox-open { overflow: hidden; }

/* Responsive */
@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: var(--ivory);
    padding: 12px 16px 20px; border-bottom: 1px solid var(--sand); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 12px; }
  .mega-menu { position: static; transform: none; width: 100%; grid-template-columns: 1fr; gap: 12px; padding: 14px 12px 16px; border: 0; border-radius: 10px; box-shadow: none; background: var(--sand-light); }
  .mega-menu::before { display: none; }
  .nav-dropdown:not(.open):not(:focus-within) .mega-menu { display: none; }
  .mega-column a { white-space: normal; padding: 8px 10px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .hero .container, .split, .quote-wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 220px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .trust .container { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 120px; }
  .hero-fields { height: 100px; }
  .grid-3, .grid-2, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .topbar .hide-sm { display: none; }
  .brand-name { font-size: 1.05rem; }
  .brand img { width: 48px; }
  .form-card { padding: 24px; }
  .portrait { max-width: 360px; margin-inline: auto; }
}

/* Keep long text and form controls inside narrow screens */
.form-grid > *, .quote-wrap > * { min-width: 0; }
.field input, .field select { width: 100%; min-width: 0; }
.side-card a, .site-footer a, .card a { overflow-wrap: anywhere; }
