/*
Theme Name: Walk4Croghan
Theme URI: https://walk4croghan.ie
Author: Nalcro
Description: Custom lightweight theme for the Walk4Croghan fundraiser for Scoil Bhríde Croghan.
Version: 1.1.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: walk4croghan
*/

:root {
  --navy: #071f49;
  --blue: #0d5fb8;
  --green: #126326;
  --red: #bd171d;
  --yellow: #f4bd24;
  --paper: #fffdf7;
  --ink: #071f49;
  --muted: #566070;
  --line: rgba(7, 31, 73, 0.14);
  --shadow: 0 24px 70px rgba(7, 31, 73, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 10%, rgba(244, 189, 36, 0.22), transparent 22rem),
    radial-gradient(circle at 86% 16%, rgba(13, 95, 184, 0.16), transparent 24rem),
    linear-gradient(180deg, #fffdf7 0%, #fff6e8 58%, #ffffff 100%);
}

a {
  color: inherit;
}

.w4c-icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  vertical-align: -0.16em;
}

.w4c-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 4.5rem);
  background: rgba(255, 253, 247, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.admin-bar .w4c-header {
  top: 32px;
}

.w4c-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.w4c-brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  background: var(--navy);
  color: var(--yellow);
  border: 4px solid var(--yellow);
  border-radius: 50%;
  font-weight: 1000;
  letter-spacing: 0;
}

.w4c-brand strong,
.w4c-brand small {
  display: block;
}

.w4c-brand strong {
  font-size: 1.05rem;
}

.w4c-brand small {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.08rem;
}

.w4c-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 2vw, 1.5rem);
  font-weight: 850;
  color: var(--navy);
}

.w4c-nav a {
  text-decoration: none;
}

.w4c-nav a:last-child {
  color: var(--red);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100vh - 82px);
  padding: clamp(2rem, 6vw, 6rem) clamp(1rem, 5vw, 5rem) 3rem;
  overflow: hidden;
}

.hero::after,
.tribes-section::before {
  content: "";
  position: absolute;
  pointer-events: none;
  background-image: radial-gradient(currentColor 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.18;
}

.hero::after {
  right: -5rem;
  bottom: 0;
  width: 24rem;
  height: 16rem;
  color: var(--red);
  transform: rotate(-12deg);
}

.paint {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.16;
}

.paint-green {
  left: -5rem;
  top: 18%;
  width: 23rem;
  height: 11rem;
  background: var(--green);
  transform: rotate(-18deg);
}

.paint-blue {
  right: 18%;
  top: 12%;
  width: 24rem;
  height: 10rem;
  background: var(--blue);
  transform: rotate(12deg);
}

.heart-burst {
  display: grid;
  place-items: center;
  width: 5.75rem;
  height: 5.75rem;
  color: var(--green);
  background:
    radial-gradient(circle, #fff 0 49%, transparent 50%),
    conic-gradient(from 0deg, var(--yellow), var(--red), var(--blue), var(--green), var(--yellow));
  border-radius: 50%;
  margin-bottom: 1.25rem;
}

.heart-burst svg {
  width: 2.8rem;
  height: 2.8rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.1rem;
  font-size: clamp(3.7rem, 8vw, 8.8rem);
  line-height: 0.86;
  letter-spacing: 0;
  color: var(--navy);
  text-transform: uppercase;
  font-weight: 1000;
}

.hero p {
  max-width: 42rem;
  color: #27405c;
  font-size: clamp(1.08rem, 1.7vw, 1.5rem);
  line-height: 1.55;
  font-weight: 650;
}

.hero-actions,
.support-section,
.contact-row,
.w4c-footer {
  display: flex;
  align-items: center;
}

.hero-actions {
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button,
.gform_wrapper.gravity-theme .gform_button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.2rem;
  border: 3px solid var(--navy);
  border-radius: 0.45rem;
  box-shadow: 6px 6px 0 var(--navy);
  font-weight: 950;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button .w4c-icon {
  width: 1.2rem;
  height: 1.2rem;
}

.button:hover,
.gform_wrapper.gravity-theme .gform_button:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--navy);
}

.button.primary,
.gform_wrapper.gravity-theme .gform_button {
  background: var(--yellow);
  color: var(--navy);
}

.button.secondary {
  background: #fff;
  color: var(--green);
}

.poster-card {
  position: relative;
  transform: rotate(1.5deg);
}

.poster-card::before {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  z-index: -1;
  background: var(--navy);
  border-radius: 1rem;
}

.poster-card img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
  object-position: center;
  border: 6px solid #fff;
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
}

