/* ============================================
   Judy Williams-Corbett Education Fund
   "Pacific Northwest Pastoral" Design System
   ============================================ */

:root {
  /* Color Palette — warm, natural, earthy */
  --sage: #6B7F5E;
  --sage-dark: #4A5C40;
  --sage-light: #8FA882;
  --sage-mist: rgba(107, 127, 94, 0.08);

  --clay: #B8886F;
  --clay-light: #D4AC94;

  --cream: #FAF8F4;
  --linen: #F0EDE7;
  --parchment: #E8E4DC;

  --bark: #2D2A26;
  --stone: #6B6560;
  --drift: #9B958E;

  --white: #FFFFFF;
  --moss: #2C3B2A;

  /* Typography */
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Karla', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  /* Layout */
  --max-width: 1100px;
  --nav-height: 72px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(45, 42, 38, 0.06);
  --shadow-md: 0 4px 12px rgba(45, 42, 38, 0.08);

  /* Transition */
  --ease: 0.3s ease;
}


/* --- Reset --- */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--stone);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* --- Typography --- */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--bark);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  margin-bottom: var(--space-md);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-sm);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  margin-bottom: var(--space-xs);
}

p {
  margin-bottom: var(--space-sm);
  font-size: 1.0625rem;
  line-height: 1.75;
}

a {
  color: var(--sage);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--sage-dark);
}

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

strong {
  font-weight: 600;
  color: var(--bark);
}

em {
  font-style: italic;
}


/* --- Layout --- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section--alt {
  background-color: var(--linen);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-lg);
}

.section-header h2 {
  margin-bottom: var(--space-xs);
}

.section-header p {
  color: var(--stone);
}

.divider {
  width: 48px;
  height: 2px;
  background-color: var(--clay);
  margin: var(--space-sm) auto var(--space-md);
  border: none;
}


/* --- Grid --- */

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2x2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {

  .grid--2,
  .grid--3,
  .grid--2x2 {
    grid-template-columns: 1fr;
  }
}


/* --- Header & Navigation --- */

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid var(--parchment);
  border-top: 3px solid var(--sage);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-height);
}

.logo {
  font-family: var(--font-heading);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-text {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.35rem;
  line-height: 1;
}

.logo-text__main {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--bark);
  letter-spacing: 0.01em;
}

.logo-text__sub {
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--sage);
  font-style: italic;
}

@media (min-width: 861px) {
  .logo-text__main {
    font-size: 1.35rem;
  }

  .logo-text__sub {
    font-size: 1.35rem;
  }
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-link {
  color: var(--stone);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--clay);
  transition: width var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--bark);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}


/* --- Mobile Navigation --- */

.mobile-nav-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--bark);
  padding: 0.5rem;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: calc(var(--nav-height) + 3px);
    left: 0;
    right: 0;
    background-color: var(--cream);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
    border-bottom: 1px solid var(--parchment);
    transform: translateY(-120%);
    transition: transform var(--ease), opacity var(--ease), visibility var(--ease);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-nav-toggle {
    display: block;
    margin-left: auto;
  }
}


/* --- Buttons --- */

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--ease);
  border: 1.5px solid transparent;
  letter-spacing: 0.01em;
}

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

.btn--primary:hover {
  background-color: var(--sage-dark);
  border-color: var(--sage-dark);
  color: var(--white);
}

.btn--outline {
  background-color: transparent;
  color: var(--sage);
  border-color: var(--sage);
}

.btn--outline:hover {
  background-color: var(--sage);
  color: var(--white);
}


/* --- Hero --- */

