


.projects-area {
    position: relative;
}

/* flex (not grid) so an incomplete last row is centred instead of left-aligned;
   --pr-cols drives how many products sit per row */
.projects-area .projects-wrapper {
    --pr-cols: 4;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 -45px;
    row-gap: 60px;
    column-gap: 0;
}

.projects-area .projects-wrapper > .project-item {
    flex: 0 0 calc(100% / var(--pr-cols));
    max-width: calc(100% / var(--pr-cols));
}

@media only screen and (max-width: 1399px) {
    .projects-area .projects-wrapper {
        margin: 0 -30px;
        row-gap: 40px;
    }
}

@media only screen and (max-width: 991px) {
    .projects-area .projects-wrapper {
        --pr-cols: 2;
    }
}

@media only screen and (max-width: 767px) {
    .projects-area .projects-wrapper {
        margin: 0 -20px;
        row-gap: 30px;
    }
}

@media only screen and (max-width: 575px) {
    .projects-area .projects-wrapper {
        --pr-cols: 1;
    }
}

.projects-area .project-item {
    padding: 0 45px;
    border-left: 1px solid #E2E2E2;
}

@media only screen and (max-width: 1399px) {
    .projects-area .project-item {
        padding: 0 30px;
    }
}

@media only screen and (max-width: 767px) {
    .projects-area .project-item {
        padding: 0 20px;
    }
}

.projects-area .project-item .project-thumb img {
    border-radius: 30px;
}

/* FG Safety brand palette (sampled from the logo) */
:root {
    --fg-navy: #222e47;
    --fg-navy-light: #2e3d5f;
    --fg-navy-border: #3a4a6e;
    --fg-amber: #fbae30;
    --fg-amber-soft: #fff4de;
    --fg-tint: #f3f5f9;
    --fg-line: #e2e6ee;
}

/* The theme's fade-in animations translate elements 50px sideways while they enter;
   clip (not hidden - it keeps position: sticky working) stops that causing a sideways scroll on phones. */
main {
    overflow-x: clip;
}

/* The amber bleed bar behind the footer social row is `left: 100%; width: calc(100% + 300px)`,
   so it runs ~1000px past the viewport and gives every page a horizontal scrollbar between
   768px and ~1400px. Clipping at the full-width parent keeps the bar reaching the edge. */
.footer-top {
    overflow: hidden;
}

/* ==========================================================================
   Head Protection page - key features
   ========================================================================== */
.products_features_section {
    position: relative;
    background-color: #fff;
}

.products_features_section .products_features .swiper-button-next {
    right: -65px;
}
.products_features_section .products_features .swiper-button-prev {
    left: -75px;
}

/* below 1500px the -65px offset would spill past the viewport: tuck arrows inside the container */
@media only screen and (max-width: 1499px) {
    .products_features_section .products_features {
        padding-bottom: 60px;
    }
}

/* theme convention: style-2 text arrows are hidden on tablets/phones (swipe + autoplay) */
@media only screen and (max-width: 991px) {
    .products_features_section .products_features .swiper-button-next,
    .products_features_section .products_features .swiper-button-prev {
        display: none;
    }
    .products_features_section .products_features {
        padding-bottom: 0;
    }
}
.products_features_section .products_features .swiper-button-next,
.products_features_section .products_features .swiper-button-prev,
.products_features_section .products_features .swiper-button-next::after,
.products_features_section .products_features .swiper-button-prev::after {
    color: var(--fg-navy);
}
.products_features_section .products_features .swiper-button-next:hover,
.products_features_section .products_features .swiper-button-prev:hover,
.products_features_section .products_features .swiper-button-next:hover::after,
.products_features_section .products_features .swiper-button-prev:hover::after {
    color: var(--fg-amber);
}
.wcf_iconbox.style-8 {
    border-radius: 30px;
    background: #1e2a45;
    border: 1px solid #1e2a45;
    padding: 45px;
    transition: border-color 0.3s;
}

@media only screen and (max-width: 1919px) {
    .wcf_iconbox.style-8 {
        padding: 45px 25px;
    }
}

@media only screen and (max-width: 1199px) {
    .wcf_iconbox.style-8 {
        flex-basis: 30%;
        padding: 25px;
    }
}

@media only screen and (max-width: 991px) {
    .wcf_iconbox.style-8 {
        flex-basis: 48%;
        padding: 25px;
    }
}

