/*
Theme Name:  Renton Pride 2026
Theme URI:   https://techfoxusa.com
Author:      TechFox USA, LLC
Author URI:  https://techfoxusa.com
Description: A groovy, rainbow-accented WordPress theme. Montserrat body, Pacifico display, accessible green body background, responsive header with widget footer.
Version:     1.0.7
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.2
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: renton-pride-2026
Tags: custom-logo, custom-menu, footer-widgets, responsive-layout, accessibility-ready
*/

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
  /* Brand */
  --color-body-bg:        #1ec912;
  --color-surface:        #ffffff;
  --color-surface-alt:    #f4f5f4;
  --color-border:         #d8dbd8;

  /* Text */
  --color-text:           #1a1c1a;
  --color-text-muted:     #4a544a;
  --color-text-inverse:   #f0f4f0;

  /* Footer */
  --color-footer-bg:      #141a14;
  --color-footer-border:  #2a342a;

  /* Rainbow gradient (left to right) */
  --rainbow: linear-gradient(
    90deg,
    #ff0000 0%,
    #ff7700 16.6%,
    #ffee00 33.3%,
    #00cc44 50%,
    #0066ff 66.6%,
    #8800ff 83.3%,
    #ff0077 100%
  );

  /* Typography */
  --font-display:  'Pacifico', cursive;
  --font-body:     'Montserrat', sans-serif;

  /* Spacing & shape */
  --radius:        6px;
  --radius-lg:     12px;
  --max-width:     1200px;
  --header-height: 68px;

  /* Shadow */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.10);
  --shadow-md:  0 4px 16px rgba(0,0,0,.12);
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-body-bg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  /* Subtle texture so the solid green breathes */
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,.04) 0px,
    rgba(255,255,255,.04) 1px,
    transparent 1px,
    transparent 12px
  );
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: underline; }
a:hover { text-decoration: none; }

/* Focus ring — accessible, not ugly */
:focus-visible {
  outline: 3px solid #0066ff;
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .75rem;
  color: var(--color-text);
}

p  { margin: 0 0 1.25rem; }
ul, ol { padding-left: 1.5rem; margin: 0 0 1.25rem; }

/* =========================================================
   RAINBOW STRIPE — top of page
   ========================================================= */
body::before {
  content: '';
  display: block;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--rainbow);
  background-size: 200% 100%;
  z-index: 1000;
  animation: rainbow-slide 6s linear infinite;
}

@keyframes rainbow-slide {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* =========================================================
   LAYOUT WRAPPERS
   ========================================================= */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
  padding: 2.5rem 0 3rem;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* =========================================================
   SKIP LINK (accessibility)
   ========================================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-text);
  color: var(--color-surface);
  padding: .5rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
  z-index: 9999;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 6px; }

/* =========================================================
   SITE HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 5px;
  z-index: 900;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

/* Row 1 — Branding */
.site-header__branding {
  padding: .75rem 0;
}

/* Row 2 — Hamburger (mobile only; hidden on desktop) */
.site-header__toggle-row {
  display: none; /* hidden on desktop */
}

/* Row 3 — Nav */
.site-header__nav-row {
  border-top: 1px solid var(--color-surface-alt);
  border-bottom: 3px solid transparent;
  border-image: var(--rainbow) 1;
  padding: .2rem 0;
}

/* ----- Logo / Branding ----- */
.site-branding {
  display: flex;
  align-items: center;
  gap: .875rem;
  text-decoration: none;
}
.site-branding:hover { text-decoration: none; }

.custom-logo {
  max-height: 52px;
  width: auto;
  border-radius: 4px;
}
.site-branding__text {}

.site-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: .01em;
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: rainbow-slide 6s linear infinite;
}
@supports not (-webkit-background-clip: text) {
  .site-title { color: #17691a; }
}

.site-description {
  margin: 0;
  font-size: .78rem;
  color: var(--color-text-muted);
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ----- Primary Nav ----- */
.site-nav {}

.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem;
}
.primary-menu li { position: relative; }
.primary-menu a {
  display: block;
  padding: .45rem .875rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  background: var(--color-surface-alt);
  color: #17691a;
}

/* Dropdown */
.primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .375rem 0;
  list-style: none;
  margin: 0;
  z-index: 200;
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu a {
  border-radius: 0;
  padding: .45rem 1rem;
  white-space: nowrap;
}

/* ----- Hamburger button ----- */
.nav-toggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: none;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: .5rem .875rem;
  cursor: pointer;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 700;
  transition: border-color .15s;
}
.nav-toggle:hover { border-color: #17691a; color: #17691a; }

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  flex-shrink: 0;
  transition: transform .25s, opacity .25s;
}
/* Stack the three bars */
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =========================================================
   CONTENT AREA
   ========================================================= */
