/* =========================================================
   ROOTED MINDS — SINGLE PAGE STYLE.CSS (CLEAN + UPDATED)
   Matches your current index.html + script.js
   ========================================================= */

/* =========================
   Variables
   ========================= */
:root {
  --bg: #f9fcf7;
  --surface: #ffffff;
  --text: #22322a;
  --muted: #5c6b61;

  --brand: #336600;
  --brand-2: #F7F5E9;
  --accent: #4f774a;

  --radius: 16px;
  --shadow: 0 10px 28px rgba(0,0,0,.06);
  --shadow-strong: 0 24px 42px rgba(24,48,24,.16);

  /* Shared header/footer subtle gradient */
  --header-footer-bg: #ffffff;
	
/*
	  linear-gradient(
    180deg,
    rgba(255,255,255,0.96) 0%,
    rgba(204, 0, 51,0.05) 50%,
    rgba(248,251,246,0.96) 100%,
    rgba(0, 255, 255,0.05) 75%
  );
*/

  /* Buttons */
  --btn-text: #2f2940;
  --btn-primary-bg: #f9ecb7;
  --btn-primary-hover: #f6de8f;
  --btn-ghost-bg: #f9ecb7;
  --btn-ghost-hover: #f6de8f;
}

/* =========================
   Base / Reset
   ========================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, Arial, sans-serif;
  line-height: 1.6;
/*  background-image: url('../assets/logo-tree-transparent-strong.png');*/
/*
  background-attachment: fixed;
	background-blend-mode: difference;
	background-size: cover;
*/
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('../assets/logo-tree-transparent-strong.png');

  /* ↓↓↓ CHANGE THESE ↓↓↓ */
  background-size: 50%;   /* smaller = see more of the image */
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.18;          /* <-- background opacity! */
		background-blend-mode: difference;

  /* keeps it behind everything */
  z-index: -1;
  pointer-events: none;
}

img, svg, video { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.2;
  margin: .2em 0 .5em;
  color: var(--text);
}

p { margin: .6em 0 1em; color: var(--muted); }

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 24px);
}

.brand-line-1 {
	font-family: "Marcellus", serif;

  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0;
}

.brand-line-2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.4px;
}



/* Focus ring */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

/* Visually hidden helper (used by #formStatus) */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  background: #fff;
  padding: .5rem .75rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* =========================
   Header / Navigation
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-footer-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8eee9;
}
.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text);
}
.brand-logo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #fff;
  object-fit: contain;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}

.nav-logo { 
  height: 68px; 
  width: 68px; 
  display: inline-block; 
}

/* nav links */
.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* nav links with animated underline instead of pill background */
.site-nav a {
  position: relative;
  display: inline-block;
  padding: .4rem .1rem;          /* a bit tighter since no pill */
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color .2s ease;
}

/* the underline bar */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;               /* space below text */
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

/* hover + active state share same look */
.site-nav a:hover,
.site-nav a.is-active {
  color: var(--brand);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}


/* hamburger */
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: .25rem;
  border-radius: 8px;
		text-align: center;
	margin: 0 auto;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;

}

/* Accessibility dropdown */
.nav-accessibility { position: relative; }
.site-nav .nav-a11y-link {
  display: block;
  font: inherit;
  background: #fff;
  border: 1px solid #c9d3cc;
  border-radius: 8px;
  padding: .5rem .6rem;
  cursor: pointer;
  width: 100%;
}
.site-nav .nav-a11y-link[aria-expanded="true"] { background:#f6f9f7; }
.a11y-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid #e2e8e4;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: .6rem;
  width: max-content;
  z-index: 1200;
}
.a11y-panel-inner {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
}
.a11y-btn {
  font: inherit;
  border: 1px solid #c9d3cc;
  background: #fff;
  padding: .35rem .6rem;
  border-radius: 8px;
  cursor: pointer;
}

.service-list {
  display: grid;
  gap: 2rem;
}

.service {
  text-align: left;
}

.service .icons {
  width: 80px;       /* consistent icon size */
  height: 80px;      /* forces uniformity */
  object-fit: contain;
  display: block;
  margin: 0 auto 1rem auto; /* centers + adds spacing above title */
}

.resource-preview{
  width: 100%;
  border-radius: 12px;
  margin: 0.75rem 0;
  border: 1px solid #ddd;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
  margin-bottom: .6rem;
}
.footer-logo img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #fff;
  object-fit: contain;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}
