/**
 * Standing Strong - main theme styles.
 *
 * @package Standing_Strong
 */

:root {
  --paper: #f7efe1;
  --charcoal: #24120a;
  --bark: #3b1c0d;
  --ember: #c94c11;
  --ochre: #d39a2c;
  --cream: #fff8ea;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
}

.site-header {
  background: rgba(28, 12, 5, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.brand-mark {
  display: inline-grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #120905 0 14%, transparent 15%),
    radial-gradient(circle, #ef9a19 0 27%, transparent 28%),
    radial-gradient(circle, transparent 0 38%, #fff 39% 42%, transparent 43%),
    repeating-radial-gradient(circle, #ef9a19 0 3px, transparent 4px 8px),
    #2a1007;
  border: 2px solid #fff;
  box-shadow: inset 0 0 0 5px #2a1007;
}

.brand-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  object-fit: contain;
  border-radius: 50%;
}

.nav-links a,
.mobile-panel a {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-panel a:hover {
  color: #f2a22c;
}

.nav-links a.active::after {
  position: absolute;
  right: 0;
  bottom: -0.85rem;
  left: 0;
  height: 2px;
  background: var(--ember);
  content: "";
}

.mobile-panel a {
  display: block;
  color: white;
  font-weight: 700;
}

.hero {
  background:
    radial-gradient(circle at 72% 34%, rgba(223, 128, 24, 0.55), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(242, 194, 78, 0.2), transparent 18%),
    linear-gradient(90deg, rgba(22, 7, 2, 0.98) 0%, rgba(49, 18, 6, 0.94) 46%, rgba(102, 36, 10, 0.86) 100%),
    repeating-linear-gradient(35deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px);
}

.hero::before,
.voices-section::before,
.footer-section::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(201, 76, 17, 0.22) 0 2px, transparent 2px);
  background-position: 0 0, 12px 18px;
  background-size: 34px 34px, 45px 45px;
  content: "";
  opacity: 0.5;
}

.distressed-title {
  color: #fffaf0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
  -webkit-mask-image: radial-gradient(circle at 20% 30%, transparent 0 2px, #000 3px);
  mask-image: radial-gradient(circle at 20% 30%, transparent 0 2px, #000 3px);
}

.font-marker {
  font-family: "Comic Sans MS", "Trebuchet MS", cursive;
}

.btn-primary,
.btn-outline,
.btn-light,
.btn-outline-dark {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0.8rem 1.7rem;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.btn-primary {
  background: linear-gradient(180deg, #df5b16, #b63c0a);
  color: white;
  box-shadow: 0 8px 18px rgba(108, 35, 7, 0.2);
}

.btn-outline {
  border: 2px solid rgba(255, 248, 234, 0.78);
  color: white;
}

.btn-light {
  background: #f4dfbd;
  color: #2a1207;
}

.btn-outline-dark {
  border: 2px solid rgba(36, 18, 10, 0.75);
  color: var(--charcoal);
}

.btn-primary:hover,
.btn-outline:hover,
.btn-light:hover,
.btn-outline-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(36, 18, 10, 0.22);
}

.hero-medallion {
  position: relative;
  width: min(560px, 88vw);
  aspect-ratio: 1;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.songline {
  position: absolute;
  border: 4px solid rgba(235, 153, 39, 0.48);
  border-radius: 50%;
  pointer-events: none;
}

.songline-one {
  right: -8%;
  top: 8%;
  width: 44rem;
  height: 18rem;
  transform: rotate(-14deg);
}

.songline-two {
  right: -14%;
  bottom: 8%;
  width: 48rem;
  height: 14rem;
  border-color: rgba(255, 255, 255, 0.56);
  transform: rotate(-27deg);
}

.dot-field {
  position: absolute;
  right: 2%;
  top: 18%;
  width: 38%;
  height: 62%;
  opacity: 0.65;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 3px, transparent 4px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle, #000 0 42%, transparent 72%);
}

.paper-section {
  position: relative;
  background:
    linear-gradient(rgba(255, 248, 234, 0.86), rgba(255, 248, 234, 0.86)),
    radial-gradient(circle at 16% 22%, rgba(122, 56, 18, 0.12), transparent 28%),
    var(--paper);
}

.paper-section::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(71, 34, 13, 0.07) 1px, transparent 1px);
  background-size: 8px 8px;
  content: "";
}

.section-title {
  position: relative;
  color: var(--charcoal);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.section-title::after {
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 0.45rem;
  background: var(--ember);
  content: "";
}

.text-center.section-title::after,
.section-title.text-center::after {
  margin-right: auto;
  margin-left: auto;
}

.story-card,
.values-panel {
  position: relative;
  z-index: 1;
}

.values-panel {
  padding: 2rem;
  background:
    linear-gradient(rgba(239, 216, 181, 0.78), rgba(239, 216, 181, 0.78)),
    repeating-linear-gradient(176deg, transparent 0 17px, rgba(118, 65, 28, 0.08) 18px 20px);
  clip-path: polygon(2% 5%, 98% 0, 96% 94%, 3% 100%, 0 48%);
}

.tree-medallion {
  width: min(240px, 72vw);
  aspect-ratio: 1;
}

.about-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.value-item {
  border-right: 1px dashed rgba(95, 39, 13, 0.35);
  padding: 0.5rem 1rem 0;
  text-align: center;
}

.value-item:last-child {
  border-right: 0;
}

.value-icon {
  display: inline-grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 3px solid #fff8ea;
  border-radius: 50%;
  color: white;
  outline: 2px solid rgba(36, 18, 10, 0.9);
}

.value-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.8;
}

.value-item h3 {
  margin-top: 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.value-item p {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.title-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.title-row span {
  height: 4px;
  border-top: 4px dotted var(--ember);
}

.module-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 8px;
  color: white;
  isolation: isolate;
  box-shadow: 0 8px 18px rgba(44, 19, 8, 0.14);
}

.module-card::before,
.module-card::after {
  position: absolute;
  inset: 0;
  content: "";
}

.module-card::before {
  z-index: -2;
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 255, 255, 0.2), transparent 22%),
    linear-gradient(135deg, var(--module-a), var(--module-b)),
    repeating-linear-gradient(32deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 3px 18px);
}

.module-card::after {
  z-index: -1;
  background:
    radial-gradient(circle at 74% 28%, transparent 0 11%, rgba(255, 255, 255, 0.42) 11.5% 12.5%, transparent 13%),
    radial-gradient(circle at 22% 74%, transparent 0 13%, rgba(255, 255, 255, 0.2) 13.5% 14.5%, transparent 15%),
    radial-gradient(circle, rgba(255, 255, 255, 0.22) 0 2px, transparent 3px);
  background-size: auto, auto, 22px 22px;
  opacity: 0.75;
}

.module-inner {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.45));
}

.module-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid #fff2ce;
  border-radius: 50%;
  background: rgba(36, 18, 10, 0.72);
  font-size: 1.75rem;
  font-weight: 900;
}

.module-card h3 {
  max-width: 12ch;
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
}

.module-card p {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  line-height: 1.25;
}

.module-card button {
  border: 1px solid #f4dfbd;
  border-radius: 4px;
  background: rgba(22, 8, 3, 0.92);
  padding: 0.55rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.voices-section,
.footer-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 76, 17, 0.32), transparent 22%),
    linear-gradient(90deg, #1b0903, #3b1608 50%, #1b0903);
}

