
:root {
  --cream: #fbf6ec;
  --paper: #fffdf8;
  --maroon: #6f2f2f;
  --gold: #c99b4b;
  --green: #66765a;
  --ink: #2f2a26;
  --muted: #756c64;
  --border: #e8dcc8;
  --shadow: 0 18px 45px rgba(71, 49, 35, 0.10);
  --radius: 22px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 246, 236, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(111, 47, 47, 0.10);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  background: var(--paper);
  font-size: 1.2rem;
}

.brand-text {
  font-size: 1.28rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: #4d4139;
  font-family: Arial, sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  color: var(--maroon);
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 96px;
  background:
    radial-gradient(circle at 12% 20%, rgba(201, 155, 75, .18), transparent 22%),
    radial-gradient(circle at 88% 15%, rgba(102, 118, 90, .14), transparent 25%),
    linear-gradient(180deg, #fffaf1, #f8efe2);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(111, 47, 47, 0.10);
  border-radius: 50%;
}

.hero::before { left: -150px; top: -110px; }
.hero::after { right: -120px; bottom: -150px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: 70px;
}

.eyebrow {
  display: inline-block;
  color: var(--maroon);
  font-family: Arial, sans-serif;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
  margin-bottom: 18px;
}

h1, h2, h3 {
  color: var(--maroon);
  line-height: 1.15;
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.4rem);
  margin-bottom: 22px;
  font-weight: 500;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  margin-bottom: 18px;
  font-weight: 500;
}

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

.hero p {
  font-size: 1.17rem;
  max-width: 650px;
  color: #5d524a;
  margin-bottom: 32px;
}

.hero-card {
  min-height: 430px;
  border-radius: 40px 40px 160px 40px;
  background:
    linear-gradient(rgba(111,47,47,.08), rgba(111,47,47,.08)),
    url("../images/hero-banner.svg") center/cover no-repeat;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201,155,75,.35);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: var(--maroon);
  box-shadow: 0 10px 24px rgba(111,47,47,.20);
}

.btn-secondary {
  border: 1px solid var(--maroon);
  color: var(--maroon);
  background: transparent;
}

section {
  padding: 92px 0;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-intro p {
  color: var(--muted);
  font-size: 1.08rem;
}

.values-grid,
.cards-grid,
.founders-grid {
  display: grid;
  gap: 24px;
}

.values-grid {
  grid-template-columns: repeat(3, 1fr);
}

.value-card,
.book-card,
.story-card,
.content-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.value-card {
  padding: 34px;
}

.value-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #f5ead7;
  color: var(--maroon);
  font-size: 1.4rem;
  margin-bottom: 22px;
}

.alt-section {
  background: #f3eadc;
}

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

