/* Spiritual Entry Website CSS */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+Pro:wght@300;400;500;600&display=swap');

/* CSS Variables - Design System */
:root {
  /* Color Palette */
  --primary-purple: #7B6B8F;
  --light-purple: #B8A9C9;
  --accent-sage: #9CAF88;
  --dark-text: #2C2C2C;
  --medium-gray: #666666;
  --light-bg: #F9F7F4;
  --white: #FFFFFF;
  --border-light: #E8E4DF;

  /* Spacing System - Reduced for better density */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.5rem;
  --space-lg: 1.75rem;
  --space-xl: 2.5rem;

  /* Typography */
  --font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --line-height-body: 1.5;
  --line-height-heading: 1.1;

  /* Layout */
  --max-content-width: 1100px;
  --content-padding-mobile: 1rem;
  --content-padding-desktop: 2rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 1.125rem;
  line-height: var(--line-height-body);
  color: var(--dark-text);
  background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  line-height: var(--line-height-heading);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

h1 {
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
  font-weight: 600;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  font-weight: 500;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

p {
  margin-bottom: var(--space-sm);
}

a {
  color: var(--primary-purple);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--light-purple);
}

a:focus {
  outline: 2px solid var(--accent-sage);
  outline-offset: 2px;
}

/* Remove focus outline for navigation links */
header nav a:focus,
#header nav a:focus,
#mobile-menu nav a:focus {
  outline: none;
}

/* Layout Components */
.container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 var(--content-padding-mobile);
}

.section {
  padding: var(--space-md) 0;
}

.section--light {
  background-color: var(--light-bg);
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-purple);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

/* Header and Navigation */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
}

.nav__logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-purple);
}

.nav__logo-image {
  display: block;
  height: 52px;
  width: auto;
}

.nav__toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-xs);
  color: var(--primary-purple);
}

.nav__menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 200;
}

.nav__menu--open {
  transform: translateX(0);
}

.nav__list {
  list-style: none;
  text-align: center;
}

.nav__item {
  margin-bottom: var(--space-md);
}

.nav__link {
  font-size: 1.25rem;
  font-weight: 500;
  padding: var(--space-sm);
  display: block;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--primary-purple);
  width: 44px;
  height: 44px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  min-height: 44px;
  min-width: 44px;
}

.btn--primary {
  background-color: var(--accent-sage);
  color: var(--white);
}

.btn--primary:hover {
  background-color: #8A9C7A;
  color: var(--white);
}

.btn--secondary {
  background-color: transparent;
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
}

.btn--secondary:hover {
  background-color: var(--primary-purple);
  color: var(--white);
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
  text-align: center;
  padding: var(--space-md) 0;
}

.hero__headline {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--primary-purple);
  font-weight: 600;
}

.hero__subheading {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
  color: var(--medium-gray);
  line-height: 1.4;
  max-width: none;
}

.hero__supporting {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--dark-text);
}