@media only screen and (max-width: 767px) {
    .wcf_iconbox.style-8 {
        flex-basis: 100%;
    }
}

.wcf_iconbox.style-8 .thumb {
    margin-bottom: 35px;
}

@media only screen and (max-width: 1919px) {
    .wcf_iconbox.style-8 .thumb {
        margin-bottom: 35px;
    }
}

.wcf_iconbox.style-8 .title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 17px;
    text-transform: capitalize;
}

.wcf_iconbox.style-8 .text {
    margin-bottom: 0px;
    color: #d7d7d7;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.6;
}
@media only screen and (max-width: 1366px) {
    .wcf_iconbox.style-8 .title {
        font-size: 20px;
    }
    .wcf_iconbox.style-8 .text {
        font-size: 15px;
    }
}

/* ==========================================================================
   Head Protection page - product area (gallery + specs)
   ========================================================================== */
/* .hp-product-area {
    background-color: var(--fg-tint);
}

.hp-product-area.hp-bump-cap-area {
    background-color: #fff;
} */

/* ==========================================================================
   Head Protection page - UNIVERSAL section heading
   One rule set for every section on this page (.hp-section). Add .hp-section
   to a section and its heading is styled - do not add per-section heading CSS.
   Add .hp-section-center as well to centre the heading.
   ========================================================================== */
.hp-section .section-heading {
    margin-bottom: 60px;
}

.hp-section .section-subtitle {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 3.6px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
    color: var(--fg-amber);
}

.hp-section .section-title {
    /* font-size: 45px; */
    font-size: 54px;
    line-height: 1.1;
    color: var(--fg-navy);
    text-transform: capitalize !important;
    font-weight: 300;
}
.hp-section .section-title>span {
    font-weight: 600;
    /* color: #fbae30;
    font-weight: 800; */
}

.hp-section-center .section-heading {
    text-align: center;
}

.hp-section-center .section-title-wrapper {
    margin-inline: auto;
}

@media only screen and (max-width: 1599px) {
    .hp-section .section-title {
        font-size: 42px;
    }
}
@media only screen and (max-width: 991px) {
    .hp-section .section-title {
        font-size: 40px;
    }
}

@media only screen and (max-width: 767px) {
    .hp-section .section-heading {
        margin-bottom: 40px;
    }

    .hp-section .section-title {
        font-size: 28px;
    }
}
.hp-product-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* stop the swiper slide row from inflating the grid column */
.hp-product-inner > * {
    min-width: 0;
}

/* bump cap block is mirrored: details left, gallery right (desktop only - stacked on mobile keeps image first) */
@media only screen and (min-width: 992px) {
    .hp-bump-cap-area .hp-product-gallery {
        order: 2;
    }

    .hp-bump-cap-area .hp-product-details {
        order: 1;
    }
}

.hp-gallery-main,
.hp-gallery-thumbs {
    width: 100%;
}

@media only screen and (max-width: 1399px) {
    .hp-product-inner {
        gap: 50px;
    }
}

@media only screen and (max-width: 991px) {
    .hp-product-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.hp-product-gallery {
    position: sticky;
    top: 120px;
}

@media only screen and (max-width: 991px) {
    .hp-product-gallery {
        position: static;
    }
}

.hp-gallery-main {
    border-radius: 20px;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid var(--fg-line);
}


.hp-gallery-main .swiper-slide {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.hp-gallery-main .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.hp-gallery-main .swiper-button-next,
.hp-gallery-main .swiper-button-prev {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--fg-navy);
    color: var(--white);
    font-size: 14px;
    margin-top: -23px;
    transition: all 0.3s;
}

.hp-gallery-main .swiper-button-next::after,
.hp-gallery-main .swiper-button-prev::after {
    display: none;
}

.hp-gallery-main .swiper-button-next:hover,
.hp-gallery-main .swiper-button-prev:hover {
    background-color: var(--fg-amber);
    color: var(--fg-navy);
}

.hp-gallery-main .swiper-button-next {
    right: 20px;
}

.hp-gallery-main .swiper-button-prev {
    left: 20px;
}

.hp-gallery-thumbs {
    margin-top: 12px;
}

.hp-gallery-thumbs .swiper-slide {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    border: 2px solid var(--fg-line);
    background-color: #fff;
    padding: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-gallery-thumbs .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.hp-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--fg-navy);
}
.hp-product-area  .hp-products-title {
    font-size: 35px;
    font-weight: 600;
    color: var(--fg-navy);
    margin-bottom: 25px;
    text-transform: uppercase;
}
.hp-product-area  .hp-products-title span {
    color: #fbae30;
    font-weight: 800;
}
.hp-product-area .hp-product-intro {
    font-size: 18px;
    line-height: 1.6;
    color: var(--secondary);
    margin-bottom: 40px;
}

