/* S&B Windows (2000) Ltd - brand blue #1F3360 */
:root {
  --blue: #1F3360;
  --blue-dark: #16244a;
  --blue-light: #2e4a8a;
  --ink: #1c2333;
  --muted: #5a6274;
  --line: #e4e7ee;
  --bg-soft: #f5f6fa;
  --white: #ffffff;
  --radius: 12px;
}
* { 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(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-light); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; font-size: 15px; color: var(--blue); cursor: pointer;
}
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-size: 16px;
  padding: 8px 14px; border-radius: 8px;
}
.site-nav a:hover { background: var(--bg-soft); }
.site-nav a.active { color: var(--blue); font-weight: 600; }
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 8px 20px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 8px; font-size: 17px; }
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 72px 0 64px;
  text-align: center;
}
.hero h1 { font-size: 34px; line-height: 1.25; font-weight: 700; letter-spacing: 0.2px; }
.hero p.sub { margin: 16px auto 0; font-size: 18px; color: #cdd6ec; max-width: 560px; }
.hero .badge {
  display: inline-block; margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.35); border-radius: 999px;
  padding: 5px 16px; font-size: 13.5px; letter-spacing: 1.2px; text-transform: uppercase; color: #dbe2f4;
}
.hero-cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (min-width: 720px) { .hero h1 { font-size: 44px; } }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-size: 16px; font-weight: 600; border-radius: 10px;
  padding: 13px 26px; border: 2px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.btn-light { background: var(--white); color: var(--blue); }
.btn-light:hover { background: #e9edf7; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { border-color: var(--white); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--bg-soft); }

/* Sections */
.section { padding: 64px 0; }
.section.soft { background: var(--bg-soft); }
.section h2 { font-size: 28px; color: var(--blue); text-align: center; }
.section .lead { text-align: center; color: var(--muted); max-width: 640px; margin: 14px auto 0; font-size: 17px; }

/* Cards */
.cards { display: grid; gap: 18px; margin-top: 40px; 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 {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px;
}
.card h3 { color: var(--blue); font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card ul { color: var(--muted); font-size: 15.5px; padding-left: 20px; margin-top: 6px; }

/* CTA band */
.cta-band { background: var(--blue); color: var(--white); text-align: center; padding: 56px 0; }
.cta-band h2 { color: var(--white); font-size: 26px; }
.cta-band p { color: #cdd6ec; margin: 12px auto 0; max-width: 520px; }
.cta-band .hero-cta { margin-top: 24px; }

/* Footer */
.site-footer { background: var(--blue-dark); color: #c3cce3; padding: 44px 0 28px; font-size: 15px; }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h4 { color: var(--white); font-size: 15px; margin-bottom: 10px; letter-spacing: 0.4px; }
.site-footer a { color: #dbe2f4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .foot-logo { height: 52px; width: auto; margin-bottom: 12px;  }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 32px; padding-top: 18px; font-size: 13.5px; color: #94a0c2; text-align: center; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }

/* Page hero (inner pages) */
.page-hero { background: var(--bg-soft); padding: 48px 0; text-align: center; border-bottom: 1px solid var(--line); }
.page-hero h1 { color: var(--blue); font-size: 30px; }
.page-hero p { color: var(--muted); margin-top: 8px; }

/* Prose */
.prose { max-width: 720px; margin: 0 auto; }
.prose p { margin-bottom: 16px; color: var(--ink); font-size: 16.5px; }
.prose h2 { color: var(--blue); font-size: 22px; margin: 28px 0 10px; text-align: left; }

/* 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: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); aspect-ratio: 4/3; cursor: pointer; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; }
.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(--line); border-radius: var(--radius); background: var(--bg-soft); }
.gal-status { margin: 14px 0; font-size: 15px; color: var(--muted); }
.gal-status.err { color: #b3261e; }
.upload-panel {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft);
  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"] {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; background: #fff;
}
.upload-panel .hint { font-size: 13.5px; color: var(--muted); 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.9); 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: 18px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.contact-card h3 { color: var(--blue); font-size: 17px; margin-bottom: 6px; }
.contact-card a.big { font-size: 20px; font-weight: 600; color: var(--blue); text-decoration: none; }
.contact-card a.big:hover { text-decoration: underline; }
.contact-card p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.enquiry { margin-top: 36px; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; background: var(--bg-soft); }
.enquiry h2 { text-align: left; font-size: 22px; }
.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(--line); border-radius: 8px; font-size: 16px;
  font-family: inherit; background: #fff;
}
.enquiry textarea { min-height: 120px; resize: vertical; }
.enquiry .hint { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.enquiry .actions { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Utility */
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
