/*
Theme Name: Centre for Philanthropy
Theme URI: https://example.com/
Author: Centre for Philanthropy
Description: A warm, professional five-page WordPress theme for Australian charity and DGR establishment services.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: centre-for-philanthropy
*/

:root {
  --navy: #00374b;
  --navy-deep: #002b3b;
  --teal: #007c78;
  --gold: #e2b52d;
  --gold-deep: #c99318;
  --leaf: #86a94d;
  --cream: #f7f3e9;
  --cream-2: #efe8d8;
  --ink: #14323d;
  --muted: #61717a;
  --white: #ffffff;
  --line: rgba(0, 55, 75, .14);
  --shadow: 0 24px 60px rgba(0, 43, 59, .12);
  --shadow-soft: 0 14px 34px rgba(0, 43, 59, .08);
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--navy); }
button, input, textarea, select { font: inherit; }
button, .button { cursor: pointer; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed !important;
  top: 10px; left: 10px;
  width: auto; height: auto;
  padding: 12px 16px;
  background: #fff; color: #000;
  z-index: 99999;
  clip: auto;
}

.site-wrap { overflow: hidden; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.section { padding: 96px 0; }
.section-sm { padding: 68px 0; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.06;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(3rem, 7vw, 6.4rem); }
h2 { font-size: clamp(2.35rem, 4.5vw, 4.25rem); }
h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
p { margin: 0 0 1.15em; }
.lead { font-size: clamp(1.12rem, 1.8vw, 1.36rem); color: #39545e; max-width: 700px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(0,55,75,.08);
  backdrop-filter: blur(16px);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-branding { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 250px; }
.header-mark { display: block; width: 58px; height: 58px; object-fit: contain; }
.brand-words { display: grid; line-height: 1; color: var(--navy); }
.brand-words small { font-size: .64rem; font-weight: 850; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 4px; }
.brand-words strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; letter-spacing: -.025em; }
.site-logo { display: block; width: 255px; max-height: 72px; object-fit: contain; object-position: left center; }
.site-title-fallback { font-family: Georgia, serif; font-size: 1.35rem; color: var(--navy); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.primary-menu { list-style: none; display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; }
.primary-menu a { color: var(--navy); text-decoration: none; font-weight: 700; font-size: .95rem; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--teal); }
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  color: var(--navy);
}
.menu-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 5px 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 23px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  text-decoration: none;
  font-weight: 900;
  line-height: 1.1;
  box-shadow: 0 12px 28px rgba(226,181,45,.23);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); color: var(--navy-deep); background: #edc744; box-shadow: 0 16px 34px rgba(226,181,45,.3); }
.button-secondary { background: transparent; border-color: rgba(0,55,75,.25); box-shadow: none; color: var(--navy); }
.button-secondary:hover { background: var(--white); border-color: var(--navy); color: var(--navy); }
.button-dark { background: var(--navy); color: var(--white); box-shadow: 0 12px 28px rgba(0,43,59,.22); }
.button-dark:hover { background: var(--teal); color: var(--white); }
.button-small { min-height: 46px; padding: 11px 19px; font-size: .92rem; }

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 88% 30%, rgba(226,181,45,.22), transparent 20%),
    radial-gradient(circle at 76% 70%, rgba(0,124,120,.14), transparent 23%),
    linear-gradient(120deg, #fff 0%, #fff 52%, #f6f1e6 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: 110px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(0,55,75,.12);
  border-radius: 50%;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: 70px;
  padding: 80px 0;
}
.hero h1 span { color: var(--teal); }
.hero-copy p.lead { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin: 26px 0 0; display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 650; font-size: .94rem; }
.hero-note::before { content: ""; width: 34px; height: 2px; background: var(--gold); }

.hero-art { position: relative; min-height: 510px; display: grid; place-items: center; }
.hero-mark {
  position: relative;
  z-index: 3;
  width: min(88%, 390px);
  filter: drop-shadow(0 30px 38px rgba(0,43,59,.13));
}
.orbit { position: absolute; border-radius: 999px; transform: rotate(-22deg); }
.orbit.one { width: 430px; height: 250px; border: 1px solid rgba(0,124,120,.28); }
.orbit.two { width: 520px; height: 310px; border: 1px solid rgba(226,181,45,.34); transform: rotate(31deg); }
.seed { position: absolute; width: 62px; height: 28px; border-radius: 100% 0 100% 0; }
.seed.s1 { top: 55px; right: 25px; background: var(--gold); transform: rotate(21deg); }
.seed.s2 { bottom: 62px; left: 6px; background: var(--leaf); transform: rotate(-18deg); }
.seed.s3 { top: 146px; left: -4px; background: var(--teal); transform: rotate(38deg); width: 44px; height: 20px; }

.trust-strip { background: var(--navy); color: rgba(255,255,255,.86); }
.trust-inner { min-height: 86px; display: flex; align-items: center; justify-content: center; gap: 18px; text-align: center; font-weight: 750; }
.trust-inner strong { color: var(--gold); }

.intro-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; align-items: start; }
.intro-copy { max-width: 700px; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 46px; }
.service-card {
  position: relative;
  min-height: 420px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.service-card::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; right: -65px; bottom: -65px; background: rgba(226,181,45,.14); }