/* Cards */
.cards {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

/* Compact spacing for summary cards on homepage */
.cards .card p,
.cards .card ul {
  margin-bottom: var(--space-xs);
}

.card p,
.card ul {
  margin-bottom: var(--space-xs);
}

.card ul {
  margin-left: 1.25rem;
}

/* Indented cascade list (no bullets), each line indents more than previous */
.indent-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.indent-list li {
  margin: var(--space-xs) 0;
  padding-left: 0;
}

.indent-list li:nth-child(2) { padding-left: var(--space-md); }
.indent-list li:nth-child(3) { padding-left: calc(var(--space-md) * 2); }
.indent-list li:nth-child(4) { padding-left: calc(var(--space-md) * 3); }
.indent-list li:nth-child(5) { padding-left: calc(var(--space-md) * 4); }

/* Remove default left margin for cascade lists inside cards */
.card .indent-list { margin-left: 0; }

.card {
  background-color: var(--white);
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(123, 107, 143, 0.1);
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 1;
  transform: translateY(0);
  display: block;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(123, 107, 143, 0.15);
}

.card__icon {
  width: 64px;
  height: 64px;
  background-color: var(--light-purple);
  border-radius: 50%;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
}

.card__headline {
  font-size: 1.375rem;
  margin-bottom: var(--space-xs);
  text-align: left;
  color: var(--primary-purple);
}

.card__body {
  margin-bottom: var(--space-sm);
}

.card__link {
  font-weight: 600;
  color: var(--accent-sage);
  margin-top: var(--space-sm);
}

.card__link:hover {
  color: #7A8C69;
}

/* About Section */
.about {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

.about__content h2 {
  color: var(--primary-purple);
  margin-bottom: var(--space-md);
}

.about__credentials {
  margin: var(--space-md) 0;
}

.about__credentials ul {
  list-style: none;
  padding-left: 0;
}

.about__credentials li {
  padding: var(--space-xs) 0;
  position: relative;
  padding-left: var(--space-md);
}

.about__credentials li::before {
  content: "•";
  color: var(--accent-sage);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.about__image {
  text-align: center;
}

.about__photo {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.drawing-section {
  margin-top: var(--space-lg);
  text-align: center;
}

.drawing-section__image {
  width: 100%;
  max-width: 400px;
  margin: var(--space-md) 0;
}

/* Pricing Table */
.pricing {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  margin: var(--space-md) 0;
}

.pricing__header {
  background-color: var(--primary-purple);
  color: var(--white);
  padding: var(--space-md);
  text-align: center;
}

.pricing__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border-light);
}

.pricing__cell {
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  border-right: 1px solid var(--border-light);
}

.pricing__cell:last-child {
  border-right: none;
}

.pricing__cell--header {
  background-color: var(--light-bg);
  font-weight: 600;
}

/* Contact Section */
.contact {
  text-align: center;
}

.contact__info {
  margin: var(--space-md) 0;
}


.contact__email {
  font-size: 1.125rem;
  margin-top: var(--space-sm);
}

/* Footer */
.footer {
  background-color: var(--primary-purple);
  color: var(--white);
  text-align: center;
  padding: 1.25rem 0;
}

.footer__content {
  margin-bottom: var(--space-md);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer__link {
  color: var(--white);
}

.footer__link:hover {
  color: var(--light-purple);
}

.footer__bottom {
  border-top: 1px solid var(--light-purple);
  padding-top: var(--space-sm);
  font-size: 0.825rem;
  opacity: 0.8;
}

/* Callout / Quote */
.callout {
  background: var(--white);
  border-left: 4px solid var(--primary-purple);
  border-right: 4px solid var(--primary-purple);
  border-radius: 8px;
  padding: var(--space-md);
  box-shadow: 0 2px 10px rgba(123, 107, 143, 0.08);
}

.callout--hero {
  max-width: 65ch;
  margin: var(--space-md) auto;
  text-align: left;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(123, 107, 143, 0.12);
}

.callout--hero p {
  margin-bottom: 0;
}

/* Split layout for text + media */
.split {
  display: block;
}

.split__media img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

@media (min-width: 768px) {
  .split {
    display: grid;
    grid-template-columns: 1fr 360px;
    column-gap: var(--space-xl);
    align-items: start;
  }
}

.callout__quote {
  font-style: italic;
  line-height: 1.6;
  position: relative;
  color: var(--dark-text);
  padding-top: 0.5em;
}

.callout__quote::before {
  content: "\201C"; /* open quote */
  position: absolute;
  left: -0.5rem;
  top: -0.75rem;
  font-size: 3rem;
  line-height: 1;
  color: var(--light-purple);
  opacity: 0.5;
}

.callout__cite {
  display: block;
  margin-top: var(--space-xs);
  color: var(--medium-gray);
  text-align: right;
  font-weight: 600;
}

/* Poem formatting */
.poem {
  text-align: center;
  white-space: pre-wrap;
  line-height: 1.6;
  font-style: italic;
}

/* Responsive Design */
@media (min-width: 768px) {
  .container {
    padding: 0 var(--content-padding-desktop);
  }

  .section {
    padding: var(--space-lg) 0;
  }

  .nav__toggle {
    display: none;
  }

  .nav {
    justify-content: center;
    gap: var(--space-xl);
  }

  .nav__menu {
    position: static;
    width: auto;
    height: auto;
    background: none;
    flex-direction: row;
    transform: none;
    transition: none;
  }

  .nav__list {
    display: flex;
    flex: 0 1 auto;
    justify-content: center;
    gap: var(--space-lg);
    margin-left: 0;
    flex-wrap: nowrap;
  }

  .nav__logo {
    margin-left: var(--space-md);
  }

  .nav__item {
    margin-bottom: 0;
  }

  .nav__link {
    font-size: 1rem;
  }

  .nav__close {
    display: none;
  }

  .hero__headline {
    font-size: 1.5rem;
  }

  .btn-group {
    flex-direction: row;
    justify-content: center;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .about {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .about__image { display: none; }
}

/* Prefer hamburger between tablet and large desktop to avoid wrapping */
@media (min-width: 768px) and (max-width: 1199px) {
  .nav__toggle { display: block; }
  .nav { justify-content: space-between; align-items: center; }
  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 200;
  }
  .nav__menu--open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: var(--space-md); }
  .nav__close { display: block; }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero__headline {
    font-size: 1.5rem;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing__row {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 1200px) {
  .hero__headline {
    font-size: 2rem;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.text-left {
  text-align: left;
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}