/*
  width: 86px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #fff;
  object-fit: contain;
  box-shadow: 0 6px 14px rgba(0,0,0,.10);
*/

.brand-line-footer {
	  font-family: "Great Vibes", cursive;
	font-size: 18px;
	
}


/* Mobile nav */
@media (max-width:900px){
	.nav-top {
  display: flex;
  justify-content: left;   /* centers content horizontally */
  align-items: left;       /* centers everything vertically */
  position: relative;        /* needed for absolute children */
  height: 60px;              /* optional but recommended */
		margin-top: 20px;
		margin-bottom: 20px;
}

.nav-wrap {
  position: absolute;
  right: 16px;
  top: 50%;                  /* vertically center relative to .nav-top */
  transform: translateY(-50%); /* true vertical centering */
}

.nav-toggle {
  display: inline-block;
}
/*

  .nav-top { justify-content: center; }
  .nav-wrap { position: absolute; right: 16px; top: 8px; }
  .nav-toggle { display: inline-block; }
*/

  .site-nav {
    display: none;
    position: absolute;
    top: 48px;
    right: 16px;
    background: #fff;
    padding: .6rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
/*    width: min(85vw, 320px);*/
	   width: max-content;     /* only as wide as needed */
    margin-left: auto;      /* pushes it to the right edge */
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }


  /* Stack menu vertically AND right-align text */
  .site-nav ul {
    flex-direction: column;
    align-items: flex-end;   /* PUSHES TEXT TO THE RIGHT */
    text-align: right;       /* Ensures multi-line items also align right */
    width: 100%;
    gap: 1rem;
  }

  .site-nav a {
    width: 100%;
    text-align: right;       /* Aligns anchor text fully */
    padding-right: 12px;     /* Optional: adds breathing room */
  }


  .site-nav a { display:block; width:100%; }

  .a11y-panel { position: static; border: none; box-shadow: none; padding: .4rem 0 .2rem; }
}
@media (min-width:901px){
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; background: transparent; box-shadow: none; padding: 0; }
}

/* =========================
   Buttons
   ========================= */
.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;

  font-family: "Inter", sans-serif;
  font-weight: 600;
  text-decoration: none;
  text-align: center;

  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
  cursor: pointer;
}
.hero-ctas-inline .btn {
  white-space: nowrap;
  margin-bottom: 0.75rem;   /* <— vertical spacing */
}

.btn-primary, .btn-primary:visited {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  color: var(--btn-text);
}
.btn-primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
}

.btn-ghost, .btn-ghost:visited {
  background: var(--btn-ghost-bg);
  border-color: var(--btn-ghost-bg);
  color: var(--btn-text);
}
.btn-ghost:hover {
  background: var(--btn-ghost-hover);
  transform: translateY(-2px);
}

/* ✅ NEW: CTAs inside hero-copy */
.hero-ctas-inline{
	display: block;
	text-align: center;
	margin: 0 auto;
	padding: 10px;
}
/*
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: flex-start;
  margin-top: 1rem;
}
*/
.hero-ctas-inline .btn{
  white-space: nowrap;
}

/* Center the CTA row on tablets */
@media (max-width:900px){
  .hero-ctas-inline{
    justify-content: center;
  }
}

/* Stack nicely on small phones */
@media (max-width:560px){
  .hero-ctas-inline{
    flex-direction: column;
    align-items: center;
  }
  .hero-ctas-inline .btn{
    width: 100%;
    max-width: 320px;
  }
}

/* =========================
   Hero (Home)
   ========================= */
.hero--bright {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 80% at 20% 10%, rgba(255,184,77,.25) 0%, rgba(255,184,77,0) 60%),
    radial-gradient(70% 75% at 80% 0%, rgba(121,193,107,.22) 0%, rgba(121,193,107,0) 60%),
    linear-gradient(180deg, #ffffff 0%, #f6faf4 100%);
}

.hero--bright::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .08;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: clamp(340px, 68vmin, 950px);
}

.hero .container { position: relative; z-index: 1; }

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 4vw, 3rem);
  padding: 64px 0;
}

.hero-portrait {
  flex: 0 0 35%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .4rem;
}

