/* Thrive Christian Academy — site styles
   Palette pulled directly from the official logo file (Cropped Thrive
   Logo - Color.png): plum purple + olive green, on a warm cream background. */

:root {
  --primary: #672667;      /* plum purple, from logo */
  --primary-dark: #451a45; /* deeper purple for header/footer */
  --accent: #4b6e1e;       /* olive green, from logo */
  --accent-dark: #39490f;  /* darker olive, for hover states on green buttons */
  --gold: #d9b968;         /* warm gold, for accents on dark purple backgrounds */
  --bg: #faf7f0;           /* warm cream */
  --bg-alt: #f1ece0;       /* slightly deeper cream for alt sections */
  --text: #2b2b2b;
  --text-light: #5a5a52;
  --white: #ffffff;
  --border: #e2dccb;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(69, 26, 69, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--primary-dark);
  line-height: 1.25;
  margin-top: 0;
}

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

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-dark);
}

.brand .logo-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

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

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.main-nav a.active { color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 4px; }

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

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 72px 24px;
  text-align: center;
}

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

.hero p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: #eef3ee;
}

.hero-verse {
  display: inline-block;
  margin-top: 20px;
  font-style: italic;
  color: var(--gold);
  font-size: 1.05rem;
}

/* Page header (for interior pages) */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 48px 24px;
  text-align: center;
}

.page-header h1 { color: var(--white); margin: 0; font-size: 2rem; }

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

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

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card + .card { margin-top: 20px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: bold;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
}

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

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

/* Tuition tables */
.tuition-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tuition-table th, .tuition-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.tuition-table th {
  background: var(--primary-dark);
  color: var(--white);
}

.note-list {
  padding-left: 20px;
}

.note-list li { margin-bottom: 8px; }

/* Links list (Parents page) */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.link-grid a {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 16px 18px;
  font-weight: 600;
  color: var(--primary-dark);
  box-shadow: var(--shadow);
}

.link-grid a:hover { border-left-color: var(--primary); color: var(--primary); }

/* Contact */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.contact-info .item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 26px;
  box-shadow: var(--shadow);
  flex: 1 1 220px;
}

.contact-info .item h4 {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

form.contact-form {
  display: grid;
  gap: 16px;
  max-width: 600px;
}

form.contact-form label {
  font-weight: 600;
  color: var(--primary-dark);
  display: block;
  margin-bottom: 6px;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
}

form.contact-form button {
  justify-self: start;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: #d9e2da;
  padding: 40px 24px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 10px;
}

.site-footer a { color: #d9e2da; }
.site-footer a:hover { color: var(--accent); }

.footer-bottom {
  text-align: center;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: #b7c3b9;
}

/* Responsive */
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col > img:first-child { order: 2; }
  .two-col > img:first-child + div { order: 1; }
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open ul {
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }
  .hero h1 { font-size: 1.8rem; }
}
