/* St. Cecilia Education Centre - change colours here */
:root {
  --navy: #111a33;   /* blue-black, like the uniform */
  --blue: #1f2f5c;   /* lighter navy for hover */
  --light: #eef0f5;  /* pale background for alternate sections */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.6; color: #222; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 12px; }
h3 { font-size: 1.05rem; margin-top: 10px; }

.container { width: min(1100px, 100% - 32px); margin: 0 auto; }
.narrow { max-width: 760px; }
.section { padding: 56px 0; }
.alt { background: var(--light); }

.btn { display: inline-block; background: var(--navy); color: #fff; padding: 10px 20px; border-radius: 4px; text-decoration: none; font-weight: bold; }
.btn:hover { background: var(--blue); }
.hero .btn { background: #fff; color: var(--navy); }

/* Header */
.site-header { background: #fff; border-bottom: 4px solid var(--navy); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: bold; color: var(--navy); text-decoration: none; }
nav { display: flex; gap: 22px; }
nav a { text-decoration: none; color: #222; font-weight: bold; }
nav a:hover { color: var(--blue); text-decoration: underline; }
.nav-toggle { display: none; background: var(--navy); color: #fff; border: 0; padding: 8px 14px; border-radius: 4px; font: inherit; }

/* Hero */
.hero { background: var(--navy) center/cover no-repeat; min-height: 65vh; display: flex; align-items: flex-end; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), transparent 60%); }
.hero .container { position: relative; padding-bottom: 40px; color: #fff; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: 4px; }

/* Layouts */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.two-col img { border-radius: 4px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-4 img { border-radius: 4px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 4px; }
.map { width: 100%; height: 300px; border: 0; border-radius: 4px; }

footer { background: var(--navy); color: #c9cfdc; text-align: center; padding: 20px 0; font-size: .9rem; }

/* Phones */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; border-bottom: 4px solid var(--navy); }
  nav.open { display: flex; }
  nav a { padding: 12px 16px; border-top: 1px solid #eee; }
  .brand { font-size: .95rem; }
  .two-col { grid-template-columns: 1fr; }
  .grid-4, .gallery { grid-template-columns: 1fr 1fr; }
  .section { padding: 40px 0; }
}
