:root {
    --blue: #08629b;
    --red: #dc0507;
    --text: #303030;
    --rule: #89b4cf;
    --footer: #ebebeb;
}

/* GLOBAL */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.48;
    -webkit-font-smoothing: antialiased;
}

.site {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

main {
    display: block;
    width: 100%;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button,
summary {
    cursor: pointer;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #087ab7;
    outline-offset: 4px;
}

p {
    margin: 0 0 14px;
}

p:last-child {
    margin-bottom: 0;
}

.sr-only,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 12px 20px;
    background: #fff;
}

/* HEADER */

.site-header {
    min-height: 115px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 30px 10px;
}

.brand {
    display: inline-block;
    flex-shrink: 0;
}

.brand img {
    width: 120px;
    height: 76px;
    object-fit: contain;
}

.account-link {
    display: grid;
    place-items: center;
    width: 38px;
    height: 40px;
}

.account-link svg {
    width: 27px;
    height: 27px;
    stroke: #252525;
    stroke-width: 1.35;
}

/* NAVIGATION */

.navigation {
    position: relative;
    z-index: 20;
    width: 100%;
    background: #ebebeb;
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 21px;
    min-height: 32px;
    margin: 0;
    padding: 0 20px;
    list-style: none;
}

.nav-list > li > a,
.products-menu summary {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    line-height: 20px;
}

.nav-list a:hover,
.products-menu summary:hover {
    color: var(--blue);
}

.products-menu {
    position: relative;
}

.products-menu summary {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.products-menu summary::-webkit-details-marker {
    display: none;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: -15px;
    min-width: 205px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    box-shadow: 0 8px 24px #0002;
    border-top: 2px solid var(--blue);
}

.dropdown a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
}

.dropdown a:hover {
    background: #f2f5f7;
}

.menu-toggle {
    display: none;
}

/* SHARED SECTIONS */

section {
    position: relative;
    isolation: isolate;
    width: 100%;
    scroll-margin-top: 20px;
}

.section-content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

/* BACKGROUND IMAGES */

#about.about-section {
    background-image: url("../images/about-bg-2.jpg") !important;
}

#services.services-section,
#feedback.award-section {
    background-image: url("../images/services-bg-1.jpg") !important;
}

#projects.projects-section {
    background-image: url("../images/Port-Background-Images.jpg") !important;
}

#contact.contact-section {
    background-image: url("../images/stock-vector-gray-blank-vector-map-of-the-world-isolated-on-white-background-flat-earth-globe-worldmap-icon-1935178568-e1685417095839.jpg") !important;
}

/* FIXED BACKGROUNDS */

#about.about-section,
#services.services-section,
#projects.projects-section,
#feedback.award-section,
#contact.contact-section {
    background-color: #fff;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Hide old background image elements if present. */

#about > .section-background,
#services > .section-background,
#projects > .section-background,
#feedback > .section-background,
#contact > .section-background {
    display: none;
}

/* OVERLAY LAYER */

#about.about-section::before,
#services.services-section::before,
#projects.projects-section::before,
#feedback.award-section::before,
#contact.contact-section::before {
    content: "" !important;
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
}

/* About, Services and Client Feedback: 12% white overlay */

#about.about-section::before,
#services.services-section::before,
#feedback.award-section::before {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Project Showcase and Contact Us: 40% white overlay */

#projects.projects-section::before,
#contact.contact-section::before {
    background: rgba(255, 255, 255, 0.80) !important;
}

/* Keep text and foreground images above the overlay. */

#about > .section-content,
#services > .section-content,
#projects > .section-content,
#feedback > .section-content,
#contact > .section-content {
    position: relative;
    z-index: 1;
}

/* HEADINGS */

.section-heading {
    display: block;
    position: relative;
    width: fit-content;
    max-width: 100%;
    height: auto;
    margin: 0 auto 45px;
    color: var(--blue);
    font-size: clamp(28px, 2.65vw, 38px);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    visibility: visible;
    opacity: 1;
}

.section-heading::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    margin: 0 auto 28px;
    background: var(--rule);
}

.heading-left {
    margin-left: 0;
    margin-bottom: 16px;
    text-align: left;
}

/* FOREGROUND IMAGES */

.visual {
    min-width: 0;
    overflow: hidden;
}

.visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-right-round {
    border-radius: 0 240px 240px 0;
}

.visual-left-round {
    border-radius: 240px 0 0 240px;
}

