/* =====================================================================
   TTI SHARED SITE CHROME — navigation bar + footer
   Master design: index.html. Linked from every page so the header and
   footer stay identical site-wide. Colours are namespaced (--tti-*) so a
   page's own :root variables can never change the header/footer look.
   ===================================================================== */

.nav,
.site-footer {
  --tti-soil: #241a10;
  --tti-soil-2: #33261a;
  --tti-paper: #eae3d1;
  --tti-paper-2: #ded4bc;
  --tti-gold: #c9971f;
  --tti-gold-dark: #9c7419;
  --tti-leaf: #3f6b3f;
  --tti-leaf-dark: #2c4d2c;
  --tti-clay: #9c4221;
  --tti-ink: #221a10;
  --tti-cream: #f4efe1;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  color: var(--tti-ink);
  text-align: left;
}

/* zero-specificity reset so the rules below always win */
:where(.nav, .site-footer),
:where(.nav, .site-footer) * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:where(.nav, .site-footer) :is(h4, h5) {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.05;
}

html {
  scroll-padding-top: 90px; /* anchor targets are not hidden under the sticky bar */
}

    /* ---------- NAVIGATION BAR LAYOUT ---------- */
    .nav {
      position: sticky;
      top: 0;
      z-index: 100;
      background: #ffffff;
      border-bottom: 1px solid var(--tti-paper-2);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .nav-inner {
      display: flex;
      align-items: stretch;
      justify-content: space-between;
      max-width: 100%;
      margin: 0 auto;
      height: 80px;
    }

    .nav-left-zone {
      display: flex;
      align-items: center;
    }

    .nav-mark {
      display: flex;
      align-items: center;
      background-color: #ffffff;
      padding: 0 2rem;
      height: 100%;
      text-decoration: none;
    }

    .nav-logo-img {
      height: 48px;
      width: auto;
      display: block;
    }

    .nav-primary-menu {
      display: none;
      align-items: stretch;
      margin-left: 2rem;
      height: 100%;
    }

    .nav-item-container {
      position: relative;
      display: flex;
      align-items: center;
    }

    .nav-trigger-link {
      color: var(--tti-soil-2);
      text-decoration: none;
      font-size: 1.15rem;
      font-weight: 500;
      padding: 0 1.5rem;
      height: 100%;
      display: flex;
      align-items: center;
      cursor: pointer;
      border-bottom: 3px solid transparent;
      transition: all 0.2s;
    }

    .nav-trigger-link:hover,
    .nav-item-container.active .nav-trigger-link {
      color: var(--tti-leaf-dark);
    }

    .nav-right-zone {
      display: flex;
      align-items: center;
      height: 100%;
    }

    .nav-utility-links {
      display: none;
      align-items: center;
      gap: 1.2rem;
      margin-right: 1.5rem;
    }

    .nav-utility-links a {
      font-size: 0.85rem;
      color: #555555;
      text-decoration: none;
      font-weight: 500;
      transition: color 0.2s;
    }

    .nav-utility-links a:hover {
      color: var(--tti-clay);
    }

    .nav-search-btn {
      background: var(--tti-leaf-dark);
      border: none;
      width: 50px;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: #ffffff;
    }

    .nav-search-btn svg {
      width: 18px;
      height: 18px;
      fill: currentColor;
    }

    .nav-cta-donate {
      background: #ffcc00;
      color: #000000;
      height: 100%;
      padding: 0 2.5rem;
      display: flex;
      align-items: center;
      font-size: 1.1rem;
      font-weight: 700;
      text-decoration: none;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      transition: background-color 0.2s;
    }

    .nav-cta-donate:hover {
      background: #e6b800;
    }

    /* MEGA DROP DOWN SYSTEMS */
    .mega-dropdown-panel {
      position: fixed;
      top: 80px;
      left: 0;
      width: 100vw;
      max-height: calc(100vh - 80px);
      overflow-y: auto;
      background: #ffffff;
      border-top: 1px solid rgba(0, 0, 0, 0.06);
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
      display: none;
      z-index: 99;
      opacity: 0;
      transform: translateY(-8px);
      transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .nav-item-container.active .mega-dropdown-panel {
      display: block;
      opacity: 1;
      transform: translateY(0);
    }

    .dropdown-triangle-tip {
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%) translateY(1px);
      width: 0;
      height: 0;
      border-left: 10px solid transparent;
      border-right: 10px solid transparent;
      border-bottom: 10px solid #ffffff;
      display: none;
    }

    .nav-item-container.active .dropdown-triangle-tip {
      display: block;
    }

    .mega-menu-inner {
      max-width: 1360px;
      margin: 0 auto;
      padding: 2.25rem 2rem;
      display: grid;
      grid-template-columns: 1fr;
      gap: 2rem;
    }

    @media (min-width: 980px) {
      .mega-menu-inner {
        grid-template-columns: repeat(3, 1fr) 1.2fr;
      }
    }

    .mega-column-block h4 {
      font-family: 'Inter', sans-serif;
      font-size: 0.95rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--tti-leaf-dark);
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .mega-column-block .mega-block-desc {
      font-size: 0.88rem;
      color: #666666;
      line-height: 1.5;
      margin-bottom: 1.2rem;
    }

    .mega-column-block ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.65rem;
    }

    .mega-column-block ul li a {
      color: #333333;
      text-decoration: none;
      font-size: 0.95rem;
      transition: color 0.2s, padding-left 0.2s;
      display: inline-block;
    }

    .mega-column-block ul li a:hover {
      color: var(--tti-clay);
      padding-left: 4px;
    }

    .mega-column-block ul li ul {
      margin-top: 0.5rem;
      padding-left: 1rem;
      gap: 0.4rem;
    }

    .mega-column-block ul li ul li a {
      font-size: 0.85rem;
      color: #666666;
    }

    .focus-group-label {
      display: block;
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.7rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      font-weight: 600;
      color: var(--tti-gold-dark);
      margin-bottom: 0.75rem;
    }

    .focus-area-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }

    @media(min-width: 640px) {
      .focus-area-grid {
        grid-template-columns: 1fr 1fr;
      }
    }

    .focus-item-link {
      display: flex;
      align-items: center;
      gap: 1rem;
      text-decoration: none;
      color: var(--tti-soil);
      transition: transform 0.2s;
    }

    .focus-item-link:hover {
      transform: translateY(-2px);
    }

    .focus-number-badge {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background-color: var(--tti-leaf-dark);
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 1rem;
      flex-shrink: 0;
    }

    .focus-item-text-title {
      font-weight: 700;
      font-size: 0.95rem;
      text-transform: uppercase;
      color: var(--tti-leaf-dark);
      line-height: 1.2;
    }

    .mega-feature-promo-card {
      background: linear-gradient(rgba(36, 26, 16, 0.5), rgba(36, 26, 16, 0.85)), url('../images/farm-rows-ripe.jpg') center/cover no-repeat;
      border-radius: 4px;
      padding: 1.75rem 1.5rem;
      color: #ffffff;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      min-height: 190px;
    }

    .mega-feature-promo-card h5 {
      font-family: 'Inter', sans-serif;
      font-size: 1.4rem;
      font-weight: 700;
      color: #ffcc00;
      margin-bottom: 0.6rem;
    }

    .mega-feature-promo-card p {
      font-size: 0.9rem;
      line-height: 1.4;
      color: #eae3d1;
      margin-bottom: 1.2rem;
    }

    .mega-feature-promo-card a {
      color: #ffffff;
      font-weight: 700;
      font-size: 0.9rem;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    .mega-feature-promo-card a:hover {
      text-decoration: underline;
    }

    .mega-footer-bar {
      background-color: #f9f9f9;
      padding: 1rem 2rem;
      border-top: 1px solid rgba(0, 0, 0, 0.05);
      display: flex;
      justify-content: flex-start;
    }

    .mega-footer-link {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--tti-leaf-dark);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .mega-footer-link:hover {
      color: var(--tti-clay);
    }

    .nav-burger {
      background: none;
      border: 1px solid var(--tti-soil);
      border-radius: 4px;
      width: 40px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 1.2rem;
      align-self: center;
      margin-right: 1.5rem;
    }

    .nav-mobile {
      display: none;
      flex-direction: column;
      border-top: 1px solid var(--tti-paper-2);
      background: #ffffff;
      position: absolute;
      top: 80px;
      left: 0;
      width: 100%;
      max-height: calc(100vh - 80px);
      overflow-y: auto;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-mobile.active {
      display: flex;
    }

    .nav-mobile a {
      padding: 1rem 2.5rem;
      color: var(--tti-soil);
      text-decoration: none;
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
      font-size: 1rem;
      font-weight: 600;
    }

    @media (min-width: 980px) {
      .nav-primary-menu {
        display: flex;
      }

      .nav-utility-links {
        display: flex;
      }

      .nav-burger {
        display: none;
      }

      .nav-mobile {
        display: none;
      }
    }

    /* ---------- FOOTER ---------- */
    .site-footer {
      background: var(--tti-soil-2);
      color: #cfc5a9;
      padding: 4.5rem 0 2.5rem;
      font-size: 0.9rem;
    }

    .footer-grid {
      display: grid;
      gap: 3rem;
      grid-template-columns: 1fr;
      padding-bottom: 2.5rem;
      border-bottom: 1px solid rgba(244, 239, 225, 0.1);
      margin-bottom: 2.0rem;
    }

    @media (min-width: 560px) {
      .footer-grid {
        grid-template-columns: 1fr 1fr;
      }

      .footer-grid > div:last-child {
        grid-column: 1 / -1;
      }
    }

    @media (min-width: 900px) {
      .footer-grid {
        grid-template-columns: 1fr 1fr 1.4fr;
      }

      .footer-grid > div:last-child {
        grid-column: auto;
      }
    }

    .footer-mark {
      font-family: 'Fraunces', serif;
      color: var(--tti-cream);
      font-size: 1.3rem;
      font-weight: 700;
      margin-bottom: 1rem;
    }

    .site-footer h4 {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.75rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--tti-gold);
      margin: 0 0 1.2rem;
    }

    .site-footer ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .site-footer a {
      color: #cfc5a9;
      text-decoration: none;
      transition: color 0.2s ease;
    }

    .site-footer a:hover {
      color: var(--tti-cream);
    }

    .footer-bottom {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 1rem;
      font-size: 0.8rem;
    }

    .footer-bottom span {
      color: #9a8d6c;
    }

    .footer-social-icons {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      gap: 0.75rem;
      margin-top: 1.25rem;
    }

    .footer-social-icons a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: rgba(244, 239, 225, 0.08);
      border: 1px solid rgba(244, 239, 225, 0.15);
      transition: background 0.2s ease, border-color 0.2s ease;
    }

    .footer-social-icons a:hover {
      background: var(--tti-gold);
      border-color: var(--tti-gold);
    }

    .footer-social-icons svg {
      width: 17px;
      height: 17px;
      fill: var(--tti-cream);
    }

    /* ---------- ADDED: shared fixes ---------- */
    .nav-trigger-link {
      background: none;
      border: none;
      border-bottom: 3px solid transparent;
      font-family: 'Inter', sans-serif;
    }

    .nav-trigger-link:focus-visible,
    .nav-burger:focus-visible,
    .nav-search-btn:focus-visible {
      outline: 2px solid var(--tti-gold);
      outline-offset: -2px;
    }

    .nav-burger {
      color: var(--tti-soil);
    }

    @media (min-width: 980px) {
      .mega-menu-inner--focus {
        grid-template-columns: 1.2fr 2fr;
      }
    }

    .nav-mobile a[aria-current="page"],
    .mega-column-block ul li a[aria-current="page"] {
      color: var(--tti-clay);
    }

    .nav-mobile-donate {
      background: #ffcc00;
      color: #000000 !important;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .site-footer .wrap {
      max-width: 1440px;
      margin: 0 auto;
      padding: 0 2.5rem;
    }

    .site-footer h4 {
      font-family: 'IBM Plex Mono', monospace;
    }

    .footer-about {
      max-width: 38ch;
      margin-bottom: 1.25rem !important;
    }

    .footer-reg {
      font-size: 0.8rem;
      opacity: 0.85;
      line-height: 1.6;
      margin-bottom: 1.5rem !important;
    }

    .site-footer h4.footer-location-title {
      margin-bottom: 0.5rem;
    }

    .footer-address {
      line-height: 1.6;
    }

    /* Phones: the bar was wider than the screen (logo + search + donate + burger) */
    @media (max-width: 979px) {
      .nav-inner {
        height: 70px;
      }

      .nav-mobile,
      .mega-dropdown-panel {
        top: 70px;
      }

      .nav-mark {
        padding: 0 1rem;
        min-width: 0;
        flex-shrink: 1;
      }

      .nav-left-zone {
        min-width: 0;
        flex-shrink: 1;
      }

      .nav-logo-img {
        height: 40px;
        max-width: 100%;
        object-fit: contain;
      }

      .nav-right-zone {
        flex-shrink: 0;
      }

      .nav-cta-donate {
        padding: 0 1.1rem;
        font-size: 0.85rem;
      }

      .nav-search-btn {
        width: 44px;
      }

      .nav-burger {
        margin: 0 0.75rem;
      }

      .nav-mobile a {
        padding: 0.9rem 1.5rem;
      }
    }

    @media (max-width: 400px) {
      .nav-search-btn {
        display: none;
      }

      .nav-logo-img {
        height: 34px;
      }
    }

    @media (max-width: 600px) {
      .site-footer .wrap {
        padding: 0 1.25rem;
      }

      .site-footer {
        padding-top: 3.5rem;
      }
    }

/* ---------- Forms (shared): honeypot, status message, errors ---------- */
.tti-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px; overflow: hidden;
}
.form-status {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
}
.form-status.is-ok { color: #2c4d2c; }
.form-status.is-error { color: #9c2a1a; font-weight: 600; }
[aria-invalid="true"] { border-color: #9c2a1a !important; outline: 2px solid rgba(156, 42, 26, 0.25); }

.site-footer h4.footer-contact-title { margin-top: 1.25rem; }