.hp-product-area .hp-product-intro strong {
    color: var(--fg-navy);
    font-weight: 600;
}

.hp-spec-block {
    margin-bottom: 40px;
}

.hp-spec-block:last-child {
    margin-bottom: 0;
}

.hp-spec-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--fg-navy);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--fg-navy);
}

.hp-spec-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hp-spec-list li {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--fg-line);
    font-size: 16px;
    line-height: 1.5;
    color: var(--secondary);
}
@media only screen and (max-width: 1366px) {
    .hp-product-area .hp-product-intro {
        font-size: 16px;
    }
    .hp-spec-list li {
        padding: 9px 0;
        font-size: 14px;
    }
}

.hp-spec-list li:last-child {
    border-bottom: 0;
}

.hp-spec-list li span {
    font-weight: 600;
    color: var(--fg-navy);
}

@media only screen and (max-width: 575px) {
    .hp-spec-list li {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.hp-spec-note {
    margin-top: 16px;
    font-size: 14px !important;
    font-style: italic;
    color: var(--secondary);
}

/* plain list inside a spec block (accessories / equipment lists - no label column) */
.hp-spec-list.hp-spec-list-plain li {
    grid-template-columns: 1fr;
}

/* ==========================================================================
   Head Protection page - replacement & bulk supply
   ========================================================================== */
.hp-supply-area {
    background-color: var(--fg-tint);
}

.hp-supply-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media only screen and (max-width: 991px) {
    .hp-supply-inner {
        grid-template-columns: 1fr;
    }
}

.hp-supply-card {
    border-radius: 20px;
    padding: 50px;
    background-color: #fff;
    border: 1px solid var(--fg-line);
}

@media only screen and (max-width: 1199px) {
    .hp-supply-card {
        padding: 35px;
    }
}

@media only screen and (max-width: 767px) {
    .hp-supply-card {
        padding: 30px 25px;
    }
}

.hp-supply-card-dark {
    background-color: var(--fg-navy);
    border-color: var(--fg-navy);
}

.hp-supply-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background-color: var(--fg-amber);
    color: var(--fg-navy);
    margin-bottom: 30px;
}

.hp-supply-card .title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--fg-navy);
    margin-bottom: 18px;
}

.hp-supply-card .text {
    font-size: 17px;
    line-height: 1.6;
    color: var(--secondary);
    margin-bottom: 0;
}

.hp-supply-card .text strong {
    font-weight: 600;
    color: var(--fg-navy);
}

.hp-supply-card-dark .title {
    color: #fff;
}

.hp-supply-card-dark .text {
    color: #c9d0de;
}

.hp-supply-card-dark .text strong {
    color: #fff;
}

.hp-supply-card .btn-wrapper {
    margin-top: 30px;
}

.hp-supply-card-dark .wc-btn-primary {
    background-color: var(--fg-amber);
    border-color: var(--fg-amber);
    color: var(--fg-navy);
}

.hp-supply-card-dark .wc-btn-primary:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--fg-navy);
}

/* ==========================================================================
   Head Protection page - applications
   ========================================================================== */
/* .hp-application-area {
    background-color: var(--fg-tint);
} */

/* flex (not grid) so a partial last row is centred; --hp-app-cols / --hp-app-gap drive the tile width */
.hp-application-grid {
    --hp-app-cols: 5;
    --hp-app-gap: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--hp-app-gap);
}

.hp-application-grid > .hp-application-item {
    flex: 0 0 calc((100% - (var(--hp-app-cols) - 1) * var(--hp-app-gap)) / var(--hp-app-cols));
}

@media only screen and (max-width: 1399px) {
    .hp-application-grid {
        --hp-app-cols: 4;
    }
}

@media only screen and (max-width: 991px) {
    .hp-application-grid {
        --hp-app-cols: 3;
        --hp-app-gap: 16px;
    }
}