/* ABOUT */

.about-section {
    padding: 92px 0;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
}

.about-layout > .visual {
    height: 380px;
}

.about-copy {
    min-width: 0;
    padding: 20px 65px 20px 90px;
}

/* SERVICES */

.services-section {
    padding: 94px 0;
}

.services-layout {
    display: grid;
    grid-template-columns: minmax(0, 53fr) minmax(0, 47fr);
    align-items: center;
}

.services-copy {
    min-width: 0;
    padding: 20px 48px 20px 110px;
}

.services-copy .section-heading {
    margin-bottom: 18px;
}

.service-list {
    margin: 12px 0 0;
    padding-left: 36px;
}

.service-list li {
    line-height: 1.48;
}

.service-visual {
    height: 430px;
}

/* PROJECT SHOWCASE */

.projects-section {
    padding: 96px 0 90px;
}

.project-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 120px;
    width: min(800px, calc(100% - 70px));
    margin: 58px auto 0;
}

.project-card {
    min-width: 0;
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 20px;
}

.project-card h3 {
    margin: 15px -12px 34px;
    color: var(--red);
    font-size: 27px;
    line-height: 1.25;
    text-align: center;
}

.project-copy {
    padding: 0 8px;
}

.project-copy p {
    margin-bottom: 15px;
}

/* VIDEOS */

.videos-block {
    margin-top: 110px;
}

.videos-block .section-heading {
    margin-bottom: 45px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    width: min(1010px, calc(100% - 70px));
    margin: 160px auto 0;
}

.videos-block .video-grid {
    margin-top: 0;
}

.video-card {
    min-width: 0;
    margin: 0;
    text-align: center;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.video-frame iframe,
.video-frame video,
.video-frame img {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.video-unavailable {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 6px;
    background: #000b;
    color: #fff;
    font-size: 12px;
}

.video-card figcaption {
    padding-top: 17px;
    font-size: 15px;
    font-weight: 700;
}

/* CLIENT FEEDBACK */

.award-section {
    padding: 98px 0 84px;
}

.award-section .section-heading {
    margin-bottom: 0;
}

.award-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 65px;
    width: min(1010px, calc(100% - 90px));
    margin: 70px auto 0;
}

.award-logo {
    min-width: 0;
    padding-top: 24px;
}

.award-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.award-copy {
    min-width: 0;
    text-align: justify;
}

.award-stars {
    margin-top: 48px;
    color: #f5ac46;
    font-size: 21px;
    letter-spacing: 1px;
}

/* CONTACT */

.contact-section {
    padding: 86px 0 110px;
}

.contact-section .section-heading {
    margin-bottom: 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 51fr) minmax(0, 49fr);
    align-items: center;
    margin-top: 65px;
}

