/*
Theme Name: DRak Running Club
Theme URI: https://example.com/drak-running-club
Author: TTC
Author URI: https://example.com
Description: One-page WordPress theme for a friendly running club with anchored sections and bold visual transitions.
Version: 1.0.8
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: drak-running-club
*/

:root {
  --ink: #17211b;
  --ink-soft: #425047;
  --paper: #fffaf1;
  --paper-clean: #fffdf7;
  --line: rgba(23, 33, 27, 0.14);
  --forest: #0f5a3a;
  --forest-dark: #073624;
  --mint: #d8f0de;
  --flame: #d7332f;
  --sun: #f4b84a;
  --river: #1c7188;
  --shadow: 0 18px 45px rgba(9, 28, 20, 0.14);
  --radius: 8px;
  --section-y: clamp(4rem, 8vw, 7.5rem);
  --wrap: min(1140px, calc(100% - 32px));
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(23, 33, 27, 0.1);
  box-shadow: 0 12px 36px rgba(9, 28, 20, 0.08);
  backdrop-filter: blur(16px);
}

.admin-bar .site-header {
  top: 32px;
}

.nav-wrap {
  width: var(--wrap);
  min-height: 118px;
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(260px, 26vw, 380px);
  min-height: 84px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  flex: 0 0 auto;
}

.custom-logo {
  display: block !important;
  width: 100% !important;
  max-width: 360px !important;
  height: 86px !important;
  max-height: none !important;
  object-fit: contain !important;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  list-style: none !important;
  list-style-type: none !important;
}

.site-nav li,
.site-nav li::marker,
.site-nav::marker {
  content: "" !important;
  display: none !important;
  margin: 0;
  padding: 0;
  list-style: none !important;
  list-style-type: none !important;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--mint);
  color: var(--forest-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: calc(88svh - 118px);
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--forest-dark);
}

.hero-bg,
.hero-slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: -2;
}

.hero-slide {
  opacity: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 900ms ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  background:
    radial-gradient(circle at 78% 28%, rgba(244, 184, 74, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(7, 29, 21, 0.92) 0%, rgba(7, 29, 21, 0.72) 35%, rgba(7, 29, 21, 0.2) 70%, rgba(7, 29, 21, 0.14) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(64px, 9vw, 130px);
  background: var(--paper);
  clip-path: polygon(0 44%, 16% 62%, 36% 42%, 57% 66%, 78% 48%, 100% 64%, 100% 100%, 0 100%);
}

.hero-inner {
  width: var(--wrap);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) 0 clamp(7rem, 12vw, 10rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 1.1rem;
  color: #ffe6b0;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 3px;
  background: var(--sun);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-size: clamp(3.1rem, 8vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 630px;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.button-primary {
  background: var(--flame);
  color: #fff;
  box-shadow: 0 16px 32px rgba(215, 51, 47, 0.26);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}

.button:hover {
  transform: translateY(-1px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 680px;
  margin-top: clamp(2.4rem, 5vw, 4.3rem);
}

.stat {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(12px);
}

.stat strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 800;
}

.section {
  position: relative;
  padding: var(--section-y) 0;
  scroll-margin-top: 90px;
}

.section-clean {
  background: var(--paper-clean);
}

.section-forest {
  background: var(--forest-dark);
  color: #fff;
}

.section-river {
  background: #eaf6f8;
}

.section-sun {
  background: #fff1ce;
}

.wave-top::before,
.wave-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(44px, 7vw, 90px);
  pointer-events: none;
}

.wave-top::before {
  top: -1px;
  background: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% 38%, 78% 62%, 58% 42%, 36% 68%, 16% 46%, 0 70%);
}

.wave-bottom::after {
  bottom: -1px;
  background: var(--paper);
  clip-path: polygon(0 34%, 18% 58%, 38% 38%, 57% 62%, 78% 44%, 100% 66%, 100% 100%, 0 100%);
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
}

.section-kicker {
  margin: 0 0 0.65rem;
  color: var(--flame);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-forest .section-kicker {
  color: #ffd166;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-copy {
  max-width: 710px;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.07rem;
}

.section-forest .section-copy {
  color: rgba(255, 255, 255, 0.75);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature,
.route,
.faq-item,
.contact-panel,
.schedule-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 22px rgba(9, 28, 20, 0.06);
}

.feature {
  padding: 22px;
}

.feature-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--mint);
  color: var(--forest-dark);
  font-weight: 950;
}

.feature h3,
.route h3,
.faq-item h3,
.schedule-item h3,
.contact-panel h3 {
  margin: 1rem 0 0.45rem;
  font-size: 1.12rem;
  line-height: 1.2;
}

.feature p,
.route p,
.faq-item p,
.schedule-item p,
.contact-panel p {
  margin: 0;
  color: var(--ink-soft);
}

.rhythm {
  display: grid;
  gap: 14px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.schedule-time {
  display: grid;
  place-items: center;
  min-height: 82px;
  border-radius: 8px;
  background: var(--forest-dark);
  color: #fff;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
}

.schedule-time span {
  display: block;
  color: #ffd166;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 190px;
  padding: 26px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 2.1rem;
  color: var(--flame);
  font-size: 0.9rem;
  font-weight: 950;
}

.steps li::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 56px;
  height: 56px;
  border: 10px solid rgba(15, 90, 58, 0.12);
  border-radius: 50%;
}

.steps h3 {
  margin: 0 0 0.55rem;
  font-size: 1.18rem;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
}

.join-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.join-links a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 6px 12px;
  align-items: center;
  min-height: 86px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}

