/* ============================================
   Gleaner Life Insurance Society (Austin, TX)
   Clean, professional fraternal insurance site
   ============================================ */

:root {
  --navy: #15314b;
  --navy-deep: #0e2237;
  --navy-soft: #2a4a6b;
  --teal: #3f8a7e;
  --teal-soft: #e8f1ee;
  --gold: #b89251;
  --text: #1f2a36;
  --text-soft: #5a6b7c;
  --text-muted: #8a96a3;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-alt: #fafbfc;
  --border: #e3e7ec;
  --border-soft: #eef1f4;
  --shadow-sm: 0 1px 2px rgba(20, 40, 70, 0.04);
  --shadow-md: 0 4px 16px rgba(20, 40, 70, 0.06);
  --shadow-lg: 0 12px 40px rgba(20, 40, 70, 0.08);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --container: 1180px;
  --container-narrow: 820px;
}

/* ---------- Reset & Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
a:hover { color: var(--teal); }

ul, ol { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--container-narrow); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.35;
}

h3 { font-size: 1.15rem; }
h4 { font-size: 0.95rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow-light { color: #b8d4ce; }

.accent { color: var(--teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 8px rgba(21, 49, 75, 0.15);
}
.btn-primary:hover {
  background: var(--navy-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(21, 49, 75, 0.25);
}
.btn-ghost {
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-soft);
  border-color: var(--navy);
  color: var(--navy);
}
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-full { width: 100%; padding: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  border-color: var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}
.brand:hover { color: var(--navy); opacity: 0.85; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--teal-soft), #fff);
  color: var(--teal);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 1.05rem; color: var(--navy-deep); }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.16em; color: var(--text-muted); font-weight: 500; }

.nav-primary ul {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-primary a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
.nav-primary a:hover { color: var(--teal); }

.header-cta { margin-left: auto; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse at top right, rgba(63, 138, 126, 0.06), transparent 60%),
    linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 49, 75, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 49, 75, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}

.hero-copy h1 { margin-bottom: 28px; }

.lead {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.9;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}
.hero-trust li {
  display: flex;
  flex-direction: column;
}
.hero-trust strong {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy-deep);
  font-weight: 700;
}
.hero-trust span {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* Hero visual cards */
.hero-visual {
  position: relative;
  height: 460px;
}
.hero-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(63, 138, 126, 0.18), rgba(21, 49, 75, 0.08) 40%, transparent 70%);
  filter: blur(20px);
}

.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
.hero-card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal);
  flex-shrink: 0;
}
.hero-card-title { font-weight: 700; color: var(--navy-deep); font-size: 0.95rem; line-height: 1.3; }
.hero-card-sub { font-size: 0.78rem; color: var(--text-muted); }

.hero-card-1 { top: 8%; left: 4%; animation-delay: 0s; }
.hero-card-2 { top: 38%; right: 0; animation-delay: -2s; }
.hero-card-3 { bottom: 12%; left: 14%; animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Notice strip ---------- */
.notice-strip {
  background: var(--navy-deep);
  color: #d6dde5;
  padding: 14px 0;
  font-size: 0.85rem;
}
.notice-strip p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
.notice-strip .dot {
  width: 8px;
  height: 8px;
  background: #6fc4b3;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(111, 196, 179, 0.15);
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.section-head h2 { margin-bottom: 20px; }
.section-lead {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.9;
}

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(63, 138, 126, 0.2);
}

.product-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--icon-bg, var(--teal-soft));
  color: var(--navy);
  margin-bottom: 24px;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.product-card > p {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 24px;
}

.product-meta {
  border-top: 1px dashed var(--border);
  padding-top: 20px;
  margin-bottom: 24px;
}
.product-meta li {
  font-size: 0.85rem;
  color: var(--text-soft);
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.product-meta li strong {
  color: var(--navy-deep);
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-serif);
}

.product-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--teal);
}
.product-link:hover { color: var(--navy); }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.why-num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 16px;
}
.why-card h3 { margin-bottom: 14px; font-size: 1.1rem; }
.why-card p {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.85;
}

