/* =========================================================
   St. Xavier's Public School - Public website styles
   Palette: #F4D06F  #FF8811  #9DD9D2  #FFF8F0  #392F5A
   Fonts:   Teko (headings) + Barlow Semi Condensed (body)
   ========================================================= */

:root {
  --yellow: #F4D06F;
  --yellow-soft: #fbeec4;
  --orange: #FF8811;
  --orange-dark: #e87400;
  --teal: #9DD9D2;
  --teal-soft: #e3f4f2;
  --cream: #FFF8F0;
  --purple: #392F5A;
  --purple-2: #4b4075;
  --ink: #2a2342;
  --text: #463f5e;
  --muted: #736c8a;
  --line: #eee3d4;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(57, 47, 90, .08);
  --shadow-lg: 0 20px 50px rgba(57, 47, 90, .14);
  --font-head: 'Teko', 'Barlow Semi Condensed', sans-serif;
  --font-body: 'Barlow Semi Condensed', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--purple); font-weight: 500; line-height: 1.05; margin: 0 0 .4em; letter-spacing: .3px; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hide-sm { display: inline-flex; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-size: 16px; font-weight: 600; letter-spacing: .2px;
  cursor: pointer; transition: all .2s ease; white-space: nowrap; line-height: 1.2;
}
.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-sm { padding: 7px 14px; font-size: 14px; gap: 7px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-2); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--orange); color: var(--purple); }
.btn-accent:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--purple); color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: #fff; }
.btn-disabled { background: #eee8df; color: var(--muted); cursor: default; }
.btn-view { background: var(--purple); color: #fff; }
.btn-view:hover { background: var(--purple-2); color: #fff; }
.btn-download { background: var(--yellow); color: var(--purple); }
.btn-download:hover { background: var(--orange); color: var(--purple); }

/* ---------------- Top bar ---------------- */
.topbar { background: var(--purple); color: #eae6f5; font-size: 14.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.topbar a, .topbar span { color: #eae6f5; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--yellow); }
.topbar i { color: var(--yellow); }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-right { display: flex; gap: 18px; align-items: center; }
.topbar .aff b { font-weight: 600; color: #fff; }
.socials { display: inline-flex; gap: 6px; }
.socials a { width: 28px; height: 28px; border-radius: 50%; justify-content: center; background: rgba(255,255,255,.08); }
.socials a:hover { background: var(--orange); }
.socials a:hover i { color: var(--purple); }

/* ---------------- Header ---------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(57,47,90,.10); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
.brand-logo { height: 54px; width: auto; }
.brand-mark { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--purple), var(--purple-2)); color: var(--yellow); font-size: 24px; box-shadow: 0 6px 16px rgba(57,47,90,.25); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-family: var(--font-head); font-size: 27px; font-weight: 500; color: var(--purple); line-height: 1; letter-spacing: .4px; white-space: nowrap; }
.brand-text small { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: .6px; text-transform: uppercase; }

.main-nav { display: flex; gap: 4px; }
.main-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 16px; color: var(--ink); }
.main-nav a i { font-size: 13px; color: var(--orange); }
.main-nav a:hover, .main-nav a.active { background: var(--cream); color: var(--purple); }
.main-nav a.active { box-shadow: inset 0 -2px 0 var(--orange); }

.btn-disclosure {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 12px;
  background: var(--orange); color: var(--purple);
  font-weight: 700; font-size: 16px; letter-spacing: .3px; text-transform: uppercase; line-height: 1.1;
  box-shadow: 0 8px 20px rgba(255,136,17,.35); border: 2px solid var(--orange);
  transition: all .2s ease; white-space: nowrap;
}
.btn-disclosure i { font-size: 19px; }
.btn-disclosure:hover, .btn-disclosure.is-current { background: var(--purple); color: #fff; border-color: var(--purple); box-shadow: 0 8px 20px rgba(57,47,90,.3); }
.btn-disclosure:hover i, .btn-disclosure.is-current i { color: var(--yellow); }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--purple); font-size: 20px; cursor: pointer; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 120px; background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); }
.hero-pattern { position: absolute; inset: 0; background-image: radial-gradient(rgba(57,47,90,.08) 1.4px, transparent 1.4px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: 999px; background: var(--yellow-soft); color: var(--purple); font-weight: 700; font-size: 15px; border: 1px solid var(--yellow); margin-bottom: 18px; }
.hero-badge i { color: var(--orange-dark); }
.hero h1 { font-size: clamp(46px, 6vw, 78px); line-height: .95; margin-bottom: 18px; }
.hero-sub { font-size: 19px; max-width: 560px; color: var(--text); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 24px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; gap: 22px; flex-wrap: wrap; font-weight: 600; color: var(--purple); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points i { color: var(--orange); }

.hero-visual { position: relative; isolation: isolate; }
.hero-frame { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: var(--shadow-lg); border: 8px solid #fff; background: var(--teal-soft); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::before { content: ''; position: absolute; width: 70%; height: 70%; right: -28px; top: -28px; border-radius: 28px; background: var(--yellow); z-index: -1; }
.hero-visual::after { content: ''; position: absolute; width: 120px; height: 120px; left: -30px; bottom: -30px; border-radius: 50%; background: var(--teal); z-index: -1; }
.placeholder-visual { width: 100%; height: 100%; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: linear-gradient(135deg, var(--teal-soft), #fff 60%, var(--yellow-soft)); color: var(--purple); text-align: center; padding: 20px; }
.placeholder-visual i { font-size: 96px; color: var(--purple); opacity: .9; }
.placeholder-visual span { font-family: var(--font-head); font-size: 30px; }
.placeholder-visual.alt { background: linear-gradient(135deg, var(--yellow-soft), #fff 60%, var(--teal-soft)); }
.hero-float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); }
.hero-float i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--orange); color: #fff; font-size: 18px; }
.hero-float b { display: block; font-family: var(--font-head); font-size: 22px; color: var(--purple); line-height: 1; font-weight: 500; }
.hero-float small { color: var(--muted); font-weight: 600; }
.hero-float-a { left: -26px; top: 34px; }
.hero-float-b { right: -14px; bottom: 34px; }
.hero-float-b i { background: var(--purple); color: var(--yellow); }

/* ---------------- Highlights ---------------- */
.highlights { margin-top: -70px; position: relative; z-index: 2; }
.highlight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.highlight-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); border-bottom: 4px solid var(--teal); transition: transform .25s; }
.highlight-card:nth-child(2) { border-bottom-color: var(--yellow); }
.highlight-card:nth-child(3) { border-bottom-color: var(--orange); }
.highlight-card:nth-child(4) { border-bottom-color: var(--purple); }
.highlight-card:hover { transform: translateY(-5px); }
.hl-icon { flex: 0 0 50px; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; background: var(--cream); color: var(--purple); }
.highlight-card h3 { font-size: 25px; margin-bottom: 2px; }
.highlight-card p { margin: 0; font-size: 15.5px; color: var(--muted); line-height: 1.45; }

/* ---------------- Sections ---------------- */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; background: var(--teal-soft); color: var(--purple); font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.eyebrow i { color: var(--orange-dark); }
.section-title { font-size: clamp(38px, 4.4vw, 56px); position: relative; }
.section-head .section-title::after { content: ''; display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--orange); margin: 10px auto 0; }

/* About */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about-visual { position: relative; isolation: isolate; }
.about-frame { border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: var(--shadow-lg); }
.about-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-visual::before { content: ''; position: absolute; left: -22px; bottom: -22px; width: 60%; height: 60%; border-radius: 26px; border: 3px dashed var(--teal); z-index: -1; }
.about-badge { position: absolute; right: -18px; top: 30px; display: flex; align-items: center; gap: 10px; background: var(--purple); color: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 600; max-width: 230px; }
.about-badge i { color: var(--yellow); font-size: 24px; }
.about-copy .lead { font-size: 21px; font-weight: 600; color: var(--purple); }
.about-copy .section-title::after { content: ''; display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--orange); margin-top: 10px; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.mv-card { background: var(--cream); padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); }
.mv-card h3 { font-size: 26px; margin-bottom: 4px; }
.mv-card p { margin: 0; font-size: 16px; }
.mv-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--orange); color: #fff; font-size: 19px; margin-bottom: 10px; }
.mv-icon.teal { background: var(--teal); color: var(--purple); }

