/* onepager-2 */

:root {
    --teal: #5bc0be;
    --teal-dark: #45a9a7;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: #fff;
    color: #000;
    font-family: "Raleway", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[id] { scroll-margin-top: 50px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #000; color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; }

.container { width: 100%; padding: 0 96px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */

.site-header { position: relative; z-index: 50; background: #fff; }

.header-top {
    display: flex;
    align-items: stretch;
    min-height: 62px;
}

.header-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 330px;
    padding: 0 60px 0 90px;
    margin-bottom: -62px;          /* the teal brand block covers the menu row too */
    background: var(--teal);
    clip-path: polygon(0 0, 100% 0, 100% 50%, calc(100% - 62px) 100%, 0 100%);
}
.header-brand a { color: #fff; text-decoration: none; }
.header-brand img { max-height: 90px; width: auto; }
.site-title { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; }

.header-contact {
    display: flex;
    align-items: center;
    gap: 70px;
    flex: 1 1 auto;
    margin-right: 40px;
    padding: 6px 70px 6px 50px;
    background: var(--teal);
    clip-path: polygon(0 0, 100% 0, calc(100% - 40px) 100%, 0 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 400;
}
.header-contact-item { display: flex; align-items: center; gap: 22px; }
.header-contact-item i { font-size: 18px; }
.header-contact-item div { display: flex; flex-direction: column; line-height: 1.35; }
.header-contact-label { font-size: 12px; }
.header-contact a { text-decoration: none; }

.main-nav { padding: 12px 0 12px 380px; min-height: 62px; }
.main-menu { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 0; padding: 0; }
.main-menu a {
    display: block;
    padding: 8px 18px;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .18);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.main-menu a:hover { background: var(--teal); color: #fff; }

.nav-toggle {
    display: none;
    margin-left: auto;
    padding: 0 20px;
    border: 0;
    background: var(--teal);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: var(--teal);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    transform: translateY(-100%);
    transition: transform .25s ease;
}
.sticky-nav.is-visible { transform: none; }
.sticky-menu { display: flex; justify-content: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.sticky-menu a {
    display: block;
    padding: 13px 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.sticky-menu a:hover { background: var(--teal-dark); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 580px;
    background: #6b7a8a center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .2); }
.hero-text { position: relative; width: 23%; min-width: 260px; text-align: center; color: #fff; }
.hero-text h1 { margin: 0 0 12px; font-size: 22px; font-weight: 700; }
.hero-text p { margin: 0; font-size: 15px; font-weight: 400; }

/* ---------- Sections ---------- */

.section { padding: 70px 0 40px; }

.section-title {
    position: relative;
    margin: 0 0 60px;
    padding-bottom: 22px;
    font-size: 30px;
    font-weight: 600;
    text-align: center;
}
.section-title::before,
.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}
.section-title::before { width: 150px; height: 1px; background: #ddd; }
.section-title::after { width: 46px; height: 4px; bottom: -2px; background: var(--teal); }

.text-content { text-align: justify; font-size: 15px; line-height: 1.45; }
.text-content p { margin: 0; }
.text-content ul { margin: 0; padding-left: 22px; line-height: 2; font-size: 15px; }
.text-content ul ul { padding-left: 16px; list-style: disc; }

.columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.framed-image { width: 100%; max-width: 610px; padding: 8px; background: #fff; box-shadow: 0 1px 8px rgba(0, 0, 0, .15); }

/* ---------- Gallery ---------- */

.gallery-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin: -20px 0 26px; }
.gallery-filters button {
    min-width: 108px;
    padding: 8px 20px;
    border: 0;
    background: #ccc;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}
.gallery-filters button.is-active,
.gallery-filters button:hover { background: #7b7b7b; }

.gallery-grid { column-count: 3; column-gap: 12px; max-width: 1230px; margin: 0 auto; }
.gallery-item {
    display: block;
    margin-bottom: 12px;
    padding: 4px;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .15);
    break-inside: avoid;
}
.gallery-item[hidden] { display: none; }
.gallery-item img { width: 100%; }

/* ---------- Contact ---------- */

.section-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 60px; }
.contact-form-side { background: #cfd8dc; padding: 40px 20px 60px; }
.contact-form-side h2 { margin: 0 0 24px; font-size: 30px; font-weight: 600; text-align: center; }
.contact-card { max-width: 432px; margin: 0 auto; padding: 20px 28px 10px; background: #fff; border-radius: 3px; }
.contact-form p { margin: 0 0 16px; }
.contact-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 400; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 0;
    font: inherit;
}
.contact-form input[type="checkbox"] { width: auto; }
.contact-form textarea { height: 190px; resize: vertical; }
.contact-form button {
    padding: 8px 30px;
    border: 0;
    border-radius: 2px;
    background: var(--teal);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.contact-form button:hover { background: var(--teal-dark); }
.contact-form button[disabled] { opacity: .6; cursor: wait; }
.form-message { margin: 0 0 16px; padding: 10px 14px; font-size: 14px; font-weight: 400; }
.form-message.is-success { background: #e2f4f3; color: #1f6664; }
.form-message.is-error { background: #fbe4e4; color: #8a1d1d; }

.contact-info-side { display: flex; flex-direction: column; }
.contact-info { padding: 70px 30px 40px; text-align: center; font-size: 14px; font-weight: 400; }
.contact-info p { margin: 0 0 16px; }
.contact-info i { margin-right: 8px; }
.contact-info a { text-decoration: none; }
.contact-map { flex: 1 1 auto; width: 100%; min-height: 400px; border: 0; }

/* ---------- Subpages ---------- */

.section-subpage { min-height: 50vh; }
.subpage-image { margin: 0 auto 30px; }
.article-item { margin-bottom: 36px; }
.article-item .service-title { margin: 0 0 4px; font-size: 20px; font-weight: 600; }
.article-date { font-size: 13px; color: #777; margin: 0 0 10px; }
.back-link { margin-top: 40px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--teal); color: #fff; text-align: center; }
.site-footer p { margin: 0; padding: 14px 20px; font-size: 14px; font-weight: 400; }

.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 50px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 3px;
    background: var(--teal);
    color: #fff;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.scroll-top.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Lightbox ---------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .88);
}
.lightbox[hidden] { display: none; }
.lightbox-image { max-width: 88vw; max-height: 88vh; }
.lightbox button { position: absolute; border: 0; background: none; color: #fff; font-size: 48px; line-height: 1; cursor: pointer; padding: 10px 18px; }
.lightbox-close { top: 10px; right: 10px; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .header-contact { gap: 30px; padding-right: 50px; }
    .header-brand { min-width: 0; padding-left: 30px; }
    .main-nav { padding-left: 330px; }
    .container { padding: 0 40px; }
}

@media (max-width: 860px) {
    .header-top { min-height: 60px; }
    .header-brand { flex: 1 1 auto; margin-bottom: 0; padding: 0 20px; clip-path: none; }
    .site-title { font-size: 24px; }
    .header-contact { display: none; }
    .nav-toggle { display: block; }
    .main-nav { display: none; padding: 10px 20px; }
    .site-header.is-open .main-nav { display: block; }
    .main-menu { flex-direction: column; gap: 8px; }
    .sticky-nav { display: none; }

    .container { padding: 0 20px; }
    .hero { min-height: 380px; justify-content: center; }
    .hero-text { width: auto; }
    .columns,
    .section-contact { grid-template-columns: minmax(0, 1fr); }
    .gallery-grid { column-count: 2; }
    .text-content { text-align: left; }
}

@media (max-width: 520px) {
    .gallery-grid { column-count: 1; }
}

.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 12px 20px 0; font-size: 14px; font-weight: 400; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
