/* =========================================================
   PayHero Agencies — Green Theme (Child)
   - Header & footer: green gradient
   - Background: light green
   - Reusable utility classes
   - Typing headline styling (works with typing-headline.js)
   ========================================================= */

:root{
  /* Brand */
  --ph-green-1:#22c55e; /* emerald-ish */
  --ph-green-2:#16a34a; /* green */
  --ph-green-3:#065f46; /* deep green */

  /* Surfaces */
  --ph-bg:#f0fdf4;          /* light green page background */
  --ph-surface:#ffffff;     /* cards */
  --ph-surface-2:#ecfdf5;   /* tinted surface */

  /* Text */
  --ph-text:#052e16;
  --ph-muted:rgba(5, 46, 22, 0.74);

  /* Borders / shadows */
  --ph-border:rgba(5, 46, 22, 0.10);
  --ph-shadow:0 16px 45px rgba(0,0,0,.12);

  /* Links / buttons */
  --ph-link:#166534;
  --ph-btn-text:#ffffff;
}

html, body{
  background: var(--ph-bg);
  color: var(--ph-text);
}

/* Make sure common WP theme wrappers inherit */
.site, #page{
  background: var(--ph-bg);
}

/* =========================================================
   Header/Footer (works once we add header/footer templates)
   - If your parent theme uses different selectors, we’ll map later.
   ========================================================= */
.payhero-header,
.payhero-footer{
  color: #fff;
  background:
    radial-gradient(900px 420px at 50% 10%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(90deg, var(--ph-green-2), var(--ph-green-3));
}

.payhero-header a,
.payhero-footer a{
  color: rgba(255,255,255,0.92);
  text-decoration: none;
}
.payhero-header a:hover,
.payhero-footer a:hover{
  color: #fff;
  text-decoration: underline;
}

/* =========================================================
   Reusable Sections (use these classes in all 10+ pages)
   ========================================================= */
.ph-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.ph-section{
  padding: 80px 0;
}

.ph-section--tint{
  background: var(--ph-surface-2);
  border-top: 1px solid var(--ph-border);
  border-bottom: 1px solid var(--ph-border);
}

/* Cards */
.ph-card{
  background: var(--ph-surface);
  border: 1px solid var(--ph-border);
  border-radius: 16px;
  box-shadow: var(--ph-shadow);
}

.ph-card--soft{
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
}

/* Buttons */
.ph-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.ph-btn--primary{
  color: var(--ph-btn-text);
  background: linear-gradient(90deg, var(--ph-green-2), var(--ph-green-3));
  box-shadow: 0 14px 40px rgba(22, 163, 74, 0.24);
}
.ph-btn--primary:hover{
  transform: scale(1.04);
  box-shadow: 0 22px 70px rgba(6, 95, 70, 0.35);
}

.ph-btn--ghost{
  color: var(--ph-text);
  background: transparent;
  border: 2px solid rgba(5, 46, 22, 0.22);
}
.ph-btn--ghost:hover{
  background: rgba(34, 197, 94, 0.10);
}

/* =========================================================
   Hero + typing headline (HELLO section)
   Usage:
     <h1 class="ph-hero__title">
       <span class="ph-typing" data-ph-typing data-headlines="...">...</span>
       <span class="ph-cursor" aria-hidden="true"></span>
     </h1>
   ========================================================= */
.ph-hero{
  padding: 110px 0 80px;
  background:
    radial-gradient(900px 420px at 50% 10%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(180deg, #dcfce7 0%, var(--ph-bg) 60%, #dcfce7 100%);
}

.ph-hero__kicker{
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(90deg, var(--ph-green-2), var(--ph-green-3));
  border: 1px solid rgba(255,255,255,0.25);
}

.ph-hero__title{
  margin-top: 18px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 900;
  color: var(--ph-text);
}

.ph-typing{
  background: linear-gradient(90deg, var(--ph-green-1), var(--ph-green-2), var(--ph-green-3));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: phGradientMove 4s ease infinite;
}

@keyframes phGradientMove{
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.ph-cursor{
  display:inline-block;
  width: 3px;
  height: 1em;
  background: var(--ph-green-2);
  margin-left: 6px;
  vertical-align: -0.12em;
  animation: phBlink 0.75s infinite;
}
@keyframes phBlink{
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Hero subtitle */
.ph-hero__subtitle{
  margin-top: 16px;
  max-width: 760px;
  color: var(--ph-muted);
  font-size: 16px;
  line-height: 1.75;
}

/* =========================================================
   Simple responsive helpers
   ========================================================= */
.ph-grid{
  display: grid;
  gap: 20px;
}
.ph-grid--3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ph-grid--4{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px){
  .ph-grid--4{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-grid--3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .ph-grid--4, .ph-grid--3{ grid-template-columns: 1fr; }
  .ph-section{ padding: 60px 0; }
  .ph-hero{ padding: 80px 0 60px; }
}
/* ADD THIS AT THE END of green-theme.css */

/* ===== PayHero “From Header” Ticker (slides down from header) ===== */
#payhero-ticker{
	position: fixed;
	left: 0;
	right: 0;
	top: 72px; /* will be adjusted by JS based on header height */
	z-index: 9999;
	pointer-events: none;
	display: flex;
	justify-content: center;
	padding: 0 12px;
}

#payhero-ticker .pill{
	display: grid;
	grid-template-columns: 42px 1fr;
	grid-template-rows: auto auto;
	column-gap: 10px;
	row-gap: 2px;

	background: rgba(0,0,0,.78);
	border: 1px solid rgba(255,255,255,.14);
	box-shadow: 0 14px 28px rgba(0,0,0,.28);
	border-radius: 16px;
	padding: 10px 12px;

	transform: translateY(-24px);
	opacity: 0;
}

#payhero-ticker .avatar{
	grid-row: 1 / span 2;
	grid-column: 1;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 1000;
	letter-spacing: .02em;
	color: #052e16;
	background: radial-gradient(circle at 30% 30%, #bbf7d0, #22c55e);
	border: 2px solid rgba(255,255,255,.22);
}

#payhero-ticker .text{
	grid-column: 2;
	grid-row: 1;
	font-size: 13px;
	font-weight: 750;
	color: rgba(255,255,255,.95);
	line-height: 1.25;
}

#payhero-ticker .text strong{
	color: #bbf7d0;
	font-weight: 1000;
}

#payhero-ticker .time{
	grid-column: 2;
	grid-row: 2;
	font-size: 12px;
	color: rgba(255,255,255,.72);
}

/* Slide down from header and then fade away */
#payhero-ticker.run .pill{
	animation: payheroDrop 6.8s ease forwards;
}

@keyframes payheroDrop{
	0%   { transform: translateY(-26px); opacity: 0; }
	12%  { transform: translateY(0px);  opacity: 1; }
	82%  { transform: translateY(0px);  opacity: 1; }
	100% { transform: translateY(-10px); opacity: 0; }
}

@media (max-width: 600px){
	#payhero-ticker .pill{ padding: 9px 10px; border-radius: 14px; }
	#payhero-ticker .text{ font-size: 12.6px; }
	#payhero-ticker .avatar{ width: 40px; height: 40px; }
}