/*
Theme Name: Kadence Child — Round Rotherham
Theme URI: https://roundrotherham.com
Description: Child theme for the Rowbotham's Round Rotherham 50 website. Steel Precision palette, Montserrat + Lora typography.
Author: Consulting Brain / Phil Tidmarsh
Template: kadence
Version: 1.0.0
Text Domain: kadence-child-rrr
*/

/* ─── Design tokens ───────────────────────────────────── */
:root {
  --rrr-dark:     #111a14;   /* hero / header background   */
  --rrr-dark2:    #1c2b1f;   /* card / section background  */
  --rrr-green:    #4ade80;   /* accent / CTA               */
  --rrr-green-dk: #22c55e;   /* hover                      */
  --rrr-text:     #e8f0ea;   /* body text on dark bg       */
  --rrr-muted:    #8fa98f;   /* secondary text             */
  --rrr-white:    #ffffff;
  --rrr-radius:   6px;
  --rrr-font-head: 'Montserrat', sans-serif;
  --rrr-font-body: 'Lora', Georgia, serif;
}

/* ─── Google Fonts ────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* ─── Base overrides ──────────────────────────────────── */
body {
  font-family: var(--rrr-font-body);
  background-color: var(--rrr-dark);
  color: var(--rrr-text);
}

h1, h2, h3, h4, h5, h6,
.wp-block-heading {
  font-family: var(--rrr-font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
}

a {
  color: var(--rrr-green);
  text-decoration: none;
}
a:hover {
  color: var(--rrr-green-dk);
  text-decoration: underline;
}

/* ─── Site header ─────────────────────────────────────── */
.site-header,
.kadence-sticky-header {
  background-color: var(--rrr-dark) !important;
  border-bottom: 1px solid rgba(74, 222, 128, 0.2);
}

.site-branding .site-title a,
.site-branding .site-title a:hover {
  color: var(--rrr-white);
  font-family: var(--rrr-font-head);
  font-weight: 900;
}

/* ─── Hero section ────────────────────────────────────── */
.rrr-hero {
  min-height: 100svh;
  background: linear-gradient(160deg, var(--rrr-dark) 60%, #0e2b18 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.rrr-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 70%, rgba(74,222,128,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.rrr-hero__eyebrow {
  font-family: var(--rrr-font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rrr-green);
  margin-bottom: 1rem;
}

.rrr-hero__title {
  font-family: var(--rrr-font-head);
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  color: var(--rrr-white);
  margin-bottom: 0.5rem;
}

.rrr-hero__subtitle {
  font-family: var(--rrr-font-body);
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--rrr-muted);
  margin-bottom: 2.5rem;
  font-style: italic;
}

/* ─── Stats strip ─────────────────────────────────────── */
.rrr-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(74,222,128,0.15);
  border-radius: var(--rrr-radius);
  overflow: hidden;
  margin: 2rem auto;
  max-width: 640px;
  width: 100%;
}

.rrr-stat {
  flex: 1;
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(74,222,128,0.12);
}
.rrr-stat:last-child { border-right: none; }

.rrr-stat__number {
  font-family: var(--rrr-font-head);
  font-size: 2rem;
  font-weight: 900;
  color: var(--rrr-green);
  line-height: 1;
}

.rrr-stat__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rrr-muted);
  margin-top: 0.3rem;
}

