/*
Theme Name: Charity United Child
Theme URI: https://charityunited.us/
Description: GeneratePress child theme for Charity United. Holds the site's brand styling and custom page templates (single source of styling, copied to both installs).
Author: Charity United
Template: generatepress
Version: 1.4.0
*/

/* ==========================================================
   Charity United — brand base styles
   (fonts are enqueued in functions.php)
   ========================================================== */

:root{
  --cu-blue:#428BCA;
  --cu-blue-dark:#317bbb;
  --cu-btn:#1269a3;
  --cu-orange:#ff8600;
  --cu-taupe:#6f5e5e;
  --cu-ink:#444;
}

/* Base typography */
body{
  background:#fff;
  font-family:'Montserrat', Arial, Helvetica, sans-serif;
  color:var(--cu-ink);
  font-size:16px;
  line-height:1.5;
}

/* Links */
a{ color:var(--cu-blue); }
a:hover, a:focus{ color:var(--cu-ink); }

/* Headings (live site: H1 38, H2 22, H4 18; H3 is not used on live, 20 is a stand-in) */
h1,h2,h3,h4,h5,h6,.entry-title{
  font-family:'Merriweather', Georgia, serif;
  font-weight:700;
  color:var(--cu-ink);
  line-height:1.2;
}
h1,.entry-title{ font-size:38px; }
h2{ font-size:22px; }
h3{ font-size:20px; }
h4{ font-size:18px; }

