/* ==========================================================
   styles.css  -  one stylesheet shared by every page
   To change the colors, edit the values in :root below.
   ========================================================== */


:root {
  /* Palm Leaf Wisdom — Indigo & Terracotta */
  --ivory: #F4EEE5;
  --ivory-deep: #E8DED2;
  --leaf: #F0D2C3;

  --green: #263653;
  --green-dark: #19263D;

  --brown: #292B30;
  --brown-soft: #51545B;

  --gold: #C66A45;
  --gold-text: #98452E;
  --gold-light: #F4D0C2;

  --white: #FFFFFF;

  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-wrap: anywhere; /* lets long emails wrap on very small phones */
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); color: var(--green); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

a { color: var(--green); }
a:hover { color: var(--gold-text); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-tint { background: var(--ivory-deep); }
.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--green);
  color: var(--white);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; color: var(--white); }

/* ---------- Header and menu ---------- */
.site-header { border-bottom: 1px solid var(--gold); background: var(--ivory); }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--green);
  text-decoration: none;
}
.brand img {
  height: 82px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-nav a {
  display: inline-block;
  padding: 8px 2px;
  font-weight: 600;
  color: var(--brown);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--gold-text); border-bottom-color: var(--gold); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 8px 18px;
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--leaf); }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  min-height: 44px;
  padding: 12px 28px;
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--green);
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.button:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.button-outline { background: transparent; color: var(--green); }
.button-outline:hover { background: var(--green); color: var(--white); }
.button-light { background: var(--ivory); border-color: var(--ivory); color: var(--green-dark); }
.button-light:hover { background: var(--white); border-color: var(--white); color: var(--green-dark); }
.button-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0; }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-text { flex: 1 1 420px; }
.hero-text p { max-width: 520px; }
.hero-text .lead { margin-bottom: 1.8em; }
.hero-image {
  flex: 1 1 360px;
  margin: 0;
  border: 1px solid var(--gold);
  border-radius: 6px;
  overflow: hidden;
  background: var(--leaf);
}
.hero-image img { display: block; width: 100%; }

.divider { display: block; width: 100%; max-width: 640px; margin: 0 auto 20px; }

/* ---------- Cards, steps ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid #D9C99A;
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  padding: 28px;
}
.card p:last-child { margin-bottom: 0; }
.price { font-weight: 600; color: var(--gold-text); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--font-heading);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--gold-text);
}
.steps h3 { font-size: 1.35rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 0.25em; }

.section-title { margin-bottom: 40px; text-align: center; }
.section-link { margin-top: 32px; text-align: center; }

/* ---------- Call to action band ---------- */
.cta-band { background: var(--green); color: var(--white); padding: 64px 0; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 560px; margin-left: auto; margin-right: auto; margin-bottom: 1.5em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: var(--ivory-deep); padding: 48px 0 32px; font-size: 1rem; }
.site-footer a { color: var(--ivory-deep); }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.footer-brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; margin-bottom: 0.4em; }
.footer-heading { font-weight: 600; margin-bottom: 0.4em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--brown-soft); font-size: 0.9rem; }
.footer-note p { margin-bottom: 0.4em; }

/* ---------- Inner pages (used from Stage 3) ---------- */
.page-hero { background: var(--ivory-deep); padding: 56px 0; text-align: center; border-bottom: 1px solid var(--gold); }
.page-hero h1 { color: var(--green); }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.5em; }
.notice { background: var(--ivory-deep); border: 1px solid var(--gold); border-radius: 4px; padding: 16px 20px; }

details { background: var(--white); border: 1px solid #D9C99A; border-radius: 4px; margin-bottom: 12px; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 600; min-height: 44px; }
details p { padding: 0 20px; }

/* ---------- Form (used from Stage 4) ---------- */
.form-field { margin-bottom: 20px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--white);
  color: var(--brown);
  border: 1px solid var(--brown-soft);
  border-radius: 4px;
  font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
.error-text { color: #9B2C2C; font-size: 0.95rem; margin-top: 4px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ---------- Layout helpers for Stage 3 pages ---------- */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 48px;
  align-items: start;
}
.lead { font-size: 1.25rem; }
.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 24px;
  text-align: center;
  background: var(--leaf);
  border: 2px dashed var(--gold);
  border-radius: 6px;
  color: var(--brown-soft);
  font-size: 1rem;
}
.contact-list { list-style: none; margin: 0 0 1.5em; padding: 0; }
.contact-list li { margin-bottom: 12px; }
.prose h2 { font-size: 1.75rem; }