.statement {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 5rem);
  background: var(--navy);
  color: #fff;
}

.statement div {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.statement .w4c-icon {
  width: 3.4rem;
  height: 3.4rem;
  color: var(--yellow);
}

.statement h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.statement p {
  margin: 0;
  color: rgba(255, 255, 255, 0.83);
  font-size: 1.15rem;
  line-height: 1.7;
}

.section,
.tribes-section,
.walks-band,
.support-section,
.signup-page {
  padding: clamp(3.5rem, 7vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.section-heading {
  max-width: 52rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.walks-copy h2,
.support-panel h2,
.signup-hero h1,
.signup-shell h2 {
  margin-bottom: 0.7rem;
  color: var(--navy);
  font-size: clamp(2.2rem, 5vw, 5.7rem);
  line-height: 0.92;
  text-transform: uppercase;
  font-weight: 1000;
}

.section-heading p,
.walks-copy p,
.support-panel p,
.signup-hero p,
.signup-shell p,
.signup-shell li {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.content-page {
  padding: clamp(3.5rem, 7vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.content-page__inner {
  max-width: 56rem;
}

.content-page h1 {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 7vw, 7rem);
}

.content-page__body {
  color: #26384e;
  font-size: 1.1rem;
  line-height: 1.75;
}

.content-page__body > *:first-child {
  margin-top: 0;
}

.content-page__body a {
  color: var(--red);
  font-weight: 850;
}

.content-page__body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.content-page__body .wp-block-button__link {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--navy);
  border: 3px solid var(--navy);
  border-radius: 0.45rem;
  box-shadow: 6px 6px 0 var(--navy);
  padding: 0.9rem 1.2rem;
  font-weight: 950;
  text-decoration: none;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.timeline-card,
.tribe-card,
.support-panel,
.signup-shell aside,
.signup-form,
.gform_wrapper.gravity-theme {
  background: rgba(255, 255, 255, 0.88);
  border: 3px solid var(--navy);
  border-radius: 0.75rem;
  box-shadow: 8px 8px 0 rgba(7, 31, 73, 0.92);
}

.timeline-card {
  padding: 1.4rem;
}

.timeline-icon {
  width: 2.3rem;
  height: 2.3rem;
  color: var(--red);
}

.timeline-card span,
.tribe-card span {
  display: inline-block;
  margin: 1rem 0 0.4rem;
  color: var(--blue);
  font-weight: 1000;
  text-transform: uppercase;
}

.timeline-card h3,
.tribe-card h3 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
  line-height: 1;
}

.timeline-card ul,
.signup-shell ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-card li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-top: 0.75rem;
  color: #39485a;
  line-height: 1.45;
  font-weight: 650;
}

.timeline-card li svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--green);
  margin-top: 0.1rem;
}

.tribes-section {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.tribes-section::before {
  left: -3rem;
  top: 3rem;
  width: 18rem;
  height: 22rem;
  color: var(--blue);
}

.tribe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tribe-card {
  position: relative;
  min-height: 20rem;
  padding: 1.4rem;
  color: #fff;
  overflow: hidden;
}

.tribe-card::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: 12rem;
  height: 12rem;
  border: 1rem solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.tribe-card.green {
  background: var(--green);
}

.tribe-card.red {
  background: var(--red);
}

.tribe-card.blue {
  background: var(--blue);
}

.tribe-card span,
.tribe-card p {
  color: rgba(255, 255, 255, 0.86);
}

.tribe-card h3 {
  font-size: clamp(2rem, 3vw, 3.3rem);
  text-transform: uppercase;
}

.tribe-card p {
  max-width: 23rem;
  line-height: 1.6;
  font-weight: 650;
}

.tribe-mark {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  background: #fff;
  color: currentColor;
  border-radius: 50%;
}

.tribe-mark .w4c-icon {
  width: 1.55rem;
  height: 1.55rem;
}

.tribe-card.green .tribe-mark {
  color: var(--green);
}

.tribe-card.red .tribe-mark {
  color: var(--red);
}

.tribe-card.blue .tribe-mark {
  color: var(--blue);
}

.walks-band {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.85fr);
  gap: 2rem;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(244, 189, 36, 0.92), rgba(244, 189, 36, 0.74)),
    var(--poster-url) center / cover;
}

.walks-copy {
  max-width: 48rem;
}

.walks-copy p {
  color: #243143;
  font-weight: 650;
}

.walks-list {
  display: grid;
  gap: 0.8rem;
}

.walks-list div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: 0.6rem;
  box-shadow: 5px 5px 0 var(--navy);
  font-weight: 900;
}

