/*
 * Public site bridge for the Dewi template.
 * The CMS continues to use css/site.css.
 */
:root {
    --print-black: #090909;
    --print-charcoal: #181818;
    --print-yellow: #f5c400;
    --print-line: #d8d8d8;
    --print-soft: #f6f6f6;
    --background-color: #fff;
    --default-color: #202020;
    --heading-color: var(--print-black);
    --accent-color: var(--print-yellow);
    --surface-color: #fff;
    --contrast-color: var(--print-black);
    --nav-color: #fff;
    --nav-hover-color: var(--print-yellow);
    --nav-mobile-background-color: #fff;
    --nav-dropdown-background-color: #fff;
    --nav-dropdown-color: var(--print-black);
    --nav-dropdown-hover-color: var(--print-yellow);
}

.light-background {
    --background-color: var(--print-soft);
    --surface-color: #fff;
}

.dark-background {
    --background-color: var(--print-black);
    --default-color: #fff;
    --heading-color: #fff;
    --surface-color: var(--print-charcoal);
    --contrast-color: var(--print-black);
}

a:hover,
.title-link:hover,
.text-link:hover {
    color: var(--print-yellow);
}

.header {
    background: color-mix(in srgb, var(--print-black), transparent 8%);
}

.header .logo .sitename,
.footer .sitename {
    color: #fff;
}

.header .navmenu a:hover,
.header .navmenu .active,
.header .navmenu .active:focus {
    color: var(--print-yellow);
}

.header .cta-btn,
.header .cta-btn:focus,
.scroll-top {
    background: var(--print-yellow);
    border-color: var(--print-yellow);
    color: var(--print-black);
}

.header .cta-btn:hover,
.header .cta-btn:focus:hover,
.scroll-top:hover {
    background: #ffd62b;
    color: var(--print-black);
}

.footer {
    border-top: 4px solid var(--print-yellow);
}

.footer .footer-links ul a:hover,
.footer .footer-links ul i,
.footer .credits a:hover {
    color: var(--print-yellow);
}

.header .sitename,
.footer .sitename {
    letter-spacing: 0;
}

.public-header-logo {
    display: block;
    max-height: 58px;
    max-width: min(270px, 42vw);
    object-fit: contain;
    width: auto;
}

.header .cta-btn {
    white-space: nowrap;
}

.public-home-hero .hero-copy {
    max-width: 920px;
}

.public-home-hero .eyebrow,
.public-page-title .eyebrow,
.product-title .eyebrow {
    color: var(--accent-color);
    font-family: var(--nav-font);
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.public-home-hero h2 {
    line-height: 1.06;
}

.public-home-hero p {
    max-width: 780px;
    margin-inline: auto;
}

.dewi-outline-btn {
    border: 2px solid rgba(255, 255, 255, .78);
    border-radius: 4px;
    color: #fff;
    display: inline-block;
    font-family: var(--nav-font);
    font-size: 14px;
    letter-spacing: 1px;
    padding: 10px 30px;
    text-transform: uppercase;
}

.dewi-outline-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--print-black);
}

.public-page-title .lede {
    margin: 0 auto 18px;
    max-width: 780px;
}

.wrap {
    margin: 0 auto;
    max-width: 1140px;
    padding-inline: 24px;
}

.band {
    padding: 70px 0;
}

.band.soft {
    background: var(--print-soft);
}

.grid {
    display: grid;
    gap: 24px;
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-head {
    display: flex;
    justify-content: flex-end;
    margin: -38px 0 24px;
}

.item,
.body-copy,
.product-copy,
.form-panel,
.gallery-frame,
.gallery-empty {
    background: var(--surface-color);
    border: 1px solid var(--print-line);
    box-shadow: 0 0 25px rgba(0, 0, 0, .08);
}

.item {
    border-radius: 8px;
    display: grid;
    gap: 14px;
    min-height: 210px;
    overflow: hidden;
    padding: 28px;
    position: relative;
}

.item::before {
    background: var(--accent-color);
    content: "";
    height: 4px;
    inset: 0 0 auto;
    position: absolute;
}

.item h2,
.item h3 {
    font-size: 24px;
    margin: 0;
}

.item p,
.copy {
    color: color-mix(in srgb, var(--default-color), transparent 18%);
    line-height: 1.75;
    margin: 0;
}

.item-cover {
    display: block;
    margin: -28px -28px 4px;
}

.product-image {
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
    width: 100%;
}

.title-link {
    color: var(--heading-color);
}

.text-link {
    align-self: end;
    font-weight: 700;
}

.catalogue-card {
    grid-template-rows: auto 1fr auto;
}

.catalogue-card p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

.catalogue-button {
    align-self: end;
    border-radius: 4px;
    font-size: .94rem;
    line-height: 1.2;
    padding: 9px 16px;
    white-space: nowrap;
    width: fit-content;
}

.copy-layout,
.product-detail {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr);
}

