/*
Theme Name: Wiconi Lecala
Theme URI: https://wiconilecala.org
Author: The Agency
Author URI: https://marketingwiththeagency.com
Description: Custom theme for Wiconi Lecala, a Native-led 501(c)(3) in Rapid City, South Dakota. Built on the four directions of the medicine wheel. Cream and sage palette, EB Garamond and Lato, square edges, accessibility-first for an older donor base.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wiconi-lecala
Tags: nonprofit, custom-menu, custom-logo, editor-style, accessibility-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   Design system. Change a token in :root and it changes sitewide.
   Full documentation at the bottom of this file.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. FONTS
   Add this line to the theme <head> before this stylesheet:
   <link href="https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500&family=Lato:wght@300;400;700&display=swap" rel="stylesheet">
   -------------------------------------------------------------------------- */

:root{
  /* ---------- COLOR: drawn from the medicine wheel ---------- */
  --wl-cream:      #F3F0EA;  /* page background                          */
  --wl-sand:       #E7E1D6;  /* alternating section background           */
  --wl-white:      #FBF9F5;  /* cards, raised surfaces                   */
  --wl-black:      #191512;  /* WEST quadrant. Dark bands, filled buttons*/
  --wl-black-deep: #0F0C0A;  /* button hover                             */
  --wl-red:        #8E4326;  /* NORTH quadrant. ALL eyebrows + accents   */
  --wl-gold:       #B9903F;  /* EAST quadrant. MONEY ONLY (donate CTAs)  */
  --wl-gold-deep:  #A17B31;  /* gold on light bg, for contrast           */
  --wl-bone:       #E7E1D6;  /* SOUTH quadrant                           */
  --wl-sage:       #4C5347;  /* feature bands, footer                    */
  --wl-sage-deep:  #3E443A;
  --wl-ink:        #2C251E;  /* body text                                */
  --wl-muted:      #6E6357;  /* secondary text                           */
  --wl-stone:      #A79C8D;  /* captions, fine print                     */
  --wl-rule:       rgba(44,37,30,.16);
  --wl-rule-light: rgba(243,240,234,.26);

  /* ---------- TYPE ---------- */
  --wl-serif: "EB Garamond", Georgia, serif;   /* headings, figures     */
  --wl-sans:  "Lato", "Helvetica Neue", Arial, sans-serif; /* everything else */

  /* ---------- LAYOUT ---------- */
  --wl-max:     1300px;
  --wl-gutter:  clamp(20px, 5vw, 68px);
  --wl-section: clamp(72px, 9vw, 132px);
}

/* --------------------------------------------------------------------------
   2. TYPE RULES  (the two-voice system)
   Headings are ALWAYS sentence case serif. Uppercase + wide tracking is
   reserved for eyebrows, buttons, nav and labels. Never mix the two.
   -------------------------------------------------------------------------- */

body{
  background:var(--wl-cream); color:var(--wl-ink);
  font-family:var(--wl-sans); font-weight:400;
  font-size:18px; line-height:1.8;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4,h5,h6{
  font-family:var(--wl-serif); font-weight:400;
  line-height:1.24; letter-spacing:.002em; color:var(--wl-ink); margin:0;
}
h1{font-size:clamp(30px,4vw,52px); line-height:1.16}
h2{font-size:clamp(27px,3.1vw,40px)}
h3{font-size:clamp(22px,2.3vw,28px)}
h4{font-size:21px}
p{margin:0 0 1.2em}
a{color:inherit}

/* Eyebrow: the small red label above every section heading. */
.wl-eyebrow{
  font-family:var(--wl-sans); font-size:12.5px; font-weight:700;
  letter-spacing:.24em; text-transform:uppercase;
  color:var(--wl-red); margin:0 0 20px; display:flex; align-items:center; gap:11px;
}
.wl-eyebrow--center{justify-content:center}

.wl-lede{font-size:18px; line-height:1.8; color:var(--wl-muted)}
.wl-small{font-size:16px; line-height:1.8; color:var(--wl-muted)}
.wl-fine{font-size:15px; color:var(--wl-stone)}
.wl-num{font-variant-numeric:tabular-nums}

/* Figures: dollar amounts, percentages, counters */
.wl-figure{
  font-family:var(--wl-serif); font-size:clamp(46px,4.4vw,62px);
  line-height:1; letter-spacing:-.02em; font-variant-numeric:tabular-nums;
  color:var(--wl-gold-deep);
}

/* --------------------------------------------------------------------------
   3. BUTTONS  — square corners, no rounding anywhere
   -------------------------------------------------------------------------- */

.wl-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-family:var(--wl-sans); font-size:13.5px; font-weight:700;
  letter-spacing:.13em; text-transform:uppercase; text-decoration:none;
  cursor:pointer; padding:17px 34px; min-height:48px;
  border:1px solid var(--wl-ink); border-radius:0;
  background:transparent; color:var(--wl-ink);
  transition:background .3s ease, color .3s ease, border-color .3s ease;
}
.wl-btn:hover{background:var(--wl-ink); color:var(--wl-cream)}