/* ---------- Form messages (Stage 4) ---------- */
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border: 2px solid #9B2C2C; }
.form-message { padding: 16px 20px; border-radius: 4px; margin-bottom: 20px; font-weight: 600; }
.form-success { background: #E7F0E9; border: 1px solid var(--green); color: var(--green-dark); }
.form-error { background: #F8E8E8; border: 1px solid #9B2C2C; color: #7A2020; }

/* ---------- Palm Leaf Wisdom: Indigo & Terracotta redesign ---------- */

.site-header {
  background: var(--green);
  border-bottom: 3px solid var(--gold);
}

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

.site-nav a {
  color: var(--white);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  color: var(--white);
  border-color: var(--gold-light);
}

.nav-toggle:hover {
  background: var(--green-dark);
}

.button {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.button:hover {
  background: var(--gold-text);
  border-color: var(--gold-text);
  color: var(--white);
}

.button-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

.button-outline:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.button-light {
  background: var(--white);
  border-color: var(--white);
  color: var(--green);
}

.button-light:hover {
  background: var(--ivory-deep);
  border-color: var(--ivory-deep);
  color: var(--green-dark);
}

.hero-image {
  border-color: var(--gold);
  background: var(--ivory-deep);
}

.card {
  border: 1px solid #DED2C5;
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 5px 18px rgba(38, 54, 83, 0.06);
}

.cta-band {
  background: var(--green);
}

.cta-band h2 {
  color: var(--white);
}

.site-footer {
  background: var(--green-dark);
  color: var(--white);
}

.site-footer a {
  color: var(--gold-light);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-note {
  border-top-color: #48536A;
}

.page-hero {
  background: var(--ivory-deep);
  border-bottom: 3px solid var(--gold);
}

.page-hero h1,
h2 {
  color: var(--green);
}

.notice {
  background: var(--ivory-deep);
  border-color: var(--gold);
  border-radius: 8px;
}

details {
  border-color: #DED2C5;
  border-radius: 8px;
}

input, select, textarea {
  border-color: #A8A09A;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .site-nav {
    background: var(--green);
  }

  .site-nav a {
    border-bottom-color: #48536A;
  }
}

/* Logo size adjustment */
.brand img,
.site-header .logo img,
.site-header img {
  max-height: 70px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .brand img,
  .site-header .logo img,
  .site-header img {
    max-height: 50px;
    max-width: 180px;
  }
}


/* Service and chapter images */
.service-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 18px;
}

.service-card,
.chapter-card {
  overflow: hidden;
}

.service-card .button {
  margin-top: 12px;
}

.chapter-number,
.chapter-status {
  font-size: 0.9rem;
  font-weight: 600;
}

.chapter-status {
  color: var(--gold-text);
}

#chapters-list {
  align-items: stretch;
}

/* Palm leaf reading gallery */
.reading-photos {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.reading-photos figure {
  margin: 0;
  overflow: hidden;
}

.reading-photos img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: contain;
  border-radius: 8px;
}


@media (max-width: 600px) {
  .reading-photos {
    grid-template-columns: 1fr;
  }

  .reading-photos img {
    height: auto;
    max-height: 360px;
  }
}
#additional-chapters .notice { margin-top: 32px; }
#additional-chapters .center { margin-top: 24px; }

/* Logo size: change only the two numbers */
.site-header .brand img {
  height: 80px;
  max-height: 80px;
  width: auto;
  max-width: none;
}
@media (max-width: 760px) {
  .site-header .brand img {
    height: 56px;
    max-height: 56px;
  }
}
.chapter-enquiry { display: none; }
/* Reading photos: no white box, the photos float on the background */
.reading-photos figure.card {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.reading-photos img {
  width: auto;
  max-width: 100%;
  height: 360px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(36, 59, 74, 0.25);
}
@media (max-width: 600px) {
  .reading-photos img { height: auto; max-height: 340px; }
}
