/* Eastern Printing - shared styles
 * Brand palette: Navy #0A2540, Teal #0E7C7B, Off-white #FAFAF7, Gold #C8A951
 */

:root {
  --navy: #0A2540;
  --navy-2: #133459;
  --teal: #0E7C7B;
  --teal-2: #0a605f;
  --bg: #FAFAF7;
  --gold: #C8A951;
  --ink: #1a1a1a;
  --muted: #6b6f76;
  --line: #e6e3da;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(10,37,64,0.06), 0 8px 24px rgba(10,37,64,0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.2; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: #2a2a2a; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,250,247,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}
.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  border-radius: 4px;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  bottom: 4px; left: 4px; right: 4px;
  height: 2px;
  background: var(--teal);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  padding: 0; margin: 0;
}
.nav-links a {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--teal); text-decoration: none; }
.nav-cart {
  border: 1px solid var(--navy);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--navy); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-secondary { background: var(--teal); color: #fff; }
.btn-secondary:hover { background: var(--teal-2); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-disabled {
  background: #d4d2cb; color: #6b6f76; cursor: not-allowed;
  pointer-events: none;
}

/* ---------- HERO ---------- */
.hero {
  padding: 80px 0 64px;
  background:
    radial-gradient(1200px 400px at 20% -10%, rgba(14,124,123,0.08), transparent 60%),
    radial-gradient(900px 400px at 90% 10%, rgba(10,37,64,0.06), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero h1 { max-width: 900px; }
.hero .sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 28px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- TRUST STRIP ---------- */
.trust {
  background: var(--navy);
  color: #fff;
  padding: 24px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: center;
}
.trust-item {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.9rem;
  line-height: 1.3;
}
.trust-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--teal);
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---------- SECTIONS ---------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--muted); max-width: 640px; margin: 0 auto; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 8px;
}

/* ---------- WHY GRID (3-col) ---------- */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.why-card .num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--teal);
  margin-bottom: 8px;
  display: block;
}

/* ---------- STATE GRID ---------- */
.state-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.state-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  position: relative;
}
.state-card.live:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.state-card .abbr {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--navy);
  font-weight: 700;
  line-height: 1;
}
.state-card .name {
  font-weight: 600;
  color: var(--navy);
}
.state-card .regulator {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
  min-height: 2.5em;
}
.state-card .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}
.badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.badge-go { background: var(--gold); color: #1a1a1a; }
.badge-consider { background: #e6e3da; color: #5a5a5a; }
.state-card .view-link {
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 600;
}
.state-card.coming-soon {
  opacity: 0.65;
}
.state-card.coming-soon .view-link {
  color: var(--muted);
  cursor: not-allowed;
}

/* ---------- ABOUT BAND ---------- */
.about-band {
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ec 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-photo {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  aspect-ratio: 4/3;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  opacity: 0.92;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  margin-bottom: 10px;
  padding: 18px 22px;
}
.faq details[open] { border-color: var(--teal); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--teal);
  font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 12px; color: var(--muted); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy);
  color: #e6e3da;
  padding: 56px 0 28px;
}
.footer a { color: #e6e3da; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer h4 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 8px; font-size: 0.92rem; }
.footer .brand-block p { color: #b8b8b0; font-size: 0.92rem; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.82rem;
  color: #9a9a92;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  padding: 20px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .sep { margin: 0 8px; color: #c2bfb5; }

/* ---------- PRODUCT (state page) ---------- */
.product-hero {
  padding: 36px 0 56px;
}
.product-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 56px;
  align-items: start;
}
.book-cover-wrap {
  background: linear-gradient(180deg, #f5f3ec 0%, #ebe7da 100%);
  border-radius: 10px;
  padding: 36px;
  display: grid;
  place-items: center;
}
.book-cover-wrap svg { width: 100%; max-width: 360px; height: auto; display: block; filter: drop-shadow(0 14px 28px rgba(10,37,64,0.18)); }

.product-info h1 { font-size: 2.25rem; }
.product-info .subtitle { color: var(--muted); font-size: 1.05rem; margin-bottom: 18px; }

.price {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--navy);
  margin: 6px 0 4px;
}
.price-note { font-size: 0.85rem; color: var(--muted); margin-bottom: 22px; }

.form-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.form-field select, .form-field input, .form-field textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  min-width: 200px;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.qty-field input { width: 90px; min-width: 0; text-align: center; }

.add-cart-row { margin-top: 8px; }

/* tabs */
.tabs {
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.tab-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.tab-section h2 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.compliance-list, .inside-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.compliance-list li, .inside-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: #2a2a2a;
}
.compliance-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 14px;
  width: 12px; height: 12px;
  border: 2px solid var(--teal);
  border-radius: 2px;
}
.inside-list li::before {
  content: "›";
  position: absolute;
  left: 4px; top: 6px;
  color: var(--teal);
  font-size: 1.2rem;
  font-weight: 700;
}

/* cross-sell */
.cross-sell-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

/* contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: start;
}
.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-form .form-field { width: 100%; margin-bottom: 16px; }
.contact-form .form-field input,
.contact-form .form-field select,
.contact-form .form-field textarea { width: 100%; min-width: 0; }
.contact-form .grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.contact-info-card {
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  padding: 32px;
}
.contact-info-card h3 { color: #fff; }
.contact-info-card p, .contact-info-card a { color: #d4d2cb; }
.map-placeholder {
  margin-top: 24px;
  aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(45deg, #2a4868 0 2px, transparent 2px 16px),
    var(--navy-2);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #b8b8b0;
  font-style: italic;
}

/* about page */
.story-hero { padding: 60px 0; }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .state-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .cross-sell-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--line);
  }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 40px; }
  .three-col { grid-template-columns: 1fr; }
  .state-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .story-grid, .product-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cross-sell-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .contact-form .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .state-grid { grid-template-columns: 1fr 1fr; }
  .cross-sell-grid { grid-template-columns: 1fr; }
}

