/* Site-wide styles: enquiry section, WPForms and footer (footer.php) */
.isv-contact{
    --isv-teal: #208988;
    --isv-teal-dark: #176b6a;
    --isv-ink: #111111;
    --isv-muted: #5b6470;
    --isv-line: #dfe4e8;
    padding: clamp(64px, 9vw, 112px) 0;
    font-family: montserrat, sans-serif;
    background:
        radial-gradient(50% 80% at 100% 0%, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 60%),
        linear-gradient(135deg, #0f4c4b 0%, #176b6a 45%, #208988 100%);
    scroll-margin-top: 80px;
}
/* Contact page: form is the first section, so clear the fixed header */
.isv-contact--top{
    padding-top: clamp(130px, 14vw, 170px);
}
.isv-contact__intro h1{
    color: #fff;
    font-size: clamp(32px, 4.4vw, 52px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 18px 0 14px;
}
.isv-contact__grid{
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

/* Intro column */
.isv-contact__eyebrow{
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28);
    padding: 6px 14px;
    border-radius: 999px;
}
.isv-contact__intro h2{
    color: #fff;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 18px 0 14px;
}
.isv-contact .isv-contact__intro p{
    color: rgba(255,255,255,.88);
    font-size: 17px;
    line-height: 1.7;
    margin: 0 0 24px;
}
.isv-contact__points{
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}
.isv-contact__points li{
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 600;
    padding: 8px 0;
}
.isv-contact__points i{
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 14px;
}
.isv-contact .isv-contact__phone{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .01em;
    border-bottom: 2px solid rgba(255,255,255,.35);
    padding-bottom: 4px;
}
.isv-contact .isv-contact__phone i{
    color: #fff;
    font-size: 16px;
}
.isv-contact .isv-contact__phone:hover{
    border-color: #fff;
}
.isv-contact__direct{
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
}
.isv-contact .isv-contact__email{
    font-size: 17px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* Form card */
.isv-contact__card{
    background: #fff;
    border-radius: 20px;
    padding: clamp(24px, 4vw, 40px);
    box-shadow: 0 30px 60px rgba(0,0,0,.22);
}

/* WPForms overrides: #page beats the plugin's own selector weight */
#page .isv-contact div.wpforms-container-full{
    margin: 0;
}
#page .isv-contact .wpforms-form .wpforms-field-container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
}
#page .isv-contact .wpforms-form .wpforms-field{
    padding: 0 0 18px;
    grid-column: span 2;
}
#page .isv-contact .wpforms-form .wpforms-field-text,
#page .isv-contact .wpforms-form .wpforms-field-email{
    grid-column: span 1;
}
#page .isv-contact .wpforms-form .wpforms-field-label{
    font-size: 14px;
    font-weight: 700;
    color: var(--isv-ink);
    margin: 0 0 8px;
    padding: 0;
    text-align: left;
}
#page .isv-contact .wpforms-form .wpforms-required-label{
    color: var(--isv-teal);
}
#page .isv-contact .wpforms-form .wpforms-field-sublabel{
    font-size: 12px;
    color: var(--isv-muted);
    margin-top: 6px;
    text-align: left;
}
#page .isv-contact .wpforms-form .wpforms-field-row{
    max-width: none;
}
#page .isv-contact .wpforms-form input[type=text],
#page .isv-contact .wpforms-form input[type=email],
#page .isv-contact .wpforms-form input[type=tel],
#page .isv-contact .wpforms-form textarea{
    width: 100%;
    max-width: none;
    height: auto;
    padding: 13px 16px;
    font-family: inherit;
    font-size: 15px;
    color: var(--isv-ink);
    background: #f6f8f9;
    border: 1.5px solid var(--isv-line);
    border-radius: 12px;
    box-shadow: none;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
#page .isv-contact .wpforms-form textarea{
    min-height: 130px;
    resize: vertical;
}
#page .isv-contact .wpforms-form input::placeholder,
#page .isv-contact .wpforms-form textarea::placeholder{
    color: #9aa3ad !important;
}
#page .isv-contact .wpforms-form input:hover,
#page .isv-contact .wpforms-form textarea:hover{
    border-color: #c5ccd3;
}
#page .isv-contact .wpforms-form input:focus,
#page .isv-contact .wpforms-form textarea:focus{
    outline: none;
    background: #fff;
    border-color: var(--isv-teal);
    box-shadow: 0 0 0 4px rgba(32,137,136,.15);
}
#page .isv-contact .wpforms-form input.wpforms-error,
#page .isv-contact .wpforms-form textarea.wpforms-error{
    border-color: #d63638;
}
#page .isv-contact .wpforms-form label.wpforms-error{
    font-size: 13px;
    color: #d63638;
    margin-top: 6px;
}
#page .isv-contact .wpforms-form .wpforms-submit-container{
    padding: 4px 0 0;
    text-align: left;
}
#page .isv-contact .wpforms-form button[type=submit]{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 17px 28px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: var(--isv-teal);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(32,137,136,.35);
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
#page .isv-contact .wpforms-form button[type=submit]:hover{
    background: var(--isv-teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(32,137,136,.4);
}
#page .isv-contact .wpforms-confirmation-container-full{
    background: #e8f4f4;
    border: 1px solid #bfe0df;
    border-radius: 12px;
    color: var(--isv-ink);
    padding: 20px;
}
#page .isv-contact .wpforms-confirmation-container-full p{
    color: var(--isv-ink);
    margin: 0;
}