/* ─── CTA buttons ─────────────────────────────────────── */
.rrr-btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--rrr-radius);
  font-family: var(--rrr-font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.rrr-btn--primary {
  background: var(--rrr-green);
  color: var(--rrr-dark) !important;
}
.rrr-btn--primary:hover {
  background: var(--rrr-green-dk);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(74,222,128,0.3);
}

.rrr-btn--outline {
  border: 2px solid rgba(74,222,128,0.5);
  color: var(--rrr-green) !important;
  background: transparent;
}
.rrr-btn--outline:hover {
  border-color: var(--rrr-green);
  background: rgba(74,222,128,0.08);
}

/* ─── Quick-nav cards ─────────────────────────────────── */
.rrr-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  padding: 3rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.rrr-card {
  background: var(--rrr-dark2);
  border: 1px solid rgba(74,222,128,0.12);
  border-radius: var(--rrr-radius);
  padding: 1.75rem 1.25rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none !important;
  display: block;
}
.rrr-card:hover {
  border-color: var(--rrr-green);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.rrr-card__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.rrr-card__title {
  font-family: var(--rrr-font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rrr-white);
}

.rrr-card__desc {
  font-size: 0.78rem;
  color: var(--rrr-muted);
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* ─── Section blocks ──────────────────────────────────── */
.rrr-section {
  padding: 4rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.rrr-section--full {
  max-width: 100%;
  background: var(--rrr-dark2);
  padding: 4rem 1.5rem;
}

.rrr-section--full .rrr-section__inner {
  max-width: 900px;
  margin: 0 auto;
}

.rrr-section__label {
  font-family: var(--rrr-font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rrr-green);
  margin-bottom: 0.5rem;
}

.rrr-section__title {
  font-family: var(--rrr-font-head);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--rrr-white);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

/* ─── Results table ───────────────────────────────────── */
.rrr-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.rrr-results-table th {
  background: rgba(74,222,128,0.1);
  color: var(--rrr-green);
  font-family: var(--rrr-font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(74,222,128,0.2);
}
.rrr-results-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--rrr-text);
}
.rrr-results-table tr:hover td {
  background: rgba(74,222,128,0.04);
}
.rrr-results-table .pos { color: var(--rrr-muted); font-weight: 700; width: 3rem; }
.rrr-results-table .time { font-family: var(--rrr-font-head); font-weight: 700; color: var(--rrr-green); }

/* ─── Checkpoint / timeline list ─────────────────────── */
.rrr-checkpoints {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  position: relative;
}
.rrr-checkpoints::before {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--rrr-green), transparent);
}
.rrr-checkpoint {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0 0.75rem 0.5rem;
  position: relative;
}
.rrr-checkpoint__dot {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--rrr-green);
  flex-shrink: 0;
  margin-top: 0.15rem;
  position: relative;
  z-index: 1;
}
.rrr-checkpoint__name {
  font-family: var(--rrr-font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--rrr-white);
}
.rrr-checkpoint__meta {
  font-size: 0.8rem;
  color: var(--rrr-muted);
  margin-top: 0.1rem;
}

/* ─── Mobile bottom nav ───────────────────────────────── */
@media (max-width: 768px) {
  .rrr-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--rrr-dark);
    border-top: 1px solid rgba(74,222,128,0.2);
    z-index: 9999;
    align-items: stretch;
  }

  .rrr-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--rrr-muted);
    text-decoration: none !important;
    font-family: var(--rrr-font-head);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    gap: 0.25rem;
    transition: color 0.15s;
  }

  .rrr-bottom-nav__item svg {
    width: 1.4rem;
    height: 1.4rem;
  }

  .rrr-bottom-nav__item:hover,
  .rrr-bottom-nav__item.current {
    color: var(--rrr-green);
  }

  /* Push page content above bottom nav */
  body { padding-bottom: 64px; }
}

@media (min-width: 769px) {
  .rrr-bottom-nav { display: none; }
}

/* ─── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--rrr-dark2) !important;
  border-top: 1px solid rgba(74,222,128,0.1);
  color: var(--rrr-muted);
  font-size: 0.85rem;
}

/* ─── Utilities ───────────────────────────────────────── */
.text-green  { color: var(--rrr-green); }
.text-muted  { color: var(--rrr-muted); }
.text-white  { color: var(--rrr-white); }
.font-head   { font-family: var(--rrr-font-head); }
.bg-dark2    { background-color: var(--rrr-dark2); }
