/* =========================
   BRAND TOKENS
   ========================= */
:root{
  --brown:#A05222;          /* brand brown */
  --beige:#F8F4F1;          /* page background */
  --dark-brown:#411E06;     /* headings / accents */
  --btn-green:#3F7652;      /* primary call-to-action */
  --ink:#1b1b1b;            /* body text */
  --muted:#555;             /* meta text */
  --radius:16px;
  --maxw:1100px;
}

/* =========================
   BASE / RESET
   ========================= */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
html { scroll-behavior: smooth; }
body{
  background:var(--beige);
  color:var(--ink);
  font: 16px/1.7 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
img{max-width:100%;height:auto;display:block}

/* Hide skip link until keyboard focus */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: #3F7652; /* your green */
  color: white;
  padding: .5rem 1rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.3s ease;
  z-index: 999;
}
.skip-link:focus {
  top: 0; /* shows only when tabbed */
}

/* =========================
   FADE-IN ANIMATIONS
   ========================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Children inside a revealed section */
.section-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease-out, transform .6s ease-out;
  transition-delay: calc(var(--i, 0) * 120ms); /* stagger */
  will-change: opacity, transform;
}
.section-reveal.visible .reveal {
  opacity: 1;
  transform: none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in, .section-reveal .reveal,
  .fade-in.visible, .section-reveal.visible .reveal {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* =========================
   HEADER
   ========================= */

  /* Header sanity (kept in base stylesheet) */
header.top-bar{
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.08);
  padding:12px 16px;
  position:relative;
  z-index:100;
}
.top-bar .logo-img{ width:150px; display:block; }
.header-right{ position:absolute; top:12px; right:16px; }
.top-bar .cta-btn{
  display:inline-block;
  font-family:"Cinzel", serif;
  padding:.6rem 1rem;
  background:var(--btn-green);
  color:#fff; text-decoration:none;
  border-radius:10px; line-height:1;
}
@media (max-width:800px){
  .header-right{ position:static; margin-top:.5rem; text-align:right; }
} 

.btn-return {
    display: inline-block;
    margin-left: 0.75rem;
    padding: 0.6rem 1rem;
    background: transparent;
    border: 2px solid var(--btn-green);
    color: var(--btn-green);
    text-decoration: none;
    border-radius: 10px;
    font-family: "Cinzel", serif;
    font-weight: 700;
    transition: all 0.25s ease;
}

.btn-return:hover {
    background: var(--btn-green);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(0,0,0,.15);
}

.btn-nav {
  display: inline-block;
  margin-left: 0.75rem;
  padding: .55rem 1rem;
  background: transparent;
  border: 2px solid var(--dark-brown);
  color: var(--dark-brown);
  font-family: "Cinzel", serif;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s ease;
}

.btn-nav:hover {
  background: var(--dark-brown);
  color: #fff;
  transform: translateY(-2px);
}


/* =========================
   SECTION SPACING
   ========================= */
#hero, #about, #services, #insights, #cta{
  padding: 2.5rem 1rem;
}

/* =========================
   HERO (texture + overlay)
   ========================= */
#hero{
  position:relative;
  color:#fff;
  isolation:isolate;             /* ensures overlay layers correctly */
}
#hero{
  background:url("../images/texture1.jpg") center/cover no-repeat;
}
#hero::before{
  content:"";
  position:absolute; inset:0;
  /* a subtle cinematic gradient that boosts text contrast */
  background:linear-gradient(
    rgba(0,0,0,.58) 0%,
    rgba(0,0,0,.42) 45%,
    rgba(0,0,0,.28) 100%
  );
  z-index:0;
}
.hero-content{position:relative;z-index:1;max-width:var(--maxw);margin:0 auto;text-align:center}
.site-title{
  font-family:"Cinzel", serif;
  font-size:clamp(2.6rem, 6vw, 4.8rem);
  font-weight:800;
  letter-spacing:.04em;
  line-height:1.2;
  margin:0 0 1rem;
  color:#fffdf9;
  text-shadow:0 4px 16px rgba(0,0,0,.65);
}
.tagline,.hero-subtext,.hero-cred{
  color:#fefefe;
  -webkit-text-stroke:.35px rgba(0,0,0,.55);
  text-shadow:0 2px 6px rgba(0,0,0,.75);
  margin:.25rem 0;
}
.tagline{font-weight:700}
.hero-cred{font-size:.95rem}

.section-divider {
  height: 40px;
  background: url("../images/texture1.jpg") center/cover no-repeat;
  opacity: 0.3;
  margin: 3rem 0;
  border-radius: 12px;
}

/* =========================
   ABOUT
   ========================= */
.about-wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:3rem 1rem;
  line-height:1.8;
}
.section-title{
  text-align:center;
  color:var(--dark-brown);
  margin:0 0 2rem;
  font-weight:800;
}


/* Image on the RIGHT, text wraps on the LEFT */
.about-photo{
  float:right;
  width:min(360px, 40%);
  margin:0 0 1rem 2rem;           /* space between image & text */
  border-radius:var(--radius);
  shape-outside:inset(0 round var(--radius));
}

/* Text column */
.about-text p{margin:0 0 1rem}

/* Subheads inside About */
.about-text > p:first-of-type{        /* "Christian Counselor & Life Coach for Men" */
  text-align:center;
  font-weight:700;
  color:var(--dark-brown);
  margin:0 0 1rem;
}