@media (max-width: 991px){
    .isv-contact__grid{
        grid-template-columns: 1fr;
    }
}
@media (max-width: 575px){
    #page .isv-contact .wpforms-form .wpforms-field-text,
    #page .isv-contact .wpforms-form .wpforms-field-email{
        grid-column: span 2;
    }
}

/* ---------- Footer ---------- */
#page .isv-footer{
    margin: 0;
    padding: clamp(56px, 7vw, 88px) 0 0;
    background: #0b1f22;
    font-family: montserrat, sans-serif;
}
/* Always visible: the old scroll-in animation could leave it hidden on short pages */
#page .isv-footer.animated_element_footer{
    opacity: 1;
    transform: none;
}
.isv-footer__grid{
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: clamp(28px, 4vw, 56px);
    padding-bottom: 48px;
}
.isv-footer__logo img{
    width: 190px;
    max-width: 100%;
}
.isv-footer__brand p{
    color: rgba(255,255,255,.65);
    font-size: 15px;
    line-height: 1.7;
    margin: 20px 0 22px;
    max-width: 320px;
}
.isv-footer__socials{
    display: flex;
    gap: 10px;
}
.isv-footer .isv-footer__socials a{
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    color: #fff;
    transition: background-color .2s ease, transform .2s ease;
}
.isv-footer .isv-footer__socials a span{
    color: #fff;
}
.isv-footer .isv-footer__socials a:hover{
    background: #208988;
    transform: translateY(-2px);
}
.isv-footer h4{
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin: 6px 0 18px;
}
.isv-footer__col ul{
    list-style: none;
    padding: 0;
    margin: 0;
}
.isv-footer__col li{
    padding: 5px 0;
}
.isv-footer .isv-footer__col li a{
    color: rgba(255,255,255,.65);
    font-size: 15px;
    transition: color .2s ease, padding-left .2s ease;
}
.isv-footer .isv-footer__col li a:hover{
    color: #fff;
    padding-left: 4px;
}
.isv-footer .isv-footer__contact li a{
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.isv-footer .isv-footer__contact li a:hover{
    padding-left: 0;
}
.isv-footer__contact i{
    width: 16px;
    color: #4fc3c1;
    font-size: 14px;
}
.isv-footer .isv-footer__cta{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 13px 22px;
    border-radius: 999px;
    background: #208988;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    transition: background-color .2s ease, transform .2s ease;
}
.isv-footer .isv-footer__cta i{
    color: #fff;
    transition: transform .2s ease;
}
.isv-footer .isv-footer__cta:hover{
    background: #2aa3a1;
    color: #fff;
    transform: translateY(-2px);
}
.isv-footer .isv-footer__cta:hover i{
    transform: translateX(4px);
}
.isv-footer__bottom{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding: 24px 0 28px;
    border-top: 1px solid rgba(255,255,255,.1);
}
.isv-footer__bottom span{
    color: rgba(255,255,255,.5);
    font-size: 13px;
}

@media (max-width: 991px){
    .isv-footer__grid{
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 575px){
    .isv-footer__grid{
        grid-template-columns: 1fr;
    }
}

/* ---------- Header ---------- */
#masthead.isv-header{
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    z-index: 100;
    padding: 0;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    box-shadow: 0 1px 0 rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.06);
    font-family: montserrat, sans-serif;
    transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
}
#masthead.isv-header:hover{
    transform: none;
}
.isv-header__inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 76px;
    transition: height .3s ease;
}
#masthead.isv-header.is-scrolled .isv-header__inner{
    height: 64px;
}

/* Logo: dark on the solid header, white over a hero */
#masthead .isv-header__logo{
    text-align: left;
    flex-shrink: 0;
}
#masthead .isv-header__logo img{
    width: 180px;
    display: block;
    transition: width .3s ease;
}
#masthead.is-scrolled .isv-header__logo img{
    width: 160px;
}
#masthead .isv-header__logo .isv-logo--light{
    display: none;
}