.contact-form {
    min-width: 0;
    padding: 0 88px 0 104px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.field {
    min-width: 0;
}

.field label {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
    font-weight: 600;
}

.field input,
.field textarea {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 0;
    padding: 9px 14px;
    background: rgb(210 210 210 / .47);
    color: #333;
    font-size: 14px;
}

.field input {
    min-height: 38px;
}

.field textarea {
    min-height: 92px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #777;
    opacity: 1;
}

.full-width {
    grid-column: 1 / -1;
}

.g-recaptcha {
    margin-top: 13px;
}

.send-button {
    min-width: 96px;
    margin-top: 13px;
    padding: 10px 22px;
    border: 0;
    border-radius: 0 20px 0 0;
    background: var(--red);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.send-button:hover {
    background: #b90002;
}

.contact-visual {
    height: 430px;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-notice {
    margin-bottom: 16px;
    padding: 12px;
    border-left: 3px solid;
    background: #fff;
    font-size: 14px;
}

.form-notice.error {
    border-color: #a11111;
    color: #a11111;
}

.form-notice.success {
    border-color: #176c39;
    color: #176c39;
}

.form-notice ul {
    margin: 0;
    padding-left: 18px;
}

/* FOOTER */

.site-footer {
    width: 100%;
    background: var(--footer);
}

.footer-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 2.6fr)
        minmax(0, .85fr)
        minmax(0, .85fr)
        minmax(0, 1.2fr);
    gap: 38px;
    padding: 72px 8% 70px;
}

.footer-brand,
.footer-column {
    min-width: 0;
}

.footer-logo {
    width: 142px;
    height: auto;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 82px;
    margin-bottom: 23px;
}

.facebook,
.linkedin {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 19px;
    height: 19px;
    background: #222;
    color: var(--footer);
    font-family: Arial, sans-serif;
    font-weight: 700;
    line-height: 1;
}

.facebook {
    padding-top: 4px;
    border-radius: 50%;
    font-size: 19px;
}

.linkedin {
    border-radius: 1px;
    font-size: 14px;
}

.payment-logos {
    width: 190px;
    max-height: 35px;
    object-fit: contain;
    object-position: left;
}

.footer-column h2 {
    margin: 0 0 17px;
    color: #111;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.3;
}

.footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column li {
    margin-bottom: 17px;
}

.footer-column,
.footer-column address {
    font-size: 13px;
    font-style: normal;
    line-height: 1.5;
}

.footer-column a:hover,
.footer-column a.active {
    color: #ed4747;
}

.footer-contact p {
    margin-bottom: 18px;
}

.footer-contact a {
    overflow-wrap: anywhere;
}

.copyright {
    padding: 10px 20px;
    background: #d30505;
    color: #fff;
    font-size: 13px;
    text-align: center;
}

/* TABLET */

@media (max-width: 1100px) {
    .about-copy {
        padding: 20px 35px 20px 48px;
    }

    .services-copy {
        padding: 20px 35px 20px 50px;
    }

    .about-layout > .visual {
        height: 330px;
    }

    .service-visual,
    .contact-visual {
        height: 380px;
    }

    .project-grid {
        gap: 70px;
    }

    .contact-form {
        padding: 0 45px;
    }

    .footer-grid {
        grid-template-columns:
            minmax(0, 1.5fr)
            minmax(0, 1fr)
            minmax(0, 1fr)
            minmax(0, 1.3fr);
        gap: 25px;
        padding-left: 5%;
        padding-right: 5%;
    }
}

/* MOBILE */

@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .site-header {
        min-height: 94px;
        padding: 12px 20px;
    }

    .brand img {
        width: 105px;
        height: 67px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 22px;
        border: 0;
        background: transparent;
        color: #333;
    }

    .nav-list {
        display: none;
        padding: 5px 22px 16px;
    }

    .nav-list.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .nav-list > li > a,
    .products-menu summary {
        padding: 9px 0;
    }

    .dropdown {
        position: static;
        margin-bottom: 8px;
        box-shadow: none;
    }

    .about-section,
    .services-section {
        padding: 45px 0;
    }

    .about-layout,
    .services-layout,
    .contact-layout,
    .award-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-layout {
        gap: 35px;
    }

    .about-layout > .visual {
        width: 93%;
        height: auto;
        aspect-ratio: 1.85;
    }

    .about-copy,
    .services-copy {
        padding: 0 25px;
    }

    .section-heading {
        font-size: 29px;
    }

    .section-heading::before {
        margin-bottom: 23px;
    }

    .services-layout {
        gap: 35px;
    }

    .service-visual {
        justify-self: end;
        width: 93%;
        height: auto;
        aspect-ratio: 1.6;
    }

    .service-list {
        margin-bottom: 12px;
        padding-left: 22px;
    }

    .projects-section {
        padding: 55px 0;
    }

    .project-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
        width: min(430px, calc(100% - 48px));
        margin-top: 38px;
    }

    .project-card h3 {
        margin: 18px 0 24px;
        font-size: 25px;
    }

    .videos-block {
        margin-top: 55px;
    }

    .videos-block .section-heading {
        margin-bottom: 32px;
    }

    .video-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        width: min(430px, calc(100% - 48px));
        margin-top: 55px;
    }

    .videos-block .video-grid {
        margin-top: 0;
    }

    .award-section {
        padding: 55px 0;
    }

    .award-layout {
        gap: 35px;
        width: calc(100% - 50px);
        margin-top: 35px;
    }

    .award-logo {
        width: 100%;
        max-width: 400px;
        margin: auto;
        padding-top: 0;
    }

    .award-copy {
        text-align: left;
    }

    .award-stars {
        margin-top: 25px;
    }

    .contact-section {
        padding: 55px 0;
    }

    .contact-layout {
        gap: 40px;
        margin-top: 35px;
    }

    .contact-form {
        padding: 0 25px;
    }

    .contact-visual {
        justify-self: end;
        width: 93%;
        height: auto;
        aspect-ratio: 1.6;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 25px;
        padding: 45px 25px;
    }

    .footer-brand,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .social-links {
        margin-top: 30px;
    }

    .footer-logo {
        width: 125px;
    }

    .copyright {
        padding: 13px 20px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-form {
        padding: 0 8px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    #about.about-section,
    #services.services-section,
    #projects.projects-section,
    #feedback.award-section,
    #contact.contact-section {
        background-attachment: scroll;
    }
}

