/* ==========================================================================
   CINEC Learning Resource Center — library.cinec.edu
   Palette: mostly white, CINEC blue (primary), cool sea-green (accent)
   Fonts:   Montserrat (headings, bold) + Source Sans 3 (body)
   Rules:   no text-shadow anywhere; motion kept small and optional
   ========================================================================== */

:root {
  --blue: #005a96;          /* CINEC logo blue */
  --blue-dark: #003e69;
  --blue-deep: #002b4a;
  --blue-soft: #eef4f9;
  --green: #2e8b74;         /* cool, reader-friendly accent */
  --green-dark: #22705d;
  --green-soft: #e9f4f0;
  --ink: #1b2a38;
  --text: #34495c;
  --muted: #627485;
  --line: #dde6ee;
  --white: #ffffff;
  --paper: #f7fafc;

  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --radius: 6px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { text-shadow: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue); color: #fff; padding: .6rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Top bar ---------- */
.topbar { background: var(--blue-deep); color: #cfe0ee; font-size: .875rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #bfe6da; }
.topbar-list { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.topbar-list li { display: flex; align-items: center; gap: .45rem; }
.status-pill { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa9b6; }
.status-pill.is-open .status-dot { background: #5fd3a8; animation: pulse 2.4s ease-in-out infinite; }
.status-pill.is-closed .status-dot { background: #e48a7c; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(0, 43, 74, .08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); }
.brand img { height: 46px; width: auto; }
.brand-text { border-left: 2px solid var(--green); padding-left: .9rem; line-height: 1.2; }
.brand-text strong { display: block; white-space: nowrap; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--blue); }
.brand-text span { font-size: .8rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .15rem; align-items: center; }
.main-nav a {
  display: block; padding: .55rem .7rem; text-decoration: none; white-space: nowrap;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink);
  border-radius: var(--radius); position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .25rem; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--blue); }
.main-nav .nav-cta a { background: var(--blue); color: #fff; padding: .6rem 1rem; margin-left: .5rem; }
.main-nav .nav-cta a::after { display: none; }
.main-nav .nav-cta a:hover { background: var(--blue-dark); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 44px; height: 44px; cursor: pointer; color: var(--ink); align-items: center; justify-content: center;
}

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  }
  .main-nav.is-open { max-height: 80vh; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1.25rem; }
  .main-nav a { padding: .8rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a::after { display: none; }
  .main-nav .nav-cta a { margin: 1rem 0 0; text-align: center; border-radius: var(--radius); }
}
@media (max-width: 520px) {
  .brand img { height: 36px; }
  .brand { gap: .6rem; }
  .brand-text { padding-left: .6rem; }
  .brand-text strong { font-size: .82rem; white-space: normal; max-width: 9.5em; }
  .brand-text span { display: none; }
  .topbar-list .hide-sm { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--blue); }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--blue-deep); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 43, 74, .94) 0%, rgba(0, 62, 105, .84) 45%, rgba(0, 62, 105, .35) 100%);
}
.hero .container { position: relative; padding-top: clamp(4rem, 10vw, 7.5rem); padding-bottom: clamp(4rem, 10vw, 7.5rem); }
.hero-content { max-width: 640px; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 1rem;
}
.hero .eyebrow { color: #8fd8c0; }
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero p.lead { font-size: 1.2rem; color: #dbe8f2; max-width: 560px; margin-bottom: 2rem; }

/* Catalogue search */
.catalogue-search {
  display: flex; background: #fff; border-radius: var(--radius); overflow: hidden; max-width: 560px; margin-bottom: 1.4rem;
}
.catalogue-search label { position: absolute; left: -9999px; }
.catalogue-search input {
  flex: 1; border: 0; padding: 1rem 1.1rem; font: inherit; color: var(--ink); min-width: 0;
}
.catalogue-search input:focus { outline: none; }
.catalogue-search button {
  border: 0; background: var(--green); color: #fff; padding: 0 1.3rem; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; display: flex; align-items: center; gap: .5rem;
}
.catalogue-search button:hover { background: var(--green-dark); }
.catalogue-search:focus-within { outline: 3px solid var(--green); outline-offset: 2px; }

/* ---------- Page header (inner pages) ---------- */
.page-hero { position: relative; color: #fff; background: var(--blue-deep); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 43, 74, .93), rgba(0, 62, 105, .72)); }
.page-hero .container { position: relative; z-index: 1; padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #dbe8f2; max-width: 640px; font-size: 1.12rem; margin: 0; }
.breadcrumb { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0 0 1rem; font-size: .88rem; color: #b8cfe0; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: #7fa3bf; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tint { background: var(--paper); }
.section-blue { background: var(--blue-soft); }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.rule { width: 56px; height: 3px; background: var(--green); border: 0; margin: 0 0 1.2rem; }
.section-head.center .rule { margin-left: auto; margin-right: auto; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.photo-frame { position: relative; }
.photo-frame img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo-frame::before {
  content: ""; position: absolute; left: -14px; bottom: -14px; width: 45%; height: 55%;
  border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); border-radius: 0 0 0 var(--radius);
}
.photo-frame figcaption { font-size: .88rem; color: var(--muted); margin-top: .7rem; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list .icon { color: var(--green); margin-top: .25em; }
.check-list.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
@media (max-width: 640px) { .check-list.cols { grid-template-columns: 1fr; } }

/* ---------- Quick access strip ---------- */
.quick-strip { background: #fff; border-bottom: 1px solid var(--line); }
.quick-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.quick-grid a {
  display: flex; flex-direction: column; gap: .35rem; padding: 1.4rem 1.1rem; text-decoration: none; color: var(--ink);
  border-right: 1px solid var(--line); transition: background-color .2s;
}
.quick-grid a:first-child { border-left: 1px solid var(--line); }
.quick-grid a:hover { background: var(--green-soft); }
.quick-grid .icon { color: var(--green); width: 1.6rem; height: 1.6rem; margin-bottom: .2rem; }
.quick-grid strong { font-family: var(--font-head); font-size: .92rem; font-weight: 700; }
.quick-grid span { font-size: .84rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 980px) { .quick-grid { grid-template-columns: repeat(3, 1fr); } .quick-grid a { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } .quick-grid a:nth-child(odd) { border-left: 1px solid var(--line); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.stat { border-top: 3px solid var(--blue); padding-top: .9rem; }
.stat strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; color: var(--blue); line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--muted); }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .card-grid, .card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .card-grid, .card-grid.two, .card-grid.four { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem;
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
  display: flex; flex-direction: column;
}
.card:hover { border-color: #b9cfe0; transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 43, 74, .07); }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius); background: var(--green-soft); color: var(--green);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem;
}
.card-icon .icon { width: 24px; height: 24px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text); font-size: 1rem; margin-bottom: .8rem; }
.card .card-link { margin-top: auto; font-family: var(--font-head); font-weight: 600; font-size: .88rem; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.card .card-link .icon { transition: transform .2s var(--ease); }
.card .card-link:hover .icon { transform: translateX(4px); }
.card ul { margin: 0 0 .8rem; padding-left: 1.1em; font-size: .98rem; }
.card ul li { margin-bottom: .2rem; }
.card-num { font-family: var(--font-head); font-weight: 700; font-size: .78rem; color: var(--green); letter-spacing: .1em; margin-bottom: .4rem; }

/* ---------- Service groups ---------- */
.service-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.service-nav a {
  padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--ink); background: #fff;
}
.service-nav a:hover { border-color: var(--green); color: var(--green-dark); }
.service-group { scroll-margin-top: 110px; }
.service-group + .service-group { margin-top: 4rem; }
.group-title { display: flex; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .8rem; margin-bottom: 1.6rem; }
.group-title h2 { margin: 0; font-size: 1.5rem; }
.group-title span { color: var(--muted); font-size: .95rem; }
.service-item { scroll-margin-top: 110px; }

/* ---------- Hours ---------- */
.hours-card { background: var(--blue); color: #fff; border-radius: var(--radius); padding: 2rem; }
.hours-card h3 { color: #fff; display: flex; align-items: center; gap: .6rem; }
.hours-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.2rem; }
.hours-table th, .hours-table td { text-align: left; padding: .75rem 0; border-bottom: 1px solid rgba(255, 255, 255, .2); font-weight: 400; }
.hours-table td { text-align: right; font-family: var(--font-head); font-weight: 600; white-space: nowrap; padding-left: 1rem; }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: #8fe0c5; }
.hours-card .note { font-size: .92rem; color: #cfe0ee; margin: 0; }
.hours-card .status-pill { background: rgba(255, 255, 255, .12); padding: .35rem .8rem; border-radius: 999px; font-size: .88rem; }

.hours-table.light th, .hours-table.light td { border-color: var(--line); color: var(--ink); }
.hours-table.light tr.is-today th, .hours-table.light tr.is-today td { color: var(--green-dark); }

/* ---------- Librarian ---------- */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.profile-photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: var(--blue-soft); }
.profile-photo { position: relative; }
.profile-photo::after { content: ""; position: absolute; right: -12px; top: 12px; bottom: -12px; left: 12px; border: 2px solid var(--green); border-radius: var(--radius); z-index: -1; }
.profile-role { font-family: var(--font-head); font-weight: 600; color: var(--green-dark); margin-bottom: .2rem; }
.profile-quals { color: var(--muted); font-size: 1rem; margin-bottom: 1.4rem; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.tag-list li { background: var(--green-soft); color: var(--green-dark); padding: .4rem .85rem; border-radius: 999px; font-size: .9rem; font-weight: 600; }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } .profile-photo { max-width: 300px; } }

.librarian-teaser { display: grid; grid-template-columns: 180px 1fr; gap: 2rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.librarian-teaser img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
@media (max-width: 600px) { .librarian-teaser { grid-template-columns: 1fr; } .librarian-teaser img { max-width: 160px; } }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .icon-wrap { width: 42px; height: 42px; flex: none; border-radius: var(--radius); background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.contact-list small { display: block; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.contact-list a, .contact-list span { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--green-dark); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem); }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; }
.tabs button {
  border: 0; background: none; padding: .8rem 1rem; cursor: pointer; font-family: var(--font-head); font-weight: 600;
  font-size: .9rem; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tabs button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--green); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: .35rem; }
.field label .req { color: #b4473a; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: .75rem .9rem;
  border: 1px solid #c8d5e0; border-radius: var(--radius); background: #fff; transition: border-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(46, 139, 116, .18); }
.form-note { font-size: .9rem; color: var(--muted); margin: 1rem 0 0; }
.doc-fields[hidden] { display: none; }

/* ---------- News ---------- */
.empty-state {
  text-align: center; border: 1px dashed #bcd0df; border-radius: var(--radius); padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; background: #fff;
}
.empty-state .icon { width: 44px; height: 44px; color: var(--green); margin: 0 auto 1rem; }
.empty-state h3 { margin-bottom: .4rem; }
.empty-state p { color: var(--muted); max-width: 520px; margin: 0 auto 1.4rem; }

/* ---------- Resource list ---------- */
.res-card { position: relative; }
.res-card .res-url { font-size: .85rem; color: var(--muted); word-break: break-all; margin-bottom: 1rem; }
.badge {
  display: inline-block; font-size: .72rem; font-family: var(--font-head); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px; background: var(--blue-soft); color: var(--blue); margin-bottom: .8rem; align-self: flex-start;
}
.badge.pending { background: #fff4e0; color: #8a5a00; }
.is-pending { cursor: default; }
.is-pending .card-link { color: var(--muted); pointer-events: none; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; display: block; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }
.gallery .wide { grid-column: span 2; grid-row: span 2; }
.gallery .wide img { aspect-ratio: auto; height: 100%; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(0, 20, 36, .92);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
  opacity: 0; visibility: hidden; transition: opacity .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1100px, 100%); max-height: 85vh; border-radius: var(--radius); }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ---------- Commitment band ---------- */
.commitment { position: relative; background: var(--green); color: #fff; overflow: hidden; }
.commitment .container { position: relative; padding-top: clamp(3.5rem, 7vw, 5rem); padding-bottom: clamp(3.5rem, 7vw, 5rem); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.commitment h2 { color: #fff; }
.commitment p { color: #e3f3ed; max-width: 720px; margin: 0; font-size: 1.1rem; }
.commitment .eyebrow { color: #c9eee1; }
.commitment::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, .06);
}
@media (max-width: 760px) { .commitment .container { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-deep); color: #b9cddd; font-size: .96rem; }
.site-footer a { color: #e2edf5; text-decoration: none; }
.site-footer a:hover { color: #8fe0c5; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; padding: 4rem 0 3rem; }
.footer-main h4 { color: #fff; font-size: .95rem; margin-bottom: 1.1rem; letter-spacing: .02em; }
.footer-main ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-logo { height: 52px; width: auto; margin-bottom: 1.1rem; }
.footer-tagline { font-family: var(--font-head); font-weight: 600; color: #fff; margin-bottom: .6rem; }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .1); padding-bottom: .45rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.3rem 0; font-size: .86rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 980px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--blue); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease), background-color .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--green); }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .07s; }
.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .14s; }
.js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .21s; }
.js .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .28s; }
.js .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .35s; }
.js .reveal-stagger.is-visible > *:nth-child(n+7) { transition-delay: .42s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.text-muted { color: var(--muted); }
.lead { font-size: 1.15rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
