/*
Theme Name: Newport Rifle Club
Theme URI: https://newportrifleclub.org
Author: Newport Rifle Club
Author URI: https://newportrifleclub.org
Description: Official theme for the Newport Rifle Club — the oldest continuously operating rifle club in the United States, founded in 1876.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nrc
Tags: custom-menu, featured-images, post-thumbnails
*/

/* ── CSS CUSTOM PROPERTIES ── */
:root {
  --navy:       #1a2639;
  --dark-navy:  #0f1824;
  --gold:       #c9a84c;
  --gold-light: #e2c47a;
  --cream:      #f5f0e8;
  --warm-white: #faf8f4;
  --text-dark:  #1a1a1a;
  --text-mid:   #4a4a4a;
  --rule:       #c9a84c44;
  --max-width:  1060px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  background: var(--warm-white);
  color: var(--text-dark);
  line-height: 1.75;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); }
a:hover { color: var(--gold-light); }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--navy);
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── LAYOUT ── */
.nrc-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.nrc-section {
  padding: 4.5rem 0;
}

.nrc-section + .nrc-section {
  border-top: 1px solid var(--rule);
}

.nrc-section--cream {
  background: var(--cream);
}

.nrc-section--navy {
  background: var(--navy);
}

/* ── SECTION LABELS & TITLES ── */
.nrc-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
}

.nrc-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.nrc-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-top: 0.7rem;
}

/* ── BUTTONS ── */
.nrc-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--dark-navy);
  padding: 12px 32px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Source Serif 4', Georgia, serif;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.nrc-btn:hover {
  background: var(--gold-light);
  color: var(--dark-navy);
}

.nrc-btn--outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.nrc-btn--outline:hover {
  background: rgba(201,168,76,0.12);
  color: var(--gold-light);
}

.nrc-btn--navy {
  background: var(--navy);
  color: var(--gold);
}

.nrc-btn--navy:hover {
  background: var(--dark-navy);
  color: var(--gold-light);
}

/* ── TWO COLUMN ── */
.nrc-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 720px) {
  .nrc-two-col { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── CARDS ── */
.nrc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.nrc-card {
  background: #fff;
  border: 1px solid #e8e2d8;
  border-top: 3px solid var(--gold);
  padding: 1.8rem;
  transition: box-shadow 0.25s, transform 0.2s;
}

.nrc-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}

.nrc-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.nrc-card p {
  font-size: 0.93rem;
  color: var(--text-mid);
}

.nrc-card__icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  display: block;
}

/* ── RANGE BLOCKS ── */
.nrc-range-block {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 1.4rem 1.8rem;
  margin-bottom: 1.2rem;
}

.nrc-range-block h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.nrc-range-block p {
  font-size: 0.92rem;
  color: var(--text-mid);
  margin-bottom: 0;
}

.nrc-range-block--light {
  background: #fff;
  border-left-color: var(--navy);
}

/* ── ACTIVITY ITEMS ── */
.nrc-activity {
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0;
}

.nrc-activity:last-child { border-bottom: none; }

.nrc-activity__tag {
  display: inline-block;
  background: var(--navy);
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  margin-bottom: 0.5rem;
  font-family: 'Source Serif 4', Georgia, serif;
}

.nrc-activity h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.nrc-activity p {
  font-size: 0.91rem;
  color: var(--text-mid);
  margin-bottom: 0;
}

/* ── MEMBERSHIP STEPS ── */
.nrc-steps { counter-reset: nrc-step; margin-top: 1.5rem; }

.nrc-step {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.nrc-step__num {
  counter-increment: nrc-step;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
}

.nrc-step__num::before { content: counter(nrc-step); }

.nrc-step__body h4 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
  font-weight: 600;
  font-family: 'Source Serif 4', Georgia, serif;
}

.nrc-step__body p {
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-bottom: 0;
}

/* ── CONTACT GRID ── */
.nrc-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.nrc-contact-entry {
  background: #fff;
  border: 1px solid #e8e2d8;
  padding: 1rem 1.2rem;
}

.nrc-contact-entry__role {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.2rem;
  font-family: 'Source Serif 4', Georgia, serif;
}

.nrc-contact-entry__name {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  display: block;
}

.nrc-contact-entry__phone {
  font-size: 0.85rem;
  color: var(--text-mid);
  display: block;
}

/* ── CALLOUT BAND ── */
.nrc-callout {
  background: var(--navy);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.nrc-callout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 40px,
    rgba(201,168,76,0.04) 40px, rgba(201,168,76,0.04) 41px
  );
}

.nrc-callout__inner { position: relative; }

.nrc-callout h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #fff;
  margin-bottom: 0.8rem;
}

.nrc-callout p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.8rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── POSTS / NEWS ── */
.nrc-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.nrc-post-card {
  background: #fff;
  border: 1px solid #e8e2d8;
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.nrc-post-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.08); }

.nrc-post-card__thumb img { width: 100%; height: 200px; object-fit: cover; }

.nrc-post-card__body { padding: 1.4rem; }

.nrc-post-card__date {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}

.nrc-post-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.nrc-post-card h3 a { color: var(--navy); text-decoration: none; }
.nrc-post-card h3 a:hover { color: var(--gold); }

.nrc-post-card p { font-size: 0.88rem; color: var(--text-mid); }

/* ── SINGLE POST ── */
.nrc-single-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.nrc-single-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.nrc-post-meta {
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

/* ── SIDEBAR ── */
.nrc-sidebar-widget {
  background: #fff;
  border: 1px solid #e8e2d8;
  border-top: 3px solid var(--gold);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.nrc-sidebar-widget h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}

/* ── WP ALIGNMENT CLASSES ── */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }

/* ── WP CORE WIDGETS ── */
.widget { margin-bottom: 2rem; }
.widget-title { font-size: 1rem; color: var(--navy); margin-bottom: 0.8rem; }

/* ── PAGINATION ── */
.nrc-pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 3rem;
}

.nrc-pagination a,
.nrc-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid #e8e2d8;
  font-size: 0.85rem;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nrc-pagination a:hover,
.nrc-pagination .current {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .nrc-container { padding: 0 1.2rem; }
  .nrc-section { padding: 3rem 0; }
  .nrc-cards { grid-template-columns: 1fr; }
  .nrc-contact-grid { grid-template-columns: 1fr; }
}