/* ---------- STRIPE BUY BUTTONS ---------- */
.buy-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 8px;
}
.buy-form { margin: 0; }
.buy-btn {
  display: flex;
  width: 100%;
  max-width: 360px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.buy-btn:hover {
  background: var(--navy-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(10,37,64,0.18);
  text-decoration: none;
  color: #fff;
}
.buy-btn .label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}
.buy-btn .label .binding { font-size: 1rem; font-weight: 700; letter-spacing: 0.01em; }
.buy-btn .label .desc { font-size: 0.78rem; font-weight: 400; color: #b8d4d4; }
.buy-btn .price {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}
.buy-btn.featured { background: var(--teal); border-color: var(--teal); }
.buy-btn.featured:hover { background: var(--teal-2); }
.buy-btn.featured .label .desc { color: #cde8e7; }
.buy-btn.featured .price { color: #fff; }

.stripe-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.stripe-badge .lock {
  display: inline-block; width: 12px; height: 12px;
  border: 1.5px solid var(--muted); border-radius: 2px;
  position: relative;
}
.stripe-badge .lock::before {
  content: ""; position: absolute; top: -4px; left: 2px; right: 2px;
  height: 5px;
  border: 1.5px solid var(--muted);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}
.stripe-badge strong { color: #635bff; font-weight: 600; }

.bulk-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--teal);
  background: rgba(14,124,123,0.05);
  font-size: 0.9rem;
  color: #2a2a2a;
  border-radius: 0 6px 6px 0;
}
.bulk-note a { font-weight: 600; }

/* ---------- GO RIBBON on state cards ---------- */
.state-card .buy-ribbon {
  position: absolute;
  top: 14px;
  right: -6px;
  background: var(--gold);
  color: #1a1a1a;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px 4px 10px;
  box-shadow: 0 2px 6px rgba(10,37,64,0.15);
}
.state-card .buy-ribbon::after {
  content: "";
  position: absolute;
  right: 0; bottom: -5px;
  width: 0; height: 0;
  border-top: 5px solid #8b7637;
  border-right: 6px solid transparent;
}