/* ---------- Voices ---------- */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.voice-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
}
.voice-card::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 24px;
  font-family: var(--font-serif);
  font-size: 4.5rem;
  color: var(--teal-soft);
  line-height: 1;
}
.voice-card blockquote {
  position: relative;
  font-size: 0.95rem;
  line-height: 1.95;
  color: var(--text);
  margin-bottom: 24px;
  padding-top: 24px;
}
.voice-card figcaption {
  border-top: 1px solid var(--border-soft);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.voice-name {
  font-weight: 700;
  color: var(--navy-deep);
  font-size: 0.95rem;
}
.voice-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ---------- Process ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.process-list li {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.process-list li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.process-step {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--teal);
  font-weight: 700;
  display: block;
  margin-bottom: 14px;
}
.process-list h3 { margin-bottom: 12px; font-size: 1.1rem; }
.process-list p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.85;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item[open] {
  border-color: rgba(63, 138, 126, 0.3);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  padding: 22px 28px;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--navy-deep);
  list-style: none;
  position: relative;
  padding-right: 60px;
  transition: background 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq-item summary:hover { background: var(--bg-alt); }
.faq-item p {
  padding: 0 28px 24px;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.95;
}

/* ---------- Contact ---------- */
.section-contact {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-contact::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 138, 126, 0.18), transparent 70%);
  pointer-events: none;
}
.section-contact h2 { color: #fff; margin-bottom: 20px; }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
  position: relative;
}

.contact-lead {
  font-size: 1rem;
  color: #c8d4df;
  line-height: 1.95;
  margin-bottom: 40px;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-meta li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-label {
  font-size: 0.72rem;
  color: #8fa3b7;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.contact-meta a, .contact-meta span:not(.contact-label) {
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
}
.contact-meta a:hover { color: #b8d4ce; }

/* Form */
.contact-form {
  background: #fff;
  color: var(--text);
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-row label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}
.req {
  font-size: 0.68rem;
  color: #c84a4a;
  background: #fdecec;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(63, 138, 126, 0.12);
}
.form-row textarea { resize: vertical; min-height: 100px; }
.form-check { flex-direction: row; align-items: center; }
.form-check label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-soft);
  cursor: pointer;
}
.form-check input { width: 16px; height: 16px; accent-color: var(--teal); }
.form-check a { color: var(--teal); text-decoration: underline; }

.form-note {
  margin-top: 12px;
  font-size: 0.88rem;
  text-align: center;
  min-height: 1.2em;
}
.form-note.success { color: #2f7a6b; }
.form-note.error { color: #c84a4a; }

/* ---------- Footer ---------- */
.site-footer {
  background: #fafbfc;
  border-top: 1px solid var(--border-soft);
  padding: 64px 0 28px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
}
.footer-name { font-weight: 700; color: var(--navy-deep); font-size: 1rem; }
.footer-sub { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.12em; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
}
.footer-cols h4 {
  color: var(--navy-deep);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.footer-cols ul { display: flex; flex-direction: column; gap: 10px; }
.footer-cols a, .footer-cols li {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.4;
}
.footer-cols a:hover { color: var(--teal); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }
.footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-soft);
}
.footer-legal a:hover { color: var(--teal); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 60px 0 80px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero-visual { height: 320px; max-width: 480px; margin: 0 auto; }
  .hero-orb { width: 280px; height: 280px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 50px; }
  .section { padding: 70px 0; }
}

@media (max-width: 720px) {
  .nav-primary {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-soft);
    padding: 20px 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
  }
  .nav-primary.open { transform: translateY(0); }
  .nav-primary ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-primary li {
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-primary li:last-child { border-bottom: none; }
  .nav-primary a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero-trust {
    gap: 24px;
    justify-content: space-between;
  }
  .hero-trust strong { font-size: 1.15rem; }
  .hero-trust span { font-size: 0.72rem; }

  .contact-form { padding: 28px 22px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .section-head { margin-bottom: 48px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { height: 280px; }
  .hero-card { padding: 12px 16px; gap: 10px; }
  .hero-card-icon { width: 36px; height: 36px; }
  .hero-card-title { font-size: 0.85rem; }
  .hero-card-sub { font-size: 0.7rem; }
  .product-card, .why-card, .voice-card, .process-list li { padding: 28px 22px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
