/* Mast Yogis — shared styles
   Eastern palette: saffron, marigold gold, warm cream, deep maroon */

:root {
  --sage: #C45C26;          /* saffron */
  --sage-dark: #7A2430;     /* deep maroon */
  --sage-light: #E09A3E;    /* marigold */
  --sage-mist: #F8E8D4;     /* warm turmeric wash */
  --cream: #FFF7EE;         /* warm ivory */
  --cream-dark: #F3E4D0;
  --charcoal: #2A1F1A;
  --charcoal-soft: #5A4036;
  --muted: #7A5C4E;
  --terracotta: #D4A017;    /* gold */
  --terracotta-soft: #E8C56A;
  --white: #FFFFFF;
  --border: rgba(196, 92, 38, 0.22);
  --shadow: 0 8px 28px rgba(122, 36, 48, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1080px;
  --font-serif: "Libre Baskerville", "Georgia", "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sage-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--terracotta);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.25;
  color: var(--charcoal);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sage);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}

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

/* —— Header / Nav —— */
.site-header {
  background: rgba(247, 243, 235, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--sage-dark);
}

.logo-link:hover {
  color: var(--sage);
}

.logo-img {
  width: 52px;
  height: auto;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  color: var(--sage-dark);
}

.nav-toggle-bars {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem 1.5rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--charcoal-soft);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

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

.nav-cta {
  background: var(--sage);
  color: var(--white) !important;
  padding: 0.45rem 1rem !important;
  border-radius: 999px;
  border-bottom: none !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--sage-dark);
  color: var(--white) !important;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--sage-dark);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--sage-dark);
  border-color: var(--sage);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--sage-mist);
  color: var(--sage-dark);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* —— Hero —— */
.hero {
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 85% 20%, rgba(95, 122, 90, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(196, 123, 90, 0.1), transparent 55%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--charcoal-soft);
  max-width: 36rem;
}

.hero-visual {
  background: linear-gradient(145deg, var(--sage-mist) 0%, #ffe8c8 45%, #f5d0a8 100%);
  border-radius: var(--radius-lg);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}

.hero-visual .logo-large {
  width: min(220px, 70%);
  margin-bottom: 1rem;
}

.photo-slot {
  background: linear-gradient(160deg, var(--sage-mist), var(--cream-dark));
  border: 1px dashed var(--sage-light);
  border-radius: var(--radius);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 1.5rem;
}

.photo-slot--tall {
  min-height: 280px;
}

/* —— Sections —— */
.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: var(--white);
  border-block: 1px solid var(--border);
}

.section-header {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-header p {
  color: var(--muted);
}

.note-banner {
  background: var(--sage-mist);
  border-left: 4px solid var(--sage);
  padding: 0.9rem 1.15rem;
  border-radius: 0 10px 10px 0;
  color: var(--charcoal-soft);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

/* —— Cards —— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.35rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(44, 44, 42, 0.1);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sage-mist);
  color: var(--sage-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.card h3 {
  margin-bottom: 0.4em;
  color: var(--sage-dark);
}

.card p {
  color: var(--charcoal-soft);
  font-size: 0.98rem;
  margin-bottom: 0.75em;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(196, 123, 90, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

/* —— About layout —— */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.split-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.split-list li {
  padding: 0.65rem 0 0.65rem 1.4rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  color: var(--charcoal-soft);
}

.split-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.25rem;
  align-items: start;
}

.contact-details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-details dt {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 1rem;
}

.contact-details dt:first-child {
  margin-top: 0;
}

.contact-details dd {
  margin: 0.25rem 0 0;
  color: var(--charcoal-soft);
}

.placeholder {
  color: var(--terracotta);
  font-style: italic;
  font-weight: 500;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  color: var(--charcoal);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
  font-family: inherit;
  font-size: 1rem;
  color: var(--charcoal);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(95, 122, 90, 0.15);
  outline: none;
  background: var(--white);
}

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

.form-hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* —— Footer —— */
.site-footer {
  background: var(--sage-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand img {
  width: 64px;
  background: var(--cream);
  border-radius: 12px;
  padding: 0.35rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.95rem;
  max-width: 22rem;
  color: rgba(255, 255, 255, 0.78);
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-nav ul,
.footer-meta ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a,
.footer-meta a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0;
}

.footer-nav a:hover,
.footer-meta a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

.footer-note {
  font-style: italic;
}

/* —— Utilities —— */
.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; }

.cta-band {
  background: linear-gradient(120deg, var(--sage) 0%, var(--sage-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  text-align: center;
}

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

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 32rem;
  margin-inline: auto;
}

.cta-band .btn-primary {
  background: var(--white);
  color: var(--sage-dark);
}

.cta-band .btn-primary:hover {
  background: var(--cream);
  color: var(--sage-dark);
}

.cta-band .btn-secondary {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.cta-band .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.page-hero {
  padding: 2.75rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 80% at 90% 0%, rgba(95, 122, 90, 0.1), transparent 50%);
}

/* —— Responsive —— */
@media (max-width: 860px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.25rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .site-nav a {
    padding: 0.65rem 0.5rem;
    border-bottom: none;
    border-radius: 8px;
  }

  .site-nav a[aria-current="page"],
  .site-nav a:hover {
    background: var(--sage-mist);
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.35rem;
  }

  .header-inner {
    position: relative;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 1.75rem, var(--max));
  }

  .hero {
    padding: 2.25rem 0 2rem;
  }

  .logo-text {
    display: none;
  }

  .btn-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