@media only screen and (max-width: 575px) {
    .hp-application-grid {
        --hp-app-cols: 2;
    }
}

/* NOTE: no transition/transform on the item itself - it is animated by GSAP (has_fade_anim) */
.hp-application-item {
    background-color: var(--fg-tint);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    transition: background-color 0.3s, border-color 0.3s;
}

.hp-application-item .icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 28px;
    background-color: var(--fg-amber);
    color: var(--fg-navy);
    transition: transform 0.3s, background-color 0.3s, color 0.3s;
}

.hp-application-item .title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--fg-navy);
    margin-bottom: 0;
    transition: color 0.3s;
}


/* ==========================================================================
   FAQ area - copied from Binox master-it.css (consultant-it page)
   ========================================================================== */
.faq-area {
    background-color: var(--fg-tint);
}
.faq-area .accordion-item {
    margin-bottom: 20px;
    border-radius: 10px;
    background-color: var(--fg-tint);
    border: 1px solid var(--fg-line);
}

.faq-area .accordion-item:last-child {
    margin-bottom: 0;
}

.faq-area .accordion-button {
    font-size: 24px;
    line-height: 1.25;
    color: var(--fg-navy);
    font-weight: 600;
    padding: 20px 30px;
    background-color: transparent;
}

@media only screen and (max-width: 991px) {
    .faq-area .accordion-button {
        font-size: 18px;
    }
}

@media only screen and (max-width: 767px) {
    .faq-area .accordion-button {
        padding-inline-start: 10px;
        padding-inline-end: 10px;
    }
}

.faq-area .accordion-button::after {
    background-image: unset;
    content: "+";
    transform: unset;
    height: 24px;
    width: 24px;
    border: 1.5px solid var(--fg-navy);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--fg-navy);
}

.faq-area .accordion-button:focus {
    outline: 0;
    box-shadow: unset;
}

.faq-area .accordion-body {
    padding-top: 0;
    padding-left: 50px;
    padding-bottom: 30px;
}

@media only screen and (max-width: 767px) {
    .faq-area .accordion-body {
        padding-left: 32px;
        padding-right: 10px;
        padding-bottom: 20px;
    }
}

.faq-area .text {
    position: relative;
    font-size: 16px;
    line-height: 1.6;
    color: var(--secondary);
}

.faq-area .text::before {
    position: absolute;
    content: "";
    left: -21px;
    top: 11px;
    width: 13px;
    height: 1px;
    background-color: var(--fg-amber);
}

.faq-area .accordion-button:not(.collapsed) {
    background-color: transparent;
    box-shadow: unset;
}

.faq-area .accordion-button:not(.collapsed)::after {
    background-image: unset;
    content: "-";
    transform: unset;
    background-color: var(--fg-amber);
    border-color: var(--fg-amber);
    color: var(--fg-navy);
}

.faq-area .accordion-item:not(:first-of-type) {
    border-top: 1px solid var(--fg-line);
}



/* ==========================================================================
   Contact page - apple-design layer
   Scoped to .ad-contact so the Apple token layer never leaks into the theme.
   Accent is remapped to the FG brand so the material stays on-palette.
   ========================================================================== */
.ad-contact {
    --accent: var(--fg-amber);
    --ad-ink: var(--fg-navy);
    /* Apple's own --label-secondary (0.60 alpha) measures 3.43:1 on this glass,
       under the 4.5:1 floor for body text. Darkened here only - the token layer
       itself is untouched so other Apple defaults still apply. */
    --label-secondary: rgba(60, 60, 67, 0.78);
    --label-tertiary: rgba(60, 60, 67, 0.5);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #fbfcfe;
    font-family: var(--font-sans);
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
}

/* --- ambient wash: glass has nothing to refract over a flat white page ---- */
.ad-ambient {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.ad-blob {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.3;
}

.ad-blob-1 {
    width: 46vw;
    height: 46vw;
    max-width: 620px;
    max-height: 620px;
    top: -12%;
    inset-inline-start: -8%;
    background: var(--fg-amber);
}

.ad-blob-2 {
    width: 40vw;
    height: 40vw;
    max-width: 540px;
    max-height: 540px;
    bottom: -14%;
    inset-inline-end: -6%;
    background: var(--fg-navy-light);
    opacity: 0.2;
}

.ad-blob-3 {
    width: 32vw;
    height: 32vw;
    max-width: 420px;
    max-height: 420px;
    top: 38%;
    inset-inline-start: 46%;
    background: #8fb4ff;
    opacity: 0.16;
}

.ad-stack {
    position: relative;
    z-index: 1;
}

/* --- the material: translucency + blur/saturate + specular rim + depth ---- */
.ad-glass {
    background: var(--material-regular-tint);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.2),
        0 0 0 0.5px rgba(34, 46, 71, 0.07),
        0 8px 32px rgba(34, 46, 71, 0.1);
    border-radius: var(--radius-xl);
}