/* Portrait card styling */
.hero-portrait.card{
  padding: 1.25rem 1.25rem 1rem;
  border: 1px solid rgba(222,233,226,.9);
  max-width: 360px;
  width: 100%;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* ✅ Smaller Rochelle portrait on home hero */
.home-hero .hero-portrait .portrait {
  width: clamp(90px, 18vw, 150px);
  height: clamp(90px, 18vw, 150px);
  border-width: 5px;
}

/* Base portrait styling (both hero + about) */
.hero-portrait .portrait {
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-strong);
  border: 6px solid #fff;
  background: #fff;
}

.hero-intro { text-align:center; margin-top:.6rem; }

.intro-credentials {
  list-style: none;
  padding: 0;
  margin: .35rem 0 .75rem;
  line-height: 1.5;
}
.intro-name {
  font-family: "Great Vibes", cursive;
	font-size: clamp(.8rem, 2vw + 1rem, 1.5rem);
  line-height: 1.15;
  letter-spacing: .5px;
  margin-top: 0;
	
}
.hero-copy {
  flex: 1 1 55%;
  min-width: 300px;
  max-width: 600px;
}

.hero-logo-badge {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  margin-top: .6rem;
  border: 4px solid #fff;
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
  background: #fff;
  object-fit: contain;
}

.hero .brandline {
  font-family: "Marcellus", serif;
  font-weight: 600;
  font-size: clamp(.5rem, 1.6vw + .9rem, 1.9rem);
  margin-bottom: .2rem;
}
.intro-populations {
	  font-family: "Marcellus", serif;

font-size: clamp(0.5rem, 1rem + 1vw, 1.4rem);


}
.hero-tagline {
  font-family: "Great Vibes", cursive;
font-size: clamp(1.25rem, 1rem + 2vw, 2.5rem);

/*	font-size: 4rem;*/
  line-height: 1.15;
  letter-spacing: 2px;
  margin-top: 0;
}

.comfort-title {
	text-align: center;
}
/* Your Option C gradient override */
.hero.hero--bright.home-hero {
  background:
    linear-gradient(90deg,
      rgba(252,246,234,0.85) 0%,
      rgba(246,248,240,0.85) 40%,
      rgba(236,241,235,0.85) 100%
    ),
    linear-gradient(90deg,
      rgba(252,246,234,1) 0%,
      rgba(246,248,240,1) 40%,
      rgba(236,241,235,1) 100%
    ),
    linear-gradient(180deg,
      rgba(255,255,255,1) 0%,
      rgba(240,247,242,1) 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 520px;
}

/* Wordmark overlay */
.hero-wordmark {
  position: absolute;
  inset: 0;
width: 100%;
height: 100%;
	margin: auto;
  opacity: .15;
  pointer-events: none;
  z-index: 1;
  object-fit: cover;
	object-position: bottom;
  filter: drop-shadow(0 15px 15px rgba(0,0,0,.08));
}

#about.container, #contact.container {
	position: relative;
	overflow: hidden;
/*
	width: 100%;
	margin: 0 auto;
*/
}
.contact-wordmark {  
	  position: absolute;
	object-position: top;
  width: 75%;
  height: 75%;
  object-fit: contain; 
	margin: 0 auto;
  opacity: .2;
  pointer-events: none;
  filter: drop-shadow(0 15px 15px rgba(0,0,0,.08));
  z-index: 0;
}
.resources-wordmark {  
	  position: absolute;
	object-position: bottom;
  width: 100%;
  height: 100%;
  object-fit: contain; 
	margin: 0 auto;
  opacity: .08;
  pointer-events: none;
  filter: drop-shadow(0 15px 15px rgba(0,0,0,.08));
  z-index: 0;
}


/* mobile hero */
@media (max-width:900px){
  .hero-inner { flex-direction: column-reverse; text-align: center; padding: 28px 0; }
  .hero-portrait .portrait { width: min(72vw, 220px); height: min(72vw, 220px); }
}

/* =========================
   Sections / Layout
   ========================= */
.features { padding: 36px 0; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.resources-teaser {
  padding: 32px 0;
  border-top: 1px solid #e8eee9;
  border-bottom: 1px solid #e8eee9;
  background: #fff;
}

/* sticky header offset */
#about, #services, #resources, #privacy, #contact {
  padding-top: 52px;
  padding-bottom: 56px;
  border-top: 1px solid #e5ede6;
  scroll-margin-top: 90px;
}

#services, #resources {
  background: linear-gradient(180deg, #ffffff 0%, #f6faf4 100%);
}