.body-copy,
.form-panel,
.product-copy {
    border-radius: 8px;
    line-height: 1.9;
    padding: clamp(26px, 4vw, 48px);
}

.body-copy {
    white-space: pre-line;
}

.note {
    border-left: 4px solid var(--accent-color);
    color: color-mix(in srgb, var(--default-color), transparent 20%);
    line-height: 1.8;
    padding: 18px 0 18px 24px;
}

.fields {
    display: grid;
    gap: 18px;
}

.fields.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fields label {
    display: grid;
    font-weight: 600;
    gap: 7px;
}

.fields input,
.fields textarea,
.fields select {
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 78%);
    border-radius: 0;
    padding: 11px 14px;
    width: 100%;
}

.fields textarea {
    min-height: 150px;
}

.button {
    background: var(--accent-color);
    border: 0;
    border-radius: 50px;
    color: var(--print-black);
    display: inline-flex;
    justify-content: center;
    justify-self: start;
    padding: 11px 30px;
}

.button:hover {
    background: #ffd62b;
    color: var(--print-black);
}

.contact-submit {
    align-self: start;
    border-radius: 4px;
    font-size: .94rem;
    justify-self: start;
    line-height: 1.2;
    min-height: 0;
    padding: 8px 14px;
    width: auto;
}

.contact-stack {
    display: grid;
    gap: 28px;
}

.contact-location {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
}

.contact-details {
    background: var(--surface-color);
    border: 1px solid var(--print-line);
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(0, 0, 0, .08);
    padding: clamp(24px, 3vw, 38px);
}

.contact-details h2 {
    font-size: 28px;
    margin: 0 0 24px;
}

.contact-details dl,
.contact-details dl div {
    display: grid;
    gap: 6px;
    margin: 0;
}

.contact-details dl {
    gap: 20px;
}

.contact-details dt {
    color: var(--print-black);
    font-family: var(--nav-font);
    font-weight: 800;
    text-transform: uppercase;
}

.contact-details dd {
    line-height: 1.75;
    margin: 0;
}

.contact-details a {
    color: var(--default-color);
    font-weight: 700;
}

.contact-details a:hover {
    color: var(--print-yellow);
}

.flash,
.errors {
    border-radius: 4px;
    padding: 14px 16px;
}

.flash {
    background: #dff5ec;
}

.errors {
    background: #fff0ec;
}

.map-frame,
.pdf-frame {
    border: 0;
    box-shadow: 0 0 25px rgba(0, 0, 0, .12);
    min-height: 460px;
    width: 100%;
}

.viewer-shell {
    background: var(--print-soft);
    min-height: 760px;
}

.viewer-shell .pdf-frame {
    min-height: 720px;
}

