/*
Theme Name: RP Full Page Theme
Theme URI: https://example.com/
Author: Chris + ChatGPT
Author URI: https://example.com/
Description: Lightweight responsive WordPress theme with full-width page template, hero, feature grid, and clean typography. Gutenberg-friendly.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rpfullpage
Tags: custom-background, custom-logo, custom-menu, featured-images, full-width-template, one-column, block-styles, editor-style, sticky-post
*/

/* ========== Base / Reset ========== */
*,
*::before,
*::after{ box-sizing: border-box; }

html, body{ margin: 0; padding: 0; }

img{ max-width: 100%; height: auto; display: block; }

a{ color: inherit; text-decoration: none; }

:root{
  --rp-max: 1100px;
  --rp-gutter: 1rem;

  /* Inspire-style palette */
  --rp-green:  #57B948;
  --rp-green2: #8CC643;
  --rp-lime:   #B5D334;
  --rp-grad:   linear-gradient(90deg, var(--rp-lime), var(--rp-green));
  --rp-grad-strong: linear-gradient(90deg, var(--rp-lime), var(--rp-green2), var(--rp-green));

  /* Neutrals */
  --rp-text: #252223;
  --rp-muted: rgba(37, 34, 35, 0.72);
  --rp-bg: #ffffff;

  /* Soft green-tinted alt background */
  --rp-alt: #f3f7f1;

  /* Dark surfaces */
  --rp-accent: #252223;

  --rp-radius: 16px;
  --rp-shadow: 0 8px 20px rgba(0,0,0,0.06);
  --rp-border: 1px solid rgba(0,0,0,0.07);

  /* Focus ring */
  --rp-focus: 0 0 0 4px rgba(181, 211, 52, 0.28);
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--rp-text);
  background: var(--rp-bg);
  line-height: 1.6;
}

.rp-wrap{
  width: min(var(--rp-max), calc(100% - (var(--rp-gutter) * 2)));
  margin: 0 auto;
}

