/*
Theme Name: Willcocks Charitable Foundation
Theme URI: https://willcocksfamilytrust.com.au
Author: Studio Mon Mon
Author URI: https://studiomonmon.com
Description: One-page theme for the Willcocks Charitable Foundation. A monthly giving programme partnered with The Life You Can Save.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: willcocks-foundation
*/

* { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  :root {
    --ink: #14180f;
    --ink-2: #1f2a1c;
    --paper: #fafaf7;
    --cream: #f3efe6;
    --sage: #c7d4b8;
    --sage-deep: #6b7d5c;
    --text: #1a1a1a;
    --muted: #6b6b6b;
    --line: #ece8de;
  }
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; }

  /* shared display type */
  .display {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: -1.2px;
    line-height: 1.04;
  }
  .display em {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    letter-spacing: -0.5px;
  }
  .label {
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--sage-deep);
  }

  /* ============ NAV ============ */
  .topbar {
    position: absolute; top: 0; left: 0; right: 0;
    z-index: 10;
    color: white;
  }
  .topbar-inner {
    max-width: 1320px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 28px 48px;
  }
  .topbar .brand {
    font-size: 17px; font-weight: 500;
    letter-spacing: 0.3px;
  }
  .topbar .brand em {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic; font-weight: 400;
  }
  .topbar a.cta {
    border: 1px solid rgba(255,255,255,0.4);
    padding: 11px 22px;
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    font-weight: 600;
    transition: all .2s;
  }
  .topbar a.cta:hover { background: white; color: var(--ink-2); border-color: white; }

  /* ============ HERO ============ */
  .hero {
    position: relative;
    height: 100vh; min-height: 720px;
    overflow: hidden; color: white;
    display: flex; align-items: flex-end;
  }
  .hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=2400&q=80');
    background-size: cover; background-position: center;
    filter: brightness(0.55);
  }
  .hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,24,15,0.45) 0%, rgba(20,24,15,0) 35%, rgba(20,24,15,0.55) 100%);
  }
  .hero-inner {
    position: relative; z-index: 2;
    max-width: 1320px; width: 100%; margin: 0 auto;
    padding: 0 48px 96px;
  }
  .hero-eyebrow {
    font-size: 13px; letter-spacing: 2.8px; text-transform: uppercase;
    margin-bottom: 36px; font-weight: 700;
    color: white;
  }
  .hero h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(56px, 8vw, 124px);
    line-height: 0.98; letter-spacing: -2px;
    margin-bottom: 36px;
    max-width: 1100px;
  }
  .hero h1 em {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic; font-weight: 400;
    letter-spacing: -1px;
  }
  .hero-sub {
    font-size: 18px; max-width: 560px;
    opacity: 0.85; font-weight: 300; line-height: 1.55;
  }

  /* ============ STATS ============ */
  .impact {
    background: var(--ink);
    color: white;
    padding: 140px 48px;
    position: relative; overflow: hidden;
  }
  .impact-inner {
    max-width: 1320px; margin: 0 auto;
    position: relative; z-index: 2;
  }
  .impact .label { color: var(--sage); margin-bottom: 48px; }

  .impact-statement {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1.08;
    letter-spacing: -1.5px;
    max-width: 1080px;
    margin-bottom: 120px;
    color: white;
  }
  .impact-statement em {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic; font-weight: 500;
    color: #b8e0c8;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
  }
  .impact-statement em::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: 0.08em;
    height: 2px;
    background: rgba(184, 224, 200, 0.35);
    border-radius: 1px;
  }
  .impact-statement .big {
    display: inline-block;
    font-weight: 500;
    color: white;
  }

  .impact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    padding-top: 56px;
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .stat-num {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(64px, 7.5vw, 120px);
    line-height: 0.95;
    letter-spacing: -3px;
    margin-bottom: 28px;
    color: white;
  }
  .stat-lbl {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.65);
    max-width: 240px;
    font-weight: 400;
  }

  .impact-foot {
    margin-top: 96px; padding-top: 36px;
    border-top: 1px solid rgba(255,255,255,0.14);
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: clamp(20px, 1.9vw, 26px);
    color: #b8e0c8;
    max-width: 820px;
    line-height: 1.45;
    letter-spacing: -0.3px;
  }

  /* ============ sections ============ */
  section { padding: 140px 48px; }
  .container { max-width: 1320px; margin: 0 auto; }

  h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(36px, 4.5vw, 64px);
    line-height: 1.05; letter-spacing: -1.2px;
    margin-bottom: 36px;
    max-width: 880px;
  }
  h2 em {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic; font-weight: 500;
    letter-spacing: -0.4px;
  }

  .why-grid {
    display: grid; grid-template-columns: 1fr 1.4fr;
    gap: 64px; align-items: start;
  }
  .why-grid img {
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    object-fit: cover;
    object-position: center;
  }
  .why-text h2 {
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.8px;
  }
  .why-text .label { margin-bottom: 24px; }
  .why-text p {
    font-size: 17px; margin-bottom: 20px; color: var(--text);
    line-height: 1.65; font-weight: 400;
  }
  .why-text p:last-child { margin-bottom: 0; }

  /* ============ TLYS ============ */
  .tlys { background: var(--cream); }
  .tlys-grid {
    display: grid; grid-template-columns: 1fr 1.1fr;
    gap: 96px; align-items: center;
  }
  .tlys-text .label { margin-bottom: 24px; }
  .tlys-text p {
    font-size: 17px; color: var(--text);
    margin-bottom: 18px; line-height: 1.65;
  }
  .tlys-card {
    background: white;
    padding: 52px 44px;
    border: 1px solid #e8e2d3;
  }
  .tlys-logo {
    height: 44px; margin-bottom: 36px;
    filter: brightness(0.85);
  }
  .tlys-headline {
    font-family: 'Inter', sans-serif;
    font-size: 24px; font-weight: 500;
    line-height: 1.25; letter-spacing: -0.5px;
    margin-bottom: 20px;
  }
  .tlys-card p {
    font-size: 15px; color: #4a4a4a;
    margin-bottom: 14px; line-height: 1.6;
  }
  .tlys-meta {
    margin-top: 32px; padding-top: 28px;
    border-top: 1px solid var(--line);
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    margin-bottom: 28px;
  }
  .tlys-meta-item .k {
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--muted); margin-bottom: 6px; font-weight: 500;
  }
  .tlys-meta-item .v {
    font-size: 17px; font-weight: 500;
  }
  .tlys-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--ink-2); font-weight: 600;
    padding-bottom: 4px; border-bottom: 1px solid var(--ink-2);
  }

  /* ============ HOW IT WORKS ============ */
  .process { background: white; }
  .process .label { margin-bottom: 24px; }
  .process > .container > p {
    font-size: 18px; color: var(--muted); max-width: 620px;
    line-height: 1.65;
  }

  .journey {
    margin-top: 96px;
    position: relative;
  }
  .journey-track {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px;
    position: relative;
  }
  .journey-line {
    position: absolute; top: 24px; left: 12.5%; right: 12.5%;
    height: 1px; background: var(--line); z-index: 0;
  }
  .journey-step {
    position: relative; z-index: 1;
    display: flex; flex-direction: column;
  }
  .journey-node {
    width: 48px; height: 48px;
    border-radius: 50%; background: white;
    border: 1px solid var(--ink-2);
    display: grid; place-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 600;
    color: var(--ink-2);
    letter-spacing: 0.5px;
    margin-bottom: 32px;
  }
  .journey-step h3 {
    font-size: 19px; font-weight: 500;
    margin-bottom: 12px; line-height: 1.3;
    letter-spacing: -0.3px;
  }
  .journey-step p {
    color: var(--muted); font-size: 15px;
    line-height: 1.6; font-weight: 400;
  }

  /* ============ Quote banners ============ */
  .divider-img {
    height: 60vh; min-height: 480px;
    background-size: cover; background-position: center;
    position: relative;
  }
  .divider-singer {
    background-image: url('https://images.unsplash.com/photo-1469571486292-0ba58a3f068b?w=2400&q=80');
  }
  .divider-burke {
    background-image: url('https://www.thelifeyoucansave.org.au/wp-content/uploads/2024/02/FF_TLYCSWebPhotoUpdate_202603-scaled.jpg');
  }
  .divider-img::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,24,15,0.35), rgba(20,24,15,0.6));
  }
  .quote-block {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 100%; max-width: 1200px; padding: 0 32px;
    color: white;
    text-align: center;
  }
  .quote-block .quote {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: clamp(22px, 2.8vw, 40px);
    line-height: 1.3;
    letter-spacing: -1px;
    margin: 0 auto 28px;
  }
  .quote-block .quote span {
    display: block;
    white-space: nowrap;
  }
  .quote-attr {
    font-family: 'Inter', sans-serif;
    font-size: 13px; letter-spacing: 2.5px;
    text-transform: uppercase; font-weight: 600;
    color: white; opacity: 0.9;
  }
  .quote-attr::before { content: '— '; opacity: 0.7; }

  /* ============ TLYS CHARITIES (master/detail) ============ */
  .charities { background: var(--paper); }
  .charities .label { margin-bottom: 24px; }
  .charities-intro {
    max-width: 660px; color: var(--muted); font-size: 17px;
    line-height: 1.65; margin-bottom: 48px;
  }
  .charity-search {
    margin-bottom: 12px;
    position: relative; max-width: 320px;
  }
  .charity-search input {
    width: 100%; padding: 13px 16px 13px 42px;
    border: 1px solid var(--line);
    background: white;
    font-size: 14px; font-family: inherit;
    outline: none;
    transition: border-color .2s;
  }
  .charity-search input::placeholder { color: #aaa; }
  .charity-search input:focus { border-color: var(--ink-2); }
  .charity-search::before {
    content: '⌕'; position: absolute;
    left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--sage-deep); font-size: 16px;
  }
  .charity-count {
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--muted); margin: 16px 0 32px; font-weight: 500;
  }

  .master-detail {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 64px;
    border-top: 1px solid var(--line);
  }
  .md-list {
    max-height: 640px;
    overflow-y: auto;
    border-right: 1px solid var(--line);
    padding-right: 4px;
  }
  .md-list::-webkit-scrollbar { width: 4px; }
  .md-list::-webkit-scrollbar-track { background: transparent; }
  .md-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

  .md-tab {
    display: grid;
    grid-template-columns: 32px 1fr 12px;
    gap: 18px; align-items: center;
    width: 100%;
    padding: 18px 12px;
    background: none; border: none;
    border-bottom: 1px solid var(--line);
    text-align: left; cursor: pointer;
    transition: background .15s, padding .15s;
  }
  .md-tab:hover { background: white; }
  .md-tab.active {
    background: white;
    padding-left: 16px;
    box-shadow: inset 2px 0 0 var(--ink-2);
  }
  .md-tab-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    justify-self: center;
  }
  .md-tab-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.1px;
  }
  .md-tab-arrow {
    color: #c7c1ae;
    font-size: 13px;
    transition: transform .2s, color .2s;
  }
  .md-tab.active .md-tab-arrow {
    color: var(--ink-2);
    transform: translateX(3px);
  }

  .md-detail { padding: 32px 0; }
  .md-img-wrap {
    height: 320px;
    margin-top: 40px;
    overflow: hidden;
    background: var(--cream);
  }
  .md-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: opacity .25s;
  }
  .md-img-wrap.loading img { opacity: 0.2; }
  .md-tag {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sage-deep);
    margin-bottom: 16px;
    font-weight: 600;
  }
  .md-name {
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 22px;
    letter-spacing: -1px;
  }
  .md-desc {
    font-size: 17px;
    color: var(--text);
    line-height: 1.65;
    margin-bottom: 32px;
    max-width: 600px;
  }
  .md-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--ink-2); font-weight: 700;
    border-bottom: 1px solid var(--ink-2);
    padding-bottom: 4px;
  }

  /* ============ ONGOING BENEFICIARIES (compact) ============ */
  .beneficiaries {
    background: var(--cream);
    padding: 96px 48px;
  }
  .beneficiaries .label { margin-bottom: 20px; }
  .beneficiaries h2 {
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.6px;
    margin-bottom: 28px;
  }
  .beneficiaries .explainer {
    max-width: 760px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 56px;
  }
  .beneficiary-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 48px;
    border-top: 1px solid #d8d0c2;
  }
  .beneficiary-list span {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid #ece8de;
    font-weight: 500;
  }
  .beneficiary-list span::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--sage-deep);
    flex-shrink: 0;
    opacity: 0.55;
  }

  /* ============ FORM ============ */
  .form-section {
    color: white; position: relative;
    background-image:
      linear-gradient(rgba(20,24,15,0.93), rgba(20,24,15,0.95)),
      url('https://www.thelifeyoucansave.org.au/wp-content/uploads/2025/10/Mask-Group-57.jpg');
    background-size: cover; background-position: center; background-attachment: fixed;
  }
  .form-section h2 { color: white; }
  .form-section .label { color: var(--sage); }
  form { max-width: 720px; }
  .form-section > .container > p {
    font-size: 17px; max-width: 600px;
    margin-bottom: 64px; opacity: 0.75; line-height: 1.6;
    font-weight: 300;
  }
  .field { margin-bottom: 28px; }
  .field label {
    display: block; font-size: 11px; letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 12px;
    color: rgba(255,255,255,0.65); font-weight: 500;
  }
  .field input, .field select, .field textarea {
    width: 100%; padding: 14px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    color: white; font-size: 16px; font-family: inherit;
    outline: none; transition: border-color .2s;
  }
  .field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.35); }
  .field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--sage);
  }
  .field select { appearance: none; cursor: pointer; }
  .field select option { color: var(--text); background: white; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .consent-field {
    margin: 36px 0;
  }
  .consent-field .consent-label {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.55;
    margin-bottom: 18px;
    text-transform: none;
    letter-spacing: 0;
    max-width: 600px;
  }
  .yes-no {
    display: inline-flex;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    padding: 4px;
    background: rgba(255,255,255,0.04);
  }
  .yes-no input { display: none; }
  .yes-no label {
    cursor: pointer;
    padding: 10px 28px;
    font-size: 12px; letter-spacing: 2px;
    text-transform: uppercase; font-weight: 700;
    color: rgba(255,255,255,0.7);
    border-radius: 999px;
    transition: background .2s, color .2s;
    margin: 0;
  }
  .yes-no input:checked + label {
    background: var(--sage);
    color: var(--ink-2);
  }
  .submit-btn {
    background: var(--sage); color: var(--ink-2);
    padding: 18px 40px; border: none;
    font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
    font-weight: 700; cursor: pointer;
    transition: background .2s;
  }
  .submit-btn:hover { background: white; }

  /* ============ FOOTER ============ */
  footer {
    background: var(--ink); color: rgba(255,255,255,0.5);
    padding: 56px 48px;
    font-size: 13px; line-height: 1.8;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 24px;
  }
  footer strong { color: rgba(255,255,255,0.85); font-weight: 500; }
  footer .right { text-align: right; opacity: 0.7; }

  /* ============ responsive ============ */
  @media (max-width: 1100px) {
    .tlys-grid { grid-template-columns: 1fr; gap: 56px; }
    .impact-stats { grid-template-columns: 1fr; gap: 48px; padding-top: 48px; }
    .why-grid { grid-template-columns: 1fr; gap: 48px; }
    .why-grid img { aspect-ratio: 3/2; height: auto; }
    .singer-block {
      grid-template-columns: 1fr;
      gap: 48px;
      margin-top: 64px;
      padding-top: 64px;
    }
    .singer-block img { aspect-ratio: 3/2; }
    .journey-track { grid-template-columns: repeat(2, 1fr); gap: 56px; }
    .journey-line { display: none; }
    .master-detail { grid-template-columns: 1fr; gap: 0; }
    .md-list {
      max-height: 380px;
      border-right: none;
      border-bottom: 1px solid var(--line);
      padding-right: 0;
      margin-bottom: 40px;
    }
    .beneficiary-list { grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
  }
  @media (max-width: 760px) {
    .topbar-inner { padding: 20px 24px; }
    .topbar a.cta { padding: 9px 16px; font-size: 10px; }
    .topbar .brand { font-size: 12px; }
    .hero-inner { padding: 0 24px 64px; }
    .impact { padding: 88px 24px; }
    .impact-statement { margin-bottom: 64px; }
    .impact-foot { margin-top: 64px; }
    section { padding: 88px 24px; }
    .why-grid img { aspect-ratio: 3/2; }
    .tlys-card { padding: 36px 28px; }
    .singer-block { margin-top: 48px; padding-top: 48px; }
    .quote-block .quote span { white-space: normal; }
    .journey-track { grid-template-columns: 1fr; gap: 40px; }
    .md-detail { padding: 24px 0 0; }
    .md-img-wrap { height: 220px; margin-top: 24px; }
    .md-name { font-size: 26px; }
    .md-desc { font-size: 16px; }
    .beneficiaries { padding: 72px 24px; }
    .beneficiary-list { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .form-section { background-attachment: scroll; }
    footer { padding: 40px 24px; flex-direction: column; align-items: flex-start; }
    footer .right { text-align: left; }
  }

/* Register form: submission notices + honeypot */
.form-notice {
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.5;
  border: 1px solid var(--line);
}
.form-notice-success {
  background: var(--sage);
  color: var(--ink);
  border-color: var(--sage-deep);
}
.form-notice-error {
  background: var(--cream);
  color: var(--ink);
  border-color: #b4552e;
}
.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