/* GOLD = money. Use only for donate / give / sponsor actions. */
.wl-btn--gold{background:var(--wl-gold); border-color:var(--wl-gold); color:var(--wl-black)}
.wl-btn--gold:hover{background:var(--wl-gold-deep); border-color:var(--wl-gold-deep); color:#fff}

/* BLACK = every other primary action (submit, send, subscribe). */
.wl-btn--fill{background:var(--wl-black); border-color:var(--wl-black); color:var(--wl-cream)}
.wl-btn--fill:hover{background:var(--wl-black-deep); border-color:var(--wl-black-deep)}

/* LIGHT = on dark or sage bands. */
.wl-btn--light{border-color:rgba(243,240,234,.55); color:var(--wl-cream)}
.wl-btn--light:hover{background:var(--wl-cream); color:var(--wl-ink)}

.wl-btn--sm{padding:14px 28px; font-size:12.5px; letter-spacing:.11em}
.wl-btn--block{width:100%}

/* Underlined text link */
.wl-tlink{
  font-family:var(--wl-sans); font-size:12px; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase; text-decoration:none;
  border-bottom:1px solid var(--wl-rule); padding-bottom:6px; display:inline-block;
  transition:border-color .3s;
}
.wl-tlink:hover{border-color:var(--wl-ink)}

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */

.wl-wrap{max-width:var(--wl-max); margin:0 auto; padding-inline:var(--wl-gutter)}
.wl-narrow{max-width:920px; margin:0 auto; padding-inline:var(--wl-gutter)}
.wl-section{padding-block:var(--wl-section)}
.wl-section--tight{padding-block:clamp(52px,6.5vw,92px)}

/* Section backgrounds */
.wl-bg-cream{background:var(--wl-cream); color:var(--wl-ink)}
.wl-bg-sand {background:var(--wl-sand);  color:var(--wl-ink)}
.wl-bg-black{background:var(--wl-black); color:var(--wl-cream)}
.wl-bg-sage {background:var(--wl-sage);  color:var(--wl-cream)}
.wl-bg-black h1,.wl-bg-black h2,.wl-bg-black h3,
.wl-bg-sage  h1,.wl-bg-sage  h2,.wl-bg-sage  h3{color:var(--wl-cream)}
.wl-bg-black .wl-eyebrow,.wl-bg-sage .wl-eyebrow{color:var(--wl-cream)}
.wl-bg-black p,.wl-bg-sage p{color:rgba(243,240,234,.86)}

/* Full-bleed band inside a contained page */
.wl-bleed{width:100vw; margin-left:calc(50% - 50vw); margin-right:0}

/* --------------------------------------------------------------------------
   5. COMPONENTS
   -------------------------------------------------------------------------- */

/* Bordered card — used for services, giving tiers, resources */
.wl-card{
  border:1px solid var(--wl-rule); background:var(--wl-cream);
  padding:clamp(24px,2.6vw,34px); display:flex; flex-direction:column;
  transition:background .35s, border-color .35s;
}
.wl-card:hover{background:var(--wl-white); border-color:rgba(44,37,30,.32)}
.wl-card h3{margin-bottom:10px}
.wl-card p{font-size:18px; color:var(--wl-muted); line-height:1.65; flex:1; margin:0}

/* Rule-divided list — replaces pills/chips everywhere */
.wl-list{list-style:none; margin:18px 0 0; padding:0; width:100%}
.wl-list li{
  font-size:17px; line-height:1.5; padding:12px 0;
  color:var(--wl-muted); border-top:1px solid var(--wl-rule);
}
.wl-list li:last-child{border-bottom:1px solid var(--wl-rule)}
.wl-list li b{color:var(--wl-ink); font-weight:700}

/* Announcement bar */
.wl-announce{
  background:var(--wl-black); color:var(--wl-cream); text-align:center;
  padding:10px 20px; font-size:12.5px; font-weight:700;
  letter-spacing:.2em; text-transform:uppercase;
}
.wl-announce a{color:var(--wl-gold)}

/* Forms */
.wl-field{margin-bottom:20px}
.wl-field label{
  display:block; font-size:12.5px; font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; color:var(--wl-ink); margin-bottom:10px;
}
.wl-field input,.wl-field select,.wl-field textarea{
  width:100%; font-family:var(--wl-sans); font-size:18px; color:var(--wl-ink);
  background:var(--wl-cream); border:1px solid var(--wl-rule);
  padding:14px 16px; border-radius:0; min-height:50px; transition:border-color .3s;
}
.wl-field input:focus,.wl-field select:focus,.wl-field textarea:focus{
  outline:none; border-color:var(--wl-black);
}
.wl-field textarea{min-height:120px; resize:vertical}

/* Quote band */
.wl-quote{background:var(--wl-black); color:var(--wl-cream); text-align:center}
.wl-quote blockquote{
  margin:0 auto; max-width:min(1120px,92vw); font-family:var(--wl-serif);
  font-size:clamp(19px,2.05vw,26px); line-height:1.55; color:var(--wl-cream);
}
.wl-quote cite{
  display:block; margin-top:26px; font-family:var(--wl-sans); font-style:normal;
  font-size:12.5px; font-weight:700; letter-spacing:.24em; text-transform:uppercase;
  color:rgba(243,240,234,.62);
}

/* Image treatment */
.wl-img{width:100%; height:100%; object-fit:cover; display:block}
.wl-zoom img{transition:transform 1.3s cubic-bezier(.2,.7,.3,1)}
.wl-zoom:hover img{transform:scale(1.04)}

/* --------------------------------------------------------------------------
   6. ACCESSIBILITY + MOBILE (do not remove)
   -------------------------------------------------------------------------- */

/* Stop iOS/Android auto-linking phone numbers and addresses in blue.
   ALSO add this to <head>:
   <meta name="format-detection" content="telephone=no,date=no,address=no,email=no"> */
a[href^="tel:"],a[href^="mailto:"]{color:inherit; text-decoration:none}
a[x-apple-data-detectors]{
  color:inherit!important; text-decoration:none!important;
  font-size:inherit!important; font-family:inherit!important; font-weight:inherit!important;
}
*{-webkit-tap-highlight-color:rgba(142,67,38,.14)}
html,body{max-width:100%; overflow-x:hidden}

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

@media(max-width:760px){
  :root{--wl-gutter:20px}
  body{font-size:17px; line-height:1.75}
  .wl-btn{width:100%; justify-content:center}
}
/* 16px minimum stops iOS zooming the page when a field is focused */
@media(max-width:760px){
  input,select,textarea{font-size:16px!important}
}
@media(prefers-reduced-motion:reduce){
  *{animation:none!important; transition:none!important}
}

/* --------------------------------------------------------------------------
   7. RULES OF THE SYSTEM  (for whoever maintains this next)

   COLOR
   · Gold is money. Donate, give, sponsor. Nothing else.
   · Red is labels. Every eyebrow, every list marker. Never a background
     for body copy — it fails contrast on sage and on itself.
   · Black is dark bands and non-money primary buttons.
   · Sage is feature bands and the footer.

   TYPE
   · Headings: serif, sentence case, never uppercase.
   · Uppercase + tracking: eyebrows, buttons, nav, form labels only.
   · Body copy is 18px. Do not go below 17px anywhere.

   SHAPE
   · Everything is square. No border radius except the four-direction
     dots and the medicine wheel.

   CONTRAST FLOORS (measured, do not go below)
   · Body text on cream ....... 9.4:1
   · Red eyebrow on cream ..... 6.2:1
   · Red eyebrow on sand ...... 5.4:1
   · Cream on sage ............ 7.0:1
   · Deep gold on cream ....... 3.4:1  (large text only)
   Donor base skews 55-80+. Legibility is a fundraising feature.
   -------------------------------------------------------------------------- */


/* ==========================================================================
   8. WORDPRESS CHROME  (header, footer, menus, editor content)
   ========================================================================== */

.wl-skip{position:absolute;left:-9999px}
.wl-skip:focus{left:0;top:0;z-index:300;background:var(--wl-black);color:#fff;padding:12px 18px}

/* announcement */
.wl-announce{background:var(--wl-black);color:var(--wl-cream);text-align:center;
  padding:10px 20px;font-size:12.5px;font-weight:700;letter-spacing:.2em;text-transform:uppercase}
.wl-announce a{color:var(--wl-gold);text-underline-offset:3px}

/* header */
.wl-header{background:var(--wl-cream);border-bottom:1px solid var(--wl-rule);position:sticky;top:0;z-index:120}
.wl-bar{display:flex;align-items:center;height:98px;gap:40px;padding-inline:clamp(20px,3.4vw,52px)}
.wl-logo{display:block;flex:0 0 auto;line-height:0;text-decoration:none;color:var(--wl-ink)}
.wl-logo img{height:52px;width:auto;display:block}
.wl-wordmark{font-family:var(--wl-serif);font-size:26px;letter-spacing:.1em;text-transform:uppercase}
.wl-nav{margin-left:auto;display:flex;align-items:center;gap:clamp(20px,2.2vw,34px);list-style:none;margin-block:0;padding:0}
.wl-nav li{list-style:none}
.wl-nav>a{display:inline-flex}
.wl-nav a{font-family:var(--wl-sans);font-size:12.5px;font-weight:700;letter-spacing:.16em;
  text-transform:uppercase;text-decoration:none;color:var(--wl-muted);white-space:nowrap;
  min-height:44px;display:inline-flex;align-items:center;transition:color .3s}
.wl-nav a:hover{color:var(--wl-ink)}
.wl-nav .wl-btn{color:var(--wl-black)}
.wl-burger{display:none;margin-left:auto;background:none;border:0;padding:10px;cursor:pointer}
.wl-burger span{display:block;width:22px;height:1.5px;background:var(--wl-ink);margin:5.5px 0;transition:.3s}
.wl-burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.wl-burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.wl-burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
@media(max-width:1060px){
  .wl-bar{height:80px;justify-content:space-between;gap:0}
  .wl-logo img{height:38px}
  .wl-burger{display:block}
  .wl-nav{position:fixed;inset:auto 0 auto 0;top:118px;background:var(--wl-cream);flex-direction:column;
    align-items:stretch;gap:0;padding:10px var(--wl-gutter) 30px;display:none;
    border-bottom:1px solid var(--wl-rule);z-index:119}
  .wl-nav.is-open{display:flex}
  .wl-nav a{padding:16px 0;border-bottom:1px solid var(--wl-rule);font-size:14px}
  .wl-nav .wl-btn{margin-top:20px;justify-content:center}
}

/* footer */
.wl-footer{background:var(--wl-sage);color:#fff;padding-block:clamp(50px,6vw,78px) 0}
.wl-fgrid{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:clamp(30px,4vw,60px);
  align-items:start;padding-bottom:clamp(36px,4vw,54px)}
@media(max-width:820px){.wl-fgrid{grid-template-columns:1fr;text-align:center;gap:34px}}
.wl-fmid{text-align:center;border-inline:1px solid rgba(255,255,255,.28);padding-inline:clamp(20px,3vw,44px)}
@media(max-width:820px){.wl-fmid{border:0;border-block:1px solid rgba(255,255,255,.28);
  padding-block:30px;padding-inline:0}}
.wl-fmid b{font-family:var(--wl-serif);font-weight:400;font-size:28px;letter-spacing:.1em;
  text-transform:uppercase;display:block}
.wl-fmid p{font-size:16px;color:rgba(255,255,255,.82);max-width:26em;margin:14px auto 0;line-height:1.75}
.wl-fmid a{color:#fff;font-size:16px}
.wl-fcol ul{list-style:none;margin:0;padding:0}
.wl-fcol li{margin-bottom:15px;list-style:none}
.wl-fcol a{font-family:var(--wl-sans);font-size:12.5px;font-weight:700;letter-spacing:.13em;
  text-transform:uppercase;text-decoration:none;color:rgba(255,255,255,.9);
  display:block;margin-bottom:15px}
.wl-fcol a:hover{color:#fff}
.wl-fcol--right{text-align:right}
@media(max-width:820px){.wl-fcol--right{text-align:center}}
.wl-fbar{border-top:1px solid rgba(255,255,255,.28);padding:20px 0 32px;display:flex;flex-wrap:wrap;
  gap:10px 26px;justify-content:space-between;font-size:12px;color:rgba(255,255,255,.72)}

/* editor content defaults */
.wl-entry h2{margin-top:1.6em}
.wl-entry h3{margin-top:1.4em}
.wl-entry ul,.wl-entry ol{padding-left:1.2em;margin-bottom:1.2em}
.wl-entry li{margin-bottom:.5em}
.wl-entry img{height:auto}
.wl-entry a{color:var(--wl-black);font-weight:700;text-underline-offset:3px}
.wl-entry blockquote{border-left:2px solid var(--wl-red);padding-left:26px;margin:2em 0;
  font-family:var(--wl-serif);font-size:clamp(21px,2.4vw,28px);line-height:1.45;color:var(--wl-ink)}

/* block editor colour helpers */
.has-wl-cream-background-color{background-color:var(--wl-cream)}
.has-wl-sand-background-color{background-color:var(--wl-sand)}
.has-wl-black-background-color{background-color:var(--wl-black);color:var(--wl-cream)}
.has-wl-sage-background-color{background-color:var(--wl-sage);color:var(--wl-cream)}
.has-wl-red-color{color:var(--wl-red)}
.has-wl-gold-color{color:var(--wl-gold)}

/* scroll reveal */
.wl-rv{opacity:0;transform:translateY(20px);
  transition:opacity .9s cubic-bezier(.22,.7,.28,1),transform .9s cubic-bezier(.22,.7,.28,1)}
.wl-rv.is-in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.wl-rv{opacity:1;transform:none}}

/* accordion */
.wl-qa{border-bottom:1px solid var(--wl-rule)}
.wl-qa button{width:100%;text-align:left;background:none;border:0;cursor:pointer;
  padding:22px 42px 22px 0;font-family:var(--wl-serif);font-size:21px;color:var(--wl-ink);
  position:relative;line-height:1.35}
.wl-qa button::after{content:"+";position:absolute;right:6px;top:21px;font-family:var(--wl-sans);
  font-size:21px;color:var(--wl-red);transition:transform .3s}
.wl-qa.is-open button::after{transform:rotate(45deg)}
.wl-qa-a{max-height:0;overflow:hidden;transition:max-height .4s ease}
.wl-qa.is-open .wl-qa-a{max-height:400px}
.wl-qa-a p{padding:0 0 24px;font-size:18px;color:var(--wl-muted);line-height:1.7}

/* the wheel */
.wl-wheel{display:block;margin:0 auto}
