/* ============================================================
   ZEREP INSURANCE AGENCY, INC.
   Homepage stylesheet — light cream + burgundy theme
   ============================================================ */

:root {
  --cream: #FAF7F2;
  --cream-2: #F3EDE3;
  --cream-3: #EDE5D8;
  --paper: #FFFFFF;
  --ink: #221B12;
  --ink-soft: #4A4134;
  --muted: #6B6051;
  --burgundy: #7F1D1D;
  --burgundy-deep: #6B1717;
  --burgundy-bright: #991B1B;
  --burgundy-red: #B91C1C;
  --line: #E7DED0;
  --line-strong: #D8CCBB;
  --on-burgundy: #FBF6EE;
  --on-burgundy-muted: #E7D5C9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--burgundy);
  text-decoration: none;
}

a:hover {
  color: var(--burgundy-red);
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
}

/* ------------------------------------------------------------
   Scroll reveal (safe without JS)
   ------------------------------------------------------------ */
.fade-up {
  opacity: 1;
  transform: none;
}

html.js .fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .fade-up.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ------------------------------------------------------------
   Announcement strip
   ------------------------------------------------------------ */
.announcement {
  background: var(--burgundy-deep);
  color: var(--on-burgundy);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.announcement strong {
  color: var(--on-burgundy);
}

/* ------------------------------------------------------------
   Site navigation — segmented tab control
   ------------------------------------------------------------ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.2;
}

.brand .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--burgundy);
  color: var(--on-burgundy);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  flex: 0 0 auto;
}

.brand small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.segmented {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}

.segmented .tab {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.segmented .tab:hover {
  color: var(--burgundy);
}

.segmented .tab.active {
  background: var(--burgundy);
  color: var(--on-burgundy);
}

.nav-toggle {
  display: none;
  background: var(--burgundy);
  color: var(--on-burgundy);
  border: none;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--on-burgundy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s 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);
}

/* ------------------------------------------------------------
   Statement / introduction section
   ------------------------------------------------------------ */
.statement-section {
  padding: 84px 24px 72px;
}

.statement-section .wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: var(--cream-2);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.statement-section h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 24px;
}

.statement-section h1 em {
  font-style: normal;
  color: var(--burgundy);
}

.statement-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 20px;
}

.statement-section .sub {
  color: var(--muted);
  max-width: 68ch;
  margin-bottom: 36px;
}

.statement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--burgundy);
  color: var(--on-burgundy);
}

.btn-primary:hover {
  background: var(--burgundy-bright);
  color: var(--on-burgundy);
}

.btn-ghost {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--burgundy);
  color: var(--burgundy-red);
}

/* ------------------------------------------------------------
   Disciplines (numbered list)
   ------------------------------------------------------------ */
.disciplines-section {
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 24px;
}

.disciplines-section .wrap {
  max-width: 1160px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.01em;
  max-width: 22ch;
}

.section-head p {
  color: var(--muted);
  max-width: 44ch;
}

.discipline-list {
  list-style: none;
  display: grid;
  gap: 0;
}

.discipline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.discipline-item:last-child {
  border-bottom: none;
}

.discipline-num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--burgundy);
  letter-spacing: -0.02em;
}

.discipline-item h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.discipline-item p {
  color: var(--ink-soft);
  max-width: 70ch;
}

/* ------------------------------------------------------------
   Comparison table
   ------------------------------------------------------------ */
.comparison-section {
  padding: 80px 24px;
}

.comparison-section .wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.comparison-section .section-head {
  justify-content: flex-start;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
}

.compare-table th,
.compare-table td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.compare-table thead th {
  background: var(--burgundy);
  color: var(--on-burgundy);
  font-weight: 700;
  font-size: 0.95rem;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table td:first-child {
  font-weight: 700;
  color: var(--ink);
  width: 34%;
}

.compare-table td {
  color: var(--ink-soft);
}

.compare-table .badge-legacy {
  display: inline-block;
  background: var(--cream-3);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.compare-table .badge-new {
  display: inline-block;
  background: var(--burgundy);
  color: var(--on-burgundy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

/* ------------------------------------------------------------
   Full-width statement band
   ------------------------------------------------------------ */
.statement-band {
  background: var(--burgundy);
  padding: 84px 24px;
}

.statement-band .wrap {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.statement-band h2 {
  color: var(--on-burgundy);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.statement-band p {
  color: var(--on-burgundy-muted);
  font-size: 1.15rem;
  max-width: 60ch;
  margin: 0 auto;
}

/* ------------------------------------------------------------
   Capabilities (columns with numerals)
   ------------------------------------------------------------ */
.capabilities-section {
  padding: 80px 24px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.capabilities-section .wrap {
  max-width: 1160px;
  margin: 0 auto;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.capability {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  background: var(--cream);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.capability:hover {
  border-color: var(--burgundy);
  transform: translateY(-3px);
}

.capability .cap-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--burgundy);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.capability h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.capability p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ------------------------------------------------------------
   Metrics / counters
   ------------------------------------------------------------ */
.metrics-section {
  padding: 64px 24px;
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics-section .wrap {
  max-width: 1160px;
  margin: 0 auto;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.metric .metric-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--burgundy);
  letter-spacing: -0.02em;
  line-height: 1;
}

.metric .metric-label {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ------------------------------------------------------------
   FAQ accordion
   ------------------------------------------------------------ */
.faq-section {
  padding: 80px 24px;
}

.faq-section .wrap {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 14px;
  background: var(--paper);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 20px 22px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-q .chevron {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--burgundy);
  display: grid;
  place-items: center;
  font-weight: 800;
  transition: transform 0.25s ease;
}

.faq-item.open .chevron {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a-inner {
  padding: 0 22px 20px;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------
   Contact
   ------------------------------------------------------------ */
.contact-section {
  padding: 80px 24px;
  background: var(--cream-2);
  border-top: 1px solid var(--line);
}

.contact-section .wrap {
  max-width: 1160px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.contact-info p {
  color: var(--ink-soft);
  margin-bottom: 22px;
  max-width: 48ch;
}

.contact-line {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--ink);
}

.contact-line a {
  color: var(--burgundy);
}

.contact-line .ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--burgundy);
  color: var(--on-burgundy);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: 0 0 auto;
}

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--cream);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--burgundy);
  outline-offset: 1px;
  border-color: var(--burgundy);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 12px;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--burgundy-deep);
  color: var(--on-burgundy);
  padding: 56px 24px 24px;
}

.site-footer .wrap {
  max-width: 1160px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-brand h3 {
  color: var(--on-burgundy);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--on-burgundy-muted);
  max-width: 44ch;
  font-size: 0.95rem;
}

.footer-col h4 {
  color: var(--on-burgundy);
  font-size: 0.95rem;
  margin-bottom: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--on-burgundy-muted);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--on-burgundy);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--on-burgundy-muted);
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .capability-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .segmented {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-radius: 0 0 16px 16px;
    border-top: none;
    padding: 8px;
    background: var(--cream);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
    display: none;
  }

  .segmented.open {
    display: flex;
  }

  .segmented .tab {
    border-radius: 10px;
    padding: 12px 16px;
    text-align: center;
  }

  .discipline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
  }
}