.walks-list svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--green);
}

.support-section {
  gap: 1rem;
  align-items: stretch;
  background: var(--navy);
}

.support-panel {
  flex: 1 1 0;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.support-panel.sponsor {
  background: #fffdf7;
}

.support-panel.business {
  background: #eff8f0;
}

.support-panel h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.contact-row {
  gap: 0.65rem;
  margin-top: 1.5rem;
  color: var(--red);
  font-size: 1.25rem;
  font-weight: 950;
}

.contact-row .w4c-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.w4c-footer {
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.3rem clamp(1rem, 5vw, 5rem);
  background: #03142f;
  color: #fff;
}

.w4c-footer span {
  color: rgba(255, 255, 255, 0.72);
}

.w4c-footer a {
  color: var(--yellow);
  font-weight: 900;
}

.w4c-powered {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.signup-page {
  background:
    radial-gradient(circle at 80% 8%, rgba(189, 23, 29, 0.14), transparent 22rem),
    radial-gradient(circle at 12% 25%, rgba(18, 99, 38, 0.15), transparent 24rem);
}

.signup-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 20rem;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.signup-hero h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 7vw, 7.8rem);
}

.signup-note {
  padding: 1.2rem;
  background: var(--yellow);
  border: 3px solid var(--navy);
  border-radius: 0.75rem;
  box-shadow: 8px 8px 0 var(--navy);
}

.signup-note svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--green);
}

.signup-note strong,
.signup-note span {
  display: block;
}

.signup-note strong {
  margin: 0.5rem 0;
  font-size: 1.35rem;
}

.signup-note span {
  color: #26384e;
  line-height: 1.45;
  font-weight: 700;
}

.signup-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 1rem;
}

.signup-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 2rem);
}

.signup-form label,
.gform_wrapper.gravity-theme .gfield_label {
  display: grid;
  gap: 0.45rem;
  color: var(--navy);
  font-weight: 950;
}

.signup-form .wide {
  grid-column: 1 / -1;
}

input,
select,
textarea,
.gform_wrapper.gravity-theme input[type="text"],
.gform_wrapper.gravity-theme input[type="email"],
.gform_wrapper.gravity-theme input[type="tel"],
.gform_wrapper.gravity-theme select,
.gform_wrapper.gravity-theme textarea {
  width: 100%;
  border: 2px solid rgba(7, 31, 73, 0.28);
  border-radius: 0.45rem;
  padding: 0.9rem 0.95rem;
  color: var(--navy);
  background: #fff;
  font: inherit;
  font-weight: 650;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(13, 95, 184, 0.18);
}

.signup-form button {
  width: fit-content;
}

.signup-shell aside {
  padding: 1.5rem;
  background: var(--navy);
  color: #fff;
}

.signup-shell aside h2,
.signup-shell aside p,
.signup-shell aside li {
  color: #fff;
}

.signup-shell aside li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.gform_wrapper.gravity-theme {
  padding: clamp(1.1rem, 3vw, 2rem);
}

@media (max-width: 950px) {
  .w4c-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-bar .w4c-header {
    top: 0;
  }

  .w4c-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.92rem;
  }

  .hero,
  .statement,
  .timeline,
  .tribe-grid,
  .walks-band,
  .support-section,
  .signup-hero,
  .signup-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .poster-card {
    transform: none;
  }

  .support-section {
    display: grid;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 3.4rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .statement div {
    align-items: flex-start;
    flex-direction: column;
  }

  .signup-form {
    grid-template-columns: 1fr;
  }

  .signup-form button {
    width: 100%;
  }

  .w4c-brand small {
    display: none;
  }
}
