/*
Theme Name: Witton Albion in the Community
Description: Official site theme for Witton Albion in the Community (charity no. 1169154), the community arm of Witton Albion Football Club.
Author: Laventus Digital
Version: 1.0.0
*/

:root {
  --color-red: #E2231A;
  --color-black: #1A1A1A;
  --color-dark: #2B1210;
  --color-white: #FFFFFF;
  --color-grey-light: #F4F4F4;
  --color-grey-text: #4A4A4A;
  --header-height: 88px;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-red); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 4px solid var(--color-red);
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 14px rgba(0,0,0,0.1);
}

body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-height);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__logo img {
  height: 64px;
  width: 64px;
}

.site-header__name {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  color: var(--color-black);
}

.site-header__nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.site-header__nav a {
  color: var(--color-black);
  font-weight: 600;
}

.site-header__nav a:hover { color: var(--color-red); }

@media (max-width: 640px) {
  .site-header__name { display: none; }
  .site-header__nav ul { gap: 14px; }
}

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(43,18,16,0.88) 0%, rgba(26,26,26,0.92) 100%),
    url("assets/images/team-action.jpg?v=2") center 30% / cover no-repeat;
  color: var(--color-white);
  padding: 72px 0;
  text-align: center;
}

.hero__logo { margin: 0 auto 20px; width: 140px; height: 140px; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__logo,
.hero__eyebrow,
.hero h1,
.hero p,
.hero__cta {
  animation: heroFadeUp 0.7s ease both;
}

.hero__logo { animation-delay: 0s; }
.hero__eyebrow { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.2s; }
.hero p { animation-delay: 0.3s; }
.hero__cta { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .hero__logo, .hero__eyebrow, .hero h1, .hero p, .hero__cta,
  .reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-red);
  margin: 0 0 8px;
}

.hero h1 {
  font-size: 2.6rem;
  margin: 0 0 16px;
}

.hero p {
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto;
  color: #EDEDED;
}

.hero__cta {
  margin-top: 28px !important;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn--outline-dark {
  border-color: var(--color-white);
  color: var(--color-white);
}

.placeholder-badge {
  display: inline-block;
  background: #FFF3CD;
  color: #7A5B00;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* Sections */
.section { padding: 64px 0; }
.section--grey { background: var(--color-grey-light); }

.section h2 {
  font-size: 1.9rem;
  margin-top: 0;
  margin-bottom: 20px;
}

.section p { color: var(--color-grey-text); }

/* Mission section */
.mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.mission__image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.mission__image img {
  transition: transform 0.5s ease;
}

.mission__image:hover img {
  transform: scale(1.04);
}

.mission--reverse .mission__image { order: 2; }
.mission--reverse .mission__text { order: 1; }

@media (max-width: 800px) {
  .mission { grid-template-columns: 1fr; }
  .mission__image { order: -1; }
  .mission--reverse .mission__image { order: -1; }
}

/* CTA section with pitch texture */
.section--pitch {
  position: relative;
  background: linear-gradient(rgba(244,244,244,0.93), rgba(244,244,244,0.93)), url("assets/images/pitch-detail.jpg?v=2") center / cover no-repeat;
}

/* Appeal / minibus section */
.appeal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.appeal__image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.appeal__image img {
  transition: transform 0.5s ease;
}

.appeal__image:hover img {
  transform: scale(1.04);
}

@media (max-width: 800px) {
  .appeal { grid-template-columns: 1fr; }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.15s; }
.reveal--delay-2 { transition-delay: 0.3s; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary {
  background: var(--color-red);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--color-black);
  color: var(--color-black);
}

/* Resources */
.resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resource-list li {
  padding: 16px;
  border: 1px dashed #CCCCCC;
  border-radius: 6px;
  margin-bottom: 12px;
  color: #888;
  font-style: italic;
}

/* Page header band (Contact, etc.) */
.page-header {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-black) 100%);
  color: var(--color-white);
  padding: 56px 0;
  text-align: center;
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: 2.2rem;
  animation: heroFadeUp 0.6s ease both;
}

.page-header p {
  margin: 0;
  color: #EDEDED;
  animation: heroFadeUp 0.6s ease both;
  animation-delay: 0.1s;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--color-grey-light);
  border-radius: 10px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.contact-card h2 {
  margin-top: 0;
}

.contact-form-wrap {
  background: var(--color-white);
  border: 1px solid #ECECEC;
}

.contact-details-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-location-wrap {
  margin-top: 32px;
}

.contact-location-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.3fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 800px) {
  .contact-location-grid { grid-template-columns: 1fr; }
}

.contact-location-wrap h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}

.contact-location-address {
  color: var(--color-grey-text);
  margin: 0;
}

.contact-details-image {
  margin: -36px -36px 24px;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.contact-details-image img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.contact-details dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-top: 20px;
}

.contact-details dt:first-child {
  margin-top: 0;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.contact-details dt:hover .contact-icon,
.contact-location-wrap h2:hover .contact-icon {
  transform: scale(1.15);
}

.contact-details dd {
  margin: 4px 0 0 42px;
  color: var(--color-grey-text);
}

.contact-details dd.pending {
  color: #B35900;
  font-style: italic;
}

.contact-map {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.contact-map iframe { display: block; }

.contact-form .form-row { margin-bottom: 18px; }

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #CCCCCC;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(226,35,26,0.15);
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.form-honeypot { position: absolute; left: -9999px; }

.form-notice {
  padding: 14px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.form-notice--success { background: #DEF7E5; color: #1B5E20; }
.form-notice--error { background: #FDE8E8; color: #B3261E; }

/* Thank you page */
.thank-you {
  text-align: center;
  padding: 100px 0;
}

.thank-you__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--color-red);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  animation: heroFadeUp 0.6s ease both;
}

.thank-you h1 {
  animation: heroFadeUp 0.6s ease both;
  animation-delay: 0.1s;
}

.thank-you p {
  animation: heroFadeUp 0.6s ease both;
  animation-delay: 0.2s;
  color: var(--color-grey-text);
  max-width: 520px;
  margin: 0 auto 28px;
}

.thank-you .btn {
  animation: heroFadeUp 0.6s ease both;
  animation-delay: 0.3s;
}

/* Footer */
.site-footer {
  background: var(--color-black);
  color: #CCCCCC;
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a { color: var(--color-white); }

.site-footer__charity {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #999999;
}

.site-footer__social {
  margin-top: 16px;
}

.site-footer__social a {
  margin: 0 8px;
}