.service-card:nth-child(2)::after { background: rgba(0,124,120,.12); }
.service-card:nth-child(3)::after { background: rgba(134,169,77,.15); }
.service-number { font-weight: 900; color: var(--gold-deep); letter-spacing: .12em; font-size: .78rem; margin-bottom: 70px; }
.service-card p { color: var(--muted); }
.service-card a.card-link { margin-top: auto; color: var(--navy); font-weight: 900; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.service-card a.card-link::after { content: "→"; transition: transform .2s ease; }
.service-card:hover a.card-link::after { transform: translateX(5px); }

.process { background: var(--cream); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; margin-top: 44px; }
.process-step { position: relative; padding-top: 22px; border-top: 3px solid var(--gold); }
.process-step:nth-child(2) { border-color: var(--teal); }
.process-step:nth-child(3) { border-color: var(--leaf); }
.process-step strong { display: block; color: var(--navy); margin-bottom: 8px; }
.process-step p { color: var(--muted); }

.callout {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 74px;
  box-shadow: var(--shadow);
}
.callout::before, .callout::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.callout::before { width: 360px; height: 360px; right: -110px; top: -150px; }
.callout::after { width: 220px; height: 220px; right: 80px; bottom: -160px; }
.callout-inner { position: relative; z-index: 2; display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.callout h2 { color: #fff; max-width: 720px; }
.callout p { max-width: 680px; color: rgba(255,255,255,.78); }
.callout .button { flex: 0 0 auto; }

.page-hero { padding: 100px 0 74px; background: linear-gradient(135deg, #fff 0%, var(--cream) 100%); border-bottom: 1px solid var(--line); }
.page-hero .lead { max-width: 760px; }
.page-content { padding: 80px 0 100px; }
.content-shell { width: min(calc(100% - 40px), 900px); margin-inline: auto; }
.entry-content h2 { margin-top: 1.25em; }
.entry-content h3 { margin-top: 1.35em; }
.entry-content ul { padding-left: 1.2em; }
.entry-content li { margin-bottom: .55em; }
.entry-content .wp-block-group, .info-panel { padding: 30px; border: 1px solid var(--line); background: var(--cream); border-radius: var(--radius-sm); margin: 34px 0; }
.entry-content .wp-block-buttons { margin-top: 28px; }
.entry-content .wp-block-button__link { border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; }

.quick-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 38px 0; }
.fact { padding: 22px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); }
.fact strong { color: var(--navy); display: block; margin-bottom: 5px; }

.contact-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 54px; align-items: start; }
.contact-card { padding: 34px; border-radius: var(--radius); background: var(--navy); color: #fff; position: sticky; top: 130px; }
.contact-card h2 { color: #fff; font-size: 2.25rem; }
.contact-card p { color: rgba(255,255,255,.76); }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; }
.contact-list li { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.15); }
.contact-list a { color: var(--gold); font-weight: 800; text-decoration: none; }
.contact-form { padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); background: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { margin-bottom: 20px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  border: 1px solid rgba(0,55,75,.22);
  border-radius: 12px;
  padding: 14px 15px;
  color: var(--ink);
  background: #fff;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 3px solid rgba(0,124,120,.15); border-color: var(--teal); }
.form-field textarea { min-height: 160px; resize: vertical; }
.form-note { color: var(--muted); font-size: .88rem; }
.notice { padding: 16px 18px; border-radius: 12px; margin-bottom: 22px; font-weight: 700; }
.notice-success { background: #e8f5ed; color: #205f3d; }
.notice-error { background: #fff0ee; color: #8a332c; }
.hp-field { position: absolute !important; left: -9999px !important; }

.site-footer { background: #002b3b; color: rgba(255,255,255,.75); padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 60px; }
.footer-logo { width: 240px; filter: brightness(0) invert(1); opacity: .96; }
.footer-heading { color: #fff; font-family: inherit; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.78); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 46px; padding-top: 22px; display: flex; justify-content: space-between; gap: 30px; font-size: .82rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 1020px) {
  .header-cta { display: none; }
  .primary-menu { gap: 18px; }
  .hero-inner { gap: 35px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 300px; }
  .service-number { margin-bottom: 34px; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-card { position: static; }
}
@media (max-width: 820px) {
  .admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 78px; }
  .header-mark { width: 50px; height: 50px; }
  .brand-words strong { font-size: 1.25rem; }
  .menu-toggle { display: block; }
  .header-actions { position: relative; }
  .primary-navigation {
    position: absolute;
    right: 0;
    top: 56px;
    width: min(330px, calc(100vw - 32px));
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: .2s ease;
  }
  .primary-navigation.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .primary-menu { display: block; }
  .primary-menu li + li { margin-top: 12px; }
  .primary-menu a { display: block; padding: 8px 4px; }
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; padding: 70px 0 50px; }
  .hero-art { min-height: 360px; order: -1; }
  .hero-mark { width: 270px; }
  .orbit.one { width: 330px; height: 190px; }
  .orbit.two { width: 390px; height: 230px; }
  .intro-grid { grid-template-columns: 1fr; gap: 20px; }
  .process-grid { grid-template-columns: 1fr; }
  .callout { padding: 48px 34px; }
  .callout-inner { display: block; }
  .callout .button { margin-top: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .quick-facts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container, .narrow, .content-shell { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 72px 0; }
  .site-branding { min-width: 205px; gap: 9px; }
  .header-mark { width: 45px; height: 45px; }
  .brand-words small { font-size: .54rem; }
  .brand-words strong { font-size: 1.08rem; }
  h1 { font-size: clamp(2.65rem, 14vw, 4.1rem); }
  h2 { font-size: 2.45rem; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-art { min-height: 300px; }
  .hero-mark { width: 220px; }
  .orbit.one { width: 270px; height: 155px; }
  .orbit.two { width: 320px; height: 185px; }
  .services-grid { margin-top: 30px; }
  .service-card { padding: 28px; }
  .callout { border-radius: 22px; padding: 38px 25px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 26px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 12px; }
}
