/*
 Theme Name:   Nurtured By Nature
 Theme URI:    https://nurturedbynature.org/
 Description:  Child theme for the Astra framework, custom-built for Nurtured By Nature Animal Educators. Image-forward, playful, conservation-focused brand styling — "Swim With The Otters." Inspired in structure by wildcoast.org.
 Author:       Erick Magnuson
 Author URI:   https://erickmagnuson.com/
 Template:     astra
 Version:      0.1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  nurtured-by-nature
*/

/* ============================================================
   BRAND TOKENS  (sampled from nurturedbynature.org)
   ============================================================ */
:root {
  --nbn-teal:       #28afcf;
  --nbn-teal-deep:  #007893;
  --nbn-teal-mid:   #1f8aa4;
  --nbn-teal-ink:   #0a3d49;
  --nbn-sand:       #f6f1e7;
  --nbn-cream:      #fcf9f3;
  --nbn-brown:      #8a5a3b;
  --nbn-coral:      #ff7a59;
  --nbn-coral-dark: #ef6446;
  --nbn-ink:        #17292e;
  --nbn-muted:      #5b6b70;

  --nbn-font-display: 'Fredoka', 'Trebuchet MS', sans-serif;
  --nbn-font-body:    'Nunito Sans', system-ui, -apple-system, sans-serif;

  --nbn-radius: 18px;
  --nbn-radius-lg: 28px;
  --nbn-shadow: 0 18px 50px -22px rgba(10, 61, 73, .45);
  --nbn-shadow-sm: 0 8px 24px -14px rgba(10, 61, 73, .4);
}

/* ============================================================
   GLOBAL TYPOGRAPHY
   ============================================================ */
body,
.ast-container { font-family: var(--nbn-font-body); color: var(--nbn-ink); }

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title {
  font-family: var(--nbn-font-display) !important;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--nbn-teal-ink);
}

a { color: var(--nbn-teal-deep); }
a:hover { color: var(--nbn-teal); }

/* ============================================================
   BUTTONS  (Astra + WP blocks)
   ============================================================ */
.ast-button,
.button,
button,
input[type="submit"],
.wp-block-button__link,
.wp-block-search__button {
  font-family: var(--nbn-font-display);
  font-weight: 600;
  border-radius: 999px !important;
  background: var(--nbn-teal-deep);
  border-color: var(--nbn-teal-deep);
  color: #fff;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.ast-button:hover,
.button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background: var(--nbn-teal-ink);
  border-color: var(--nbn-teal-ink);
  transform: translateY(-2px);
}

/* secondary / outline button variant — add class "is-style-outline" or use the teal style */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--nbn-teal-deep);
  border: 2px solid var(--nbn-teal);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--nbn-teal);
  color: #fff;
}
/* teal solid variant — add custom class "btn-teal" on the button block */
.btn-teal .wp-block-button__link {
  background: var(--nbn-teal);
  border-color: var(--nbn-teal);
}
.btn-teal .wp-block-button__link:hover {
  background: var(--nbn-teal-deep);
  border-color: var(--nbn-teal-deep);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header,
.ast-primary-header-bar { background: rgba(252, 249, 243, .96); }

.main-header-menu .menu-link {
  font-family: var(--nbn-font-display);
  font-weight: 500;
  color: var(--nbn-teal-ink);
}
.main-header-menu .menu-link:hover,
.main-header-menu .current-menu-item > .menu-link { color: var(--nbn-teal-deep); }

/* sticky transparent-friendly logo sizing */
.site-logo-img img,
.custom-logo-link img { max-height: 60px; width: auto; }

/* ============================================================
   SECTION HELPERS  (use as block group classes)
   ------------------------------------------------------------
   Add these as "Additional CSS class(es)" on Group blocks
   ============================================================ */
.nbn-sand   { background: var(--nbn-sand); }
.nbn-cream  { background: var(--nbn-cream); }
.nbn-teal-band {
  background: linear-gradient(120deg, var(--nbn-teal-deep), var(--nbn-teal-mid));
  color: #fff;
}
.nbn-teal-band :is(h1,h2,h3,h4,p) { color: #fff; }

.nbn-eyebrow {
  font-family: var(--nbn-font-display);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--nbn-teal-deep);
}

/* teal duotone overlay for images — add class "nbn-duo" on an image/cover block wrapper */
.nbn-duo { position: relative; overflow: hidden; border-radius: var(--nbn-radius-lg); }
.nbn-duo img { filter: grayscale(0.15); }
.nbn-duo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(140deg, rgba(40,175,207,.40), rgba(0,120,147,.15));
  mix-blend-mode: multiply;
}

/* card hover lift — add "nbn-card" to a Group/Column used as a card */
.nbn-card {
  background: #fff;
  border-radius: var(--nbn-radius);
  box-shadow: var(--nbn-shadow-sm);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.nbn-card:hover { transform: translateY(-6px); box-shadow: var(--nbn-shadow); }

/* stat number styling — add "nbn-stat" to a heading */
.nbn-stat {
  font-family: var(--nbn-font-display) !important;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  line-height: 1;
}

/* ============================================================
   COVER / HERO readability
   ============================================================ */
.wp-block-cover { border-radius: 0; }
.nbn-hero .wp-block-cover__inner-container { max-width: 720px; }
.wp-block-cover.nbn-hero h1 { color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.35); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer,
.ast-small-footer,
.footer-sml-layout { background: var(--nbn-teal-ink); color: #bfe3eb; }
.site-footer a, .ast-small-footer a { color: #bfe3eb; }
.site-footer a:hover { color: #fff; }
.site-footer h2, .site-footer h3, .site-footer h4 { color: #fff; }

/* ============================================================
   MISC
   ============================================================ */
::selection { background: var(--nbn-teal); color: #fff; }
.entry-content > *:not(.alignwide):not(.alignfull) { /* keep Astra defaults */ }