/* Products dropdown */
.navigation {
    position: relative;
    z-index: 100;
}

.products-menu {
    position: relative;
}

.products-menu > details > summary {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    list-style: none;
}

.products-menu > details > summary::-webkit-details-marker {
    display: none;
}

.products-menu > details[open] > summary {
    color: #d30505;
}

.products-menu > details > .dropdown {
    position: absolute;
    top: 100%;
    left: -14px;
    z-index: 101;

    width: 340px;
    min-width: 0;
    max-width: calc(100vw - 32px);

    max-height: min(720px, 70vh);
    overflow-y: auto;
    overscroll-behavior: contain;

    margin: 0;
    padding: 8px 0;
    list-style: none;

    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.products-menu .dropdown li {
    margin: 0;
    padding: 0;
}

.products-menu .dropdown a {
    display: block;
    padding: 11px 15px;

    color: #222;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
}

.products-menu .dropdown a:hover,
.products-menu .dropdown a:focus-visible {
    background: #f3f5f7;
    color: #d30505;
}

@media (max-width: 767px) {
    .products-menu > details > .dropdown {
        position: static;
        width: 100%;
        max-width: 100%;
        max-height: 55vh;

        margin: 4px 0 12px;
        box-shadow: none;
        border-left: 2px solid #08629b;
    }

    .products-menu .dropdown a {
        padding: 11px 15px;
        font-size: 14px;
    }
}

/* Products dropdown */
.site-nav {
    position: relative;
    z-index: 1000;
    overflow: visible;
}

.site-nav .nav-list {
    overflow: visible;
}

.site-nav .ami-products {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav .ami-products-trigger {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
    margin: 0;
    padding: 5px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111;
    font: inherit;
    font-weight: 400;
    line-height: 1.4;
    cursor: pointer;
}

.site-nav .ami-products.is-open > .ami-products-trigger {
    color: #e00000;
}

.site-nav .ami-products-trigger:focus-visible,
.site-nav .ami-products-dropdown a:focus-visible {
    outline: 2px solid #08629b;
    outline-offset: -2px;
}

.site-nav .ami-chevron-down {
    display: inline-block;
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 2px solid #303030;
    border-bottom: 2px solid #303030;
    transform: rotate(45deg);
}

.site-nav .ami-products-dropdown {
    position: absolute;
    top: 100%;
    left: -10px;
    z-index: 1001;

    display: none;
    width: 262px;
    min-width: 262px;
    max-width: calc(100vw - 24px);
    height: auto;
    max-height: none;
    overflow: visible;

    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    list-style: none;
    text-align: left;
}

.site-nav .ami-products.is-open > .ami-products-dropdown {
    display: block;
}

.site-nav .ami-products-dropdown > li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
}

.site-nav .ami-products-dropdown > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    width: 100%;
    min-height: 34px;
    margin: 0;
    padding: 7px 10px;

    border: 0;
    border-radius: 0;
    background: #fff;
    color: #111;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    text-decoration: none;
    white-space: normal;
}

.site-nav .ami-products-dropdown > li > a:hover,
.site-nav .ami-products-dropdown > li > a:focus-visible {
    background: #f3f3f3;
    color: #df0000;
}

.site-nav .ami-chevron-right {
    display: inline-block;
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-top: 2px solid #303030;
    border-right: 2px solid #303030;
    transform: rotate(45deg);
}

@media (max-width: 767px) {
    .site-nav .ami-products {
        display: block;
        width: 100%;
    }

    .site-nav .ami-products-trigger {
        width: 100%;
        min-height: 44px;
        padding: 10px 14px;
    }

    .site-nav .ami-products-dropdown {
        position: static;
        width: 100%;
        min-width: 0;
        max-width: none;
        max-height: none;
        margin: 0;
        padding: 0;
        border-left: 2px solid #e00000;
    }

    .site-nav .ami-products-dropdown > li > a {
        min-height: 44px;
        padding: 10px 16px;
    }
}