/* Concord Academy — shared stylesheet */

:root {
  --primary: #3FA9D8;
  --navy: #2C5F7C;
  --gold: #F5C842;
  --light-blue: #A8D8EA;
  --light-blue-bg: #EBF6FB;
  --white: #FFFFFF;
  --ink: #223142;
  --gray: #5B6B7A;
  --border: #DCEAF2;

  --font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1140px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(44, 95, 124, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--gray); }

.eyebrow {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--primary);
  background: var(--light-blue-bg);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(245, 200, 66, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(245, 200, 66, 0.45); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--light-blue-bg); }

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 68px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

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

.header-cta { display: flex; align-items: center; gap: 20px; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--primary) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

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

.hero p.lead {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  max-width: 46ch;
}

.hero .eyebrow {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art img {
  max-width: 320px;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.2));
}

.hero-logo-card {
  grid-column: 1 / -1;
  order: -2;
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.hero-logo-card img {
  height: 150px;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.22));
}

/* Sections */
section { padding: 72px 0; }

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

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

/* Cards grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

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

.card .icon-wrap {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  background: var(--light-blue-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card .icon-wrap img { width: 60px; height: 60px; object-fit: contain; }

/* Some Penny poses have more built-in padding around the character than
   others, so they need a larger box to read as the same visual size. */
.card .icon-wrap img.icon-boost { width: 84px; height: 84px; }

/* Why / differentiators list */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 600;
}
.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px;
}

/* Testimonial */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow);
}
.testimonial-card .quote-mark {
  font-size: 2.6rem;
  color: var(--gold);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}
.testimonial-card .name {
  color: var(--navy);
  font-weight: 800;
  margin-top: 14px;
}
.testimonial-card .role {
  color: var(--gray);
  font-size: 0.9rem;
}

/* CTA band */
.cta-band {
  background: var(--gold);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
}
.cta-band h2 { color: var(--navy); margin-bottom: 10px; }
.cta-band p { color: #6b5c1f; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-footer a {
  color: rgba(255,255,255,0.75);
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.site-footer a:hover { color: var(--gold); }

.footer-social-link { display: flex; align-items: center; gap: 6px; }
.footer-social-link svg { width: 16px; height: 16px; flex-shrink: 0; position: relative; top: 4px; }

.footer-logo-wrap {
  display: inline-flex;
  background: var(--white);
  padding: 14px 22px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.footer-logo { height: 52px; display: block; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* Interior page header */
.page-header {
  background: linear-gradient(160deg, var(--primary) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.page-header .eyebrow { background: rgba(255,255,255,0.15); color: var(--white); }
.page-header h1 { color: var(--white); margin-bottom: 10px; }
.page-header p { color: rgba(255,255,255,0.9); max-width: 60ch; margin: 0 auto; }

/* Tag pill (grade bands, course labels) */
.tag {
  display: inline-block;
  background: var(--light-blue-bg);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* Accordion (FAQ) */
.accordion { max-width: 780px; margin: 0 auto; }
.accordion details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 14px;
}
.accordion summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 400;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details p { margin-top: 14px; margin-bottom: 0; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.contact-card .icon-wrap { margin: 0 auto 16px; }
.contact-card .value {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.05rem;
}
.contact-card .value svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.assessment-form {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-field { margin-bottom: 20px; }
.form-field:last-child { margin-bottom: 0; }
.form-field label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  transition: border-color 0.15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-field textarea { resize: vertical; }
.assessment-form button[type="submit"] {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.assessment-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.form-status {
  text-align: center;
  font-weight: 700;
  padding: 16px;
  border-radius: 10px;
  margin: 0;
}
.form-status.success {
  color: var(--navy);
  background: var(--light-blue-bg);
}
.form-status.error {
  color: #B3261E;
  background: #FBEAEA;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.map-frame iframe { width: 100%; height: 360px; border: 0; display: block; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.placeholder-note {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray);
  background: var(--light-blue-bg);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 28px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 200px; }
  .grid-3, .grid-2, .contact-grid, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .assessment-form { padding: 28px 20px; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; top: 78px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--border); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all 0.2s ease; }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; }
  .header-cta .btn-outline { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