/* Content links (only inside content) */
.entry-content a{
  color: var(--rp-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(87, 185, 72, 0.45);
}
.entry-content a:hover{ text-decoration-color: rgba(181, 211, 52, 0.9); }

/* ========== Header ========== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.site-header__bar{
  display:flex;
  gap: 1rem;
  align-items:center;
  justify-content:space-between;
  padding: 0.85rem 0;
}

.site-brand{
  display:flex;
  align-items:center;
  gap:0.75rem;
  min-width: 180px;
}

.site-title{
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
}

.site-tagline{
  margin: 0;
  font-size: 0.9rem;
  color: var(--rp-muted);
}

/* Nav */
.site-nav__toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: var(--rp-border);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.site-nav__toggle:focus-visible,
.rp-btn:focus-visible{
  outline: none;
  box-shadow: var(--rp-focus);
}

.site-nav__menu{
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav__menu.is-open{ display:flex; }

.site-nav__menu a{
  display:block;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
}
.site-nav__menu a:hover{ background: rgba(87, 185, 72, 0.10); }

@media (min-width: 900px){
  .site-nav__toggle{ display:none; }
  .site-nav__menu{
    display:flex;
    flex-direction: row;
    gap: 0.25rem;
  }
}

/* ========== Content ========== */
.site-main{ padding: 1.25rem 0 3rem; }

.entry-title{
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem 0;
}

.entry-meta{
  color: var(--rp-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.entry-content{
  font-size: 1.05rem;
  line-height: 1.75;
}

.entry-content > *{ margin-top: 0; }
.entry-content p{ margin: 0 0 1.1rem 0; }

.wp-block-image,
figure{ margin: 1.5rem 0; }

.wp-block-quote{
  border-left: 4px solid rgba(87, 185, 72, 0.35);
  padding-left: 1rem;
  color: var(--rp-muted);
}

/* Cards */
.rp-card{
  background: #fff;
  border-radius: var(--rp-radius);
  padding: 1.25rem;
  box-shadow: var(--rp-shadow);
  border: var(--rp-border);
}

/* Buttons */
.rp-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  will-change: transform;
}

.rp-btn:hover,
.footer-cta__btn:hover{ transform: translateY(-1px); }

.rp-btn--ghost{
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(6px);
}

/* Gutenberg buttons */
.wp-block-buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.wp-block-button.is-style-outline .wp-block-button__link{
  background: transparent;
  color: var(--rp-green);
  border-color: var(--rp-green);
  box-shadow: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover{
  color: #1b1b1b;
  background: rgba(181, 211, 52, 0.18);
  border-color: rgba(87, 185, 72, 0.55);
}

/* ========== Footer ========== */
.site-footer{
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 2rem 0;
  color: var(--rp-muted);
}
.site-footer a{ text-decoration: underline; }

/* ========== Full Page Template Styles ========== */
.rp-page{ width:100%; }

/* Hero */
.rp-hero{
  position: relative;
  min-height: clamp(340px, 55vh, 640px);
  display: grid;
  align-items: center;
  background-image: var(--rp-hero-bg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.rp-hero__overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,0.58), rgba(0,0,0,0.22));
}

.rp-hero__overlay::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(80% 80% at 15% 50%, rgba(181, 211, 52, 0.18), transparent 55%),
    radial-gradient(70% 70% at 35% 60%, rgba(87, 185, 72, 0.16), transparent 60%);
  pointer-events:none;
}

.rp-hero__inner{
  position: relative;
  padding: clamp(2rem, 6vw, 4rem) 0;
  color:#fff;
}

.rp-hero__title{
  font-size: clamp(2rem, 4.8vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 0.75rem 0;
  max-width: 20ch;
}

.rp-hero__subtitle{
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  margin: 0 0 1.5rem 0;
  max-width: 60ch;
  opacity: 0.95;
}

.rp-hero__actions{
  display:flex;
  gap:0.75rem;
  flex-wrap: wrap;
}

/* Sections */
.rp-section{ padding: clamp(2.5rem, 5vw, 4rem) 0; }
.rp-section--alt{ background: var(--rp-alt); }
.rp-section__header{ margin-bottom: 1.5rem; }

.rp-h2{
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 0.5rem 0;
}

.rp-h2::after{
  content:"";
  display:block;
  width: 54px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--rp-grad);
}

.rp-h3{ font-size: 1.2rem; margin: 0 0 0.25rem 0; }
.rp-lead{ margin: 0; opacity: 0.85; }

/* Grid */
.rp-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.rp-grid .rp-card{ grid-column: span 12; }
@media (min-width: 700px){ .rp-grid .rp-card{ grid-column: span 6; } }
@media (min-width: 1024px){ .rp-grid .rp-card{ grid-column: span 4; } }

/* CTA */
.rp-cta{
  background: var(--rp-accent);
  color:#fff;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  position: relative;
  overflow: hidden;
}

.rp-cta::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(60% 80% at 20% 40%, rgba(181, 211, 52, 0.22), transparent 60%),
    radial-gradient(60% 80% at 55% 60%, rgba(87, 185, 72, 0.18), transparent 60%);
  pointer-events:none;
}

.rp-cta__inner{
  position: relative;
  display:grid;
  gap: 1.25rem;
  align-items:center;
}

.rp-cta__actions{
  display:flex;
  gap:0.75rem;
  flex-wrap: wrap;
}

@media (min-width: 700px){
  .rp-cta__inner{ grid-template-columns: 1fr auto; }
}

/* Footer CTA */
.footer-cta{
  padding: 48px 20px;
  background: var(--rp-alt);
  border-top: 1px solid rgba(0,0,0,.08);
}

.footer-cta__inner{
  max-width: var(--rp-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: start;
  background: #fff;
  border: var(--rp-border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--rp-shadow);
}

.footer-cta__title{
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.15;
}

.footer-cta__text{
  margin: 0 0 18px;
  color: var(--rp-muted);
  max-width: 60ch;
}

.footer-cta__buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.footer-cta__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease, background .12s ease;
}

.footer-cta__btn:active{ transform: translateY(0); opacity: .9; }

.footer-cta__btn--outline{
  background: transparent;
  border-color: var(--rp-green);
  color: var(--rp-green);
}

.footer-cta__btn--outline:hover{
  background: rgba(181, 211, 52, 0.16);
  border-color: rgba(87, 185, 72, 0.55);
  color: #1b1b1b;
}

.footer-cta__right{
  border-left: 1px solid rgba(0,0,0,.08);
  padding-left: 24px;
}

.footer-cta__right a{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-cta__link{
  display: inline-block;
  margin-top: 6px;
  font-weight: 800;
  text-decoration: none;
  color: var(--rp-green);
}

.footer-cta__link:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(181, 211, 52, 0.9);
}

@media (max-width: 900px){
  .footer-cta__inner{ grid-template-columns: 1fr; }

  .footer-cta__right{
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(0,0,0,.08);
    padding-top: 18px;
  }

  .footer-cta__title{ font-size: 24px; }
}

/* Gutenberg Columns: keep columns horizontal on desktop */
@media (min-width: 900px){
  .wp-block-columns{
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1rem;
    align-items: stretch;
  }
  .wp-block-column{
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Gutenberg rounded image style */
.wp-block-image.is-style-rounded{
  overflow: hidden;
  border-radius: 999px;
}

/* Mobile Drawer Nav */
.rp-nav-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 998;
}

.rp-nav-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

body.rp-nav-open{ overflow: hidden; }

/* === Fix primary pill readability (force contrast + no washed-out opacity) === */
.rp-btn--primary,
.wp-block-button__link,
.footer-cta__btn--primary{
  opacity: 1 !important;
  background: #57B948 !important;
  color: #fff !important;
  font-weight: 900;
  text-shadow: none;
}

.rp-btn--primary:hover,
.wp-block-button__link:hover,
.footer-cta__btn--primary:hover{
  opacity: 1 !important;
  background: #3f8f2f !important;
}

/* Make sure outlines stay crisp */
.footer-cta__btn--outline,
.wp-block-button.is-style-outline .wp-block-button__link{
  opacity: 1 !important;
}

/* === Mobile (drawer + toggle pill + bottom image panel) === */
@media (max-width: 899px){

  /* Drawer */
  .site-nav__menu{
    display: block;               /* keep it in DOM so it can slide */
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(86vw, 360px);
    margin: 0;
    padding: 80px 16px 18px;
    background: #fff;
    border-left: 1px solid rgba(0,0,0,0.08);
    box-shadow: -18px 0 40px rgba(0,0,0,0.16);
    transform: translateX(102%);
    transition: transform .22s ease;
    z-index: 999;

    display: flex;
    flex-direction: column;
    gap: 6px;

    overflow-y: auto;
    padding-bottom: 220px; /* space for footer image */
  }

  .site-nav__menu.is-open{ transform: translateX(0); }

  .site-nav__menu a{
    padding: 12px 12px;
    border-radius: 14px;
    font-weight: 850;
  }

  /* Toggle pill */
  .site-nav__toggle{
    background: #57B948;
    color: #fff;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    padding: 0.6rem 1rem;
    transition: transform .12s ease, background .12s ease;
  }

  .site-nav__toggle:hover{
    background: #3f8f2f;
    transform: translateY(-1px);
  }

  .site-nav__toggle:active{ transform: translateY(0); }

  /* Bottom full-width image panel (in the drawer) */
  .site-nav__menu.is-open::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:200px;
    z-index:0;

    /* If the image path fails, you will still see the green */
    background: #57B948 url("assets/img/mobile_menu.png") center bottom / cover no-repeat;
  }

  /* Fade into menu content */
  .site-nav__menu.is-open::before{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:200px;
    height:48px;
    z-index:1;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  }

  /* Ensure menu items sit above image/fade */
  .site-nav__menu > *{
    position: relative;
    z-index: 2;
  }
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}



