/* StudySuccess.org — 2019 clean education theme */
:root {
  --green: #2b492d;
  --green-mid: #3d6840;
  --green-soft: #e8efe8;
  --green-line: #c5d4c6;
  --white: #ffffff;
  --off-white: #f8f9f8;
  --text: #222822;
  --text-muted: #5a635a;
  --border: #e2e6e2;
  --shadow: 0 2px 12px rgba(43, 73, 45, 0.08);
  --radius: 6px;
  --max: 1100px;
  --nav-h: 72px;
  --font-display: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--green-mid);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--green);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(43, 73, 45, 0.04);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--green);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--green);
  opacity: 0.9;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.brand-text span {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.55rem 1rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  border-radius: var(--radius);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
  background: var(--green-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--green);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--green);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(43, 73, 45, 0.2);
}

.btn-primary:hover {
  background: var(--green-mid);
  color: var(--white);
}

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

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

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* —— Hero —— */
.hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 0.85rem;
}

.hero p.lead {
  font-size: 1.05rem;
  max-width: 36ch;
  margin-bottom: 0;
}

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--green-soft);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--off-white);
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.75rem;
}

.section-head p {
  margin-bottom: 0;
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--green);
  margin: 0 auto 1.25rem;
  border-radius: 2px;
}

/* Feature split rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-row.reverse .feature-media {
  order: 1;
}

.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  background: var(--green-soft);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.feature-media:hover img {
  transform: scale(1.03);
}

.feature-copy h3 {
  margin-bottom: 0.65rem;
}

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

/* Cards — used for scholarship actions */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--green-line);
  box-shadow: 0 4px 18px rgba(43, 73, 45, 0.12);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  font-size: 1.15rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.card-link {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-link::after {
  content: " →";
}

/* Image placeholder band */
.image-band {
  padding: 0;
}

.image-band-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 320px;
}

.image-band-media {
  background: var(--green-soft);
  min-height: 280px;
}

.image-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.image-band-copy {
  background: var(--green);
  color: var(--white);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.image-band-copy h2 {
  color: var(--white);
}

.image-band-copy p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.5rem;
}

.image-band-copy .btn-outline {
  color: var(--white);
  border-color: var(--white);
  align-self: flex-start;
}

.image-band-copy .btn-outline:hover {
  background: var(--white);
  color: var(--green);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 3rem 0 2.5rem;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero p {
  margin: 0 auto;
  max-width: 42ch;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  background: var(--green-soft);
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.values {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.value-item {
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--green);
  background: var(--off-white);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.value-item h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.value-item p {
  margin: 0;
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  padding: 1.75rem;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.info-row {
  margin-bottom: 1.25rem;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.25rem;
}

.info-row p {
  margin: 0;
  color: var(--text);
}

.contact-form {
  display: grid;
  gap: 1.15rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row.two {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(43, 73, 45, 0.12);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.form-success {
  display: none;
  padding: 1rem 1.15rem;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  color: var(--green);
  font-weight: 600;
}

.form-success.is-visible {
  display: block;
}

/* Footer */
.site-footer {
  background: var(--green);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.75rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.footer-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
  padding: 4px;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin: 0;
  max-width: 28ch;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

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

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .card:hover,
  .feature-media:hover img {
    transform: none;
  }
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero-grid,
  .feature-row,
  .feature-row.reverse,
  .about-grid,
  .contact-grid,
  .image-band-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-media {
    order: unset;
  }

  .card-grid,
  .card-grid.two {
    grid-template-columns: 1fr;
  }

  .about-media {
    position: static;
    aspect-ratio: 16 / 10;
  }

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

  .hero {
    padding-top: 2.5rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.15rem;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 1rem;
  }

  .site-header {
    position: sticky;
  }

  .nav {
    position: relative;
  }
}
