/* ============================================================
   Engraving Heavenly Truths -- brand stylesheet
   ============================================================ */

:root {
  --blue: #4e85a9;
  --blue-dark: #2c5470;
  --blue-darker: #1c3a4f;
  --navy: #17222c;
  --gray: #b8b5b4;
  --gray-dark: #6f6d6c;
  --cream: #f7f5f3;
  --white: #ffffff;
  --ink: #232b30;

  --font-head: "Lora", Georgia, serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1120px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(23, 34, 44, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--blue-darker);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--blue);
  margin-bottom: 0.75em;
}

.section {
  padding: 72px 0;
}

.section--tight { padding: 48px 0; }

.section--cream { background: var(--cream); }
.section--navy {
  background: var(--blue-darker);
  color: #dfe8ee;
}
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .eyebrow { color: #9dc1d6; }

.section-head {
  max-width: 680px;
  margin: 0 0 40px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--blue);
  color: var(--white);
}
.btn--primary:hover { background: var(--blue-dark); }

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,0.12); }

.btn--outline-dark {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue-dark);
}
.btn--outline-dark:hover { background: var(--blue); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid #eceae8;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand img {
  height: 40px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}
.main-nav a.active,
.main-nav a:hover {
  color: var(--blue);
}
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--blue-darker);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

@media (max-width: 880px) {
  .main-nav {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .header-actions .phone-link span { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--blue-darker) 0%, var(--blue-dark) 55%, var(--blue) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero .container {
  padding-top: 88px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.hero-mark {
  justify-self: center;
  width: 100%;
  max-width: 320px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
}
.hero-mark img { background: var(--white); border-radius: 24px; padding: 28px; }
.hero h1 { color: var(--white); }
.hero .tagline {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.25rem;
  color: #bfd8e6;
  margin-bottom: 18px;
}
.hero p.lede {
  font-size: 1.1rem;
  color: #dfe8ee;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 20px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--white);
}
.hero-stat strong { font-size: 2rem; color: #9dc1d6; }

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-mark { max-width: 220px; }
}

/* ---------- Page header (non-home pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--blue-darker), var(--blue-dark));
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero p { color: #cfe0e9; max-width: 640px; margin: 0 auto; }

/* ---------- Grids / Cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid #eee;
}

.icon-card {
  text-align: left;
}
.icon-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(78,133,169,0.12);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.quote-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
}
.quote-card p { font-style: italic; color: var(--ink); }
.quote-card cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 0.92rem;
}
.quote-card cite span {
  display: block;
  font-weight: 400;
  color: var(--gray-dark);
}

/* Year / quarter curriculum cards */
.year-block { margin-bottom: 56px; }
.year-block:last-child { margin-bottom: 0; }
.year-block-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--cream);
  padding-bottom: 14px;
}
.year-block-head .year-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--blue);
}
.quarter-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #eee;
  transition: transform .15s ease;
}
.quarter-card:hover { transform: translateY(-4px); }
.quarter-card .cover {
  aspect-ratio: 1/1.9;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}
.quarter-card .cover img { width: 100%; height: 100%; object-fit: contain; }
.quarter-card .meta { padding: 14px 16px; }
.quarter-card .meta .q-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.quarter-card .meta h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  margin: 4px 0 0;
  color: var(--ink);
}

/* Materials & pricing table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pricing-table th, .pricing-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.pricing-table th {
  background: var(--blue-darker);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
}
.pricing-table td.price {
  font-weight: 700;
  color: var(--blue-dark);
  white-space: nowrap;
}
.pricing-table tr:last-child td { border-bottom: none; }

.cost-scenarios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 24px; }
@media (max-width: 700px) { .cost-scenarios { grid-template-columns: 1fr; } }
.cost-scenario {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 26px;
}
.cost-scenario .amount {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--blue-dark);
}

/* Steps / timeline */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  margin-bottom: 22px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-head);
}

.timeline {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.timeline-step {
  flex: 1;
  min-width: 160px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.timeline-step.is-off {
  background: var(--cream);
  color: var(--gray-dark);
  border: 1px dashed var(--gray);
}
.timeline-step strong { display: block; font-family: var(--font-head); margin-bottom: 4px; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--blue-darker);
}
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8d5d2;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(78,133,169,0.18);
}
textarea { resize: vertical; min-height: 140px; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--gray-dark); }
.checkbox-row input { width: auto; margin-top: 4px; }

.form-note {
  font-size: 0.85rem;
  color: var(--gray-dark);
}

.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-weight: 600;
}
.alert--success { background: #e4f3ea; color: #1f6d42; }
.alert--error { background: #fbe8e6; color: #9a2f24; }

/* ---------- Contact / Info blocks ---------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.info-list .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(78,133,169,0.12);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---------- Order paths ---------- */
.order-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 800px) { .order-paths { grid-template-columns: 1fr; } }
.order-path {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
}
.order-path ul { padding-left: 20px; margin: 16px 0; }
.order-path li { margin-bottom: 6px; }

/* ---------- Placeholder / coming soon ---------- */
.coming-soon-banner {
  background: var(--cream);
  border: 1px dashed var(--gray);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 40px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.coming-soon-banner .icon { font-size: 1.6rem; }

.store-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; opacity: 0.92; }
@media (max-width: 900px) { .store-preview-grid { grid-template-columns: repeat(2, 1fr); } }
.store-tile {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #eee;
  padding: 18px;
  text-align: center;
}
.store-tile .cover-mini {
  aspect-ratio: 1/1.9;
  background: var(--cream);
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
  padding: 6px;
}
.store-tile .cover-mini img { width: 100%; height: 100%; object-fit: contain; }
.store-tile .price-tag {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  color: var(--blue-dark);
}
.store-tile .disabled-btn {
  margin-top: 12px;
  width: 100%;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid var(--gray);
  color: var(--gray-dark);
  background: var(--cream);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: not-allowed;
}

/* ---------- Newsletter ---------- */
.newsletter-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; min-width: 280px; }
.newsletter-form input[type="email"] { flex: 1; min-width: 220px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #b9c4cc;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid img { height: 34px; margin-bottom: 14px; }
.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #b9c4cc; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #7f8c94;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack-lg > * + * { margin-top: 18px; }