/* Top bar (small menu + social icons), matching live: 11px / 600 / 1px, blue, right-aligned in a 1200 container */
.cu-topbar{ background:#fff; position:relative; z-index:20; }
.cu-topbar-inner{
  max-width:1200px;
  margin:0 auto;
  height:51px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
}
.cu-topbar ul{ display:flex; align-items:center; list-style:none; margin:0; padding:0; }
.cu-topbar a{
  display:block;
  font-family:'Montserrat', sans-serif;
  font-size:11px;
  font-weight:600;
  letter-spacing:1px;
  line-height:48px;
  text-transform:uppercase;
  text-decoration:none;
  color:var(--cu-blue);
}
.cu-topbar a:hover{ color:var(--cu-ink); }
.cu-topmenu-list a{ padding:0 18px; }
.cu-social a{ padding:0 11px; line-height:0; height:48px; display:flex; align-items:center; }
.cu-social svg{ display:block; }

/* Header + primary nav: menu on white, matching live (12px / 600 / 1px, 34px tall items).
   The logo sits left and hangs down over the hero photo. */
.site-header{ background:#fff; position:relative; z-index:30; }
.inside-header{
  position:relative;
  display:flex;
  align-items:flex-end;
  min-height:103px;
  padding:0 0 1px;
}
.site-branding, .site-logo{ position:absolute; left:0; top:-45px; z-index:50; margin:0; }
.site-logo img, .header-image{ width:319px; max-width:none; height:auto; display:block; }
.main-navigation, .main-navigation .inside-navigation{ margin-left:auto; padding:0; }
.main-navigation .main-nav{ margin-right:12px; }
.main-navigation,
.main-navigation ul ul{ background:#fff; }

.main-navigation .main-nav ul li a{
  font-family:'Montserrat', sans-serif;
  font-size:12px;
  line-height:34px;
  padding:0 15px;
  text-transform:uppercase;
  font-weight:600;
  letter-spacing:1px;
  color:var(--cu-blue);
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a{
  color:var(--cu-ink);
  background:#fff;
}

/* Donate menu item */
.main-navigation .main-nav ul li.donate-button a{
  background:var(--cu-blue);
  color:#fff;
  border-radius:3px;
  transition:.3s ease all;
}
.main-navigation .main-nav ul li.donate-button a:hover{
  background:var(--cu-blue-dark);
  color:#fff;
}

/* Buttons (core blocks, classic, and .button utility) */
.wp-block-button__link,
.button,
a.button{
  background:var(--cu-blue);
  color:#fff;
  text-transform:uppercase;
  letter-spacing:1px;
  font-weight:600;
  display:inline-block;
  padding:.7em 1.6em;
  border-radius:3px;
  text-decoration:none;
}
.wp-block-button__link:hover,
.button:hover,
a.button:hover{
  background:var(--cu-blue-dark);
  color:#fff;
}

/* Image captions */
.wp-block-image figcaption,
.wp-caption-text{
  font-size:13px;
  font-style:italic;
  color:#888;
}

/* Dropdowns: live look (200px wide, soft shadow, 12px / 600, 12px 20px padding) */
.main-navigation ul ul{
  width:200px;
  box-shadow:0 0 5px 1px #eaeaea;
}
.main-navigation .main-nav ul ul li a{
  font-size:12px;
  line-height:18px;
  padding:12px 20px;
}

/* Inner pages have no hero under the header, so leave room for the hanging logo */
body:not(.cu-home-page) .site-content{ padding-top:80px; }
@media (max-width:768px){ body:not(.cu-home-page) .site-content{ padding-top:20px; } }

/* Footer: peach legal band (footer widget area) over a dark copyright bar, matching live */
.site-footer{ background:#fff; }
.footer-widgets{
  background:rgba(255,120,0,.53);
  color:#fff;
  font-size:12px;
  font-weight:700;
  line-height:1.5;
  padding:10px 20px;
}
.footer-widgets .footer-widgets-container{ max-width:1060px; margin:0 auto; }
.footer-widgets .inside-footer-widgets{ padding:20px 0; }
.footer-widgets p{ margin-bottom:1em; }
.footer-widgets a{
  color:var(--cu-blue);
  text-transform:uppercase;
  text-decoration:none;
}
.footer-widgets a:hover{ color:var(--cu-ink); }
.site-info{
  background:var(--cu-ink);
  color:#fff;
  font-size:12px;
  font-weight:600;
}
.site-info a{ color:#fff; }

/* ==========================================================
   Home page template (Template Name: CU Home)
   ========================================================== */

/* Full width: let the home page break out of GeneratePress's centered container */
.cu-home-page{ background:#fff; }
/* only the outer page wrapper goes full width; header, footer and copyright keep their own widths */
.cu-home-page #page.grid-container{ max-width:none; }
body.cu-home-page .site-content{ display:block; padding:0; }
.cu-home-page .inside-header,
.cu-home-page .inside-navigation{ max-width:1200px; margin-left:auto; margin-right:auto; }
.cu-home-page .cu-home{ width:100%; }
.cu-home-page .site-main{ margin:0; }

.cu-home .cu-bg{
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-color:#ececec;
}

/* Shared buttons */
.cu-home .cu-btn{
  display:inline-block;
  background:var(--cu-btn);
  color:#fff;
  font-family:'Montserrat', Arial, sans-serif;
  font-size:20px;
  font-weight:500;
  line-height:1.2;
  letter-spacing:1px;
  text-transform:uppercase;
  text-decoration:none;
  text-align:center;
  padding:20px 100px;
  border-radius:0;
  transition:background .3s ease;
}
.cu-home .cu-btn:hover,
.cu-home .cu-btn:focus{ background:var(--cu-blue-dark); color:#fff; }
.cu-home .cu-btn--alt{ background:var(--cu-taupe); }
.cu-home .cu-btn--alt:hover,
.cu-home .cu-btn--alt:focus{ background:#5a4b4b; }
.cu-home .cu-btn--orange{ background:var(--cu-orange); padding:20px 60px; }
.cu-home .cu-btn--orange:hover,
.cu-home .cu-btn--orange:focus{ background:#e07700; }

/* 1. Hero: photo with quote */
.cu-home .cu-hero{
  min-height:460px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:140px 20px 60px;
  color:#fff;
  text-align:center;
}
.cu-home .cu-hero-inner{ max-width:760px; }
.cu-home .cu-hero h2,
.cu-home .cu-hero h1{
  color:#fff;
  font-size:22px;
  font-style:italic;
  line-height:1.4;
  margin:0 0 1.2em;
  text-shadow:0 1px 4px rgba(0,0,0,.45);
}
.cu-home .cu-hero p{
  color:#fff;
  font-size:14px;
  font-weight:700;
  margin:0;
  text-shadow:0 1px 4px rgba(0,0,0,.45);
}

/* Button row under the hero, overlapping the photo's bottom edge */
.cu-home .cu-btnrow{
  position:relative;
  z-index:2;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:18px;
  margin-top:-30px;
  padding:0 20px;
}

/* 2. Donate band */
.cu-home .cu-donate{
  margin-top:30px;
  min-height:600px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:40px 20px 80px;
  color:#fff;
  text-align:center;
}
.cu-home .cu-donate-inner{ max-width:900px; }
.cu-home .cu-donate h2{
  color:#fff;
  margin:0 0 1.4em;
  text-shadow:0 1px 4px rgba(0,0,0,.45);
}
.cu-home .cu-donate p{ color:#fff; text-shadow:0 1px 4px rgba(0,0,0,.45); }

/* 3-5. Two-column photo + text sections */
.cu-home .cu-split{
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:520px;
}
.cu-home .cu-split-img{ min-height:320px; }
.cu-home .cu-split-text{
  display:flex;
  align-items:center;
  padding:60px 44px;
}
.cu-home .cu-split-inner{ width:100%; max-width:700px; }
.cu-home .cu-split--right .cu-split-inner{ margin-left:0; }
.cu-home .cu-split-text h2{ margin:0 0 1em; }
.cu-home .cu-split-text p{ margin:0 0 1.2em; }

/* Contact section: slate panel with form */
.cu-home .cu-split--form .cu-split-text{ background:rgba(93,109,129,.52); }
.cu-home .cu-split--form h2{ color:#fff; }
.cu-home .cu-split--form label,
.cu-home .cu-split--form .wpforms-field-label{ color:#222; font-weight:700; }
.cu-home .cu-split--form input[type="text"],
.cu-home .cu-split--form input[type="email"],
.cu-home .cu-split--form textarea{
  background:#fff;
  border:1px solid #ccc;
  border-radius:0;
  max-width:100%;
}
.cu-home .cu-split--form button[type="submit"],
.cu-home .cu-split--form input[type="submit"]{
  background:var(--cu-btn);
  color:#fff;
  border:0;
  border-radius:3px;
  font-weight:700;
  padding:10px 14px;
  cursor:pointer;
}
.cu-home .cu-split--form button[type="submit"]:hover,
.cu-home .cu-split--form input[type="submit"]:hover{ background:var(--cu-blue-dark); }

/* Responsive */
@media (max-width:768px){
  .cu-topbar{ display:none; }
  .site-branding, .site-logo{ position:static; }
  .site-logo img, .header-image{ width:200px; }
  .inside-header{ min-height:0; padding:10px 20px; align-items:center; }
}
@media (max-width:900px){
  .cu-home .cu-btn{ padding:18px 40px; font-size:18px; }
  .cu-home .cu-btn--orange{ padding:18px 40px; }
  .cu-home .cu-split{ grid-template-columns:1fr; min-height:0; }
  /* photo first on mobile, whichever side it sits on desktop */
  .cu-home .cu-split--right .cu-split-img{ order:-1; }
  .cu-home .cu-split-text{ padding:40px 24px; }
}
@media (max-width:560px){
  .cu-home .cu-hero{ min-height:380px; padding:100px 16px 50px; }
  .cu-home .cu-btnrow{ flex-direction:column; align-items:stretch; margin-top:-24px; }
  .cu-home .cu-donate{ min-height:460px; }
}


/* ---- Projects grid (/causes/) : measured from live at 1700px ---- */
.cu-projects-page .cu-projects-title { margin: 40px 0 19px; }
.cu-project-grid { display: flex; flex-wrap: wrap; }
.cu-project-cell { box-sizing: border-box; width: 33.3333%; padding: 10px; }
.cu-project-card { border: 1px solid #e6e6e6; height: 100%; box-sizing: border-box; }
.cu-project-img { display: block; height: 250px; overflow: hidden; background: #f5f5f5; }
.cu-project-img img { display: block; width: 100%; height: 250px; object-fit: cover; }
.cu-project-card h2 { font-size: 22px; margin: 0 0 10px; padding: 10px 20px; }
.cu-project-card h2 a { color: #444; text-decoration: none; }
.cu-project-card h2 a:hover { color: #428BCA; }
.cu-project-card p { margin: 0 0 10px; padding: 0 20px; }
.cu-project-btns { padding: 20px; }
.cu-project-btns .cu-btn {
	display: inline-block; margin-right: 10px; padding: 10px 15px;
	background: #428BCA; color: #fff; border-radius: 2px;
	font-size: 12px; line-height: 15px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
}
.cu-project-btns .cu-btn:hover { background: #317bbb; color: #fff; }
@media (max-width: 1000px) { .cu-project-cell { width: 50%; } }
@media (max-width: 640px)  { .cu-project-cell { width: 100%; } }

/* Inner pages: content column 1200px wide like live (remove the 40px side padding on wide screens; the home page has its own rule). */
@media (min-width: 1241px) { body:not(.cu-home-page) .site-content { padding-left: 0; padding-right: 0; } }

/* ---- Single project page: measured from live (help-african-children) ---- */
.cu-project-single .cu-project-title { margin: 40px 0 19px; }
.cu-project-single .entry-content { overflow: hidden; }
.cu-project-single .entry-content p { margin: 0 0 20px; }
.cu-project-single .wp-caption { background: #ececec; border: 1px solid #ececec; padding: 13px; max-width: 100%; box-sizing: border-box; }
.cu-project-single .wp-caption.alignleft  { float: left;  margin: 0 15px 16px 0; }
.cu-project-single .wp-caption.alignright { float: right; margin: 0 0 16px 15px; }
.cu-project-single .wp-caption img { display: block; max-width: 100%; height: auto; }
.cu-project-single .wp-caption-text { margin: 8px 0 0; font-size: 13px; font-style: italic; }
.cu-project-donate { margin: 0 0 20px; }
.cu-project-donate .cu-donate-btn {
	display: inline-block; padding: 13px 29px; border-radius: 4px;
	background: rgba(18,105,163,.85); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none;
}
.cu-project-donate .cu-donate-btn:hover { background: #1269a3; color: #fff; }

/* ==========================================================
   v1.4.0 (2026-11-20): rules folded in from Additional CSS on /change/.
   The old .cu-topbar{z-index:1001} line was dropped on purpose (the later z-index:31 rule replaces it).
   ========================================================== */
/* v1.3.4: standard page spacing to match live */
.entry-content p{margin-bottom:20px}
.entry-content h1,.entry-content h2,.entry-content h3,.entry-content h4{margin-bottom:.5em}
.entry-content ul,.entry-content ol{margin:16px 0;padding-left:40px}
/* DONATE NOW button: 43px tall like live */
.cu-donate-btn{line-height:17px}

/* Photos pages: hide page titles (live shows none) */
.page-id-13577 .entry-header,
.page-id-13578 .entry-header,
.page-id-13579 .entry-header,
.page-id-13580 .entry-header,
.page-id-13581 .entry-header,
.page-id-13582 .entry-header,
.page-id-13583 .entry-header,
.page-id-13584 .entry-header,
.page-id-13585 .entry-header,
.page-id-13586 .entry-header { display: none; }
/* NextGEN thumbnails: crop portrait photos instead of squashing them */
.nextgen_pro_thumbnail_grid picture img{object-fit:cover}
/* India page (page ID 13585): photo frames and captions like live */
.page-id-13585 .entry-content .wp-caption{background:#ececec;border:1px solid #ececec;padding:13px;box-sizing:border-box;margin-bottom:16px}
.page-id-13585 .entry-content .wp-caption img{display:block;padding:0;margin:0;background:#fff;max-width:100%;height:auto}
.page-id-13585 .entry-content .wp-caption-text{font-size:13px;font-style:italic;color:#444;opacity:1;padding:3px 0 0;line-height:1.5;margin:0}
.page-id-13585 .entry-content .alignleft{margin-right:15px}
.page-id-13585 .entry-content .alignright{margin-left:15px}
/* Top bar: About > Team dropdown */
.cu-topmenu-list li{position:relative}
.cu-topmenu-list .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:160px;margin:0;padding:0;list-style:none;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.15);z-index:1000}
.cu-topmenu-list li:hover>.sub-menu,.cu-topmenu-list li:focus-within>.sub-menu{display:block}
.cu-topmenu-list .sub-menu li{display:block;margin:0}
.cu-topmenu-list .sub-menu a{display:block;padding:12px 20px;white-space:nowrap}

/* Top bar: keep the dropdown above the header without covering the logo; arrow on About */
.cu-topbar{z-index:31;background:transparent;pointer-events:none}
.cu-topbar a,.cu-topbar li{pointer-events:auto}
.cu-topmenu-list .menu-item-has-children>a::after{content:"";display:inline-block;width:5px;height:5px;margin-left:7px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg) translateY(-2px)}

/* Blog posts: match live (no featured image above the title, no byline, no next/previous links) */
.single-post .featured-image,
.single-post .entry-meta,
.single-post .post-navigation{display:none}

/* Captioned photos: grey frame and caption style like live (all pages and posts) */
.entry-content .wp-caption{background:#ececec;border:1px solid #ececec;padding:13px;box-sizing:border-box;margin-bottom:16px}
.entry-content .wp-caption img{display:block;padding:0;margin:0 0 20px;background:#fff;max-width:100%;height:auto}
.entry-content .wp-caption .wp-caption-text{font-size:13px;font-style:italic;color:#444;opacity:1;padding:3px 0 0;line-height:1.5;margin:0}
.entry-content .wp-caption.alignleft{margin-right:15px}
.entry-content .wp-caption.alignright{margin-left:15px}

/* Blockquotes: match live (GeneratePress default is larger with a faint grey bar) */
.entry-content blockquote{font-size:16px;line-height:24px;font-style:italic;margin:32px 40px;padding:15px;border-left:4px solid #428BCA;background:#f9f9fb}
.entry-content blockquote p{font-size:16px;line-height:24px}

/* Reviews page (page ID 13615): hide the page title; the content has its own heading, like live */
.page-id-13615 .entry-header{display:none}