/* Facilities */
.facilities { background: var(--cream); }
.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.facility-card { background: #fff; padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); transition: all .25s ease; position: relative; overflow: hidden; }
.facility-card::after { content: ''; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: linear-gradient(90deg, var(--orange), var(--yellow)); transition: width .3s; }
.facility-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.facility-card:hover::after { width: 100%; }
.fc-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--teal-soft); color: var(--purple); font-size: 27px; margin-bottom: 18px; transition: all .25s; }
.facility-card:hover .fc-icon { background: var(--purple); color: var(--yellow); }
.facility-card h3 { font-size: 28px; margin-bottom: 6px; }
.facility-card p { margin: 0; color: var(--muted); }

/* Gallery */
.gallery { background: #fff; }
.gallery-filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--purple); font-family: var(--font-body); font-weight: 600; font-size: 15px; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--purple); }
.chip.active { background: var(--purple); color: #fff; border-color: var(--purple); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { margin: 0; border-radius: 14px; overflow: hidden; background: var(--cream); position: relative; }
.gallery-item.hidden { display: none; }
.gallery-link { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.gallery-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-link:hover img { transform: scale(1.07); }
.gallery-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(57,47,90,.45); color: #fff; font-size: 26px; opacity: 0; transition: opacity .25s; }
.gallery-link:hover .gallery-overlay { opacity: 1; }
.gallery-item figcaption { padding: 10px 14px; font-weight: 600; font-size: 15px; color: var(--purple); }
.gallery-grid.placeholder { grid-template-columns: repeat(3, 1fr); }
.gallery-placeholder { aspect-ratio: 4 / 3; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, var(--cream), var(--teal-soft)); border: 1px dashed #d8ccb9; color: var(--purple); }
.gallery-placeholder:nth-child(even) { background: linear-gradient(135deg, var(--cream), var(--yellow-soft)); }
.gallery-placeholder i { font-size: 42px; opacity: .8; }
.gallery-placeholder span { font-family: var(--font-head); font-size: 24px; }

.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(26, 20, 44, .92); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 1000px; width: 100%; text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { color: #fff; margin-top: 12px; font-size: 18px; font-weight: 600; }
.lightbox button { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 20px; cursor: pointer; }
.lightbox button:hover { background: var(--orange); color: var(--purple); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Contact */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; }
.contact-info { display: grid; gap: 14px; }
.info-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); }
.info-card .ic { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--purple); color: var(--yellow); font-size: 19px; }
.info-card h4 { font-size: 24px; margin: 0; }
.info-card p { margin: 0; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 260px; background: #fff; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.contact-form { padding: 34px; }
.contact-form h3 { font-size: 34px; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.contact-form h3 i { font-size: 22px; color: var(--orange); }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; color: var(--purple); margin-bottom: 6px; font-size: 15.5px; }
.req { color: #d14b3a; }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; }
.input-icon input { padding-left: 42px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid #e4d9c9; background: #fffdfa;
  font-family: var(--font-body); font-size: 16.5px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(57,47,90,.1); background: #fff; }
.field.has-error input, .field.has-error textarea { border-color: #d14b3a; }
.field .err { color: #c0392b; font-weight: 600; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; }
.alert i { margin-top: 4px; }
.alert-success { background: #e5f6ec; color: #1e6b41; border: 1px solid #bfe6cf; }
.alert-error { background: #fdecea; color: #a4281b; border: 1px solid #f5c6c0; }
.alert-info { background: var(--teal-soft); color: var(--purple); border: 1px solid var(--teal); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--purple); color: #d9d4ea; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 36px; padding-bottom: 44px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.footer-brand strong { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 500; color: #fff; line-height: 1; }
.footer-brand small { color: var(--yellow); font-weight: 600; }
.footer-brand .brand-mark { background: rgba(255,255,255,.1); box-shadow: none; }
.footer-brand .brand-logo { height: 50px; background: #fff; border-radius: 10px; padding: 4px; }
.site-footer h4 { color: #fff; font-size: 26px; margin-bottom: 16px; }
.site-footer h4::after { content: ''; display: block; width: 36px; height: 3px; background: var(--orange); border-radius: 3px; margin-top: 6px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: #d9d4ea; display: inline-flex; gap: 9px; align-items: center; }
.footer-links a i { color: var(--yellow); font-size: 13px; }
.footer-links a:hover { color: var(--yellow); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact i { color: var(--yellow); margin-top: 5px; width: 16px; }
.footer-contact a { color: #d9d4ea; }
.footer-contact a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: 15px; text-align: center; color: #bdb6d6; }

.credit-bar { background: #000; color: #fff; text-align: center; padding: 7px 16px; font-size: 14px; letter-spacing: .3px; line-height: 1.4; }
.credit-bar a { color: #FC3174; font-weight: 700; }
.credit-bar a:hover { color: #ff6b9b; text-decoration: underline; }

.to-top { position: fixed; right: 20px; bottom: 50px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--orange); color: var(--purple); font-size: 18px; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--purple); color: var(--yellow); }

/* ---------------- Mandatory disclosure page ---------------- */
.page-banner { background: linear-gradient(120deg, var(--purple) 0%, var(--purple-2) 100%); color: #fff; padding: 48px 0 52px; position: relative; overflow: hidden; }
.page-banner::after { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(244, 208, 111, .15); }
.page-banner h1 { color: #fff; font-size: clamp(40px, 5vw, 60px); margin: 8px 0 4px; }
.page-banner p { color: #d9d4ea; margin: 0; font-size: 17.5px; }
.crumbs { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: #d9d4ea; flex-wrap: wrap; }
.crumbs a { color: var(--yellow); display: inline-flex; align-items: center; gap: 6px; }
.crumbs > i { font-size: 11px; }

.disclosure { padding-top: 50px; background: #fff; }
.disc-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 26px; position: relative; }
.disc-title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 64px; height: 4px; background: var(--orange); border-radius: 3px; }
.disc-title h2 { margin: 0; font-size: clamp(32px, 4vw, 44px); }
.disc-title .updated { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-weight: 600; font-size: 15px; }

.appendix-card { display: flex; align-items: center; gap: 20px; padding: 22px 26px; border-radius: 18px; background: linear-gradient(120deg, var(--yellow-soft), var(--cream)); border: 1.5px solid var(--yellow); margin-bottom: 26px; flex-wrap: wrap; }
.ap-icon { flex: 0 0 62px; width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; background: #fff; color: #d63a2a; font-size: 30px; box-shadow: var(--shadow); }
.ap-text { flex: 1 1 260px; }
.ap-text h3 { font-size: 30px; margin: 0; }
.ap-text p { margin: 0; color: var(--text); }
.ap-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.disc-jump { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.disc-jump a { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-weight: 600; font-size: 15px; color: var(--purple); }
.disc-jump a b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--purple); color: var(--yellow); font-size: 14px; }
.disc-jump a:hover { border-color: var(--purple); }

.disc-section { margin-bottom: 44px; }
.disc-head { display: flex; align-items: center; gap: 12px; font-size: 30px; text-transform: uppercase; margin-bottom: 14px; }
.disc-head span { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--orange); color: var(--purple); font-size: 24px; padding-top: 4px; }
.disc-sub { display: flex; align-items: center; gap: 10px; font-size: 25px; margin: 26px 0 10px; text-transform: uppercase; }
.disc-sub i { font-size: 17px; color: var(--orange-dark); }

.disc-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #e3dbe9; border-radius: 14px; overflow: hidden; font-size: 16px; background: #fff; }
.disc-table th { background: var(--purple); color: #fff; text-align: left; padding: 15px 16px; font-weight: 700; text-transform: uppercase; font-size: 14.5px; letter-spacing: .5px; border-right: 1px solid rgba(255,255,255,.12); }
.disc-table th:last-child { border-right: 0; }
.disc-table td { padding: 14px 16px; border-top: 1px solid #e6eef0; vertical-align: middle; color: var(--ink); border-right: 1px solid #e6eef0; }
.disc-table td:last-child { border-right: 0; }
.disc-table tbody tr:nth-child(odd) td { background: #eef8f7; }
.disc-table tbody tr:nth-child(even) td { background: #fff; }
.disc-table tbody tr:hover td { background: var(--yellow-soft); }
.disc-table .c-sl { width: 90px; text-align: center; font-weight: 700; color: var(--purple); }
.disc-table td.c-info { font-weight: 600; text-transform: uppercase; font-size: 15px; }
.disc-table .c-doc { width: 250px; }
.disc-table .sub-row td.c-info { padding-left: 36px; }
.sub-mark { color: var(--orange-dark); margin-right: 8px; font-size: 13px; }
.doc-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.staff-names { margin-bottom: 6px; }
.na { display: inline-flex; gap: 7px; align-items: center; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.empty-row td { text-align: center; color: var(--muted); font-weight: 600; }
.disc-note { display: flex; gap: 12px; margin-top: 14px; padding: 14px 18px; border-radius: 12px; background: var(--cream); border-left: 4px solid var(--orange); font-size: 15px; }
.disc-note i { color: var(--orange-dark); margin-top: 4px; }
.disc-end { text-align: center; color: var(--muted); letter-spacing: 4px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .main-nav a { padding: 9px 10px; font-size: 15px; }
  .main-nav a i { display: none; }
  .btn-disclosure { font-size: 14px; padding: 11px 14px; }
  .brand-text strong { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-toggle { display: grid; place-items: center; order: 2; }
  .header-inner { flex-wrap: wrap; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .brand { order: 1; }
  .btn-disclosure { order: 4; flex: 1 1 100%; justify-content: center; padding: 11px 14px; font-size: 15px; }
  .main-nav {
    order: 3; flex: 1 1 100%; flex-direction: column; gap: 2px;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 420px; }
  .main-nav a { padding: 12px 14px; border-radius: 10px; font-size: 17px; }
  .main-nav a i { display: inline-block; width: 18px; }
  .hero { padding: 48px 0 110px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .highlight-grid { grid-template-columns: 1fr 1fr; }
  .facility-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .about-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .section { padding: 72px 0; }
}

/* Mobile: disclosure tables become cards */
@media (max-width: 760px) {
  .disc-table, .disc-table tbody, .disc-table tr, .disc-table td { display: block; width: 100%; }
  .disc-table { border: 0; background: transparent; border-radius: 0; overflow: visible; }
  .disc-table thead { display: none; }
  .disc-table tr { background: #fff; border: 1px solid #e3dbe9; border-radius: 14px; margin-bottom: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(57,47,90,.06); border-left: 5px solid var(--teal); }
  .disc-table tbody tr td, .disc-table tbody tr:nth-child(odd) td, .disc-table tbody tr:hover td { background: #fff; }
  .disc-table td { border: 0; border-top: 1px solid #f0ebf3; padding: 10px 16px; display: grid; grid-template-columns: 118px 1fr; gap: 12px; align-items: start; }
  .disc-table td:first-child { border-top: 0; }
  .disc-table td::before { content: attr(data-label); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding-top: 2px; }
  .disc-table .c-sl { width: 100%; text-align: left; background: var(--cream) !important; }
  .disc-table td.c-sl:empty { display: none; }
  .disc-table .c-doc { width: 100%; }
  .disc-table td.c-info { font-size: 15px; }
  .disc-table .sub-row { border-left-color: var(--yellow); margin-left: 14px; width: calc(100% - 14px); }
  .disc-table .sub-row td.c-info { padding-left: 16px; }
  .disc-table .empty-row td { display: block; text-align: center; }
  .disc-table .empty-row td::before { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .container { padding: 0 16px; }
  .topbar-inner { justify-content: center; }
  .topbar-info { gap: 14px; justify-content: center; }
  .topbar-right { justify-content: center; flex-wrap: wrap; gap: 10px; }
  .hide-sm { display: none !important; }
  .brand-mark { width: 44px; height: 44px; flex-basis: 44px; font-size: 20px; }
  .brand-logo { height: 44px; }
  .brand-text strong { font-size: 21px; white-space: normal; }
  .brand-text small { font-size: 12px; }
  .hero-sub { font-size: 17.5px; }
  .hero-float { display: none; }
  .highlight-grid, .facility-grid, .mv-grid, .form-row.two { grid-template-columns: 1fr; }
  .gallery-grid, .gallery-grid.placeholder { grid-template-columns: 1fr 1fr; gap: 10px; }
  .contact-form { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-badge { right: 10px; }
  .appendix-card { padding: 18px; }
  .ap-actions, .ap-actions .btn { width: 100%; }
  .ap-actions .btn { flex: 1; }
  .disc-table td { grid-template-columns: 1fr; gap: 2px; }
  .lb-prev, .lb-next { top: auto !important; bottom: 20px; transform: none !important; }
}
