/*
Theme Name: TAM Transform Theme
Theme URI: https://transformministries.org
Author: TAM Tech
Author URI: https://transformministries.org
Description: Transform African Ministries custom WordPress theme converted from the static TAM sponsorship site.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tam-transform
*/

:root {
  --tam-green: #1d4b28;
  --tam-green-2: #1d8a3a;
  --tam-amber: #e4ba33;
  --tam-bg: #efefef;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fafaf9;
  color: #292524;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-main .entry-content > :first-child {
  margin-top: 0;
}

.tam-about-hero,
.tam-sponsor-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: #09110c;
  color: #fff;
}

.tam-about-hero__image,
.tam-sponsor-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(0.88) contrast(0.9) brightness(0.68);
}

.tam-about-hero__image {
  object-position: center 26%;
}

.tam-sponsor-hero__image {
  object-position: center 34%;
}

.tam-about-hero__veil,
.tam-about-hero__glow,
.tam-sponsor-hero__veil,
.tam-sponsor-hero__glow {
  position: absolute;
  inset: 0;
}

.tam-about-hero__veil,
.tam-sponsor-hero__veil {
  background:
    linear-gradient(180deg, rgba(4, 11, 8, 0.12) 0%, rgba(4, 11, 8, 0.26) 22%, rgba(4, 11, 8, 0.72) 70%, rgba(4, 11, 8, 0.92) 100%),
    linear-gradient(90deg, rgba(4, 11, 8, 0.44) 0%, rgba(4, 11, 8, 0.1) 38%, rgba(4, 11, 8, 0.5) 100%);
}

.tam-about-hero__glow,
.tam-sponsor-hero__glow {
  background:
    radial-gradient(circle at 50% 82%, rgba(255, 255, 255, 0.08), transparent 30%),
    radial-gradient(circle at 84% 20%, rgba(255, 214, 127, 0.18), transparent 24%);
}

.tam-about-hero__content,
.tam-sponsor-hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 58rem);
  padding: clamp(9rem, 18vh, 12rem) 1rem clamp(2.75rem, 8vh, 5rem);
  text-align: center;
}

.tam-about-hero__title,
.tam-sponsor-hero__title {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(3rem, 7.2vw, 5.75rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.46);
}

.tam-about-hero__accent,
.tam-sponsor-hero__accent {
  width: min(100%, 43rem);
  height: 0.42rem;
  margin: 1.85rem auto 1.6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #c9dd59 0%, #50bf4a 24%, #009b43 49%, #0c78ca 74%, #173fa8 100%);
  box-shadow: 0 8px 24px rgba(15, 84, 170, 0.3);
}

.tam-about-hero__summary,
.tam-sponsor-hero__summary {
  margin: 0 auto;
  max-width: 44rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.02rem, 1.7vw, 1.32rem);
  line-height: 1.72;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.38);
}

.tam-about-hero__actions,
.tam-sponsor-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.1rem;
}

