/* Additions to the supplied design: phone field, message popup, links as cards, gallery lightbox. */
/* phone: country code list + number, always left-to-right like a phone keypad */
.phone-field {
    display: flex;
    gap: 8px;
    direction: ltr;
}
.phone-field .wpcf7-form-control-wrap {
    flex: 1 1 0;
    min-width: 0;
}
.phone-field input[type="tel"] {
    flex: 1 1 0;
    min-width: 0;
    text-align: left;
}
.phone-field input[type="tel"]::placeholder {
    text-align: left;
}
#contact .phone-field .phone-country {
    flex: 0 0 auto;
    width: clamp(132px, 40%, 176px);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23438279' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 13px;
    white-space: nowrap;
    padding: 10px 25px 10px 9px;
    direction: ltr;
    text-align: left;
    color: #202522;
    font-size: .9rem;
    cursor: pointer;
}
@supports (appearance: base-select) and selector(::picker(select)) {
    #contact .phone-country,
    #contact .phone-country::picker(select) { appearance: base-select; }
    #contact .phone-country::picker(select) {
        margin-block: 6px;
        padding: 4px;
        border: 1px solid #D6D9D4;
        border-radius: 12px;
        background: #fff;
        color: #202522;
        box-shadow: 0 12px 28px rgb(18 61 52 / 14%);
    }
    #contact .phone-country::picker-icon { display: none; }
    #contact .phone-country option {
        min-height: 36px;
        padding: 6px 10px;
        border-radius: 7px;
        font-size: .9rem;
    }
    #contact .phone-country option:checked { background: #E8F5E9; }
    #contact .phone-country option:is(:hover, :focus-visible) { background: #D6D9D4; }
}


/* ---- designed message (success / warning / error) shown after the contact form is sent ---- */
html.has-notice {
    overflow: hidden;
}
.gsces-notice {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(32,37,34,0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.gsces-notice.is-open {
    opacity: 1;
}
.gsces-notice-card {
    --tone: #057E3F;
    --tone-soft: #E8F5E9;
    width: min(100%, 410px);
    padding: 34px 28px 26px;
    border-radius: 24px;
    background: #fff;
    text-align: center;
    box-shadow: 0 40px 80px -30px rgba(32,37,34,0.55), 0 0 0 1px rgba(32,37,34,0.12);
    transform: translateY(18px) scale(0.92);
    transition: transform 0.45s cubic-bezier(0.2, 1.25, 0.4, 1);
}
.gsces-notice.is-open .gsces-notice-card {
    transform: none;
}
.gsces-notice-card.is-warn {
    --tone: #c28a1b;
    --tone-soft: #fbf1da;
}
.gsces-notice-card.is-error {
    --tone: #c0483d;
    --tone-soft: #fbe6e3;
}
.gsces-notice-icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--tone-soft);
    box-shadow: 0 0 0 9px color-mix(in srgb, var(--tone-soft) 55%, transparent);
}
.gsces-notice-icon svg {
    width: 54px;
    height: 54px;
    fill: none;
    stroke: var(--tone);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.gsces-notice-icon .n-dot {
    fill: var(--tone);
    stroke: none;
}
.gsces-notice-icon .n-ring,
.gsces-notice-icon .n-mark {
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
}
.gsces-notice.is-open .n-ring {
    animation: notice-draw 0.65s 0.12s ease forwards;
}
.gsces-notice.is-open .n-mark {
    animation: notice-draw 0.45s 0.6s ease forwards;
}
@keyframes notice-draw {
    to { stroke-dashoffset: 0; }
}
.gsces-notice-card h3 {
    margin: 0 0 8px;
    color: #202522;
    font-weight:700; font-size: 1.4rem; line-height: 1.4; font-family: inherit;
}
.gsces-notice-card p {
    margin: 0 0 22px;
    color: #747B76;
    font-weight:400; font-size: 1rem; line-height: 1.8; font-family: inherit;
}
.gsces-notice-btn {
    min-width: 150px;
    padding: 12px 30px;
    border: 0;
    border-radius: 999px;
    background: var(--tone);
    color: #fff;
    font-weight:700; font-size: 1rem; line-height: 1.4; font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 14px 26px -16px var(--tone);
}
.gsces-notice-btn:hover {
    transform: translateY(-2px);
}
.gsces-notice-btn:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--tone) 40%, transparent);
    outline-offset: 3px;
}
.wpcf7-submit.is-sending {
    opacity: 0.75;
    cursor: progress;
}
@media (prefers-reduced-motion: reduce) {
    .gsces-notice,
    .gsces-notice-card {
        transition: none;
    }
    .gsces-notice .n-ring,
    .gsces-notice .n-mark {
        animation: none !important;
        stroke-dashoffset: 0;
    }
}



/* ---- additions for the Laravel pages (links instead of buttons, forms, gallery) ---- */
a.card,
a.sector-detail-card,
a.gh-project-mini,
a.rh-media-card { display: block; text-decoration: none; }
a.gh-service-link { text-decoration: none; }
.nav a, .footer-nav a, .mobile-panel a, .mega a { color: inherit; text-decoration: none; }
.nav a.is-current { color: var(--green); font-weight:700; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-socials a { text-decoration: underline; text-underline-offset: 3px; }
.gh-panels > .gh-panel[hidden] { display: none; }
.gh-logo-img { max-height: 44px; max-width: 100%; object-fit: contain; }
.project-media-heading { margin: 26px 0 12px; font-size: 18px; color: var(--green2); }
.project-media-heading small { color: var(--muted); font-weight:400; }
.media-block { margin-bottom: 44px; }
.empty { padding: 36px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; background: #fff; }
.form-layout .field-error, .form-layout .form-response { display: block; margin-top: 6px; font-size: 13px; color: #b3382c; }
.form-layout .form-response.success { color: #057E3F; background: #E8F5E9; border: 1px solid #D6D9D4; border-radius: 10px; padding: 12px 14px; }
.form-layout .field .phone-field { display: flex; gap: 8px; direction: ltr; }
.form-layout .field .phone-field select { flex: 0 0 42%; min-width: 118px; }
.form-layout .field .phone-field input { flex: 1 1 0; min-width: 0; text-align: left; }
.hp-field { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wpcf7-submit.is-sending { opacity: .75; cursor: progress; }

/* lightbox */
html.has-lightbox { overflow: hidden; }
.gsces-lightbox { position: fixed; inset: 0; z-index: 3500; display: grid; place-items: center; padding: 24px; background: rgba(32,37,34,.86); opacity: 0; transition: opacity .2s; }
.gsces-lightbox.is-open { opacity: 1; }
.gsces-lightbox figure { margin: 0; max-width: min(1100px, 96vw); max-height: 92vh; display: grid; gap: 10px; }
.gsces-lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 10px; background: #fff; }
.gsces-lightbox figcaption { color: #fff; text-align: center; font-size: 14px; }
.gsces-lightbox button { position: absolute; top: 18px; inset-inline-start: 18px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: #202522; font-size: 20px; cursor: pointer; }