.product-gallery {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-frame,
.gallery-empty {
    border-radius: 8px;
    margin: 0;
    min-height: 230px;
    overflow: hidden;
}

.gallery-frame:first-child {
    grid-column: 1 / -1;
}

.gallery-frame img {
    aspect-ratio: 16 / 10;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.gallery-empty {
    align-content: center;
    display: grid;
    grid-column: 1 / -1;
    padding: 30px;
}

.definition {
    font-size: 1.18rem;
    line-height: 1.8;
}

.client-logo-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.client-carousel {
    overflow: hidden;
    padding: 0 58px 42px;
    position: relative;
}

.client-carousel .swiper-slide {
    height: auto;
}

.client-logo-tile,
.client-logo-empty {
    align-items: center;
    background: #fff;
    border: 1px solid var(--print-line);
    border-radius: 8px;
    display: grid;
    justify-items: center;
    margin: 0;
    min-height: 150px;
    padding: 28px;
}

.client-carousel .client-logo-tile {
    height: 100%;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.client-carousel .client-logo-tile:hover {
    border-color: var(--print-yellow);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .12);
    transform: translateY(-3px);
}

.client-logo-tile img {
    max-height: 88px;
    max-width: 100%;
    object-fit: contain;
}

.client-logo-empty {
    color: color-mix(in srgb, var(--default-color), transparent 18%);
    grid-column: 1 / -1;
    justify-items: start;
}

.client-carousel-control {
    align-items: center;
    background: #fff;
    border: 1px solid var(--print-line);
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
    color: var(--print-black);
    display: inline-flex;
    height: 48px;
    justify-content: center;
    padding: 0;
    position: absolute;
    top: calc(50% - 45px);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease, opacity .2s ease;
    width: 48px;
    z-index: 2;
}

.client-carousel-control:hover {
    background: var(--print-yellow);
    border-color: var(--print-yellow);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .2);
    color: var(--print-black);
}

.client-carousel-control i {
    font-size: 1.3rem;
    line-height: 1;
}

.client-carousel-prev {
    left: 0;
}

.client-carousel-next {
    right: 0;
}

.client-carousel-control.swiper-button-disabled,
.client-carousel-control.swiper-button-lock {
    display: none;
}

.client-carousel-pagination {
    align-items: center;
    bottom: 3px !important;
    display: flex;
    justify-content: center;
    left: 0;
    width: 100%;
}

.client-carousel-pagination .swiper-pagination-bullet {
    background: var(--print-black);
    height: 10px;
    opacity: .32;
    width: 10px;
}

.client-carousel-pagination .swiper-pagination-bullet-active {
    background: var(--print-yellow);
    opacity: 1;
}

.team-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-member-card,
.team-empty {
    background: #fff;
    border: 1px solid var(--print-line);
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.team-member-photo {
    background: var(--print-charcoal);
    display: grid;
    margin: 0;
    min-height: 320px;
    place-items: center;
}

.team-member-photo img {
    aspect-ratio: 4 / 5;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.team-member-fallback {
    align-items: center;
    background: linear-gradient(135deg, var(--print-black), #353535);
    color: var(--print-yellow);
    display: flex;
    font-size: clamp(6rem, 10vw, 9rem);
    height: 100%;
    justify-content: center;
    width: 100%;
}

.team-member-copy {
    display: grid;
    gap: 12px;
    padding: 24px;
}

.team-member-copy h2 {
    font-size: 24px;
    margin: 0;
}

.team-member-role {
    color: var(--print-black);
    font-family: var(--nav-font);
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
}

.team-member-role span {
    color: color-mix(in srgb, var(--default-color), transparent 35%);
    display: block;
    font-size: .84rem;
    font-weight: 700;
    margin-top: 5px;
}

.team-member-copy blockquote {
    border-left: 3px solid var(--accent-color);
    color: color-mix(in srgb, var(--default-color), transparent 18%);
    line-height: 1.75;
    margin: 2px 0 0;
    padding-left: 14px;
}

.team-empty {
    color: color-mix(in srgb, var(--default-color), transparent 18%);
    grid-column: 1 / -1;
    padding: 28px;
}

.whatsapp-agent {
    align-items: center;
    background: #128c55;
    border-radius: 4px;
    bottom: 68px;
    box-shadow: 0 0 24px rgba(0, 0, 0, .24);
    color: #fff;
    display: flex;
    gap: 11px;
    padding: 12px 16px;
    position: fixed;
    right: 15px;
    z-index: 9998;
}

.whatsapp-agent:hover {
    color: var(--print-yellow);
}

.whatsapp-agent i {
    font-size: 28px;
    line-height: 1;
}

.whatsapp-agent strong,
.whatsapp-agent small {
    color: #fff;
    display: block;
    line-height: 1.2;
}

.whatsapp-agent small {
    font-size: .76rem;
    opacity: .86;
}

@media (max-width: 991px) {
    .grid.three,
    .team-grid,
    .copy-layout,
    .contact-location,
    .product-detail,
    .fields.two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .wrap {
        padding-inline: 16px;
    }

    .grid.three,
    .team-grid,
    .product-gallery {
        grid-template-columns: 1fr;
    }

    .section-head {
        justify-content: flex-start;
        margin-top: -42px;
    }

    .whatsapp-agent {
        bottom: 64px;
        max-width: calc(100vw - 78px);
    }

    .client-carousel {
        padding-inline: 0;
    }

    .client-carousel-control {
        display: none;
    }
}