.voice-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 1.2rem;
  align-items: center;
  border-right: 2px dotted rgba(240, 174, 55, 0.7);
  padding-right: 1.5rem;
}

.portrait {
  width: 104px;
  height: 104px;
  border: 4px solid #f3d288;
  border-radius: 50%;
  background-size: cover;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}

.portrait-icon {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #c94c11, #8f3a17);
  color: #fff5dd;
}

.portrait.portrait-icon svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.8;
}

.voice-card h3,
.footer-section h3 {
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.voice-card p {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

.voice-card a {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #f2c34e;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.voice-card svg {
  width: 15px;
  height: 15px;
}

.sector {
  display: grid;
  place-items: center;
  gap: 0.65rem;
  border-right: 1px dashed rgba(36, 18, 10, 0.35);
  padding-inline: 1.1rem;
  text-align: center;
}

.sector:last-child {
  border-right: 0;
}

.sector svg {
  width: 44px;
  height: 44px;
  stroke-width: 1.8;
}

.sector span {
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.12;
  text-transform: uppercase;
}

#schools li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

#schools li svg {
  width: 22px;
  height: 22px;
  color: #70411d;
}

.footer-section a {
  margin-top: 0.45rem;
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: #f2c34e;
}

.newsletter p {
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.newsletter input {
  margin-top: 1rem;
  margin-bottom: 0.7rem;
  width: 100%;
  border-radius: 5px;
  border: 0;
  padding: 0.8rem 1rem;
  color: var(--charcoal);
}

.social {
  display: grid !important;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
}

.social svg {
  width: 19px;
  height: 19px;
}

@media (max-width: 1023px) {
  .hero {
    min-height: auto;
  }

  .value-item,
  .voice-card,
  .sector {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .distressed-title {
    font-size: clamp(4.25rem, 20vw, 6rem);
  }

  .title-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .title-row span {
    display: none;
  }

  .values-panel {
    padding: 1.5rem 1rem;
    clip-path: none;
    border-radius: 8px;
  }

  .voice-card {
    grid-template-columns: 84px 1fr;
  }

  .portrait {
    width: 84px;
    height: 84px;
  }
}