.ad-glass-thick {
    background: var(--material-thick-tint);
    -webkit-backdrop-filter: blur(34px) saturate(180%);
    backdrop-filter: blur(34px) saturate(180%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.22),
        0 0 0 0.5px rgba(34, 46, 71, 0.07),
        0 18px 56px rgba(34, 46, 71, 0.14);
}

/* --- contact cards ------------------------------------------------------- */
.ad-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.ad-cards > .ad-card {
    flex: 0 0 calc((100% - var(--space-4) * 2) / 3);
    max-width: calc((100% - var(--space-4) * 2) / 3);
}
.ad_contect{
    display: flex;
    align-items: center;
    gap: 20px;
}

@media only screen and (max-width: 991px) {
    .ad-cards > .ad-card {
        flex-basis: calc((100% - var(--space-4)) / 2);
        max-width: calc((100% - var(--space-4)) / 2);
    }
}

@media only screen and (max-width: 640px) {
    .ad-cards > .ad-card {
        flex-basis: 100%;
        max-width: 100%;
    }
}

/* NOTE: translate lives on a child (.ad-card-icon) - the card itself is
   GSAP-animated by the theme (has_fade_anim) and must keep its transform free. */
.ad-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 40px;
    text-decoration: none;
    color: var(--ad-ink);
    transition: box-shadow var(--duration-base) var(--ease-out);
}

.ad-card:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.24),
        0 0 0 0.5px rgba(251, 174, 48, 0.5),
        0 14px 40px rgba(34, 46, 71, 0.14);
}

.ad-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.ad-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    color: var(--ad-ink);
    /* background: color-mix(in srgb, var(--accent) 22%, transparent); */
    background:linear-gradient(45deg, #fbae30, #fbca79);
    margin-bottom: var(--space-5);
    transition: transform var(--duration-base) var(--ease-out);
}

.ad-card:hover .ad-card-icon {
    transform: translateY(-2px);
}

/* small text tracks OPEN, large text tracks TIGHT (Apple optical sizing) */
.ad-card-label {
    font-size: 20px;
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-wide);
    line-height: var(--leading-normal);
    text-transform: uppercase;
    color: var(--label-secondary);
    margin-bottom: var(--space-3);
}

/* every detail line shares ONE type treatment - no first-line-bigger hierarchy,
   so a second phone or a second address line reads exactly like the first. */
.ad-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ad-card-list li {
    font-size: var(--text-callout);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-normal);
    line-height: var(--leading-normal);
    color: var(--ad-ink);
}

.ad-card-list li + li {
    margin-top: 4px;
}

.ad-card-list a {
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

.ad-card-list a:hover {
    color: color-mix(in srgb, var(--accent) 78%, var(--ad-ink));
}

.ad-card-list a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --- enquiry panel ------------------------------------------------------- */
.ad-panel {
    padding: var(--space-8);
    max-width: 960px;
    margin-inline: auto;
    text-align: start;
}

@media only screen and (max-width: 767px) {
    .ad-panel {
        padding: var(--space-6) var(--space-5);
    }
}

.ad-panel-head {
    margin-bottom: var(--space-7);
    text-align: start;
}

.ad-panel-title {
    font-size: var(--text-title-1);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
    color: var(--ad-ink);
    margin-bottom: var(--space-3);
    text-wrap: balance;
}

.ad-panel-sub {
    font-size: var(--text-body);
    letter-spacing: var(--tracking-normal);
    line-height: var(--leading-relaxed);
    color: var(--label-secondary);
    max-width: 52ch;
    margin-bottom: 0;
    text-wrap: pretty;
}

/* --- form ---------------------------------------------------------------- */
.ad-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
}

@media only screen and (max-width: 767px) {
    .ad-form {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-4);
    }
}

.ad-field-full {
    grid-column: 1 / -1;
}

