/* ===========================================
   RUACH ELOHIM FOUNDATION — design tokens
   =========================================== */
   :root {
    --ink: #0F1410;
    --ink-soft: #3D4A3A;
    --bone: #FAF8F3;
    --bone-dim: #F1EEE5;
    --sage: #8A9A82;
    --sage-deep: #5E6F57;
    --gold: #C9A35F;
  
    --display: "Fraunces", "Iowan Old Style", serif;
    --body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  
    --container: 1140px;
    --radius: 2px;
  
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
  }
  
  @media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  }
  
  * { margin: 0; padding: 0; box-sizing: border-box; }
  
  html { scroll-behavior: smooth; }
  
  body {
    font-family: var(--body);
    background: var(--bone);
    color: var(--ink);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
  }
  
  a { color: inherit; text-decoration: none; }
  
  img { max-width: 100%; display: block; }
  
  ::selection { background: var(--sage); color: var(--bone); }
  
  :focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
  }
  
  /* ===========================================
     LAYOUT HELPERS
     =========================================== */
  .section { padding: 7rem 1.5rem; }
  .section-inner { max-width: var(--container); margin: 0 auto; }
  
  .eyebrow {
    font-family: var(--body);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sage-deep);
    font-weight: 500;
    margin-bottom: 0.6rem;
  }
  
  .section-title {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: -0.01em;
    margin-bottom: 0.9rem;
  }
  .section-title.light { color: var(--bone); }
  
  .section-intro {
    max-width: 540px;
    color: var(--ink-soft);
    font-size: 1.05rem;
    margin-bottom: 3.2rem;
  }
  
  /* ===========================================
     HEADER / NAV
     =========================================== */
  .site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(250, 248, 243, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 20, 16, 0.07);
    transition: background 0.3s var(--ease);
  }
  
  .header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--ink);
  }
  .brand-mark { color: var(--sage-deep); display: flex; }
  .brand-text {
    font-family: var(--display);
    font-size: 1.12rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
  }
  .brand-sub {
    font-family: var(--body);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sage-deep);
    font-weight: 500;
  }
  
  .main-nav {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    font-size: 0.92rem;
    font-weight: 500;
  }
  .main-nav a { position: relative; padding: 0.2rem 0; transition: color 0.2s; }
  .main-nav a:not(.nav-give)::after {
    content: "";
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.25s var(--ease);
  }
  .main-nav a:not(.nav-give):hover::after { width: 100%; }
  
  .nav-give {
    background: var(--ink);
    color: var(--bone) !important;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius);
    transition: background 0.25s var(--ease);
  }
  .nav-give:hover { background: var(--sage-deep); }
  
  .nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
  }
  .nav-toggle span {
    width: 22px;
    height: 1.4px;
    background: var(--ink);
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  
  /* ===========================================
     HERO
     =========================================== */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1.5rem 6rem;
    background:
      radial-gradient(ellipse 80% 50% at 50% 0%, rgba(138, 154, 130, 0.16), transparent),
      var(--bone);
    overflow: hidden;
  }
  
  .hero-breath {
    position: absolute;
    top: 18%;
    left: 0;
    width: 100%;
    height: 200px;
    color: var(--sage);
    opacity: 0.55;
    pointer-events: none;
  }
  .breath-line { width: 100%; height: 100%; }
  
  .hero-inner { max-width: 760px; position: relative; z-index: 2; }
  
  .hero-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: var(--sage-deep);
    margin-bottom: 1.6rem;
    font-weight: 500;
  }
  
  .hero-title {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(2.6rem, 8vw, 5.2rem);
    line-height: 1.04;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 1.8rem;
  }
  .hero-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--sage-deep);
  }
  
  .hero-sub {
    font-size: 1.12rem;
    color: var(--ink-soft);
    max-width: 560px;
    margin: 0 auto 2.6rem;
  }
  
  .hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .scroll-cue {
    position: absolute;
    bottom: 2.6rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--sage-deep);
  }
  .scroll-cue span {
    width: 1px;
    height: 34px;
    background: linear-gradient(to bottom, var(--sage-deep), transparent);
    animation: scrollPulse 2.2s ease-in-out infinite;
  }
  .scroll-cue p {
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }
  @keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
  }
  
  /* ===========================================
     BUTTONS
     =========================================== */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.25s var(--ease);
    border: 1px solid transparent;
    cursor: pointer;
  }
  .btn-primary {
    background: var(--ink);
    color: var(--bone);
  }
  .btn-primary:hover {
    background: var(--sage-deep);
    transform: translateY(-1px);
  }
  .btn-ghost {
    border-color: rgba(15, 20, 16, 0.25);
    color: var(--ink);
  }
  .btn-ghost:hover {
    border-color: var(--ink);
    background: rgba(15, 20, 16, 0.04);
  }
  .btn-light {
    background: var(--bone);
    color: var(--ink);
  }
  .btn-light:hover {
    background: var(--gold);
    color: var(--ink);
  }
  .btn-full { width: 100%; }
  
  /* ===========================================
     MISSION
     =========================================== */
  .mission { background: var(--bone); }
  .mission-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 4rem;
    align-items: start;
  }
  .mission-label {
    border-left: 1px solid var(--sage);
    padding-left: 1.6rem;
    position: sticky;
    top: 8rem;
  }
  .verse {
    font-family: var(--display);
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--sage-deep);
  }
  .mission-body h2 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    margin-bottom: 1.4rem;
    letter-spacing: -0.01em;
  }
  .mission-body p {
    color: var(--ink-soft);
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
    max-width: 560px;
  }
  
  /* ===========================================
     DIVIDER (breath motif)
     =========================================== */
  .divider {
    color: var(--sage);
    opacity: 0.4;
    height: 40px;
    width: 100%;
  }
  .divider svg { width: 100%; height: 100%; }
  .divider-flip svg { transform: scaleY(-1); }
  
  /* ===========================================
     BELIEFS
     =========================================== */
  .beliefs { background: var(--bone-dim); }
  .beliefs-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid rgba(15, 20, 16, 0.1);
  }
  .belief {
    padding: 2.4rem 1.8rem;
    border-right: 1px solid rgba(15, 20, 16, 0.1);
    border-bottom: 1px solid rgba(15, 20, 16, 0.1);
    transition: background 0.3s var(--ease);
  }
  .belief:nth-child(3n) { border-right: none; }
  .belief:hover { background: rgba(138, 154, 130, 0.08); }
  .belief h3 {
    font-family: var(--display);
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
  }
  .belief p {
    color: var(--ink-soft);
    font-size: 0.96rem;
  }
  
  /* ===========================================
     MINISTRIES
     =========================================== */
  .ministries { background: var(--bone); }
  .ministry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .ministry-card {
    padding: 2.2rem 1.8rem;
    background: var(--bone-dim);
    border-radius: var(--radius);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  }
  .ministry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -20px rgba(15, 20, 16, 0.25);
  }
  .ministry-icon {
    display: inline-flex;
    color: var(--sage-deep);
    margin-bottom: 1.2rem;
  }
  .ministry-card h3 {
    font-family: var(--display);
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
  }
  .ministry-card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
  }
  
  /* ===========================================
     GATHER
     =========================================== */
  .gather { background: var(--bone-dim); }
  .gather-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4.5rem;
  }
  .gather-details {
    margin-top: 2.2rem;
    display: grid;
    gap: 1.6rem;
  }
  .gather-details dt {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sage-deep);
    font-weight: 500;
    margin-bottom: 0.3rem;
  }
  .gather-details dd {
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 500;
  }
  
  .gather-form-wrap {
    background: var(--bone);
    padding: 2.6rem;
    border-radius: var(--radius);
    border: 1px solid rgba(15, 20, 16, 0.08);
  }
  .gather-form-wrap h3 {
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
  }
  .gather-form-wrap > p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
  }
  
  .visit-form .field { margin-bottom: 1.3rem; }
  .visit-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--ink-soft);
  }
  .optional { font-weight: 400; color: var(--sage); }
  .visit-form input,
  .visit-form textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(15, 20, 16, 0.18);
    border-radius: var(--radius);
    background: var(--bone);
    font-family: var(--body);
    font-size: 0.95rem;
    color: var(--ink);
    transition: border-color 0.2s;
  }
  .visit-form input:focus,
  .visit-form textarea:focus {
    border-color: var(--sage-deep);
  }
  .visit-form textarea { resize: vertical; }
  
  .form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--sage-deep);
    min-height: 1.2em;
  }
  
  /* ===========================================
     GIVE
     =========================================== */
  .give {
    background: var(--ink);
    text-align: center;
  }
  .give-inner { max-width: 640px; margin: 0 auto; }
  .give-text {
    color: rgba(250, 248, 243, 0.75);
    font-size: 1.05rem;
    margin-bottom: 2.4rem;
  }
  .give-options {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
  }
  .give-amount {
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(250, 248, 243, 0.25);
    background: transparent;
    color: var(--bone);
    border-radius: var(--radius);
    font-family: var(--body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--ease);
  }
  .give-amount:hover,
  .give-amount.active {
    border-color: var(--gold);
    background: rgba(201, 163, 95, 0.12);
    color: var(--gold);
  }
  .give-note {
    margin-top: 1.2rem;
    font-size: 0.8rem;
    color: rgba(250, 248, 243, 0.45);
  }
  
  /* ===========================================
     FOOTER
     =========================================== */
  .site-footer {
    background: var(--bone-dim);
    padding: 3.5rem 1.5rem 2.5rem;
    text-align: center;
  }
  .footer-inner { max-width: var(--container); margin: 0 auto; }
  .footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 1.8rem;
    color: var(--sage-deep);
  }
  .footer-nav {
    display: flex;
    gap: 1.8rem;
    justify-content: center;
    font-size: 0.9rem;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
  }
  .footer-meta {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-bottom: 0.7rem;
  }
  .footer-copy {
    font-size: 0.8rem;
    color: var(--sage);
  }
  
  /* ===========================================
     SCROLL REVEAL
     =========================================== */
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* ===========================================
     RESPONSIVE
     =========================================== */
  @media (max-width: 900px) {
    .mission-grid { grid-template-columns: 1fr; gap: 2.2rem; }
    .mission-label { position: static; border-left: none; border-top: 1px solid var(--sage); padding-left: 0; padding-top: 1.2rem; }
    .beliefs-list { grid-template-columns: repeat(2, 1fr); }
    .belief:nth-child(3n) { border-right: 1px solid rgba(15,20,16,0.1); }
    .belief:nth-child(2n) { border-right: none; }
    .ministry-grid { grid-template-columns: repeat(2, 1fr); }
    .gather-grid { grid-template-columns: 1fr; gap: 3rem; }
  }
  
  @media (max-width: 680px) {
    .main-nav { display: none; }
    .nav-toggle { display: flex; }
    .main-nav.open {
      display: flex;
      position: absolute;
      top: 100%;
      left: 0; right: 0;
      background: var(--bone);
      flex-direction: column;
      padding: 1.5rem;
      gap: 1.2rem;
      border-bottom: 1px solid rgba(15,20,16,0.08);
    }
    .beliefs-list { grid-template-columns: 1fr; }
    .belief { border-right: none !important; }
    .ministry-grid { grid-template-columns: 1fr; }
    .section { padding: 5rem 1.25rem; }
    .gather-form-wrap { padding: 1.8rem; }
  }