/* Custom font (from flyer) */
@font-face{
  font-family: "Antropos";
  src: url("assets/fonts/AntroposFreefont-BW2G.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Rising Bay School — super-simple static site
   Update colors in :root if you’d like.
*/

:root{
  --bg: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, .12);
  --surface: #f7f4ef;     /* warm sand */
  --surface2:#eef6f4;     /* soft sea-glass */
  --accent:#0f4c5c;       /* deep teal */
  --accent2:#7a4f2b;      /* warm brown */
  --shadow: 0 12px 30px rgba(15, 23, 42, .10);
  --radius: 18px;
  --max: 1100px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img{ max-width: 100%; display: block; border-radius: var(--radius); }
a{ color: inherit; text-decoration: none; }
p{ margin: 0 0 1rem 0; }
h1,h2,h3{ line-height: 1.15; margin: 0 0 .75rem 0; }
h1{ font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.02em; }
h2{ font-size: clamp(1.35rem, 2.2vw, 2rem); }
h3{ font-size: 1.1rem; }

.container{
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  padding: .75rem 1rem;
  background: var(--ink);
  color: white;
  border-radius: 10px;
}
.skip-link:focus{ left: 1rem; top: 1rem; z-index: 9999; }

.topbar{
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.topbar-inner{
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: .8rem 0;
}
.brand{
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 220px;
}
.brand-mark{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: .03em;
}
.brand-text span{
  display: block;
  font-size: .82rem;
  color: var(--muted);
  margin-top: .15rem;
}
.nav{
  display: none;
  gap: .9rem;
  font-size: .95rem;
  color: var(--muted);
}
.nav a{ padding: .35rem .2rem; border-bottom: 2px solid transparent; }
.nav a:hover{ color: var(--ink); border-bottom-color: rgba(15,76,92,.35); }

@media (min-width: 980px){
  .nav{ display: flex; }
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .72rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  cursor: pointer;
  transition: transform .05s ease, opacity .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: var(--accent);
  color: white;
}
.btn-secondary{
  background: rgba(15,76,92,.08);
  border-color: rgba(15,76,92,.18);
  color: var(--ink);
}
.btn-tertiary{
  background: rgba(122,79,43,.10);
  border-color: rgba(122,79,43,.18);
}
.btn .small{
  font-size: .78rem;
  opacity: .85;
  font-weight: 600;
}
.btn.disabled{
  opacity: .92;
}
.section{
  padding: 4.25rem 0;
}
.section.alt{
  background: linear-gradient(180deg, var(--surface) 0%, #fff 100%);
}
.hero{
  padding: 3.5rem 0 2.5rem 0;
  background: linear-gradient(180deg, var(--surface2) 0%, #fff 80%);
}
.hero-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media(min-width: 900px){
  .hero-grid{ grid-template-columns: 1.1fr .9fr; gap: 2.5rem; }
}
.kicker{
  color: var(--accent2);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: .85rem;
  margin-bottom: .7rem;
}
.subtitle{
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
}
.hero-cta{
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 1.25rem 0 1rem 0;
}
.pill-row{
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.pill-row li{
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.7);
  color: var(--muted);
  font-size: .9rem;
}

.seo-note{
  font-size: .95rem;
  color: var(--muted);
  border-left: 3px solid rgba(15,76,92,.35);
  padding-left: .9rem;
}

.hero-media img{
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.two-col{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media(min-width: 900px){
  .two-col{ grid-template-columns: 1fr 1fr; gap: 1.75rem; }
}

.card{
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem;
  box-shadow: 0 1px 0 rgba(15,23,42,.03);
}
.card ul{
  margin: .6rem 0 0 1.1rem;
  color: var(--muted);
}
.cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media(min-width: 900px){
  .cards{ grid-template-columns: 1fr 1fr; }
}
.muted{ color: var(--muted); }
.media figcaption{ margin-top: .6rem; font-size: .92rem; }

.callout{
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(15,76,92,.35);
  background: rgba(15,76,92,.06);
}
.inline-actions{
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .75rem;
}

.note{
  margin-top: 1.3rem;
  color: var(--muted);
}

.dates{
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.dates li{ margin: .35rem 0; }

.stack{
  display: grid;
  gap: .6rem;
  margin-top: .9rem;
}

.faq{
  margin-top: 2rem;
}
details{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .8rem 1rem;
  background: rgba(255,255,255,.65);
  margin-bottom: .7rem;
}
summary{
  cursor: pointer;
  font-weight: 700;
}
.footer-note{
  margin-top: 2rem;
  color: var(--muted);
  font-size: .92rem;
  text-align: center;
}

/* Use Antropos for key titles / section labels */
.brand-text strong,
.nav a,
h1, h2{
  font-family: "Antropos", ui-serif, Georgia, "Times New Roman", Times, serif;
  letter-spacing: .01em;
}


/* --- Added for schedules + tuition (keeps existing look) --- */
.schedule-block{
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(15,76,92,.18);
  background: rgba(15,76,92,.06);
}
.schedule-title{
  margin: 0 0 .65rem 0;
  font-size: 1.02rem;
  font-weight: 800;
}
.schedule-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .5rem;
}
.schedule-list li{
  padding: .65rem .8rem;
  border-radius: 14px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--border);
  color: var(--muted);
}
.schedule-list strong{
  color: var(--ink);
  font-weight: 800;
}
.schedule-note{
  margin-top: .65rem;
  margin-bottom: 0;
}
.card.inset{
  margin-top: 1rem;
  background: rgba(255,255,255,.75);
}
.price-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
@media (max-width: 520px){
  .price-grid{ grid-template-columns: 1fr; }
}
.price-item{
  padding: .85rem .9rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.7);
}
.price{
  font-size: 1.25rem;
  font-weight: 850;
  margin-top: .2rem;
}
/* --------------------------------------------------------- */



/* --- Image sizing improvements --- */
.hero-media img{
  max-height: 420px;
  object-fit: cover;
  width: 100%;
}

.media img{
  max-height: 380px;
  width: 100%;
  object-fit: cover;
}

.cards .media img{
  max-height: 320px;
}

.two-col{
  align-items: start;
}

figure.media{
  margin: 0;
}

.media{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.media img{
  border-radius: 18px;
}

@media (max-width: 900px){
  .hero-media img,
  .media img{
    max-height: none;
  }
}
/* --- End image sizing improvements --- */



/* --- Specific layout tweaks requested --- */
img.img-top{
  object-position: 50% 0%;
}

.why-media img{
  max-height: 260px;
  object-fit: cover;
  width: 100%;
}
/* --------------------------------------- */



/* --- Faculty section --- */
.faculty-grid{
  display: grid;
  gap: 1.25rem;
}
.faculty-card{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  align-items: start;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: 0 1px 0 rgba(15,23,42,.03);
}
.faculty-photo{
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.faculty-placeholder{
  background: linear-gradient(135deg, rgba(15,76,92,.10), rgba(122,79,43,.08));
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 1rem;
  font-weight: 700;
}
.faculty-copy h3{
  margin-bottom: .65rem;
}
.faculty-copy p:last-child{
  margin-bottom: 0;
}
@media (max-width: 780px){
  .faculty-card{
    grid-template-columns: 1fr;
  }
  .faculty-photo{
    max-width: 280px;
  }
}
/* --- End faculty section --- */



/* --- final image mapping tweaks --- */
.why-media img{
  object-position: center center;
}
.hero-media img{
  object-position: center center;
}
#programs > .container > .media img{
  max-height: 300px;
}
#contact .media img{
  max-height: 360px;
  object-position: center center;
}
/* --- end final image mapping tweaks --- */



/* --- faculty portrait images --- */
.faculty-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.faculty-card:nth-child(2) .faculty-photo img{
  object-position: center center;
}
.faculty-card:nth-child(3) .faculty-photo img{
  object-position: center 18%;
}
/* --- end faculty portrait images --- */
