﻿/*
Theme Name: Bushy Park Pool Campaign
Theme URI: https://savebushyparkpool.com.au
Author: Bushy Park community campaign
Description: A one-page campaign and petition theme for the Bushy Park War Memorial Swimming Pool.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bushypark-pool-campaign
*/
:root {
    --pool-blue: #1a6b8a;
    --pool-light: #4fb3d4;
    --water-pale: #d6f0f8;
    --hop-green: #3d6e35;
    --hop-gold: #c8a435;
    --cream: #f7f3ec;
    --ink: #1a1a1a;
    --mid: #4a4a4a;
    --rule: #c0b8a8;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Source Serif 4', Georgia, serif;
    background: var(--cream);
    color: var(--ink);
    font-size: 18px;
    line-height: 1.7;
  }

  /* ─── HEADER ─── */
  header {
    background: var(--pool-blue);
    color: white;
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden;
  }

  .water-bg {
    position: absolute;
    inset: 0;
    background: 
      repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.03) 20px,
        rgba(255,255,255,0.03) 40px
      ),
      linear-gradient(180deg, #0d4a63 0%, #1a6b8a 50%, #2289ae 100%);
    animation: wave 8s ease-in-out infinite;
  }

  @keyframes wave {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-10px) translateY(3px); }
  }

  .header-inner {
    position: relative;
    z-index: 2;
    padding: 60px 20px 50px;
  }

  .badge {
    display: inline-block;
    border: 1.5px solid rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.85);
    font-family: 'Source Serif 4', serif;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 5px 16px;
    margin-bottom: 28px;
  }

  h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  }

  h1 em {
    font-style: italic;
    color: var(--hop-gold);
  }

  .header-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.82);
    max-width: 600px;
    margin: 0 auto 36px;
    font-weight: 300;
  }

  .sig-count {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 12px 28px;
    color: white;
    font-size: 0.95rem;
  }

  .sig-count strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--hop-gold);
  }

  /* ─── NAV ─── */
  nav {
    background: var(--ink);
    display: flex;
    justify-content: center;
    gap: 0;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  nav a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 14px 24px;
    transition: color 0.2s, background 0.2s;
    font-family: 'Source Serif 4', serif;
  }

  nav a:hover {
    color: white;
    background: var(--pool-blue);
  }

  /* ─── SECTIONS ─── */
  section { padding: 70px 20px; }

  .container { max-width: 820px; margin: 0 auto; }
  .container-wide { max-width: 1100px; margin: 0 auto; }

  h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--ink);
  }

  .section-rule {
    width: 60px;
    height: 3px;
    background: var(--pool-blue);
    margin: 16px 0 32px;
  }

  p { margin-bottom: 1.2em; color: var(--mid); }
  p:last-child { margin-bottom: 0; }

  strong { color: var(--ink); font-weight: 600; }

  /* ─── CRISIS SECTION ─── */
  #crisis {
    background: white;
    border-top: 4px solid var(--pool-blue);
  }

  .timeline {
    margin: 40px 0;
    position: relative;
    padding-left: 28px;
    border-left: 2px solid var(--pool-light);
  }

  .timeline-item {
    margin-bottom: 28px;
    position: relative;
  }

  .timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--pool-blue);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--pool-blue);
  }

  .timeline-date {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pool-blue);
    font-weight: 600;
    margin-bottom: 4px;
  }

  .timeline-item p { margin: 0; font-size: 0.95rem; }

  /* ─── FACTS GRID ─── */
  #facts { background: var(--water-pale); }

  .facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 36px;
  }

  .fact-card {
    background: white;
    padding: 28px 24px;
    border-top: 3px solid var(--pool-blue);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  }

  .fact-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--pool-blue);
    line-height: 1;
    margin-bottom: 6px;
  }

  .fact-label {
    font-size: 0.85rem;
    color: var(--mid);
    line-height: 1.4;
  }

  /* ─── HOP INDUSTRY SECTION ─── */
  #hops {
    background: var(--hop-green);
    color: white;
  }

  #hops h2 { color: var(--hop-gold); }
  #hops p { color: rgba(255,255,255,0.85); }
  #hops .section-rule { background: var(--hop-gold); }

  .hops-case {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 32px;
    margin-top: 36px;
  }

  .hops-case h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--hop-gold);
    margin-bottom: 16px;
  }

  .hops-case ul {
    list-style: none;
    padding: 0;
  }

  .hops-case ul li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .hops-case ul li:last-child { border-bottom: none; }

  .hops-case ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--hop-gold);
  }

  /* ─── PETITION FORM ─── */
  #petition {
    background: var(--ink);
    color: white;
  }

  #petition h2 { color: white; }
  #petition .section-rule { background: var(--hop-gold); }
  #petition p { color: rgba(255,255,255,0.75); }

  .petition-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
  }

  @media (max-width: 680px) {
    .petition-wrap { grid-template-columns: 1fr; gap: 40px; }
  }

  .petition-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--hop-gold);
    margin-bottom: 16px;
  }

  .demands {
    margin-top: 24px;
    list-style: none;
    padding: 0;
  }

  .demands li {
    padding: 10px 0;
    padding-left: 20px;
    position: relative;
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .demands li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--hop-gold);
    font-size: 0.65rem;
    top: 14px;
  }

  .petition-form {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 36px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
  }

  input, select, textarea {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 12px 16px;
    font-family: 'Source Serif 4', serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
  }

  input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.3); }

  input:focus, select:focus, textarea:focus {
    border-color: var(--pool-light);
  }

  select option { background: #1a1a1a; color: white; }

  textarea { resize: vertical; min-height: 80px; }

  .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 8px;
  }

  .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
  }

  .checkbox-group span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
  }

  .privacy-note {
    font-size: 0.75rem;
    margin-top: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
  }

  .privacy-note a,
  .source-note a {
    color: var(--pool-light);
  }

  .btn-sign {
    width: 100%;
    background: var(--hop-gold);
    color: var(--ink);
    border: none;
    padding: 16px 24px;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.04em;
    margin-top: 8px;
  }

  .btn-sign:hover { background: #dbb840; transform: translateY(-1px); }
  .btn-sign:active { transform: translateY(0); }

  .success-msg {
    display: none;
    background: var(--hop-green);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 24px;
    text-align: center;
    color: white;
  }

  .success-msg h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--hop-gold);
    margin-bottom: 8px;
  }

  /* ─── WHAT WE WANT ─── */
  #solutions { background: white; }

  .solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 36px;
  }

  .solution-card {
    border: 1px solid var(--rule);
    padding: 28px 22px;
    position: relative;
  }

  .solution-card .num {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--water-pale);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 12px;
  }

  .solution-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--pool-blue);
    margin-bottom: 10px;
    line-height: 1.3;
  }

  .solution-card p { font-size: 0.9rem; margin: 0; }

  /* ─── CONTACT / SHARE ─── */
  #share { background: var(--water-pale); }

  .share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
  }

  .btn-share {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: 'Source Serif 4', serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
  }

  .btn-fb { background: #1877f2; color: white; }
  .btn-fb:hover { background: #0d65d9; }

  .btn-email { background: var(--pool-blue); color: white; }
  .btn-email:hover { background: #155876; }

  .btn-print { background: var(--ink); color: white; }
  .btn-print:hover { background: #333; }

  .contact-box {
    margin-top: 40px;
    background: white;
    border-left: 4px solid var(--pool-blue);
    padding: 28px 32px;
  }

  .contact-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--pool-blue);
  }

  .contact-box p { font-size: 0.9rem; }

  .source-note {
    margin-top: 18px;
    font-size: 0.8rem;
    color: var(--mid);
    line-height: 1.5;
  }

  /* ─── FOOTER ─── */
  footer {
    background: var(--ink);
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 32px 20px;
    font-size: 0.8rem;
    line-height: 1.8;
  }

  footer a { color: var(--pool-light); text-decoration: none; }

  /* ─── COUNTER ANIMATION ─── */
  .counter-bar {
    background: rgba(255,255,255,0.15);
    height: 6px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
  }

  .counter-fill {
    height: 100%;
    background: var(--hop-gold);
    width: 0%;
    animation: fill 2s ease-out 0.5s forwards;
  }

  @keyframes fill { to { width: 62%; } }

  .counter-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin-top: 6px;
  }

  /* ─── BLOCKQUOTE ─── */
  blockquote {
    border-left: 3px solid var(--pool-light);
    padding: 16px 24px;
    margin: 28px 0;
    font-style: italic;
    color: var(--mid);
    background: var(--water-pale);
    font-size: 1.05rem;
  }

  blockquote cite {
    display: block;
    font-style: normal;
    font-size: 0.82rem;
    color: var(--pool-blue);
    margin-top: 8px;
    font-weight: 600;
    letter-spacing: 0.05em;
  }

  @media (max-width: 500px) {
    nav a { padding: 12px 12px; font-size: 0.7rem; letter-spacing: 0.08em; }
    .petition-form { padding: 24px 20px; }
  }