#about h1, #services h1, #resources h1, #privacy h1, #contact h1 {
  margin-bottom: 1.5rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid #dde6dd;
}

/* Service cards */
.service-list, .grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.service {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 10px 28px rgba(0,0,0,.05);
  border: 1px solid rgba(222,233,226,.8);
}
.service h2 { margin: 0 0 .75rem; }
.service ul { padding-left: 1.1rem; margin: 0; }

/* Resource cards */
.resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.resource {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
  border: 1px solid rgba(222,233,226,.9);
}
.resource h2 { margin: 0 0 .5rem; }
.resource ul { padding-left: 1.1rem; margin: 0; }

/* About portrait */
.about-portrait {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 8px 0;
}
.about-portrait img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 5px solid #fff;
}
@media (max-width:600px){
  .about-portrait img { width: 140px; height: 140px; }
	.hero-logo-badge {
		width: 200px;
  height: 200px;
	
	}
	.intro-populations{
		font-size: 16px;
	}
}

/* =========================
   Forms
   ========================= */
.contact-form {
  display: grid;
  gap: 1rem;
  background: var(--surface);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 1rem 0 2rem;
  max-width: 520px;
}
.form-row { display:grid; gap:.4rem; }

input, textarea {
  font: inherit;
  padding: .7rem .8rem;
  border: 1px solid #cbd6cf;
  border-radius: 12px;
  background: #fff;
}
input:focus, textarea:focus {
  outline: 3px solid var(--brand-2);
  border-color: transparent;
}
[aria-invalid="true"]{ border-color:#b00020; }

#contact .contact-details { margin-top: 2rem; }

/* =========================
   RMX Fade Carousel
   ========================= */
.rmx-carousel {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 8px;
  overflow: hidden;
  border-radius: 16px;
  position: relative;
  aspect-ratio: 16 / 9;
}
.rmx-track { position: relative; width: 100%; height: 100%; }

.rmx-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.rmx-slide.active { opacity: 1; }

.rmx-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.rmx-controls {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  margin: 6px auto 0;
  max-width: 800px;
}
.rmx-btn {
  border: 0;
  padding: .6rem 1rem;
  border-radius: 10px;
  cursor: pointer;
}

.rmx-dots {
  display: flex;
  gap: .4rem;
  justify-content: center;
  margin-top: 6px;
}
.rmx-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
}
.rmx-dot.active { background: #666; }

/* =========================
   Footer (no Tree watermark + header-matching gradient)
   ========================= */
.site-footer {
  position: relative;
  background: var(--header-footer-bg);
  border-top: 1px solid #eceae4;
  margin-top: 40px;
  overflow: hidden;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr; /* single column now */
  align-items: start;
  gap: 1.5rem;
  padding: 24px 0;
}

/* nav sits in the single column */
.footer-grid nav {
  grid-column: 1;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: flex-start;   /* left-justify */
}

.footer-legal {
  grid-column: 1 / -1;
  color: var(--muted);
  margin-top: 1rem;
  text-align: center;  /* center copyright text */
}

/*
.footer-legal {
  grid-column: 1 / -1;
  color: var(--muted);
  margin-top: 1rem;
}
*/

/* small inline icons used in contact + footer */
.contact-details .icon,
.site-footer .icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 6px;
  flex: 0 0 18px;
}

/* shared contact/map layout */
.footer-contact {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 6px;
}

.gmap-embed {
  width: 220px;
  height: 150px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  overflow: hidden;
}

@media (max-width:640px){
  .gmap-embed { width: 100%; height: 200px; }
}


/* =========================
   High contrast + reduced motion
   (Your JS toggles these classes)
   ========================= */
html.hc {
  --bg:#000;
  --surface:#000;
  --text:#fff;
  --muted:#e3e3e3;
  --brand:#fff;
  --brand-2:#fff;
  --accent:#fff;
}

html.hc .card,
html.hc .contact-form,
html.hc .service,
html.hc .resource {
  border: 2px solid #fff;
  box-shadow: none;
}

html.rm * {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}

/* =========================
   Responsive
   ========================= */
@media (max-width:900px){
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width:600px){
  .grid-3 { grid-template-columns: 1fr; }
  h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  h2 { font-size: clamp(1.3rem, 4.2vw, 1.8rem); }
}

/* tiny layout fix */
section > *:first-child { margin-top: 0.01px; }