.tam-about-hero__button,
.tam-sponsor-hero__button {
  display: inline-flex;
  min-width: 10.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.tam-about-hero__button:hover,
.tam-about-hero__button:focus-visible,
.tam-sponsor-hero__button:hover,
.tam-sponsor-hero__button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.tam-about-hero__button:focus-visible,
.tam-sponsor-hero__button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.tam-about-hero__button--blue,
.tam-sponsor-hero__button--blue {
  background: linear-gradient(135deg, #1770c7 0%, #1352b0 100%);
  box-shadow: 0 16px 30px rgba(19, 82, 176, 0.32);
}

.tam-about-hero__button--green,
.tam-sponsor-hero__button--green {
  background: linear-gradient(135deg, #0da735 0%, #088626 100%);
  box-shadow: 0 16px 30px rgba(8, 134, 38, 0.3);
}

.tam-about-hero__scroll,
.tam-sponsor-hero__scroll {
  display: inline-flex;
  margin-top: 1.9rem;
  color: #fff;
  text-decoration: none;
}

.tam-about-hero__scroll-ring,
.tam-sponsor-hero__scroll-ring {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  animation: tam-about-scroll-bob 1.8s ease-in-out infinite;
}

.page-about #our-story,
.page-sponsorship #sponsoring-means,
.page-sponsorship #sponsor-directory {
  scroll-margin-top: 7.5rem;
}

@keyframes tam-about-scroll-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

.tam-editor-note {
  border: 1px solid #d6d3d1;
  background: #f5f5f4;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
}

.tam-front-editor-content {
  position: relative;
}

.tam-front-editor-toolbar {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  width: min(24rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid rgba(29, 75, 40, 0.14);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(16, 35, 24, 0.18);
  backdrop-filter: blur(14px);
}

.tam-front-editor-toolbar__eyebrow {
  margin: 0;
  color: #1d8a3a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tam-front-editor-toolbar__title {
  margin: 0.3rem 0 0;
  color: #102318;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1.12rem;
  line-height: 1.15;
}

.tam-front-editor-toolbar__status {
  margin: 0.65rem 0 0;
  color: #44403c;
  font-size: 0.95rem;
  line-height: 1.5;
}

.tam-front-editor-toolbar__status[data-state="success"] {
  color: #0f7a32;
}

.tam-front-editor-toolbar__status[data-state="error"] {
  color: #b42318;
}

.tam-front-editor-toolbar__status[data-state="pending"] {
  color: #1352b0;
}

.tam-front-editor-toolbar__notices {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.tam-front-editor-toolbar__note {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  background: #f5f5f4;
  color: #57534e;
  font-size: 0.84rem;
  line-height: 1.45;
}

.tam-front-editor-toolbar__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.95rem;
}

.tam-front-editor-toolbar__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.88rem 1.2rem;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease, background-color 180ms ease;
}

.tam-front-editor-toolbar__button:hover,
.tam-front-editor-toolbar__button:focus-visible {
  transform: translateY(-1px);
}

.tam-front-editor-toolbar__button:focus-visible {
  outline: 2px solid #1d8a3a;
  outline-offset: 2px;
}

.tam-front-editor-toolbar__button--primary {
  background: linear-gradient(135deg, #1d8a3a 0%, #145e2d 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(20, 94, 45, 0.2);
}

.tam-front-editor-toolbar__button--ghost {
  background: #f5f5f4;
  color: #1f2937;
}

.tam-front-editor-toolbar.is-dirty .tam-front-editor-toolbar__button--primary {
  background: linear-gradient(135deg, #1770c7 0%, #1352b0 100%);
  box-shadow: 0 14px 28px rgba(19, 82, 176, 0.2);
}

.tam-front-editor-scope--editing [data-tam-front-editable] {
  outline: 2px dashed rgba(29, 138, 58, 0.38);
  outline-offset: 4px;
  border-radius: 0.45rem;
  background: rgba(234, 244, 236, 0.72);
}

.tam-front-editor-scope--editing [data-tam-front-editable]:focus {
  outline-color: rgba(19, 82, 176, 0.85);
  background: rgba(230, 241, 255, 0.92);
}

.tam-front-editor-scope--editing [data-tam-front-image] {
  cursor: pointer;
  outline: 3px solid rgba(29, 138, 58, 0.42);
  outline-offset: 6px;
  border-radius: 1rem;
  transition: transform 180ms ease, outline-color 180ms ease, box-shadow 180ms ease;
}

.tam-front-editor-scope--editing [data-tam-front-image]:hover {
  transform: translateY(-2px);
  outline-color: rgba(19, 82, 176, 0.72);
}

.tam-front-editor-scope--editing [data-tam-front-selected] {
  outline-color: rgba(228, 186, 51, 0.95);
  box-shadow: 0 0 0 8px rgba(228, 186, 51, 0.18);
}

.tam-front-editor-scope--editing [data-tam-front-editor-lock] {
  position: relative;
  outline: 2px solid rgba(87, 83, 78, 0.18);
  outline-offset: 4px;
  border-radius: 1rem;
}

.tam-front-editor-scope--editing [data-tam-front-editor-lock]::after {
  content: "Dynamic section";
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(41, 37, 36, 0.88);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@media (max-width: 782px) {
  .tam-front-editor-toolbar {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    width: auto;
    padding: 0.9rem;
  }

  .tam-front-editor-toolbar__actions {
    flex-wrap: wrap;
  }

  .tam-front-editor-toolbar__button {
    flex: 1 1 8rem;
    justify-content: center;
  }
}

.tam-team-section {
  margin: 2rem 0;
}

.tam-team-grid {
  display: grid;
  gap: 1.5rem;
}

.tam-team-grid--cols-1 {
  grid-template-columns: 1fr;
}

.tam-team-grid--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tam-team-grid--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tam-team-grid--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tam-team-card {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(18, 49, 26, 0.06);
}

.tam-team-card__media {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: linear-gradient(145deg, #d6ded9, #f5f5f4);
}

.tam-team-card__media img,
.tam-team-card__placeholder {
  width: 100%;
  height: 100%;
  display: block;
}

.tam-team-card__media img {
  object-fit: cover;
}

.tam-team-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #57534e;
  font-weight: 700;
}

.tam-team-card__body {
  padding: 1.25rem;
}

.tam-team-card__name {
  margin: 0;
  color: var(--tam-green);
  font-size: 1.35rem;
  line-height: 1.2;
}

.tam-team-card__role {
  margin: 0.45rem 0 0;
  color: #1d8a3a;
  font-weight: 700;
}

.tam-team-card__department {
  margin: 0.2rem 0 0;
  color: #57534e;
  font-size: 0.95rem;
}

.tam-team-card__summary {
  margin: 0.9rem 0 0;
  color: #44403c;
  line-height: 1.65;
}

.tam-team-card__contact {
  margin-top: 1rem;
  display: grid;
  gap: 0.35rem;
}

.tam-team-card__contact a {
  color: var(--tam-green);
  font-weight: 600;
  text-decoration: none;
}

.tam-team-card__contact a:hover,
.tam-team-card__contact a:focus {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .tam-team-grid--cols-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .tam-team-grid--cols-4,
  .tam-team-grid--cols-3,
  .tam-team-grid--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .tam-about-hero__content,
  .tam-sponsor-hero__content {
    width: calc(100% - 1.5rem);
    padding-top: 8.75rem;
    padding-bottom: 2.5rem;
  }

  .tam-about-hero__title,
  .tam-sponsor-hero__title {
    font-size: clamp(2.65rem, 14vw, 4rem);
    line-height: 0.98;
  }

  .tam-about-hero__accent,
  .tam-sponsor-hero__accent {
    height: 0.34rem;
    margin-top: 1.35rem;
    margin-bottom: 1.25rem;
  }

  .tam-about-hero__summary,
  .tam-sponsor-hero__summary {
    max-width: 26rem;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .tam-about-hero__actions,
  .tam-sponsor-hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .tam-about-hero__button,
  .tam-sponsor-hero__button {
    width: min(100%, 15rem);
  }

  .tam-team-grid--cols-4,
  .tam-team-grid--cols-3,
  .tam-team-grid--cols-2 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tam-about-hero__scroll-ring,
  .tam-sponsor-hero__scroll-ring {
    animation: none;
  }

  .tam-about-hero__button,
  .tam-sponsor-hero__button {
    transition: none;
  }
}