.content-area {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Connected posts container — single white panel for the homepage loop */
.posts-container {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden; /* clips article thumbnails and rainbow dividers to rounded corners */
}

/* Entry — transparent inside the container */
.entry {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

/* Standalone entry cards (archives, search) keep their own surface */
.content-area > .entry {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.entry__thumbnail { width: 100%; }
.entry__thumbnail img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.entry__body { padding: 1.75rem 2rem 2rem; }

.entry__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  margin-bottom: .5rem;
}

.entry__title a { text-decoration: none; color: var(--color-text); }
.entry__title a:hover { color: #17691a; }

.entry__meta {
  font-size: .82rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.entry__excerpt { margin-bottom: 1.25rem; }

/* Read more */
.read-more {
  display: inline-block;
  background: var(--color-text);
  color: var(--color-surface) !important;
  text-decoration: none !important;
  padding: .55rem 1.25rem;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 700;
  transition: background .15s, transform .1s;
  letter-spacing: .03em;
}

.read-more:hover {
  background: #17691a;
  transform: translateY(-1px);
}

/* Single post / page content */
.entry-content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem 2rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  font-family: var(--font-display);
  font-weight: 400;
}

.entry-content h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.entry-content h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
.entry-content h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

.entry-content a { color: #17691a; font-weight: 700; }
.entry-content a:hover { color: #0e4d11; }

/* No posts message */
.no-results {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* Pagination */
.posts-navigation,
.post-navigation {
  margin-top: 2rem;
}

.nav-links {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.nav-links a, .nav-links span {
  padding: .5rem 1rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
  box-shadow: var(--shadow-sm);
  transition: background .15s;
}

.nav-links a:hover { background: var(--color-text); color: var(--color-surface); }

/* =========================================================
   SITE FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-text-inverse);
  margin-top: auto;
}

/* Rainbow top cap on footer */
.site-footer::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--rainbow);
  background-size: 200% 100%;
  animation: rainbow-slide 6s linear infinite;
}

.footer-widgets {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--color-footer-border);
}

.footer-widgets__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-widget {}

.footer-widget__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-inverse);
  margin-bottom: 1rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.footer-widget a { color: #a8d8a8; }
.footer-widget a:hover { color: #ffffff; }
.footer-widget ul { padding-left: 0; list-style: none; }
.footer-widget ul li { margin-bottom: .4rem; }

.footer-bottom {
  padding: 1.5rem 0;
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}

.footer-nav a {
  display: block;
  padding: .3rem .6rem;
  font-size: .82rem;
  text-decoration: none;
  color: #a8d8a8;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}

.footer-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }

.footer-credit {
  font-size: .78rem;
  color: #6a8a6a;
}

.footer-credit a { color: #8ab88a; }
.footer-credit a:hover { color: #fff; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  /* Show the hamburger row; hide desktop nav row */
  .site-header__toggle-row {
    display: block;
    border-top: 1px solid var(--color-border);
    padding: .4rem 0;
  }

  /* Nav row hidden by default on mobile; opens below hamburger row */
  .site-header__nav-row {
    display: none;
    padding: .4rem 0 .75rem;
    border-bottom: 3px solid transparent;
    border-image: var(--rainbow) 1;
  }
  .site-header__nav-row.is-open {
    display: block;
  }

  /* Stacked vertical menu */
  .primary-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .primary-menu li { width: 100%; }
  .primary-menu a {
    padding: .65rem .875rem;
    width: 100%;
    white-space: normal;
    box-sizing: border-box;
  }
  .primary-menu .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--color-border);
    border-radius: 0;
    padding: 0;
    margin: 0 0 .25rem 1.25rem;
    min-width: 0;
    width: auto;
  }

  .entry__body { padding: 1.25rem 1.25rem 1.5rem; }
  .footer-bottom__inner { flex-direction: column; align-items: flex-start; }
  .entry-content { padding: 1.5rem 1.25rem; }
}

@media (max-width: 480px) {
  .site-title { font-size: 1.25rem; }
  .custom-logo { max-height: 40px; }
}

/* =========================================================
   RAINBOW DIVIDER (between full posts)
   ========================================================= */
.rainbow-divider {
  height: 4px;
  border-radius: 2px;
  background: var(--rainbow);
  background-size: 200% 100%;
  animation: rainbow-slide 6s linear infinite;
  margin: .5rem 0; /* gap between article cards handles most spacing */
}


/* =========================================================
   SOCIAL ICONS
   ========================================================= */
.social-icons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.social-icons__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #a8d8a8;
  text-decoration: none;
  transition: background .15s, color .15s, transform .15s;
  border: 1px solid rgba(255,255,255,.1);
}

.social-icons__link:hover {
  background: var(--rainbow);
  background-size: 200% auto;
  animation: rainbow-slide 3s linear infinite;
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Platform accent colors on hover when rainbow not supported */
@supports not (background-clip: text) {
  .social-icons__link--facebook:hover  { background: #1877f2; }
  .social-icons__link--instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
  .social-icons__link--tiktok:hover    { background: #000; }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  body::before,
  .site-header,
  .site-footer,
  .nav-toggle { display: none; }
  .site-main { padding: 0; }
  .entry-content { box-shadow: none; padding: 0; }
}