.ab_text_sub {
  text-align:center;
  color:var(--dark-brown);
  margin:2rem auto 1rem;
  font-weight:800;
}

.subhead{                              /* "Credentials and Training" */
  text-align:center;
  color:var(--dark-brown);
  margin:2rem auto 1rem;
  font-weight:800;
}
#endorsements .subhead2{               /* "What Colleagues Are Saying" */
  text-align:left;                     /* intentional editorial tone */
  color:var(--brown);
  font-weight:800;
  margin:2rem 0 1rem;
  border-left:4px solid var(--btn-green);
  padding-left:.6rem;
}

/* Lists under credentials */
.credentials-list{margin:0 0 1.25rem 1.2rem}
.credentials-list li{margin:.4rem 0}

/* Quotes */
#endorsements blockquote{
  margin:.75rem 0 1.25rem;
  padding:0 0 0 .9rem;
  border-left:3px solid rgba(0,0,0,.12);
  color:#222;
}
#endorsements .author{
  margin:.4rem 0 0;
  color:var(--muted);
  font-style:italic;
}

/* Clear the float at the end of About */
.about-wrap::after{content:"";display:block;clear:both}

/* =========================
   SERVICES
   ========================= */
.services{
  max-width:var(--maxw);
  margin:0 auto;
}
.services h2{
  text-align:center;
  color:var(--dark-brown);
  margin:0 0 1rem;
}
.services .intro{
  max-width:70ch;
  margin:0 auto 2rem;
  text-align:center;
  color:#262626;
}
.service-block{margin:1.5rem 0}
.service-list{margin:.75rem 0 0 1.2rem}

/* FORCE ALL TEXT INSIDE THE GREEN BLOCK TO BE WHITE */
.services-theme,
.services-theme * {
  color: #F8F4F1 !important;
}

/* =========================
   FIX: FORCE LIGHT TEXT IN SERVICES BLOCK
   ========================= */
   .services-theme,
   .services-theme * {
     color: #F8F4F1 !important;
   }
   
   /* But preserve button styling */
   .services-theme .btn-primary {
     background: #fff !important;
     color: var(--btn-green) !important;
     border: 2px solid #fff !important;
   }
   
   .services-theme a:not(.btn-primary) {
     color: #F8F4F1 !important;
     text-decoration: underline;
   }
   

/* CTA block within services */
.services-cta{
  text-align:center;
  margin:2rem 0 0;
}
.btn-primary{
  display:inline-block;
  background:var(--btn-green);
  color:#fff;
  text-decoration:none;
  padding:.75rem 1.1rem;
  border-radius:10px;
  font-weight:700;
}

/* SERVICES THEME (green block that fades in with the section) */
.services-theme {
  position: relative;
  isolation: isolate; /* keeps overlay behind content */
  color: #F8F4F1;     /* light text on dark bg */
}

.services-theme::before {
  content: "";
  position: absolute; inset: 0;
  background: #3F7652; /* brand green */
  opacity: 0;
  transition: opacity .8s ease;
  z-index: 0;
}

/* When your JS adds .visible, fade in the background block */
.services-theme.visible::before {
  opacity: 1;
}

/* Ensure the content is above the overlay */
.services-theme > * {
  position: relative;
  z-index: 1;
}

/* Headings and copy on dark theme */
.services-theme h2,
.services-theme h3 { color: #fff; }
.services-theme p  { color: #fefefe; }

/* Buttons & links inside the green block */
.services-theme .btn-primary {
  background: #fff;
  color: #3F7652;
  border: 2px solid #fff;
  font-weight: 700;
}
.services-theme .btn-primary:hover {
  background: #F8F4F1;
  color: #2f5d41;
  border-color: #F8F4F1;
}

/* Optional: links in text */
.services-theme a:not(.btn-primary) {
  color: #F8F4F1;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.services-theme a:not(.btn-primary):hover { opacity: .9; }

/* =========================
   INSIGHTS
   ========================= */
.insights{max-width:var(--maxw);margin:0 auto}
.insights header{text-align:center}
.insights .insights-tagline{color:#333;margin:.25rem 0 1.25rem}
.insight-featured{max-width:70ch;margin:0 auto 1.5rem}
.insights-list{max-width:70ch;margin:0 auto}
.insights-list h4{margin:1rem 0 .25rem}

/* =========================
   FINAL CTA
   ========================= */
.final-cta{
  max-width:var(--maxw);
  margin:0 auto;
  text-align:center;
}
.final-cta .cta-text{max-width:70ch;margin:0 auto 1rem}
.btn-secondary{
  display:inline-block;
  margin-left:.5rem;
  padding:.75rem 1.1rem;
  background:transparent;
  border:2px solid var(--brown);
  color:var(--brown);
  text-decoration:none;
  border-radius:10px;
}

/* =========================
   FOOTER
   ========================= */
footer{
  background:#fff;
  border-top:1px solid rgba(0,0,0,.08);
  padding:16px;
  text-align:center;
  color:#333;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 800px){
  .about-photo{
    float:none;
    width:80%;
    margin:0 auto 1rem;
  }
  .header-right{position:static; margin-top:.5rem; text-align:right}
  
 /* ===== FORCE BLOG BODY TEXT LEFT ON ALL SCREENS ===== */
.post,
.post * {
    text-align: left !important;
}