.hero {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.hero .grid {
  align-items: center;
  gap: var(--space-lg);
}

@media (min-width: 769px) {
  .hero .grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.hero__badge {
  font-family: 'Inter', sans-serif;
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: rgba(106, 139, 108, 0.15);
  color: #3b5c3d;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.hero h1 {
  color: var(--bark);
}

.hero .lead {
  font-size: 1.1875rem;
  color: var(--stone);
  max-width: 48ch;
  margin-bottom: var(--space-md);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-image {
  border-radius: var(--radius-lg);
  border: 3px solid var(--parchment);
  width: 100%;
  height: 480px;
  object-fit: cover;
}


/* --- Cards --- */

.card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  border: 1px solid var(--parchment);
  height: 100%;
}

.card--center {
  text-align: center;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: var(--sage-mist);
  border-radius: 50%;
  margin-bottom: var(--space-sm);
  color: var(--sage);
}

.card h3 {
  color: var(--bark);
}

.card p {
  color: var(--stone);
  font-size: 1rem;
}

.card p:last-child {
  margin-bottom: 0;
}


/* --- Profile Cards --- */

.profile-card {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--parchment);
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--linen);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  color: var(--sage-light);
}

.profile-name {
  font-family: var(--font-heading);
  color: var(--bark);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.profile-role {
  color: var(--sage);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-xs);
}


/* --- Award Highlight (Home page) --- */

.cta-section .grid {
  align-items: center;
  gap: var(--space-xl);
}

@media (min-width: 769px) {
  .cta-section .grid {
    grid-template-columns: 1fr 1.8fr;
  }
}

.cta-logo {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  margin: 0 auto;
}

.award-amount {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--sage-dark);
  margin: var(--space-xs) 0 var(--space-sm);
}


/* --- Award Page --- */

.award-banner {
  background-color: var(--sage);
  color: var(--white);
  padding: var(--space-xl) var(--space-md);
  padding-top: calc(var(--space-xl) + 70px);
  text-align: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  margin-top: 70px;
}

.award-banner__logo {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 240px;
}

.award-banner__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.award-banner h1 {
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.award-banner p {
  color: rgba(255, 255, 255, 0.9);
}

.award-banner .award-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: var(--space-sm) 0;
  color: var(--linen);
}

.criteria-list {
  list-style: none;
  padding: 0;
}

.criteria-list li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 1rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.criteria-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--sage);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--sage-mist);
  color: var(--sage);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.deadline-note {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--bark);
}


/* --- About Page --- */

.about-image {
  border-radius: var(--radius-lg);
  border: 3px solid var(--parchment);
}

.image-caption {
  font-size: 0.875rem;
  color: var(--drift);
  text-align: center;
  font-style: italic;
  margin-top: var(--space-xs);
}

.caption-wrap {
  display: inline-block;
}

.values-list {
  list-style: none;
  padding: 0;
}

.values-list li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.75rem;
}

.values-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--clay);
}


/* --- Contact Page --- */

.contact-wrapper {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--parchment);
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info {
  background-color: var(--sage);
  color: var(--white);
  padding: var(--space-lg) var(--space-md);
}

.contact-info h2 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.contact-info>p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-lg);
}

.contact-item {
  margin-bottom: var(--space-md);
}

.contact-item h4 {
  color: var(--bark);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.contact-item p,
.contact-item a {
  color: var(--white);
  font-size: 1.0625rem;
}

.contact-item a:hover {
  color: var(--linen);
  text-decoration: underline;
}

.contact-form {
  padding: var(--space-lg) var(--space-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--bark);
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--parchment);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--bark);
  background-color: var(--white);
  transition: border-color var(--ease);
}

.form-control:focus {
  outline: none;
  border-color: var(--sage);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}


/* --- Footer --- */

.site-footer {
  background-color: var(--moss);
  color: var(--parchment);
  padding: var(--space-xl) 0 var(--space-lg);
}

.site-footer a {
  color: var(--parchment);
  opacity: 0.8;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.footer-tagline {
  color: var(--parchment);
  opacity: 0.7;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.4rem;
  font-size: 0.9375rem;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  opacity: 0.6;
}


/* --- Fade In (minimal) --- */

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* --- Utilities --- */

.text-center {
  text-align: center;
}

.mt-xs {
  margin-top: var(--space-xs);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}