/* Nav */
#masthead .isv-header__nav{
    display: flex;
    align-items: center;
    gap: 28px;
}
#masthead .isv-header__nav ul{
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 0;
    padding: 0;
}
#masthead .isv-header__nav li{
    flex: none;
    padding: 0;
    list-style: none;
}
#masthead .isv-header__nav li a{
    position: relative;
    display: block;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    color: #111111;
    transition: color .2s ease, background-color .2s ease;
}
#masthead .isv-header__nav li a::after{
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: #208988;
    transform: scaleX(0);
    transition: transform .25s ease;
}
#masthead .isv-header__nav li a:hover{
    color: #208988;
    border: 0;
    padding-bottom: 8px;
}
#masthead .isv-header__nav li a:hover::after,
#masthead .isv-header__nav li.current-menu-item a::after{
    transform: scaleX(1);
}
#masthead .isv-header__nav li.current-menu-item a{
    color: #208988;
    border: 0;
    padding-bottom: 8px;
}
#masthead .isv-header__cta{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    background: #208988;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(32,137,136,.3);
    transition: background-color .2s ease, transform .2s ease;
}
#masthead .isv-header__cta i{
    color: #fff;
    font-size: 12px;
    transition: transform .2s ease;
}
#masthead .isv-header__cta:hover{
    background: #176b6a;
    transform: translateY(-1px);
}
#masthead .isv-header__cta:hover i{
    transform: translateX(3px);
}

/* Mobile menu button */
#masthead .mm-toggle{
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #e3e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}
#masthead .mm-toggle i{
    color: #111111;
    font-size: 18px;
}

/* Transparent over the dark hero until scrolled */
.isv-has-hero #masthead.isv-header:not(.is-scrolled){
    background: linear-gradient(180deg, rgba(5,15,18,.55) 0%, rgba(5,15,18,0) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}
.isv-has-hero #masthead:not(.is-scrolled) .isv-header__logo .isv-logo--dark{
    display: none;
}
.isv-has-hero #masthead:not(.is-scrolled) .isv-header__logo .isv-logo--light{
    display: block;
}
.isv-has-hero #masthead:not(.is-scrolled) .isv-header__nav li a,
.isv-has-hero #masthead:not(.is-scrolled) .isv-header__nav li.current-menu-item a{
    color: #fff;
}
.isv-has-hero #masthead:not(.is-scrolled) .isv-header__nav li a::after{
    background: #fff;
}
.isv-has-hero #masthead:not(.is-scrolled) .isv-header__nav li a:hover{
    background: rgba(255,255,255,.12);
}
.isv-has-hero #masthead:not(.is-scrolled) .mm-toggle{
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.3);
}
.isv-has-hero #masthead:not(.is-scrolled) .mm-toggle i{
    color: #fff;
}

@media (min-width: 769px){
    #masthead .mm-toggle-wrap{
        display: none;
    }
}
@media (max-width: 1100px){
    #masthead .isv-header__nav{
        gap: 16px;
    }
    #masthead .isv-header__nav li a{
        padding: 8px 10px;
        font-size: 14px;
    }
    #masthead .isv-header__nav li a::after{
        left: 10px;
        right: 10px;
    }
}
@media (max-width: 991px){
    #masthead .isv-header__cta{
        display: none;
    }
}
@media (max-width: 768px){
    #masthead .isv-header__nav{
        display: none;
    }
    .isv-header__inner{
        height: 64px;
    }
    #masthead .isv-header__logo{
        flex: 1;
        text-align: center;
    }
    #masthead .isv-header__logo img{
        width: 140px;
        margin: 0 auto;
    }
    #masthead .isv-header__logo a{
        display: inline-block;
    }
    /* Balance the menu button so the logo stays centred */
    .isv-header__inner::after{
        content: "";
        width: 44px;
        flex-shrink: 0;
    }
}

/* ---------- Back to top ---------- */
button#scrolltop.isv-totop{
    position: fixed;
    right: clamp(16px, 2.5vw, 32px);
    bottom: clamp(16px, 2.5vw, 32px);
    z-index: 99;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(11,31,34,.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 28px rgba(0,0,0,.25);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(.9);
    transition: opacity .3s ease, transform .3s ease, visibility .3s, background-color .2s ease, box-shadow .2s ease;
}
button#scrolltop.isv-totop.is-visible{
    opacity: 1;
    visibility: visible;
    transform: none;
}
button#scrolltop.isv-totop:hover{
    background: #208988;
    box-shadow: 0 12px 30px rgba(32,137,136,.45);
    transform: translateY(-3px);
}
button#scrolltop.isv-totop span{
    position: relative;
    color: #fff;
    transition: transform .2s ease;
}
button#scrolltop.isv-totop:hover span{
    transform: translateY(-2px);
}
button#scrolltop.isv-totop:focus-visible{
    outline: 2px solid #208988;
    outline-offset: 3px;
}
/* Progress ring: fills as the page scrolls */
.isv-totop__ring{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
}
.isv-totop__ring circle{
    fill: none;
    stroke: #4fc3c1;
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dashoffset .1s linear;
}
button#scrolltop.isv-totop:hover .isv-totop__ring circle{
    stroke: #ffffff;
}
