/* PSAC North Theme — Custom Styles */

/* =============================================
   Brand Color Variables
   ============================================= */
:root {
  --deep-purple: #420C60;
  --mid-purple: #723AA2;
  --light-purple: #AA6CEA;
  --deep-teal: #025D64;
  --bright-teal: #00B9AF;
  --warm-offwhite: #E2DED6;
  --soft-cream: #FAF4EE;
}

/* =============================================
   Base / Reset
   ============================================= */
body {
  background-color: var(--soft-cream);
  color: var(--deep-purple);
  font-family: var(--wp--preset--font-family--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body > .wp-site-blocks {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

body {
  overflow-x: hidden;
}

.psac-footer,
.psac-action-cta,
.psac-signup--purple {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.psac-navbar--dark,
main.has-background[style*="420C60"] {
  position: relative;
}

.psac-navbar--dark::before,
main.has-background[style*="420C60"]::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background-color: #420C60;
  z-index: 0;
}

.psac-navbar--dark > *,
main.has-background[style*="420C60"] > * {
  position: relative;
  z-index: 1;
}

main.has-background[style*="420C60"] .psac-signup--teal {
  position: relative;
}

main.has-background[style*="420C60"] .psac-signup--teal::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background-color: var(--soft-cream, #FAF4EE);
  z-index: 0;
}

main.has-background[style*="420C60"] .psac-signup--teal > * {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--deep-purple);
}

a {
  color: var(--deep-teal);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
a:hover {
  opacity: 0.7;
}

/* =============================================
   Utility Classes
   ============================================= */

/* Script / handwriting font */
.font-script {
  font-family: var(--wp--preset--font-family--script);
  text-transform: none;
  font-weight: 400;
}

/* Brand background colors */
.bg-deep-purple { background-color: var(--deep-purple); }
.bg-mid-purple { background-color: var(--mid-purple); }
.bg-light-purple { background-color: var(--light-purple); }
.bg-deep-teal { background-color: var(--deep-teal); }
.bg-bright-teal { background-color: var(--bright-teal); }
.bg-warm-offwhite { background-color: var(--warm-offwhite); }
.bg-soft-cream { background-color: var(--soft-cream); }

/* Brand text colors */
.text-deep-purple { color: var(--deep-purple); }
.text-mid-purple { color: var(--mid-purple); }
.text-light-purple { color: var(--light-purple); }
.text-deep-teal { color: var(--deep-teal); }
.text-bright-teal { color: var(--bright-teal); }
.text-warm-offwhite { color: var(--warm-offwhite); }
.text-soft-cream { color: var(--soft-cream); }

/* Grain overlay texture */
.grain-overlay {
  position: relative;
}
.grain-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* Purple gradient text */
.text-gradient-purple {
  background: linear-gradient(135deg, #723AA2, #AA6CEA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gear clip-path shape */
.gear-shape {
  clip-path: polygon(50% 0%, 63% 5%, 75% 0%, 80% 13%, 93% 12%, 93% 25%, 100% 37%, 93% 45%, 100% 55%, 93% 63%, 100% 75%, 87% 80%, 87% 93%, 75% 93%, 63% 100%, 50% 93%, 37% 100%, 25% 93%, 13% 93%, 13% 80%, 0% 75%, 7% 63%, 0% 55%, 7% 45%, 0% 37%, 7% 25%, 7% 12%, 20% 13%, 25% 0%, 37% 5%);
}

/* Pill button base */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: opacity 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-pill:hover {
  opacity: 0.9;
}

/* Button variants */
.btn-cream {
  background-color: var(--soft-cream);
  color: var(--deep-purple);
}
.btn-deep-purple {
  background-color: var(--deep-purple);
  color: var(--soft-cream);
}
.btn-deep-teal {
  background-color: var(--deep-teal);
  color: var(--soft-cream);
}
.btn-deep-teal-outline {
  background-color: transparent;
  color: var(--deep-teal);
  border: 1px solid var(--deep-teal);
}
.btn-deep-teal-outline:hover {
  background-color: var(--deep-teal);
  color: var(--soft-cream);
}
