/*
Theme Name:   Northwest Bass (GeneratePress child)
Theme URI:    https://northwestbass.com
Description:  Child theme of GeneratePress that replicates the dt-the7 visual
              spec of the legacy staging site (typography, palette, header,
              footer, sidebar). Values are pulled from
              spec/staging/spec.json — keep this file in sync if the spec
              changes.
Author:       Wonderboy Creative
Template:     generatepress
Version:      0.1.0
Text Domain:  northwestbass
*/

/* ---------- Fonts ----------
 * Source spec lists Roboto + Helvetica + Arial fallback chains. We load Roboto
 * via Google Fonts (via functions.php) and use the spec's stacks verbatim.
 */

:root {
  --nwb-body-stack: 'Roboto', Helvetica, Arial, Verdana, sans-serif;
  --nwb-heading-stack: Helvetica, Arial, sans-serif;
  --nwb-body-color: #515151;
  --nwb-body-bg: #ffffff;
  --nwb-nav-color: #3a3a3a;
  --nwb-accent: #ec1c24;   /* the orange/red tagline color */
  --nwb-muted: #777777;
  --nwb-divider: #7777770a;
}

/* ---------- Global typography ---------- */

body {
  background: var(--nwb-body-bg);
  color: var(--nwb-body-color);
  font-family: var(--nwb-body-stack);
  font-size: 16px;
  line-height: 27px;
  font-weight: 400;
}

p {
  font-family: var(--nwb-body-stack);
  font-size: 16px;
  line-height: 27px;
  color: var(--nwb-body-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--nwb-heading-stack);
  color: var(--nwb-body-color);
}

/* The bold orange tagline on the homepage and similar callouts. */
.nwb-tagline {
  font-family: var(--nwb-heading-stack);
  font-size: 26px;
  line-height: 27px;
  font-weight: 900;
  color: var(--nwb-accent);
}

/* ---------- Header ----------
 * Spec: 140px tall, transparent over slider, sticky on scroll (TBD per spec).
 */

.site-header {
  background: transparent;
  position: relative;
}

.site-header .inside-header {
  max-width: none;
  padding: 0 40px;
  height: 140px;
}

/* Primary nav — Roboto 17/21 500 #3a3a3a uppercase. */
.main-navigation .menu li a {
  font-family: var(--nwb-body-stack);
  font-size: 17px;
  line-height: 21px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--nwb-nav-color);
}

.main-navigation .menu li a:hover {
  color: var(--nwb-accent);
}

/* ---------- Footer ----------
 * Spec: 88px tall, background #7777770a (transparent gray).
 */

.site-footer {
  background: var(--nwb-divider);
  min-height: 88px;
}

.site-footer .inside-site-info,
.site-footer .copyright-bar {
  font-family: var(--nwb-body-stack);
  font-size: 14px;
  color: var(--nwb-muted);
}

/* ---------- Sidebar (Recent News + Weather widgets) ---------- */

.widget-area .widget-title {
  font-family: var(--nwb-heading-stack);
  font-weight: 700;
  color: var(--nwb-body-color);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.widget-area .widget a {
  color: var(--nwb-body-color);
  text-decoration: none;
}

.widget-area .widget a:hover {
  color: var(--nwb-accent);
}

/* ---------- Slider ----------
 * Replaces revslider. Two-slide crossfade, 1440×600 desktop (per spec).
 */

.nwb-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: #000;
}

.nwb-slider__slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.nwb-slider__slide--active { opacity: 1; }

.nwb-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

@media (max-width: 1023px) {
  .nwb-slider { height: 494px; }
}

@media (max-width: 767px) {
  .nwb-slider { height: 313px; }
}

/* ---------- Cards (homepage Tournament/Registration) ---------- */

.nwb-card {
  display: block;
  width: 100%;
  height: auto;
}

.nwb-card--rounded {
  border-radius: 4px;
}

/* ---------- Tagline span override ----------
 * Replicates staging's inline-styled <span style="font-family: Helvetica..."> on
 * the homepage's "Northwest Bass is the premier..." text.
 */

.nwb-tagline {
  font-family: var(--nwb-heading-stack);
  color: var(--nwb-accent);
  font-weight: 900;
  font-size: 26px;
  line-height: 27px;
}

.nwb-tagline-wrap em {
  font-style: italic;
}

/* ---------- Top contact bar ----------
 * Spec: full viewport width, 40px tall, #3f3f3f bg; three items (email,
 * phone, address) centered horizontally, Roboto 13px white.
 */

.nwb-top-bar {
  background: #3f3f3f;
  color: #ffffff;
  font-family: var(--nwb-body-stack);
  font-size: 13px;
  line-height: 24px;
  width: 100%;
}

.nwb-top-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 8px 20px;
  flex-wrap: wrap;
}

.nwb-top-bar__item {
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--nwb-body-stack);
  font-size: 13px;
  line-height: 24px;
}

.nwb-top-bar__item:hover { color: #ffffff; opacity: 0.85; }

.nwb-top-bar__icon {
  display: inline-flex;
  align-items: center;
  color: var(--nwb-accent);
}

.nwb-top-bar__text {
  font-family: var(--nwb-body-stack);
  font-size: 13px;
  line-height: 24px;
  color: #ffffff;
}

/* Spec measures staging's top bar at 40px @ desktop and 54px @ tablet — the
 * items wrap to a second line at narrower viewports. We match by giving
 * .nwb-top-bar__inner generous gap so the row breaks before the viewport
 * truncates. Font size stays 13px at every breakpoint per the spec.
 */
@media (max-width: 900px) {
  .nwb-top-bar__inner { gap: 16px; padding: 6px 16px; }
}
@media (max-width: 767px) {
  .nwb-top-bar__inner { gap: 14px; padding: 6px 12px; }
}

/* ---------- Resets / overrides ----------
 * GeneratePress's defaults need to be quieted in a few places so the
 * dt-the7 spec values win.
 */

.entry-title { margin-top: 0; }
