/* ============================================================
   Point Hill Primary School Alumni Association
   Theme CSS — shared across all pages
   ============================================================ */

:root {
  --ph-green: #1F5F3F;
  --ph-green-dark: #14422C;
  --ph-green-deep: #0D2E1F;
  --ph-yellow: #F5C518;
  --ph-yellow-soft: #FCE9A0;
  --ph-cream: #FAF6E9;
  --ph-cream-dark: #F2EBD3;
  --ph-charcoal: #1F2922;
  --ph-muted: #6B7268;
  --ph-line: rgba(31, 41, 34, 0.12);
  --ph-error: #B91C1C;
  --ph-success: #15803D;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, sans-serif;

  --container: 1280px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ph-charcoal);
  background: var(--ph-cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 1px 1px, rgba(31, 41, 34, 0.025) 1px, transparent 0);
  background-size: 24px 24px;
}

img { max-width: 100%; display: block; }
a { color: var(--ph-green); }

/* ========== TYPOGRAPHY ========== */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ph-green);
}
em.accent {
  font-style: italic;
  color: var(--ph-green);
  font-weight: 300;
}

/* ========== TOP BAR ========== */
.topbar {
  background: var(--ph-green-deep);
  color: var(--ph-yellow-soft);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.topbar-inner span:last-child { color: rgba(252, 233, 160, 0.7); }

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 233, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ph-line);
}
.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ph-charcoal);
}
.brand-mark {
  width: 44px;
  height: 44px;
  background: var(--ph-green);
  color: var(--ph-yellow);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(245, 197, 24, 0.4);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand-text small {
  font-size: 0.7rem;
  color: var(--ph-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 1px;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--ph-charcoal);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ph-green); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--ph-green);
  transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--ph-green);
  color: var(--ph-cream);
}
.btn-primary:hover {
  background: var(--ph-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(20, 66, 44, 0.2);
}
.btn-yellow {
  background: var(--ph-yellow);
  color: var(--ph-green-deep);
}
.btn-yellow:hover {
  background: #ECB80F;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(245, 197, 24, 0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--ph-charcoal);
  border: 1px solid var(--ph-charcoal);
}
.btn-ghost:hover {
  background: var(--ph-charcoal);
  color: var(--ph-cream);
}
.btn-large {
  padding: 1rem 1.75rem;
  font-size: 0.95rem;
}
.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(3px); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ph-charcoal);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ========== PAGE HEADER (interior pages) ========== */
.page-header {
  padding: 5rem 0 4rem;
  position: relative;
  border-bottom: 1px solid var(--ph-line);
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.12), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.page-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}
.breadcrumb {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ph-muted);
  margin-bottom: 1.25rem;
}
.breadcrumb a {
  color: var(--ph-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--ph-muted);
}
.breadcrumb a:hover { color: var(--ph-green); border-bottom-color: var(--ph-green); }
.page-header h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  margin-bottom: 1rem;
  max-width: 800px;
}
.page-header p.intro {
  font-size: 1.1rem;
  color: var(--ph-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ========== SECTIONS ========== */
.section {
  padding: 5rem 0;
  position: relative;
}
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section-head {
  margin-bottom: 3.5rem;
  max-width: 700px;
}
.section-head .eyebrow {
  display: block;
  margin-bottom: 1rem;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

/* ========== FORMS ========== */
.form-shell {
  background: white;
  padding: 3rem;
  border: 1px solid var(--ph-line);
  box-shadow: 0 4px 30px rgba(20, 66, 44, 0.04);
}
.form-row {
  margin-bottom: 1.5rem;
}
.form-row.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  color: var(--ph-charcoal);
}
.form-row label .req { color: var(--ph-error); }
.form-row label .opt {
  color: var(--ph-muted);
  font-weight: 400;
  font-size: 0.78rem;
  font-style: italic;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ph-line);
  background: var(--ph-cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ph-charcoal);
  transition: all 0.2s;
  border-radius: 2px;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--ph-green);
  background: white;
  box-shadow: 0 0 0 3px rgba(31, 95, 63, 0.08);
}
.form-row textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
}
.form-row .help {
  font-size: 0.8rem;
  color: var(--ph-muted);
  margin-top: 0.4rem;
  font-style: italic;
}
.form-row .checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--ph-charcoal);
  cursor: pointer;
  font-weight: 400;
}
.form-row .checkbox-row input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  accent-color: var(--ph-green);
}
.form-feedback {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid;
  font-size: 0.92rem;
  background: var(--ph-cream-dark);
  display: none;
}
.form-feedback.success { border-color: var(--ph-success); color: var(--ph-success); }
.form-feedback.error { border-color: var(--ph-error); color: var(--ph-error); }
.form-feedback.show { display: block; }

/* ========== FOOTER ========== */
.footer {
  background: var(--ph-green-deep);
  color: var(--ph-cream);
  padding: 5rem 0 2rem;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  color: rgba(250, 246, 233, 0.6);
  font-size: 0.95rem;
  margin-top: 1.5rem;
  line-height: 1.7;
  max-width: 320px;
}
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1.5rem;
  color: var(--ph-yellow);
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-col a {
  color: rgba(250, 246, 233, 0.7);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--ph-yellow); }
.social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.social-row a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 197, 24, 0.3);
  color: var(--ph-yellow);
  text-decoration: none;
  transition: all 0.25s;
  font-size: 0.95rem;
}
.social-row a:hover {
  background: var(--ph-yellow);
  color: var(--ph-green-deep);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid rgba(245, 197, 24, 0.15);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(250, 246, 233, 0.5);
}
.footer-bottom a { color: rgba(245, 197, 24, 0.7); text-decoration: none; }
.footer-bottom a:hover { color: var(--ph-yellow); }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ph-cream);
    flex-direction: column;
    padding: 1.5rem var(--gutter);
    border-bottom: 1px solid var(--ph-line);
    gap: 1rem;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .form-row.split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 3.5rem 0; }
  .page-header { padding: 3.5rem 0 3rem; }
  .topbar-inner span:last-child { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-shell { padding: 1.75rem; }
}
