*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Open Sans", Arial, sans-serif;
    font-weight: 300;
    color: #333;
    background: #fff;
}

img { max-width: 100%; }

a { color: inherit; }

.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 22px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo img { height: 78px; width: auto; display: block; }

.nav-main { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }

.nav-main a {
    color: #3a3a3a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    padding: 8px 12px;
    line-height: 1;
}

.nav-main a.is-active,
.drawer-panel a.is-active {
    background: #e30613;
    color: #fff;
}

.nav-toggle {
    margin-left: auto;
    width: 42px;
    height: 36px;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: #222;
}

.drawer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 30;
}

.drawer-panel {
    margin-left: auto;
    width: min(320px, 86vw);
    height: 100%;
    background: #fff;
    padding: 22px 22px 40px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drawer-close {
    align-self: flex-end;
    border: 0;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.drawer-title {
    margin: 0 0 10px;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #888;
}

.drawer-panel a {
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 12px;
    color: #222;
}

.slide-frame {
    position: relative;
    height: 480px;
    background: #e9e9e9;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .6s ease;
}

.slide.is-on { opacity: 1; }

.sl-prev,
.sl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .82);
    color: #222;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.sl-prev { left: 16px; }
.sl-next { right: 16px; }

.slider { position: relative; }

.sl-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.sl-dots button {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .7);
    cursor: pointer;
    padding: 0;
}