.ad-field label {
    display: block;
    font-size: var(--text-callout);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-normal);
    line-height: var(--leading-normal);
    color: var(--ad-ink);
    margin-bottom: var(--space-2);
}

/* design mark only - there is no `required` attribute on any field */
.ad-req {
    color: #c0392b;
    margin-inline-start: 2px;
}

.ad-field input,
.ad-field select,
.ad-field textarea {
    width: 100%;
    font-family: inherit;
    font-size: var(--text-body);
    letter-spacing: var(--tracking-normal);
    line-height: var(--leading-normal);
    color: var(--ad-ink);
    background: rgba(255, 255, 255, 0.78);
    border: 0.5px solid rgba(34, 46, 71, 0.14);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    outline: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: background var(--duration-fast) var(--ease-out),
                border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
}

.ad-field textarea {
    min-height: 104px;
    resize: vertical;
    display: block;
}

.ad-field input::placeholder,
.ad-field textarea::placeholder {
    color: var(--label-tertiary);
}

.ad-field input:hover,
.ad-field select:hover,
.ad-field textarea:hover {
    background: rgba(255, 255, 255, 0.92);
}

/* focus is the only state that moves - no validation styling on this form */
.ad-field input:focus,
.ad-field select:focus,
.ad-field textarea:focus {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent);
}

.ad-select {
    position: relative;
}

.ad-select select {
    padding-inline-end: 44px;
    cursor: pointer;
}

.ad-select i {
    position: absolute;
    inset-inline-end: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--label-secondary);
    pointer-events: none;
}

/* --- submit: capsule, presses on pointer-down ---------------------------- */
.ad-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4) var(--space-5);
    margin-top: var(--space-2);
}

.ad-btn {
    font: inherit;
    font-size: var(--text-headline);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-normal);
    line-height: 1;
    color: var(--ad-ink);
    background: var(--accent);
    border: none;
    border-radius: var(--radius-capsule);
    padding: 16px 30px;
    min-height: 52px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(251, 174, 48, 0.36);
    transition: transform var(--duration-instant) var(--ease-out),
                filter var(--duration-instant) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out);
}

.ad-btn:hover {
    box-shadow: 0 10px 26px rgba(251, 174, 48, 0.46);
}

/* press physics: feedback on pointer-down, subtle, never scale(0) */
.ad-btn:active {
    transform: scale(0.97);
    filter: brightness(0.94);
}

.ad-btn:focus-visible {
    outline: 2px solid var(--ad-ink);
    outline-offset: 3px;
}

.ad-actions-note {
    font-size: var(--text-subhead);
    letter-spacing: var(--tracking-normal);
    color: var(--label-secondary);
    margin-bottom: 0;
}

.ad-actions-note a {
    color: var(--ad-ink);
    font-weight: var(--weight-medium);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ad-actions-note a:hover,
.ad-actions-note a:focus-visible {
    color: color-mix(in srgb, var(--accent) 70%, var(--ad-ink));
}

/* --- accessibility fallbacks (non-negotiables) --------------------------- */
@media (prefers-reduced-transparency: reduce) {
    .ad-glass,
    .ad-glass-thick {
        background: #fff;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .ad-blob {
        display: none;
    }
}

@media (prefers-contrast: more) {
    .ad-glass,
    .ad-glass-thick {
        background: #fff;
        border: 1px solid var(--ad-ink);
    }

    .ad-field input,
    .ad-field select,
    .ad-field textarea {
        border: 1px solid var(--ad-ink);
    }

    .ad-card-label,
    .ad-card-meta,
    .ad-panel-sub,
    .ad-field label {
        color: var(--ad-ink);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ad-card:hover .ad-card-icon,
    .ad-btn:active {
        transform: none;
    }
}

/* --- map beside the form ------------------------------------------------- */
.ad-contact-row {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: var(--space-5);
    align-items: stretch;
    text-align: start;
}

@media only screen and (max-width: 991px) {
    .ad-contact-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ad-map {
    overflow: hidden;
    line-height: 0;
    padding: 0;
    min-height: 420px;
}

.ad-map iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
    display: block;
}

@media only screen and (max-width: 991px) {
    .ad-map,
    .ad-map iframe {
        min-height: 320px;
    }
}

/* the panel is a grid child now: it fills the row instead of centring itself */
.ad-contact-row .ad-panel {
    max-width: none;
    margin-inline: 0;
}
