/* Public website (W5): deep navy base, one accent colour from settings (--accent), mobile first. */
:root { --navy: #0e1b2e; --navy-2: #16273f; --ink: #1d2433; --muted-pub: #5b6475; --line: #e3e7ee;
        --bg-alt: #f4f6f9; --accent: #f5a623; --radius: 12px;
        --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
body.public { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; font-size: 17px;
              line-height: 1.6; }
.public h1, .public h2, .public h3, .public .h1 { line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.public h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 24px; }
.public h3 { font-size: 1.15rem; margin: 0 0 6px; }
.public a { color: inherit; }
.public :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 2000; background: #fff; padding: 8px 12px; }
.preview-banner { position: sticky; top: 0; z-index: 1001; background: #b00020; color: #fff; text-align: center;
                  padding: 10px 16px; font-weight: 600; }
.preview-banner a { color: #fff; margin-left: 12px; }

/* Buttons */
.public .btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px;
               border: 2px solid currentColor; background: transparent; text-decoration: none; font-weight: 600;
               cursor: pointer; font-size: 1rem; }
.public .btn.accent { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.public .btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.public form.form .btn[type="submit"] { width: 100%; justify-content: center; margin-top: 8px; min-height: 48px; }
.public .btn.big { padding: 14px 26px; font-size: 1.05rem; }
.public .btn:hover { filter: brightness(1.05); }
.public button.link { background: none; border: 0; padding: 0; color: var(--navy); font-weight: 600;
                      text-decoration: underline; cursor: pointer; font-size: 1rem; }

/* Top bar and header */
.topbar-public { background: var(--navy); color: #cfd8e6; font-size: .9rem; }
.topbar-public .wrap { display: flex; justify-content: space-between; gap: 12px; padding: 6px 16px; flex-wrap: wrap; }
.tb-items { display: flex; gap: 18px; flex-wrap: wrap; }
.tb-item { color: #cfd8e6; text-decoration: none; }
.tb-login { font-weight: 600; color: #fff; }
.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand-public { text-decoration: none; display: inline-flex; align-items: center; }
.logo img { height: 44px; width: auto; display: block; }
.logo-text { font-weight: 800; font-size: 1.3rem; color: var(--navy); }
.site-footer .logo-text { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; padding: 8px; }
.site-menu { display: flex; align-items: center; gap: 4px; }
.site-menu a { text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 500; }
.site-menu a:not(.btn):hover { background: var(--bg-alt); }
.site-menu .btn { margin-left: 8px; }
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .site-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column;
               align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--line);
               box-shadow: 0 12px 24px rgba(0, 0, 0, .08); }
  .site-menu.open { display: flex; }
  .site-menu .btn { margin: 8px 0 0; justify-content: center; }
}

/* Hero */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.slide { display: none; position: relative; min-height: min(78vh, 680px); }
.slide.is-active { display: block; animation: fade .8s ease; }
.slide-img, .slide .ph-panel { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide::after { content: ""; position: absolute; inset: 0;
                background: linear-gradient(90deg, rgba(8, 16, 30, .85) 0%, rgba(8, 16, 30, .55) 55%, rgba(8, 16, 30, .25) 100%); }
.slide-text { position: relative; z-index: 1; padding-top: clamp(80px, 16vh, 160px); padding-bottom: 96px; max-width: 760px;
              margin-left: max(16px, calc((100vw - 1180px) / 2 + 16px)); }
.slide-text h1, .slide-text .h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 12px; }
.slide-text .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #e6ecf5; margin: 0 0 24px; }
.hero-controls { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.hero-controls button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9);
                        color: var(--navy); font-size: 1.2rem; cursor: pointer; }
@keyframes fade { from { opacity: .3; } to { opacity: 1; } }

/* Placeholders (W2) */
.ph-panel { display: flex; align-items: center; justify-content: center; width: 100%; color: #8ea0bb;
            background-color: var(--navy-2);
            background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 12px, transparent 12px 24px),
                              radial-gradient(circle at 30% 30%, rgba(245, 166, 35, .18), transparent 60%);
            border-radius: inherit; font-weight: 600; letter-spacing: .02em; }