.sl-dots button.is-on { background: #e30613; }

.band {
    background: #c5c8c9;
    text-align: center;
    padding: 46px 16px 38px;
}

.band h1 {
    margin: 0;
    color: #d43737;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 800;
}

.bar { height: 22px; background: #000; }

.sectors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: #000;
}

.sector {
    min-height: 280px;
    padding: 54px 28px 32px;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.sector-a { background: #bdb9b9; }
.sector-b { background: #999696; }
.sector-c { background: #636363; }

.sector h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
}

.sector p {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
    max-width: 34ch;
}

.btn-red {
    display: inline-block;
    background: #e30613;
    color: #fff;
    text-decoration: none;
    border: 0;
    border-radius: 30px;
    padding: 12px 26px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-red:hover { background: #c10510; }

.sector .btn-red { align-self: flex-end; margin-top: auto; }

.quote {
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 70px 7vw;
    background: #d7d7d7 url("../../images/architect-blueprints2.jpg") right center / cover no-repeat fixed;
}

.quote-box {
    background: #ebe6e6;
    max-width: 460px;
    padding: 26px 24px;
}

.quote-box p {
    margin: 0;
    color: #d43737;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
}

.projects {
    background: #000;
    padding: 72px 20px 36px;
}

.projects h2 {
    margin: 0;
    text-align: center;
    color: #8a8a8a;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.projects h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin: 14px auto 0;
    background: #e30613;
}

.project-grid {
    max-width: 1080px;
    margin: 42px auto 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px 22px;
}

.project-card {
    text-decoration: none;
    color: #9a9a9a;
    text-align: center;
}

.project-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    background: #111;
}

.project-card span {
    display: block;
    margin-top: 12px;
    font-size: 16px;
}

.project-card:hover img { outline: 3px solid #e30613; }

body.is-home .bar,
body.is-home .sectors,
body.is-home .projects,
body.is-home .site-footer {
    background: #fff;
}

body.is-home .projects h2,
body.is-home .project-card,
body.is-home .site-footer,
body.is-home .site-footer a {
    color: #444;
}

.folio {
    background: #000;
    padding: 42px 18px 64px;
}

.folio-grid {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px 20px;
}

.folio-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #222;
    background: #d3d3d3;
}

.folio-photo { overflow: hidden; background: #111; }

.folio-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.folio-card:hover .folio-photo img { transform: scale(1.04); }

.folio-card .meta { padding: 16px 18px 18px; background: #cfcfcf; }

.folio-card h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 400;
}

.folio-card .cat {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 14px;
}

.site-footer {
    background: #000;
    color: #8a8a8a;
    text-align: center;
    font-size: 12px;
    padding: 16px 12px 22px;
}

.site-footer p { margin: 4px 0; }

.site-footer a { color: #8a8a8a; }

.contact-page {
    background: #000;
    color: #d5d5d5;
    padding: 90px 24px 70px;
}

.contact-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: .8fr 1.3fr;
    gap: 48px;
    align-items: start;
}

.brand-line,
.brand-sub {
    margin: 0;
    color: #bdbdbd;
    font-size: 22px;
    font-weight: 600;
}

.brand-sub { font-weight: 400; font-size: 18px; margin-top: 4px; }

.contact-facts {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.contact-facts li,
.contact-facts a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cfcfcf;
    text-decoration: none;
    font-size: 15px;
}

.contact-facts svg {
    width: 16px;
    height: 16px;
    fill: #e30613;
    flex: 0 0 auto;
}

.contact-page h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 28px;
    font-weight: 400;
}

.contact-form { display: flex; flex-direction: column; gap: 12px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.contact-form input,
.contact-form textarea,
.route-form input,
.login-box input,
.admin-block input[type="file"] {
    width: 100%;
    border: 0;
    background: #fff;
    color: #222;
    font: 15px/1.4 "Open Sans", Arial, sans-serif;
    padding: 12px 12px;
}

.contact-form textarea { resize: vertical; min-height: 140px; }

.contact-form .btn-red { align-self: center; margin-top: 18px; padding-left: 34px; padding-right: 34px; }

.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.form-note { margin: 0 0 10px; padding: 10px 12px; background: #2a2a2a; }
.form-note.is-ok { color: #b6f0b6; }
.form-note.is-err { color: #ffb4b4; }

.route { background: #e0dcdc; padding: 54px 24px 70px; }

.route-inner { max-width: 1080px; margin: 0 auto; }

.route h2 {
    margin: 0 0 22px;
    color: #e30613;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.route-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 18px;
    align-items: start;
}

.route iframe { width: 100%; height: 340px; border: 0; background: #ddd; }

.route-form { display: grid; gap: 10px; padding-top: 8px; }

.route-form label { font-size: 14px; color: #333; }

.route-form button {
    justify-self: start;
    background: #fff;
    border: 1px solid #bbb;
    padding: 8px 12px;
    cursor: pointer;
    font: inherit;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox img {
    max-width: min(1100px, 86vw);
    max-height: 82vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .4);
}

.lb-close,
.lb-prev,
.lb-next {
    position: absolute;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 42px;
    line-height: 1;
}

.lb-close { top: 12px; right: 18px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

.lb-count {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    text-align: center;
    color: #ddd;
    margin: 0;
}

body.lb-open { overflow: hidden; }

.admin-body { background: #f4f4f4; color: #222; }

.login-box {
    max-width: 420px;
    margin: 48px auto;
    background: #fff;
    padding: 28px 28px 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
}

.login-box img { height: 72px; width: auto; }
.login-box h1 { font-size: 26px; margin: 16px 0 6px; }
.login-box p { margin-top: 0; }
.login-box label { display: block; margin: 14px 0 6px; font-weight: 600; }
.login-box .btn-red { margin-top: 16px; }

.admin-bar {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 22px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

.admin-bar img { height: 58px; width: auto; display: block; }
.admin-bar nav { display: flex; gap: 16px; }
.admin-bar a { color: #222; font-weight: 600; text-decoration: none; }

.admin-main { max-width: 980px; margin: 0 auto; padding: 28px 18px 60px; }

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.page-head h1 { margin-bottom: 0; }

.admin-create { display: grid; gap: 8px; max-width: 520px; }
.admin-create .btn-red { justify-self: start; margin-top: 8px; }

.field-hint {
    margin: 0;
    color: #666;
    font-size: 14px;
}
.admin-create label,
.cat-choices label { font-weight: 600; }

.cat-choices {
    border: 0;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.cat-choices legend {
    font-weight: 600;
    margin-bottom: 4px;
}

.cat-choices label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    font-size: 16px;
}

.cat-choices input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.cat-choices .btn-red { justify-self: start; margin-top: 6px; }

.admin-block input[type="text"],
.admin-block select {
    width: 100%;
    border: 1px solid #ccc;
    background: #fff;
    color: #222;
    font: 15px/1.4 "Open Sans", Arial, sans-serif;
    padding: 12px;
}

.no-photo {
    display: block;
    width: 92px;
    height: 68px;
    background: #e6e6e6;
}

.crumb a { color: #777; text-decoration: none; }
.admin-main h1 { margin-bottom: 6px; }
.admin-lead { margin-top: 0; color: #444; }
.admin-main h2 { margin: 28px 0 12px; font-size: 22px; }
.crumb { margin: 0; color: #777; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; }

.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.admin-list li {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 14px;
    align-items: center;
    background: #fff;
    padding: 10px;
}

.admin-list img { width: 92px; height: 68px; object-fit: cover; display: block; }
.admin-list .actions { display: flex; gap: 8px; align-items: center; }
.admin-list .actions form { margin: 0; }

.btn-delete {
    display: inline-block;
    background: #fff;
    color: #e30613;
    border: 1px solid #e30613;
    border-radius: 30px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    cursor: pointer;
}

.btn-delete:hover { background: #fff1f1; }
.admin-list span { color: #666; font-size: 13px; word-break: break-all; }

.admin-block { background: #fff; padding: 18px; margin-top: 16px; }
.admin-block form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.admin-shot { margin: 0; }
.admin-shot img { width: min(100%, 640px); height: auto; display: block; }
.admin-shot figcaption { margin-top: 8px; color: #555; font-size: 14px; }

.upload-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.upload-grid img { width: 100%; height: 130px; object-fit: cover; display: block; background: #eee; }
.upload-grid span { display: block; margin: 6px 0; font-size: 13px; word-break: break-all; }
.upload-grid button {
    border: 0;
    background: transparent;
    color: #e30613;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.admin-body .form-note { background: #fff; border: 1px solid #ddd; }
.admin-body .form-note.is-ok { color: #146c2e; }
.admin-body .form-note.is-err { color: #a11010; }

@media (max-width: 980px) {
    .nav-main { display: none; }
    .slide-frame { height: 260px; }
    .band h1 { font-size: 22px; }
    .sectors,
    .project-grid,
    .folio-grid,
    .contact-grid,
    .route-grid,
    .form-row { grid-template-columns: 1fr; }
    .sector { min-height: 0; }
    .quote { background-attachment: scroll; padding: 48px 20px; justify-content: stretch; }
    .projects h2 { letter-spacing: 2px; font-size: 20px; }
    .admin-list li { grid-template-columns: 72px 1fr; }
    .admin-list .actions { grid-column: 2; justify-self: start; flex-wrap: wrap; }
}
