/*
Theme Name:  CNIGC Service Rifle
Theme URI:   https://cnigc.co.nz
Author:      Central North Island Gun Club
Description: Official website theme for the Central North Island Gun Club — Service Rifle.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: cnigc
*/

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

/* ── TOKENS ── */
:root {
  --olive:    #3b4a2f;
  --khaki:    #7a7c52;
  --sand:     #c8b98a;
  --offwhite: #f0ece2;
  --charcoal: #1c1e1a;
  --rust:     #8b3a1e;
}

/* ── BASE ── */
body {
  background: var(--charcoal);
  color: var(--offwhite);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.6;
}

/* ── HERO ── */
.cnigc-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4rem 2rem 3rem;
  overflow: hidden;
  background: var(--charcoal);
}

/* SVG target graphic as pseudo-element */
.cnigc-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 6%;
  transform: translateY(-50%);
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  border-radius: 50%;
  background:
    /* crosshair lines */
    linear-gradient(to right, transparent calc(50% - 1px), rgba(139,58,30,0.25) calc(50% - 1px), rgba(139,58,30,0.25) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to bottom, transparent calc(50% - 1px), rgba(139,58,30,0.25) calc(50% - 1px), rgba(139,58,30,0.25) calc(50% + 1px), transparent calc(50% + 1px)),
    /* concentric rings */
    radial-gradient(circle,
      transparent 8%,
      rgba(139,58,30,0.5) 8%, rgba(139,58,30,0.5) 9%,
      transparent 9%, transparent 18%,
      rgba(200,185,138,0.12) 18%, rgba(200,185,138,0.12) 19%,
      transparent 19%, transparent 30%,
      rgba(200,185,138,0.10) 30%, rgba(200,185,138,0.10) 31%,
      transparent 31%, transparent 44%,
      rgba(200,185,138,0.08) 44%, rgba(200,185,138,0.08) 45%,
      transparent 45%, transparent 60%,
      rgba(200,185,138,0.06) 60%, rgba(200,185,138,0.06) 61%,
      transparent 61%, transparent 78%,
      rgba(200,185,138,0.05) 78%, rgba(200,185,138,0.05) 79%,
      transparent 79%
    );
  opacity: 0.9;
  pointer-events: none;
}

/* subtle vignette overlay */
.cnigc-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, transparent 40%, rgba(28,30,26,0.7) 100%);
  pointer-events: none;
}

.cnigc-hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1rem;
}

.cnigc-hero__heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--offwhite);
  max-width: 14ch;
}

.cnigc-hero__heading span { color: var(--sand); }

.cnigc-hero__sub {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: #b0ab9e;
  max-width: 44ch;
  font-weight: 300;
}

.cnigc-hero__cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  background: var(--rust);
  color: var(--offwhite);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}
.cnigc-hero__cta:hover { background: #a8451f; color: var(--offwhite); }

.cnigc-hero__line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--rust) 0%, var(--sand) 50%, transparent 100%);
}

/* ── LABEL ── */
.cnigc-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--khaki);
  margin-bottom: 0.75rem;
}

/* ── ABOUT ── */
.cnigc-about {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.cnigc-about__heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--sand);
  margin-bottom: 1.25rem;
}

.cnigc-about__body p {
  font-size: 0.95rem;
  color: #9e9a8e;
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* ── DIVIDER ── */
.cnigc-divider {
  border: none;
  border-top: 1px solid #2c2e2a;
  margin: 0 2rem;
}

/* ── DISCIPLINES ── */
.cnigc-disciplines {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.cnigc-disciplines .cnigc-label { margin-bottom: 2rem; }

.cnigc-disc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: #2c2e2a;
}

.cnigc-disc-card {
  background: var(--charcoal);
  padding: 1.75rem 1.5rem;
}

.cnigc-disc-card__distance {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--rust);
  line-height: 1;
}

.cnigc-disc-card__unit {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--khaki);
  margin-bottom: 0.5rem;
}

.cnigc-disc-card__name {
  font-size: 0.85rem;
  color: var(--offwhite);
  font-weight: 500;
}

.cnigc-disc-card__desc {
  font-size: 0.8rem;
  color: #6e6b60;
  margin-top: 0.25rem;
}

/* ── CONTACT ── */
.cnigc-contact {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cnigc-contact__heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--offwhite);
  line-height: 1;
  margin-bottom: 1rem;
}

.cnigc-contact__intro {
  font-size: 0.9rem;
  color: #9e9a8e;
  line-height: 1.7;
}

.cnigc-contact__card {
  background: #21231f;
  border-left: 3px solid var(--rust);
  padding: 2rem;
}

.cnigc-contact__card .cnigc-label { margin-bottom: 1.25rem; }

.cnigc-contact__email {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--sand);
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s;
}
.cnigc-contact__email:hover { color: var(--offwhite); }

.cnigc-contact__note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: #5e5c52;
  line-height: 1.6;
}

.cnigc-contact__note a {
  color: var(--khaki);
  text-decoration: none;
}
.cnigc-contact__note a:hover { color: var(--sand); }

/* ── FOOTER ── */
.cnigc-footer {
  border-top: 1px solid #2c2e2a;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cnigc-footer__logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: var(--khaki);
  letter-spacing: 0.05em;
}

.cnigc-footer__copy {
  font-size: 0.75rem;
  color: #4a4840;
}

.cnigc-footer__link {
  font-size: 0.75rem;
  color: var(--khaki);
  text-decoration: none;
}
.cnigc-footer__link:hover { color: var(--sand); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .cnigc-about,
  .cnigc-contact { grid-template-columns: 1fr; gap: 2rem; }
  .cnigc-hero { padding: 2rem 1.25rem 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