.image-panel {
  min-height: 460px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: url("../images/story.svg") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.content-card {
  padding: 42px;
}

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

.book-card {
  overflow: hidden;
}

.book-cover {
  aspect-ratio: 4 / 5;
  background: #eee3d2;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-body {
  padding: 26px;
}

.book-meta {
  font-family: Arial, sans-serif;
  font-size: .84rem;
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.page-banner {
  padding: 88px 0 70px;
  background:
    radial-gradient(circle at 80% 20%, rgba(201,155,75,.18), transparent 22%),
    #f7edde;
  border-bottom: 1px solid var(--border);
}

.page-banner p {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.1rem;
}

.story-card {
  padding: 48px;
}

.founders-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 32px;
}

.founder-card {
  background: #fffaf1;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}

.cta {
  text-align: center;
  background: var(--maroon);
  color: white;
}

.cta h2, .cta p {
  color: white;
}

.cta .btn-primary {
  background: var(--gold);
  color: #3f2b20;
}

.site-footer {
  padding: 54px 0 28px;
  background: #2f2823;
  color: #e8ddd2;
  font-family: Arial, sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-title {
  font-family: Georgia, serif;
  color: #fff6eb;
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #bfb2a8;
  font-size: .9rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-card {
    min-height: 340px;
  }
}

@media (max-width: 720px) {
  .menu-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 4%;
    right: 4%;
    padding: 22px;
    border-radius: 18px;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .site-nav.open { display: flex; }

  .hero { padding: 76px 0 70px; }

  .values-grid,
  .cards-grid,
  .founders-grid {
    grid-template-columns: 1fr;
  }

  section { padding: 70px 0; }

  .content-card,
  .story-card { padding: 30px; }

  h1 { font-size: 3.3rem; }
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
  box-shadow: 0 4px 12px rgba(0,0,0,.10);
}


/* Rotating image banner */
.running-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5;
  min-height: 230px;
  max-height: 530px;
  overflow: hidden;
  background: #efe5d4;
  border-bottom: 1px solid var(--border);
}

.running-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.running-slide.active {
  opacity: 1;
}

.running-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slider-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 17px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 50%;
  background: rgba(47,40,35,.45);
  cursor: pointer;
}

.slider-dot.active {
  background: #fff;
}

/* Home hero logo */
.hero-logo {
  width: min(330px, 72vw);
  border-radius: 50%;
  margin-bottom: 28px;
  box-shadow: 0 24px 55px rgba(21, 47, 37, .18);
  border: 2px solid rgba(201,155,75,.55);
}

.hero.brand-hero {
  padding-top: 76px;
}

.hero.brand-hero h1 {
  font-size: clamp(2.35rem, 5vw, 4.8rem);
}

/* About image */
.knowledge-panel {
  min-height: 500px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: #f4e9d8 url("../images/knowledge-scriptures.png") center/cover no-repeat;
  box-shadow: var(--shadow);
}

/* Instagram ordering */
.instagram-order {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: #f6ead8;
  border: 1px solid var(--border);
}

.instagram-handle {
  color: var(--maroon);
  font-weight: 700;
}

.order-note {
  max-width: 780px;
  padding: 26px 30px;
  margin: 0 0 38px;
  border-radius: 20px;
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

@media (max-width: 720px) {
  .running-banner {
    aspect-ratio: 4 / 3;
    min-height: 300px;
  }

  .running-slide img {
    object-position: center;
  }

  .hero.brand-hero {
    padding-top: 60px;
  }

  .hero-logo {
    width: min(250px, 68vw);
  }
}


/* Updated Home hero */
.hero-copy p + p {
  margin-top: -10px;
}

.hero-logo-panel {
  display: grid;
  place-items: center;
  min-height: 430px;
  padding: 34px;
  border-radius: 40px 40px 160px 40px;
  background:
    radial-gradient(circle at center, rgba(201,155,75,.18), transparent 58%),
    linear-gradient(145deg, #fffaf0, #eadcc6);
  box-shadow: var(--shadow);
  border: 1px solid rgba(201,155,75,.35);
}

.hero-logo-panel img {
  width: min(420px, 92%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 22px 50px rgba(21,47,37,.22);
}

.about-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.value-meaning {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-family: Arial, sans-serif;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.long-form-story {
  max-width: 900px;
  margin: 0 auto;
}

.long-form-story p {
  font-size: 1.08rem;
  margin-bottom: 22px;
}

.long-form-story blockquote {
  margin: 30px 0;
  padding: 28px 34px;
  border-left: 4px solid var(--gold);
  border-radius: 0 18px 18px 0;
  background: #f7ecdc;
  color: var(--maroon);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-style: italic;
  line-height: 1.45;
}

.story-signoff {
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.story-signoff h3 {
  margin-bottom: 5px;
}

/* Better responsive handling for running images */
@media (min-width: 1200px) {
  .running-banner {
    aspect-ratio: 16 / 5;
    max-height: 520px;
  }

  .running-slide img {
    object-fit: cover;
    object-position: center center;
  }
}

@media (max-width: 900px) {
  .hero-logo-panel {
    min-height: 360px;
    border-radius: 30px 30px 100px 30px;
  }

  .about-sections {
    grid-template-columns: 1fr;
  }

  .running-banner {
    aspect-ratio: 16 / 7;
    min-height: 280px;
  }

  .running-slide img {
    object-fit: cover;
  }
}

@media (max-width: 720px) {
  .running-banner {
    aspect-ratio: 4 / 3;
    min-height: 330px;
  }

  .running-slide img {
    object-fit: cover;
    object-position: center;
  }

  .running-slide:nth-child(1) img {
    object-position: 58% center;
  }

  .running-slide:nth-child(2) img {
    object-position: 50% center;
  }

  .running-slide:nth-child(3) img {
    object-position: 50% center;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-logo-panel {
    min-height: 300px;
    padding: 24px;
    border-radius: 28px;
  }

  .hero-logo-panel img {
    width: min(280px, 82vw);
  }

  .long-form-story blockquote {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .running-banner {
    min-height: 300px;
  }

  .running-slide img {
    transform: scale(1.02);
  }

  .hero {
    padding-top: 52px;
  }

  .hero-logo-panel {
    min-height: 270px;
  }
}


/* Final carousel treatment: show complete running artwork */
.running-banner {
  position: relative;
  width: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: 16 / 5;
  overflow: hidden;
  background: #f8f1e5;
  border-bottom: 1px solid var(--border);
}

.running-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
  background: #f8f1e5;
}

.running-slide.active {
  opacity: 1;
}

.running-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f8f1e5;
}

/* Integrated Para Mārgam brand panel */
.hero-brand-panel {
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 32px;
  border-radius: 34px;
  background:
    linear-gradient(rgba(245, 235, 215, .78), rgba(245, 235, 215, .78)),
    url("../images/story.svg") center/cover no-repeat;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201,155,75,.45);
  overflow: hidden;
}

.hero-brand-inner {
  width: min(440px, 100%);
  padding: 28px 30px 24px;
  text-align: center;
  border-radius: 26px;
  background: rgba(255, 250, 241, .92);
  border: 1px solid rgba(201,155,75,.55);
  box-shadow: 0 18px 38px rgba(55, 42, 32, .15);
  backdrop-filter: blur(4px);
}

.hero-brand-logo {
  width: min(330px, 88%);
  margin: 0 auto 18px;
  display: block;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: none;
}


/* Updated About Us artwork */
.about-heritage-panel {
  min-height: 520px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: #f2e6d3 url("../images/about-tree-of-knowledge.png") center/cover no-repeat;
  box-shadow: var(--shadow);
}

/* Responsive carousel and brand panel */
@media (max-width: 1100px) {
  .running-banner {
    aspect-ratio: 16 / 6;
  }

  .hero-brand-panel {
    min-height: 380px;
  }

  .about-heritage-panel {
    min-height: 460px;
  }
}

@media (max-width: 900px) {
  .running-banner {
    aspect-ratio: 16 / 7;
  }

  .running-slide img {
    object-fit: contain;
  }

  .hero-brand-panel {
    min-height: 340px;
    padding: 24px;
  }

  .hero-brand-inner {
    width: min(390px, 100%);
  }
}

@media (max-width: 720px) {
  .running-banner {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .running-slide img {
    object-fit: contain;
    object-position: center;
    transform: none;
  }

  .hero-brand-panel {
    min-height: 300px;
    border-radius: 24px;
  }

  .hero-brand-inner {
    padding: 22px 18px 18px;
  }

  .hero-brand-logo {
    width: min(280px, 92%);
  }

  .hero-brand-caption {
    gap: 14px;
    font-size: .75rem;
    letter-spacing: .10em;
  }

  .about-heritage-panel {
    min-height: 390px;
    background-size: cover;
    background-position: center;
  }
}

@media (max-width: 480px) {
  .running-banner {
    aspect-ratio: 4 / 3;
  }

  .running-slide img {
    object-fit: contain;
  }

  .hero-brand-panel {
    min-height: 270px;
    padding: 16px;
  }

  .hero-brand-inner {
    padding: 18px 14px 16px;
  }

  .about-heritage-panel {
    min-height: 330px;
  }
}