.join-links a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.join-links span {
  display: block;
  color: #ffd166;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.join-links .social-icon {
  grid-row: span 2;
}

.routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.route {
  overflow: hidden;
}

.route-body {
  padding: 20px;
}

.route-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #d7e9ed;
}

.route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}

.route-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(28, 113, 136, 0.12);
  color: #11596d;
  font-size: 0.82rem;
  font-weight: 900;
}

.route-meta a {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--forest-dark);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.quote-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.quote-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.quote-card blockquote {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.08;
}

.quote-card cite {
  display: block;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-style: normal;
  font-weight: 800;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.faq-item {
  padding: 22px;
  background: rgba(255, 255, 255, 0.86);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-panel {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: #fff;
}

.club-address {
  margin: 1rem 0 0;
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
  line-height: 1.7;
}

.contact-form-slot {
  margin-top: 1rem;
}

.contact-form-slot input,
.contact-form-slot textarea,
.contact-form-slot select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--ink);
  font: inherit;
}

.contact-form-slot textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form-slot input[type="submit"],
.contact-form-slot button {
  width: auto;
  min-width: 150px;
  border-color: transparent;
  background: var(--flame);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.contact-list {
  display: grid;
  gap: 13px;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-list a,
.contact-list span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  background: #f5f1e6;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.contact-list small {
  min-width: 74px;
  color: var(--ink-soft);
  font-weight: 800;
}

.social-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 7px;
  border: 1px solid rgba(23, 33, 27, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(9, 28, 20, 0.08);
}

.site-footer {
  padding: 34px 0;
  background: var(--forest-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  width: var(--wrap);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 118px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf7;
    box-shadow: var(--shadow);
  }

  .admin-bar .site-nav {
    top: 150px;
  }

  body.menu-open .site-nav {
    display: flex;
  }

  .site-nav a {
    border-radius: 8px;
    min-height: 46px;
    justify-content: center;
  }

  .split,
  .quote-band,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .steps,
  .join-links,
  .routes,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .admin-bar .site-nav {
    top: 164px;
  }
}

@media (max-width: 680px) {
  :root {
    --wrap: min(100% - 24px, 1140px);
  }

  .nav-wrap {
    min-height: 94px;
    gap: 12px;
  }

  .brand {
    width: 220px;
    min-height: 68px;
    padding: 0;
  }

  .custom-logo {
    max-width: 200px !important;
    height: 68px !important;
  }

  .hero {
    min-height: calc(90svh - 94px);
  }

  .hero-slide {
    background-position: 64% center;
  }

  .hero-overlay {
    background:
      radial-gradient(circle at 72% 22%, rgba(244, 184, 74, 0.18), transparent 30%),
      linear-gradient(180deg, rgba(7, 29, 21, 0.88) 0%, rgba(7, 29, 21, 0.68) 56%, rgba(7, 29, 21, 0.25) 100%);
  }

  .hero h1 {
    font-size: clamp(2.8rem, 16vw, 4.5rem);
  }

  .hero-actions,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-stats,
  .feature-grid,
  .steps,
  .join-links,
  .routes,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .schedule-item {
    grid-template-columns: 1fr;
  }

  .schedule-time {
    min-height: 58px;
  }
}
