/* S&B Windows (2000) Ltd, bold theme, brand blue #1F3360 */
:root {
  --blue: #1F3360;
  --blue-dark: #101c3a;
  --card: #1a2547;
  --card-line: rgba(255,255,255,0.09);
  --ink: #e8ecf7;
  --muted: #b9c4e4;
  --faint: #8f9bc0;
  --white: #ffffff;
  --radius: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--blue-dark);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: #cdd8f5; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header (inner pages) */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: 1080px; margin: 0 auto;
}
.site-header .brand img { height: 40px; width: auto; }
.site-nav a { color: #fff; font-size: 15px; margin-left: 18px; font-weight: 500; }
.site-nav a.active { text-decoration: underline; text-underline-offset: 5px; }
.nav-toggle { display: none; }
@media (max-width: 720px) {
  .site-nav a { margin-left: 12px; font-size: 14px; }
}

/* Home hero */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; background: url(hero-bold.jpg) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,28,58,0.62) 0%, rgba(16,28,58,0.30) 35%, rgba(16,28,58,0.90) 78%); }
.hero-inner { position: relative; padding: 0 20px 34px; width: 100%; max-width: 1080px; margin: 0 auto; }
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; max-width: 1080px; margin: 0 auto; }
.topbar img { height: 40px; }
.topbar nav a { color: #fff; font-size: 15px; margin-left: 18px; font-weight: 500; }
.badge { display: inline-block; border: 1px solid rgba(255,255,255,0.5); border-radius: 999px; padding: 4px 14px; font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; color: #fff; }
.hero h1 { font-size: 40px; line-height: 1.12; font-weight: 800; color: #fff; }
.hero p { margin-top: 12px; font-size: 17px; color: #dbe2f4; max-width: 520px; }
.cta { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
@media (min-width: 720px) { .hero h1 { font-size: 60px; } .hero-inner { padding: 0 20px 48px; } }

/* Buttons */
.btn { display: inline-block; font-weight: 700; font-size: 16px; border-radius: 12px; padding: 15px 22px; text-align: center; cursor: pointer; border: 1.5px solid transparent; }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: #e9edf7; text-decoration: none; }
.btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.6); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); text-decoration: none; }
.btn-primary { background: #fff; color: var(--blue); }
.btn-primary:hover { background: #e9edf7; text-decoration: none; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { border-color: #fff; text-decoration: none; }
.hero .cta .btn { flex: 1; min-width: 150px; }
@media (min-width: 720px) { .hero .cta .btn { flex: 0 0 auto; } }

/* Stats strip */
.stats { display: flex; justify-content: space-around; padding: 22px 12px; background: var(--blue); }
.stats div { text-align: center; }
.stats b { display: block; font-size: 22px; color: #fff; }
.stats span { font-size: 13px; color: var(--muted); }

/* Sections */
.section { padding: 44px 0 10px; }
.section h2 { font-size: 26px; padding: 0 20px; color: #fff; }
.section .lead { color: var(--muted); padding: 0 20px; margin-top: 8px; font-size: 16px; }
.cards { display: grid; gap: 18px; margin: 22px 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards.three { grid-template-columns: repeat(3, 1fr); } .cards.two { grid-template-columns: repeat(2, 1fr); } }
.card { padding: 26px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-line); }
.card h3 { font-size: 21px; margin-bottom: 6px; color: #fff; }
.card p { color: var(--muted); font-size: 15.5px; }

/* Band */
.band { margin: 34px 0 0; padding: 40px 20px; background: linear-gradient(160deg, #24376b, #101c3a); text-align: center; }
.band h2 { font-size: 24px; color: #fff; }
.band p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }
.band .btn { margin-top: 18px; }
.band.light { background: #fff; }
.band.light h2 { color: var(--blue); }
.band.light p { color: #57607a; }
.band.light .btn-primary { background: var(--blue); color: #fff; }
.band.light .btn-primary:hover { background: var(--blue-dark); }

/* Inner page hero */
.page-hero { padding: 40px 20px 30px; text-align: center; }
.page-hero h1 { font-size: 32px; color: #fff; font-weight: 800; }
.page-hero p { color: var(--muted); margin-top: 8px; font-size: 16px; }

/* Prose (about) */
.prose { max-width: 720px; margin: 0 auto; padding: 10px 20px 30px; }
.prose p { margin-bottom: 16px; font-size: 16.5px; color: var(--ink); }
.prose h2 { font-size: 23px; margin: 28px 0 10px; color: #fff; }

/* Gallery */
.gallery-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.gallery-count { color: var(--muted); font-size: 15px; }
.gal-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .gal-grid { grid-template-columns: repeat(3, 1fr); } }
.gal-item { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--card-line); background: var(--card); cursor: pointer; }
.gal-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.gal-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(15,23,42,0.78));
  color: #fff; font-size: 13.5px; padding: 22px 10px 8px;
}
.gal-item .del {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  background: rgba(15,23,42,0.72); color: #fff; border: none; border-radius: 8px;
  font-size: 13px; padding: 5px 9px; cursor: pointer;
}
.gal-empty { text-align: center; color: var(--muted); padding: 56px 20px; border: 1px dashed var(--card-line); border-radius: var(--radius); background: var(--card); }
.gal-status { margin: 14px 0; font-size: 15px; color: var(--muted); }
.gal-status.err { color: #ff8a80; }
.upload-panel {
  border: 1px solid var(--card-line); border-radius: var(--radius); background: var(--card);
  padding: 22px; margin-bottom: 26px; display: none;
}
.upload-panel.open { display: block; }
.upload-panel label { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); margin: 12px 0 5px; }
.upload-panel input[type="text"], .upload-panel input[type="password"], .upload-panel textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--card-line); border-radius: 8px; font-size: 16px;
  background: #0d1730; color: #fff;
}
.upload-panel .hint { font-size: 13.5px; color: var(--faint); margin-top: 4px; }
.file-btn { display: inline-block; margin-top: 12px; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(10,15,30,0.92); padding: 24px;
  align-items: center; justify-content: center; flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 8px; }
.lightbox .lb-cap { color: #dbe2f4; margin-top: 12px; font-size: 15px; }
.lightbox .lb-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  color: #fff; font-size: 30px; cursor: pointer; line-height: 1;
}

/* Contact */
.contact-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 24px 22px; }
.contact-card h3 { color: #fff; font-size: 17px; margin-bottom: 6px; }
.contact-card a.big { font-size: 19px; font-weight: 700; color: #fff; }
.contact-card p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.enquiry { margin-top: 34px; border: 1px solid var(--card-line); border-radius: var(--radius); padding: 26px 22px; background: var(--card); }
.enquiry h2 { font-size: 23px; color: #fff; }
.enquiry label { display: block; font-size: 14.5px; font-weight: 600; margin: 14px 0 5px; }
.enquiry input, .enquiry textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--card-line); border-radius: 8px; font-size: 16px;
  font-family: inherit; background: #0d1730; color: #fff;
}
.enquiry textarea { min-height: 120px; resize: vertical; }
.enquiry .hint { font-size: 13.5px; color: var(--faint); margin-top: 10px; }
.enquiry .actions { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { padding: 34px 20px 46px; color: var(--faint); font-size: 14.5px; border-top: 1px solid var(--card-line); margin-top: 40px; }
.site-footer a { color: #dbe2f4; }
.site-footer a.big { font-size: 19px; font-weight: 700; color: #fff; display: block; margin-bottom: 4px; }
.site-footer hr { border: none; border-top: 1px solid var(--card-line); margin: 22px 0; }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: 1fr; max-width: 1080px; margin: 0 auto; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.site-footer .foot-logo { height: 52px; width: auto; margin-bottom: 12px; }
.site-footer .legal { text-align: center; font-size: 13.5px; }

/* Utility */
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.upload-panel .file-btn { color: #1F3360; }

/* Gallery search, photo meta, share links */
.gallery-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.gal-search { flex: 1; min-width: 220px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color: var(--ink); font-size: 16px; }
.gal-search::placeholder { color: var(--faint); }
.gal-search:focus { outline: none; border-color: rgba(255,255,255,0.6); }
.gal-item .name { font-weight: 700; font-size: 15px; color: var(--ink); padding: 10px 12px 0; }
.gal-item .desc { font-size: 13.5px; color: var(--muted); padding: 4px 12px 0; line-height: 1.45; }
.gal-item .share { margin: 8px 12px 12px; background: none; border: none; color: var(--faint); font-size: 13px; cursor: pointer; padding: 0; text-decoration: underline; }
.gal-item .share:hover { color: var(--ink); }

/* Private admin cards */
.admin-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.admin-thumb { width: 100%; max-width: 220px; border-radius: 8px; display: block; margin-bottom: 10px; }
.admin-card input[type="text"], .admin-card textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color: var(--ink); font-size: 15px; margin-bottom: 8px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-actions .btn { padding: 9px 14px; font-size: 14px; }

/* Gallery category chips */
.gal-cats, .gal-subs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.gal-chip { background: rgba(255,255,255,.08); color: #e8ecf4; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 8px 16px; font-size: 15px; cursor: pointer; font-family: inherit; }
.gal-chip:hover { background: rgba(255,255,255,.16); }
.gal-chip.active { background: #ffffff; color: #101c33; border-color: #ffffff; font-weight: 600; }

/* Lightbox arrows */
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.45); color: #fff; border: none; font-size: 42px; line-height: 1; padding: 10px 16px; cursor: pointer; border-radius: 8px; z-index: 2; }
.lb-arrow:hover { background: rgba(0,0,0,.7); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
@media (max-width: 640px) { .lb-arrow { font-size: 30px; padding: 8px 10px; } }

/* Clickable cards on the home page */
.cards.two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 640px) { .cards.two { grid-template-columns: 1fr; } }
a.card-link { display: block; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.card-link:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* Brochure viewer + gallery brochure banner */
.brochure-embed { width: 100%; height: 78vh; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: #fff; }
.gal-brochure { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 14px 18px; margin: 0 0 16px; color: #e8ecf4; }
.gal-brochure a { color: #ffd27a; font-weight: 600; }

/* Gallery category boxes (landing view) */
.gal-boxes { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .gal-boxes { grid-template-columns: 1fr 1fr; } }
.gal-box { position: relative; border-radius: 14px; overflow: hidden; height: 230px; cursor: pointer; border: 1px solid var(--card-line); background: var(--card); }
@media (min-width: 720px) { .gal-box { height: 280px; } }
.gal-box img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .5s; }
.gal-box-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(6,12,24,.88)); color: #fff; font-weight: 700; font-size: 1.35rem; }

/* Gallery big-photo list (category/sub/search views) */
.gal-list { display: flex; flex-direction: column; gap: 26px; max-width: 940px; margin: 0 auto; }
.gal-list .gal-item { margin: 0; cursor: pointer; }
.gal-list .gal-item img { width: 100%; height: auto; aspect-ratio: auto; border-radius: 12px; display: block; }

/* Home hero slideshow */
.hero { background: #101c33; }
.hero-slides { position: absolute; inset: 0; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero-slides img.on { opacity: 1; }
.hero-slides { z-index: 0; }
.hero::before { z-index: 1; }

/* In-page brochure reader */
.brochure-reader { max-width: 900px; margin: 0 auto; }
.brochure-page { position: relative; margin: 0 0 16px; background: #fff; border-radius: 8px; overflow: hidden; min-height: 200px; }
.brochure-page canvas { display: block; }
.brochure-pagenum { position: absolute; top: 8px; right: 10px; z-index: 2; background: rgba(16,28,51,.75); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.admin-type { width: 100%; margin: 8px 0 0; padding: 10px 12px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: var(--ink); font-size: 15px; font-family: inherit; }
.admin-type option { color: #101c33; }

.hero-inner { z-index: 2; }
.gal-box img { transition: opacity .45s ease; }
.admin-type.saved-flash { border-color: #6fdc8c; }

.card-photo { position: relative; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; background-size: cover; background-position: center; border: 0; overflow: hidden; }
.card-photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(6,12,24,.45), rgba(6,12,24,.88)); }
.card-photo > * { position: relative; }
.card-photo p { color: #e8ecf4; }

.hero .cta { flex-wrap: nowrap; }
.hero .cta .btn { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 10px; }
@media (min-width: 720px) { .hero .cta .btn { flex: 0 0 210px; } }
.cta-l1 { font-size: 16px; }
.cta-l2 { font-size: 15px; font-weight: 600; opacity: .95; }
