/* ScaleWise Education — Shared Styles */

:root {
  --color-primary: #2f5d3a;      /* deep desert green */
  --color-primary-dark: #22432a;
  --color-logo-green: #173121;   /* dark green from the logo background */
  --color-gold: #b8a064;         /* gold from the logo lettering */
  --color-accent: #c96f2e;       /* desert terracotta */
  --color-sand: #f4ecd8;
  --color-dark: #1f2420;
  --color-text: #333333;
  --color-white: #ffffff;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', Tahoma, Arial, sans-serif;
  --radius: 8px;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  margin-top: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / Nav */
.site-header {
  background-color: var(--color-logo-green);
  border-bottom: 3px solid var(--color-logo-green);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  max-width: 1500px;
  margin: 0 auto;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-gold);
}

.logo img {
  height: 68px;
  width: 68px;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 28px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-links a {
  color: var(--color-gold);
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--color-white);
  border-bottom-color: var(--color-gold);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-gold);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background-color: #a85a22;
  text-decoration: none;
}

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

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary-dark);
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(rgba(31, 36, 32, 0.55), rgba(31, 36, 32, 0.55)),
    url('../images/hero-placeholder.jpg') center/cover no-repeat;
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: 100px 20px;
  text-align: center;
}

.hero h1 {
  color: var(--color-white);
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 30px;
}

/* Sections */
.section {
  padding: 70px 0;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title p {
  max-width: 640px;
  margin: 8px auto 0;
  color: #555;
}

.grid {
  display: grid;
  gap: 24px;
}

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

.card {
  background-color: var(--color-white);
  border: 1px solid #e5e0d0;
  border-radius: var(--radius);
  padding: 24px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.photo-placeholder {
  aspect-ratio: 1 / 1;
  background-color: #d9d2ba;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a725a;
  font-size: 0.85rem;
  text-align: center;
  padding: 8px;
}

.educator-bio {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.educator-photo {
  flex: 0 0 220px;
  width: 220px;
  height: 220px;
}

@media (max-width: 700px) {
  .educator-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* CTA band */
.cta-band {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 60px 20px;
}

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

/* Footer */
.site-footer {
  background-color: var(--color-dark);
  color: #cfcfcf;
  padding: 40px 0 20px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 24px;
}

.footer-grid h4 {
  color: var(--color-white);
  margin-bottom: 12px;
}

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

.footer-grid a {
  color: #cfcfcf;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #3a3f3a;
  padding-top: 16px;
  color: #999;
}

.placeholder-note {
  background-color: #fff8e5;
  border: 1px dashed #d8b74e;
  color: #7a5e10;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin: 30px 0;
}

/* Stub page */
.stub-page .section {
  padding-top: 50px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  padding: 8px 0 8px 30px;
  position: relative;
  border-bottom: 1px solid #eee;
}

.checklist li::before {
  content: "\2610";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 800px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero {
    padding: 56px 20px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero .btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .hero .btn + .btn {
    margin-left: 0 !important;
    margin-top: 12px;
  }

  .section {
    padding: 40px 0;
  }

  .stub-page .section {
    padding-top: 30px;
  }

  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }

  .cta-band {
    padding: 40px 16px;
  }

  table {
    font-size: 0.85rem;
  }
}

@media (max-width: 1400px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    width: 100%;
    background-color: var(--color-logo-green);
    position: absolute;
    top: 100%;
    left: 0;
    gap: 4px 24px;
    padding: 12px 32px 20px;
    border-top: 1px solid rgba(217, 180, 92, 0.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  }
  .nav-links.open {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(217, 180, 92, 0.2);
  }
  .nav-links a.active,
  .nav-links a:hover {
    border-bottom-color: rgba(217, 180, 92, 0.2);
  }
}

@media (max-width: 700px) {
  .nav-links.open {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .nav-links.open {
    grid-template-columns: 1fr;
  }
}
