/* =========================================================
   AATMAN — Site Stylesheet
   Vanilla CSS3. No frameworks. Mobile-first, accessible.
   ========================================================= */

:root {
  --ivory: #faf6ef;
  --cream: #f3ead9;
  --teal: #1f4a45;
  --teal-dark: #163531;
  --sage: #8ba888;
  --sage-light: #e7ede4;
  --gold: #b98d4f;
  --gold-soft: #d9b98a;
  --ink: #26302e;
  --ink-soft: #4a5450;
  --line: #e2d9c8;
  --white: #ffffff;

  --font-serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 74, 69, 0.08);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--teal-dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--gold); }

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

section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-header .eyebrow { display: block; margin-bottom: 0.6rem; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.bg-cream { background: var(--cream); }
.bg-teal { background: var(--teal); color: var(--ivory); }
.bg-teal h2, .bg-teal h3 { color: var(--ivory); }
.bg-teal p { color: #cfe0da; }

hr.soft-sep {
  border: none;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: var(--ivory);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--teal-dark);
  font-weight: 700;
}
.brand:hover { color: var(--gold); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.primary-nav a {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
}
.primary-nav a:hover { color: var(--gold); }

.nav-whatsapp {
  background: var(--teal);
  color: var(--ivory) !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}
.nav-whatsapp:hover { background: var(--gold); color: var(--teal-dark) !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--teal-dark);
}
.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;
}

@media (max-width: 840px) {
  .menu-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { width: 100%; padding: 0.6rem 0; }
  .nav-whatsapp { width: 100%; text-align: center; }
}

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--ivory) 100%);
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero .eyebrow { display: block; margin-bottom: 1rem; }
.hero h1 { margin-bottom: 0.4rem; }
.hero .tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero .lede {
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1.08rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

.btn-primary {
  background: var(--teal);
  color: var(--ivory) !important;
}
.btn-primary:hover { background: var(--teal-dark); color: var(--ivory) !important; }

.btn-secondary {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal) !important;
}
.btn-secondary:hover { background: var(--sage-light); }

.btn-whatsapp {
  background: #f4ece0;
  border-color: var(--gold-soft);
  color: var(--teal-dark) !important;
}
.btn-whatsapp:hover { background: var(--gold-soft); }

.btn-block { width: 100%; justify-content: center; }

/* ---------------- Cards / Grid ---------------- */
.grid {
  display: grid;
  gap: 1.75rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.5rem; }

/* ---------------- Retreat feature ---------------- */
.retreat-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
@media (max-width: 860px) {
  .retreat-feature { grid-template-columns: 1fr; }
}

.retreat-feature .retreat-media {
  background: var(--sage-light);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.retreat-feature .retreat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.retreat-feature .retreat-body {
  padding: 2.25rem 2.25rem 2.5rem;
}

.retreat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.75rem 0 1.25rem;
}
.retreat-meta .tag {
  background: var(--sage-light);
  color: var(--teal-dark);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.experience-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}
.experience-list li {
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding-left: 1.3rem;
  position: relative;
}
.experience-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.retreat-registration {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}
.retreat-registration .reg-name { font-weight: 700; color: var(--teal-dark); }

/* ---------------- Poster frame ---------------- */
.poster-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--sage-light);
}
.poster-frame img { width: 100%; display: block; }
.poster-caption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 0.75rem;
}

/* ---------------- Forms ---------------- */
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--teal-dark);
  font-size: 0.95rem;
}
.form-field input[type="text"],
.form-field input[type="tel"],
.form-field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
}
.form-field .hint {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}

.consent-field {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
}
.consent-field input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.consent-field label { font-size: 0.92rem; color: var(--ink-soft); }

.form-status {
  margin-top: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.form-status--success { color: var(--teal); }
.form-status--error { color: #a2453a; }

.stop-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.75rem;
}

/* ---------------- Content / legal pages ---------------- */
.page-hero {
  background: var(--cream);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}
.page-hero .eyebrow { display: block; margin-bottom: 0.6rem; }

.prose {
  max-width: 780px;
  margin: 0 auto;
}
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.5rem; color: var(--teal); }
.prose ul, .prose ol { color: var(--ink-soft); padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .updated {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

/* ---------------- Contact info blocks ---------------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 640px) { .info-grid { grid-template-columns: 1fr; } }

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.info-card .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.info-card .value { font-size: 1.05rem; font-weight: 600; color: var(--teal-dark); }
.info-card .value a { color: var(--teal-dark); }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--teal-dark);
  color: #d8e6e1;
  padding: 3.5rem 0 2rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--ivory);
  margin-bottom: 0.3rem;
}
.footer-tagline { color: var(--gold-soft); font-style: italic; margin-bottom: 1rem; }
.site-footer h4 {
  color: var(--ivory);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: #c3d7d0; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #9fb6af;
  text-align: center;
}

/* ---------------- Sticky mobile WhatsApp CTA ---------------- */
.sticky-whatsapp {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 200;
  background: var(--teal);
  color: var(--ivory);
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  display: none;
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 760px) {
  .sticky-whatsapp { display: inline-flex; }
}
.sticky-whatsapp:hover { background: var(--gold); color: var(--teal-dark); }

/* ---------------- 404 ---------------- */
.notfound {
  text-align: center;
  padding: 6rem 1.5rem;
}
.notfound .code {
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* ---------------- Misc ---------------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.small { font-size: 0.88rem; color: var(--ink-soft); }
