/*
 * Selah Summit Press — Boutique Publishing Theme
 * This stylesheet defines a calm, sacred colour palette of pastel greens and golds,
 * generous white space, and refined typography. It aims to create a cinematic,
 * editorial feel appropriate for pastors and ministry leaders.
 */

/* CSS Reset and core variables */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Base colours */
  --bg: #fbfcfb;
  --surface: #ffffff;
  --text: #1f2937; /* Slate 800 */
  --muted: #6b7280; /* Slate 500 */

  /* Pastel green + gold palette */
  --sage-50: #f2f7f4;
  --sage-100: #e6f1eb;
  --sage-200: #cfe3d7;
  --sage-600: #2f6f57;
  --gold-300: #f1d38a;
  --gold-500: #d6a84a;
  --gold-700: #a9791e;

  /* Neutral elements */
  --border: rgba(31, 41, 55, 0.1);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* Container */
.container {
  width: min(1100px, 92vw);
  margin-left: auto;
  margin-right: auto;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand-name {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 14px;
  color: var(--muted);
}

/* Navigation */
.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav a {
  font-weight: 500;
}

.nav .btn-small {
  padding: 8px 14px;
  font-size: 14px;
}

/* Mobile navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
}

@media (max-width: 800px) {
  .nav {
    position: fixed;
    top: 60px;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav.nav-open {
    transform: translateX(0);
  }
  .nav a {
    margin-bottom: 12px;
  }
  .nav-toggle {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  /* Use the improved banner image for the hero */
  background-image: url("./newbanner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 80vh;
  display: flex;
  /* Align hero content to the bottom to keep text below the logo embedded in the banner */
  align-items: flex-end;
  color: #ffffff;
  isolation: isolate;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(7, 18, 28, 0.14) 0%, rgba(6, 14, 22, 0.32) 44%, rgba(3, 9, 16, 0.56) 100%);
  pointer-events: none;
  z-index: 5;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: left;
  /* Remove top padding and add bottom padding to push the text below the logo */
  padding: 0 0 80px 0;
}

.hero-kicker {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--gold-300);
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 22px);
  max-width: 600px;
  margin-bottom: 32px;
  color: #e6e6e6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-row {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.trust-item strong {
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 700px) {
  .hero-content {
    text-align: center;
    /* Remove top padding and add bottom padding on small screens to keep text below the logo */
    padding: 0 0 60px 0;
  }
  .trust-row {
    justify-content: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--surface);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn--primary {
  background: linear-gradient(180deg, var(--sage-600), #245945);
  color: #ffffff;
  border: none;
}

.btn--gold {
  background: linear-gradient(180deg, #ffe7b5, var(--gold-300));
  border: 1px solid rgba(169, 121, 30, 0.25);
  color: #5f4513;
}

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-muted {
  background: var(--sage-50);
}

.section-tint {
  background: linear-gradient(180deg, var(--sage-50), rgba(255, 255, 255, 0));
}

/* Typography */
h1, h2, h3 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(24px, 4vw, 36px);
}

h3 {
  font-size: 20px;
}

.lead {
  margin-bottom: 28px;
  font-size: 18px;
  color: var(--muted);
  max-width: 700px;
}

.fine {
  font-size: 14px;
  color: var(--muted);
}

/* Checklists and mini-grid */
.checklist {
  list-style: none;
  margin-top: 16px;
}

.checklist li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 16px;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--sage-600);
  font-weight: 700;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: start;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.contact-section {
  text-align: center;
}

.contact-section p {
  max-width: 680px;
  margin: 0 auto 12px;
  color: var(--muted);
  font-size: 18px;
}

.contact-section a {
  color: var(--sage-600);
  font-weight: 600;
}

.contact-section form {
  max-width: 720px;
  margin: 32px auto 0;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: left;
}

.form-group {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-group label {
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(31, 41, 55, 0.14);
  border-radius: 14px;
  background: #fcfdfc;
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 160px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(47, 111, 87, 0.5);
  box-shadow: 0 0 0 4px rgba(47, 111, 87, 0.12);
  background: #ffffff;
}

@media (max-width: 700px) {
  .contact-section form {
    padding: 22px;
  }
}

/* Mini grid in who section */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.mini-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--sage-600);
}

.mini-text {
  font-size: 14px;
  color: var(--muted);
}

/* Steps section */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sage-600);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.step-body h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.step-body p {
  font-size: 14px;
  color: var(--muted);
}

/* Services */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.service-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.service-card ul {
  list-style: none;
  margin-bottom: 16px;
}

.service-card li {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}

.service-card li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-500);
  font-weight: 700;
}

.service-for {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--muted);
}

.service-foot .pill {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: var(--gold-300);
  color: #5f4513;
  font-weight: 600;
}

/* Investment section */
.accent-line {
  height: 3px;
  width: 72px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-500), rgba(214, 168, 74, 0));
  margin: 14px 0 18px;
}

.investment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
  margin-top: 24px;
}

.invest-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.invest-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 240px at 10% 0%, rgba(207, 227, 215, 0.55), transparent 60%), radial-gradient(520px 220px at 90% 20%, rgba(241, 211, 138, 0.4), transparent 55%);
  pointer-events: none;
}

.invest-card h3 {
  margin-bottom: 4px;
  font-size: 20px;
}

.invest-sub {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.invest-price {
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 800;
}

.invest-list {
  list-style: none;
  margin-bottom: 16px;
}

.invest-list li {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}

.invest-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--sage-600);
  font-weight: 700;
}

.invest-note {
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

/* Credibility section */
.cred-list {
  list-style: none;
  margin-top: 16px;
}

.cred-list li {
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--sage-600);
}

.about-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.about-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

/* Apply section */
.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.ordered {
  margin-left: 20px;
  font-size: 14px;
  color: var(--muted);
}

.ordered li {
  margin-bottom: 8px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  font-size: 14px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-left {
  max-width: 300px;
}

.footer-brand {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.footer-note {
  font-size: 14px;
  color: var(--muted);
}

.footer-right {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-right a {
  font-weight: 500;
  color: var(--sage-600);
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 16px;
  padding: 8px 12px;
  background: var(--sage-600);
  color: #fff;
  z-index: 1000;
}

/* Override hero intro styles so text and buttons are readable on light backgrounds */
.hero-intro .hero-title {
  color: var(--text);
}
.hero-intro .hero-sub {
  color: var(--muted);
}
.hero-intro .btn--ghost {
  border: 1px solid var(--sage-600);
  color: var(--sage-600);
}
.hero-intro .btn--ghost:hover {
  border-color: var(--sage-600);
  color: var(--sage-600);
}
.note-small {
  font-size: 0.85rem;
}
.note-small {
  font-size: 0.85rem;
}
