/* =========================================================
   RUNNING COACH IRELAND — WORDPRESS SITE-WIDE CSS SKIN
   Apply via Additional CSS, child theme, or page builder global CSS
   ========================================================= */

/* ---------- RCI DESIGN TOKENS ---------- */
:root {
  --rci-green: #00843D;
  --rci-green-dark: #005F2C;
  --rci-red: #ED1C24;
  --rci-yellow: #fbbf24;
  --rci-black: #000000;
  --rci-grey: #A7A9AC;

  --rci-slate: #0f172a;
  --rci-text: #1e293b;
  --rci-muted: #64748b;
  --rci-border: #e2e8f0;
  --rci-bg: #f8fafc;
  --rci-card: #ffffff;

  --rci-radius-sm: 12px;
  --rci-radius-md: 18px;
  --rci-radius-lg: 24px;
  --rci-radius-xl: 28px;

  --rci-shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.05);
  --rci-shadow-md: 0 14px 34px rgba(15, 23, 42, 0.07);
  --rci-shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.08);
}

/* ---------- GLOBAL BASE ---------- */
html,
body {
  background: var(--rci-bg);
}

body {
  color: var(--rci-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

/* ---------- MAIN SITE WRAPPERS ---------- */
.site,
.site-content,
.wp-site-blocks,
.entry-content {
  background: linear-gradient(180deg, #ffffff 0%, var(--rci-bg) 100%);
}

/* ---------- TYPOGRAPHY ---------- */
h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-heading {
  color: var(--rci-slate);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h1,
.entry-title,
.page-title {
  font-weight: 950;
  letter-spacing: -0.055em;
}

p,
li {
  color: var(--rci-text);
}

.entry-content p,
.wp-block-paragraph {
  color: var(--rci-text);
}

small,
.wp-block-post-excerpt,
.wp-block-post-date,
.wp-block-latest-posts__post-date {
  color: var(--rci-muted);
}

/* ---------- LINKS ---------- */
a {
  color: var(--rci-green);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: var(--rci-green-dark);
}

/* ---------- BRAND RULE UTILITY ---------- */
.rci-brand-rule,
.wp-block-separator {
  height: 3px;
  border: 0;
  background: linear-gradient(
    90deg,
    var(--rci-green) 0%,
    var(--rci-green) 47%,
    var(--rci-grey) 47%,
    var(--rci-grey) 53%,
    var(--rci-red) 53%,
    var(--rci-red) 100%
  );
  opacity: 0.9;
}

/* ---------- CARDS / GROUP BLOCKS ---------- */
.wp-block-group,
.wp-block-column,
.wp-block-media-text,
.wp-block-cover,
.card,
.rci-card,
article.post,
article.page,
.wp-block-post {
  border-radius: var(--rci-radius-lg);
}

.rci-card,
.wp-block-group.is-style-rci-card,
.wp-block-column.is-style-rci-card {
  background: var(--rci-card);
  border: 1px solid var(--rci-border);
  border-radius: var(--rci-radius-lg);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--rci-shadow-sm);
}

/* Apply card styling to common query/blog cards */
.wp-block-query .wp-block-post,
.blog .post,
.archive .post,
.search .post {
  background: var(--rci-card);
  border: 1px solid var(--rci-border);
  border-radius: var(--rci-radius-lg);
  padding: 22px;
  box-shadow: var(--rci-shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.wp-block-query .wp-block-post:hover,
.blog .post:hover,
.archive .post:hover,
.search .post:hover {
  border-color: #cbd5e1;
  box-shadow: var(--rci-shadow-md);
  transform: translateY(-1px);
}

/* ---------- HERO / FEATURE SECTIONS ---------- */
.rci-hero,
.hero,
.wp-block-cover.rci-hero {
  background: #ffffff;
  border: 1px solid var(--rci-border);
  border-radius: var(--rci-radius-xl);
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--rci-shadow-lg);
  overflow: hidden;
}

.rci-hero h1,
.hero h1 {
  text-transform: uppercase;
  text-align: center;
}

/* ---------- BUTTONS ---------- */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.wp-block-button__link,
.wp-element-button,
.button,
.btn,
a.button {
  border: 0;
  border-radius: 999px;
  background: var(--rci-green);
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.01em;
  padding: 14px 24px;
  min-height: 48px;
  box-shadow: 0 14px 28px rgba(0, 132, 61, 0.22);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
.wp-block-button__link:hover,
.wp-element-button:hover,
.button:hover,
.btn:hover,
a.button:hover {
  background: var(--rci-green-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(0, 132, 61, 0.28);
}

.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button__link.is-style-outline {
  background: transparent;
  color: var(--rci-green);
  border: 2px solid var(--rci-green);
  box-shadow: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button__link.is-style-outline:hover {
  background: var(--rci-green);
  color: #ffffff;
}

/* ---------- FORMS ---------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="date"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--rci-border);
  border-radius: 14px;
  padding: 12px 14px;
  background: #ffffff;
  color: var(--rci-slate);
  font: inherit;
  font-weight: 650;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--rci-green);
  box-shadow: 0 0 0 4px rgba(0, 132, 61, 0.12);
}

label,
legend {
  color: #1e293b;
  font-weight: 900;
}

::placeholder {
  color: #94a3b8;
  opacity: 1;
}

/* ---------- LISTS / CHECKLISTS ---------- */
.rci-checklist,
.entry-content ul.rci-checklist {
  list-style: none;
  padding-left: 0;
}

.rci-checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.rci-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--rci-green);
  font-weight: 950;
}

/* ---------- PILLS / BADGES ---------- */
.rci-pill,
.badge,
.tag,
.wp-block-tag-cloud a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 13px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.rci-pill.green {
  background: #dcfce7;
  color: var(--rci-green-dark);
}

.rci-pill.yellow {
  background: #fef3c7;
  color: #92400e;
}

.rci-pill.red {
  background: #fee2e2;
  color: #991b1b;
}

/* ---------- TABLES ---------- */
table,
.wp-block-table table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  border: 1px solid var(--rci-border);
  border-radius: var(--rci-radius-md);
  overflow: hidden;
  background: #ffffff;
}

th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 900;
}

td,
th {
  border-color: #eef2f7;
  padding: 12px 14px;
}

/* ---------- NOTICES / CALLOUTS ---------- */
.rci-notice {
  background: #f8fafc;
  border: 1px solid var(--rci-border);
  border-left: 7px solid var(--rci-green);
  border-radius: var(--rci-radius-md);
  padding: 18px;
  box-shadow: var(--rci-shadow-sm);
}

.rci-notice.red {
  background: #fef2f2;
  border-color: #fecaca;
  border-left-color: var(--rci-red);
}

.rci-notice.yellow {
  background: #fffbeb;
  border-color: #fde68a;
  border-left-color: var(--rci-yellow);
}

/* ---------- NAVIGATION ---------- */
.main-navigation a,
.wp-block-navigation a,
.site-header a {
  font-weight: 800;
  text-decoration: none;
}

.main-navigation a:hover,
.wp-block-navigation a:hover,
.site-header a:hover {
  color: var(--rci-green);
}

/* ---------- IMAGES ---------- */
img {
  max-width: 100%;
}

.wp-block-image img,
.entry-content img {
  border-radius: var(--rci-radius-md);
}

/* Avoid rounding logos/icons too aggressively */
.site-logo img,
.custom-logo,
.rci-logo,
.wp-block-site-logo img {
  border-radius: 0;
}

/* ---------- MOBILE ---------- */
@media (max-width: 700px) {
  h1,
  .entry-title,
  .page-title {
    letter-spacing: -0.045em;
  }

  .rci-hero,
  .hero,
  .wp-block-cover.rci-hero,
  .rci-card,
  .wp-block-group.is-style-rci-card,
  .wp-block-column.is-style-rci-card {
    border-radius: 20px;
    padding: 18px;
  }

  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  .wp-block-button__link,
  .wp-element-button,
  .button,
  .btn,
  a.button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}