/* CBA-NY — shared stylesheet */

:root {
  --white: #FFFFFF;
  --offwhite: #E0E0DB;
  --navy: #253551;
  --charcoal: #2A2829;
  --black: #000000;
  --sage-bg: #DCE5D3;
  --sage-text: #5B7052;
  --navy-light: #4E6C99;
  --icon-blue: #FFFFFF;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1200px;
}

* { box-sizing: border-box; }

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

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

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

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

/* ---------- Header ---------- */

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

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}

nav.main-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

nav.main-nav a {
  font-size: 0.98rem;
  color: var(--charcoal);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

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

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

@media (max-width: 860px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 14px 32px; border-bottom: 1px solid #f2f2f2; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */

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

.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 2.8rem;
  line-height: 1.15;
  margin: 0 0 24px;
}

.hero .tagline {
  font-size: 1.25rem;
  margin: 0;
  color: #DCE3EE;
}

.hero-side p {
  font-size: 1.15rem;
  margin: 0 0 28px;
}

.btn {
  display: inline-block;
  background: var(--navy-light);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

.btn:hover { background: #5E7DAA; }

.btn-block { display: block; width: 100%; text-align: center; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .hero h1 { font-size: 2.1rem; }
}

/* ---------- Section basics ---------- */

section { padding: 80px 0; }
section.tight { padding: 56px 0; }

@media (max-width: 600px) {
  section { padding: 48px 0; }
  section.tight { padding: 36px 0; }
}
.bg-offwhite { background: var(--offwhite); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-white { background: var(--white); }

.tag {
  display: inline-block;
  background: var(--sage-bg);
  color: var(--sage-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 18px;
}

h2.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--navy);
  margin: 0 0 14px;
}

.bg-navy h2.section-title, .contact-section h2.section-title { color: var(--white); }

.section-sub {
  font-style: italic;
  font-size: 1.15rem;
  color: #5a5a5a;
  margin: 0 0 40px;
  max-width: 760px;
}

.bg-navy .section-sub, .contact-section .section-sub { color: #C9D3E2; }

/* ---------- Pillars list (numbered) ---------- */

.pillars-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.pillar-row {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.pillar-num {
  flex: none;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  border-radius: 4px;
  color: var(--navy);
}

.pillar-row:nth-child(1) .pillar-num { background: #E7E7E2; }
.pillar-row:nth-child(2) .pillar-num { background: #D9E1EC; }
.pillar-row:nth-child(3) .pillar-num { background: #8C8C86; color: var(--white); }
.pillar-row:nth-child(4) .pillar-num { background: var(--navy); color: var(--white); }

.pillar-row h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 4px 0 6px;
  color: var(--navy);
}

.pillar-row p { margin: 0; color: #555; }

.pillar-wheel { display: flex; justify-content: center; position: relative; }
.pillar-wheel img { width: 100%; max-width: 440px; height: auto; }
.pillar-wheel-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 44%;
}
.pillar-wheel-text .label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 4px;
}
.pillar-wheel-text .main {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
  line-height: 1.15;
}
.pillar-wheel-text .sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--sage-text);
  line-height: 1.15;
}

@media (max-width: 860px) {
  .pillars-layout { grid-template-columns: 1fr; }
}

/* ---------- Card grids ---------- */

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

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

@media (max-width: 900px) {
  .card-grid, .card-grid.cols-2, .card-grid.cols-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: 8px;
  padding: 32px;
}

.bg-navy .card.foundation-card { background: #DDE2ED; }
.bg-navy .card.foundation-card.alt-grey { background: #EAE9E5; }
.bg-navy .card.foundation-card h3 { color: var(--navy); }
.bg-navy .card.foundation-card p { color: #555; }

.card .icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--navy);
}

.card .icon svg { width: 34px; height: 34px; }

.card .icon.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #5C7A9E;
  color: var(--white);
}

.card .icon.icon-badge svg { width: 20px; height: 20px; }

.card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: var(--navy);
}

.card p { margin: 0; color: #555; font-size: 0.98rem; }

.card.alt-a { background: #E9E9E5; }
.card.alt-b { background: #E3E9F1; }

.card .card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.card .card-head svg { width: 30px; height: 30px; flex: none; }
.card .card-head h3 { margin: 0; }
.card.alt-a h3, .card.alt-b h3 { color: var(--navy); }
.card .card-head.blue-title h3 { color: #4E77A8; }

/* Detail cards (pillar deep-dive, 2x2) */

.detail-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 36px;
  text-align: center;
}

.detail-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--navy);
  margin: 0 0 8px;
}

.detail-card .sub {
  font-style: italic;
  color: #666;
  margin: 0 0 20px;
}

.detail-card .icon-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #D6E1EF;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.detail-card .icon-circle svg { width: 42px; height: 42px; }

.detail-card .icon-caption {
  font-size: 0.82rem;
  font-weight: 700;
  color: #777;
  margin-bottom: 20px;
}

.detail-item { text-align: left; margin-bottom: 16px; }
.detail-item h4 { margin: 0 0 4px; font-size: 0.98rem; color: var(--navy); }
.detail-item p { margin: 0; font-size: 0.92rem; color: #555; }

.carousel-dots { display: none; }

@media (max-width: 768px) {
  .card-grid.cols-2 {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px;
    margin: 0 -32px;
    padding: 4px 32px 8px;
  }
  .card-grid.cols-2::-webkit-scrollbar { display: none; }
  .card-grid.cols-2 .detail-card {
    flex: 0 0 86%;
    scroll-snap-align: center;
  }

  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
  }
  .carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d5d5cf;
    transition: background 0.2s;
  }
  .carousel-dots .dot.active { background: var(--navy); }
}

/* ---------- Outcomes stat cards ---------- */

.stat-card {
  border-radius: 8px;
  padding: 40px 28px;
  text-align: center;
}

.stat-card:nth-child(1) { background: #DCE3EE; }
.stat-card:nth-child(2) { background: #EDEDE8; }
.stat-card:nth-child(3) { background: #DCE3EE; }

.stat-card .stat {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--navy);
  margin: 0 0 6px;
}

.stat-card .stat-label {
  font-style: italic;
  color: #666;
  margin: 0 0 16px;
  font-size: 0.95rem;
}

.stat-card hr {
  border: none;
  border-top: 2px solid var(--navy);
  width: 40px;
  margin: 0 auto 16px;
}

.stat-card p.detail { margin: 0; color: #444; font-size: 0.95rem; }

/* ---------- Problem section ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 860px) {
  .problem-grid { grid-template-columns: 1fr; }
}

.problem-card {
  border-radius: 8px;
  padding: 32px;
}

.problem-card:nth-child(1) { background: #DCE3EE; }
.problem-card:nth-child(2) { background: #EDEDE8; }

.problem-card h3 { font-family: var(--serif); color: var(--navy); margin: 8px 0 14px; }
.problem-card p, .problem-card li { color: #444; }
.problem-card ul { padding-left: 20px; margin: 10px 0 0; }
.problem-card li { margin-bottom: 8px; }

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
}

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

.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  border: 4px solid var(--offwhite);
}

.team-card h3 {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.15rem;
  margin: 0 0 4px;
}

.team-card .credentials {
  font-size: 0.85rem;
  color: #555;
  letter-spacing: 0.03em;
  margin: 0 0 4px;
}

.team-card .role {
  font-style: italic;
  color: var(--navy);
  margin: 0 0 14px;
  font-size: 0.95rem;
}

.team-card p.bio {
  text-align: left;
  font-size: 0.92rem;
  color: #4a4a4a;
}

/* ---------- Schedule / instruction blocks ---------- */

.info-block {
  background: var(--offwhite);
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 40px;
}

.info-block h3 {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.8rem;
  margin: 0 0 20px;
}

.info-block p { margin: 0 0 16px; }
.info-block p:last-child { margin-bottom: 0; }

.day-group-label {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 16px;
}

.timeline { margin-bottom: 28px; }
.timeline:last-child { margin-bottom: 0; }

.timeline-item {
  background: var(--white);
  border-left: 3px solid var(--navy-light);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-time {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--navy);
  background: #D6E1EF;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.timeline-item h4 {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.timeline-item p { margin: 0; color: #555; font-size: 0.95rem; }

table.instruction-plan {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.92rem;
}

table.instruction-plan caption {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 12px;
  text-align: left;
}

table.instruction-plan th,
table.instruction-plan td {
  border: 1px solid #ccc;
  padding: 10px 12px;
  text-align: left;
}

table.instruction-plan thead th { background: #d8d8d3; }
table.instruction-plan .subject-header { background: #d8d8d3; font-weight: 700; }

.footnote { font-size: 0.82rem; color: #777; margin-top: 12px; }

@media (max-width: 640px) {
  table.instruction-plan, table.instruction-plan tbody, table.instruction-plan tr, table.instruction-plan td {
    display: block;
    width: 100%;
  }
  table.instruction-plan thead { display: none; }
  table.instruction-plan tr.subject-header-row { display: none; }
  table.instruction-plan tbody tr {
    border: 1px solid #d5d5d0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
  }
  table.instruction-plan tbody tr:last-child { margin-bottom: 0; }
  table.instruction-plan td {
    border: none;
    padding: 6px 0;
  }
  table.instruction-plan td::before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a8a85;
    margin-bottom: 2px;
  }
  table.instruction-plan td[data-label="Subject"] {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--navy);
    font-weight: 700;
  }
}

/* ---------- Curriculum icon grid ---------- */

.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}

@media (max-width: 860px) {
  .subject-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .subject-grid { grid-template-columns: 1fr; }
}

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

.subject-item .icon-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #D6DBE7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--navy);
}

.subject-item .icon-circle svg { width: 50px; height: 50px; }

.subject-item h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--charcoal);
  margin: 0 0 10px;
}

.subject-item p { margin: 0; color: #555; font-size: 0.93rem; }

/* ---------- Values list ---------- */

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
  margin-top: 32px;
}

@media (max-width: 700px) {
  .values-grid { grid-template-columns: 1fr; }
}

.value-item {
  border-left: 3px solid var(--navy);
  padding-left: 18px;
}

.value-item h4 {
  font-family: var(--serif);
  color: var(--navy);
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.value-item p { margin: 0; color: #555; font-size: 0.93rem; }

/* ---------- Contact form ---------- */

.contact-section {
  background: var(--navy);
  color: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-info h2 { font-family: var(--serif); font-size: 2.2rem; margin: 0 0 20px; }
.contact-info p { color: #DCE3EE; margin: 0 0 28px; }

.contact-detail { margin-bottom: 20px; }
.contact-detail .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9FB0C8;
  margin-bottom: 4px;
}
.contact-detail .value { font-size: 1.05rem; }

form.contact-form { display: flex; flex-direction: column; gap: 18px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: #DCE3EE;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.95rem;
}

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

.field input::placeholder,
.field textarea::placeholder { color: #8FA0B8; }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--charcoal);
  color: #cfcfcf;
  padding: 48px 0 28px;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-inner .brand-name { color: var(--white); }

footer.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site-footer nav a { color: #cfcfcf; }
footer.site-footer nav a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #999;
  font-size: 0.82rem;
}