.ph-person { aspect-ratio: 1 / 1; display: flex; align-items: flex-end; justify-content: center; background: #e7ebf1;
             border-radius: 50%; overflow: hidden; }
.ph-person svg { width: 78%; fill: #b6c0cf; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--bg-alt); }
.trust { background: var(--navy-2); color: #fff; }
.trust ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px;
            padding: 18px 16px; margin: 0 auto; font-weight: 600; }
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card-pub { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
            box-shadow: 0 4px 18px rgba(14, 27, 46, .06); }
.card-img img, .card-pub .ph-panel { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.card-body { padding: 18px 20px 22px; }
.card-body p { color: var(--muted-pub); margin: 0; }
.about-grid { display: grid; gap: 40px; grid-template-columns: 1.1fr 1fr; align-items: center; }
.about-img img, .about-grid .ph-panel { width: 100%; border-radius: var(--radius); display: block; aspect-ratio: 4 / 3;
                                        object-fit: cover; }
.values { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.values li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; }
.directors { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.director { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: start; }
.portrait img, .portrait.ph-person { width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; display: block; }
.role { color: var(--muted-pub); font-weight: 600; margin: 0 0 8px; }
.team { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); text-align: center; }
.member .portrait { width: 160px; margin: 0 auto 12px; }
.member p { color: var(--muted-pub); margin: 4px 0 0; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery figure { margin: 0; }
.section-note { color: var(--muted-pub); margin: -12px 0 24px; }
.gal-open { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; border-radius: 10px; overflow: hidden; }
.gal-img img, .gal-open .ph-panel { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery figcaption { font-size: .9rem; color: var(--muted-pub); padding-top: 6px; }
.viewer { position: fixed; inset: 0; z-index: 3000; background: rgba(5, 10, 20, .94); display: flex; align-items: center;
          justify-content: center; }
.viewer[hidden] { display: none; }
.viewer figure { margin: 0; max-width: 92vw; text-align: center; color: #fff; }
.viewer img { max-width: 92vw; max-height: 80vh; border-radius: 8px; }
.viewer button { position: absolute; background: rgba(255, 255, 255, .15); color: #fff; border: 0; width: 48px; height: 48px;
                 border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.v-close { top: 16px; right: 16px; } .v-prev { left: 16px; } .v-next { right: 16px; }
.careers { background: var(--accent); color: var(--navy); }
.careers .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
                 padding: 40px 16px; }
.careers h2 { margin: 0 0 6px; }
.careers p { margin: 0; }
.careers .btn.accent { background: var(--navy); border-color: var(--navy); color: #fff; }
.cta { background: var(--navy); color: #fff; text-align: center; padding: 72px 0; }
.cta p { color: #d4dcea; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* Public forms (contact/quote, careers, login) */
.narrow-pub { max-width: 720px; }
.lead-dark { color: var(--muted-pub); font-size: 1.1rem; }
.form-card, .public main .card.narrow { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
                                         padding: 24px; box-shadow: 0 4px 18px rgba(14, 27, 46, .06); }
.public main > .card.narrow { margin: 48px auto !important; max-width: 480px; }
.public .flash { margin: 16px 0; }

/* Footer */
.site-footer { background: #0a1424; color: #c9d3e2; padding-top: 56px; }
.site-footer h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: #e6ecf5; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding: 18px 16px 28px; font-size: .9rem; }
.muted-light { color: #93a1b8; font-size: .9rem; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.privacy { color: #93a1b8; }

/* Floating contact on small screens */
.float-contact { display: none; }
@media (max-width: 700px) {
  .float-contact { display: flex; position: fixed; z-index: 999; right: 12px; bottom: 12px; gap: 8px; }
  .float-contact a { padding: 12px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; color: #fff;
                     box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
  .fc-call { background: var(--navy); } .fc-wa { background: #1fa855; }
  .footer-grid, .about-grid { grid-template-columns: 1fr; }
  .director { grid-template-columns: 110px 1fr; }
  .site-footer { padding-bottom: 72px; }
}
@media (min-width: 701px) and (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* go-live item 10: privacy notice */
.privacy-note { font-size: .9rem; color: var(--muted-pub); margin-top: .75rem; }
.prose h2 { margin-top: 1.5rem; }
