/* ==========================================================================
   Safety Tech NZ — Contact Us page presentation
   Scoped to .stnz-ct (wrapper injected by stnz-contact.php).

   Notes for whoever maintains this:
   - Elementor stores a section's `_css_classes` but never renders it, so the
     two-column section is targeted structurally: it is the 2nd top-level
     section of the three this page contains.
   - Icons are CSS masks. WordPress strips inline <svg> from post meta.
   ========================================================================== */

.stnz-ct {
    --ct-green: #019035;
    --ct-green-d: #017a2d;
    --ct-green-xd: #015f25;
    --ct-tint: #eef6f1;
    --ct-ink: #14232b;
    --ct-body: #3f4d56;
    --ct-muted: #5b6b76;
    --ct-line: #e5eaee;
    --ct-radius: 18px;
    --ct-card-shadow: 0 14px 40px rgba(20, 35, 43, .075);
    width: 100%;
    min-width: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ct-body);
}

.site-content .elementor[data-elementor-type="wp-page"] {
    width: 100%;
    min-width: 0;
}

.stnz-ct *,
.stnz-ct *::before,
.stnz-ct *::after { box-sizing: border-box; }

.stnz-ct p { margin: 0 0 1em; }
.stnz-ct p:last-child { margin-bottom: 0; }
.stnz-ct a { text-decoration: none; }

/* Zero Elementor's own section/column gutters; the layout below re-creates them. */
.stnz-ct .elementor-section,
.stnz-ct .elementor-column,
.stnz-ct .elementor-widget-wrap { padding: 0; }

.stnz-ct .elementor-container { max-width: 1120px !important; margin: 0 auto; }
.stnz-ct .elementor-widget-container { margin: 0 !important; }

/* ---------------------------------------------------------------- hero --- */

.stnz-ct .ct-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 4.6vw, 54px) clamp(20px, 4vw, 48px) clamp(74px, 9vw, 104px);
    border: 1px solid #e9f2ec;
    border-radius: 24px;
    background:
        radial-gradient(120% 140% at 100% 0%, #eaf6ee 0%, rgba(234, 246, 238, 0) 58%),
        linear-gradient(180deg, #f4faf6 0%, #fbfdfc 58%, #ffffff 100%);
}

.stnz-ct .ct-hero::before,
.stnz-ct .ct-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.stnz-ct .ct-hero::before {
    top: -150px;
    right: -120px;
    width: 420px;
    height: 420px;
    border: 1.5px solid #dcebe3;
}

.stnz-ct .ct-hero::after {
    top: -62px;
    right: -32px;
    width: 240px;
    height: 240px;
    border: 1.5px dashed #c3e2d1;
    animation: ctSpin 70s linear infinite;
}

@keyframes ctSpin { to { transform: rotate(360deg); } }

.stnz-ct .ct-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.stnz-ct .ct-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: clamp(20px, 3vw, 30px);
    font-size: 13px;
    line-height: 1;
    color: var(--ct-muted);
}

.stnz-ct .ct-crumbs a {
    color: var(--ct-green-d);
    font-weight: 500;
    transition: color .15s ease;
}

.stnz-ct .ct-crumbs a:hover { color: var(--ct-green-xd); text-decoration: underline; }
.stnz-ct .ct-crumbs__sep { color: #b9c6cd; }
.stnz-ct .ct-crumbs__now { color: var(--ct-ink); font-weight: 500; }

.stnz-ct .ct-eyebrow {
    display: inline-block;
    margin: 0 0 20px;
    padding: 7px 15px;
    border-radius: 999px;
    background: #e5f3ea;
    color: var(--ct-green-d);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .13em;
    line-height: 1.4;
    text-transform: uppercase;
}

.stnz-ct .ct-h1 {
    margin: 0;
    color: var(--ct-ink);
    font-size: clamp(2.05rem, 4.8vw, 3.35rem);
    font-weight: 700;
    letter-spacing: -.022em;
    line-height: 1.08;
}

/* -------------------------------------------------- two-column layout --- */

/* The cards ride up over the hero's lower edge. */
.stnz-ct .elementor-top-section:nth-of-type(2) {
    position: relative;
    z-index: 2;
    margin-top: clamp(-104px, -7vw, -74px);
    padding: 0 0 8px;
}

.stnz-ct .elementor-top-section:nth-of-type(2) .elementor-container {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 24px;
}

/* Flexible columns rather than Elementor's rigid 40/60 grid, so the gap is real. */
.stnz-ct .elementor-top-section:nth-of-type(2) .elementor-col-40,
.stnz-ct .elementor-top-section:nth-of-type(2) .elementor-col-60 {
    display: flex;
    width: auto;
    max-width: none;
}

.stnz-ct .elementor-top-section:nth-of-type(2) .elementor-col-40 { flex: 1 1 36%; }
.stnz-ct .elementor-top-section:nth-of-type(2) .elementor-col-60 { flex: 1 1 56%; }

.stnz-ct .elementor-top-section:nth-of-type(2) .elementor-widget-wrap {
    width: 100%;
    height: 100%;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid var(--ct-line);
    border-radius: var(--ct-radius);
    background: #fff;
    box-shadow: var(--ct-card-shadow);
}

.stnz-ct .ct-h2 {
    margin: 0 0 14px;
    color: var(--ct-ink);
    font-size: clamp(1.28rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -.012em;
    line-height: 1.25;
}

.stnz-ct .ct-blurb {
    margin: 0 0 26px;
    color: var(--ct-muted);
    font-size: .95rem;
    line-height: 1.62;
}

/* ------------------------------------------------------- contact tiles --- */

.stnz-ct .ct-contact {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stnz-ct .ct-tile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 16px;
    border: 1px solid var(--ct-line);
    border-radius: 14px;
    background: #fff;
    color: var(--ct-ink);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease;
}

.stnz-ct .ct-tile:hover,
.stnz-ct .ct-tile:focus-visible {
    border-color: #bfe0cd;
    background: #fbfdfc;
    box-shadow: 0 10px 24px rgba(20, 35, 43, .07);
    transform: translateY(-2px);
    outline: none;
}

.stnz-ct .ct-tile__ico {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--ct-tint);
    color: var(--ct-green-d);
    transition: background-color .2s ease, color .2s ease;
}

.stnz-ct .ct-tile__ico::before,
.stnz-ct .ct-link__ico::before {
    content: "";
    background-color: currentColor;
    -webkit-mask-image: var(--ct-ico);
    mask-image: var(--ct-ico);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.stnz-ct .ct-tile__ico::before {
    width: 22px;
    height: 22px;
    -webkit-mask-size: 22px 22px;
    mask-size: 22px 22px;
}

.stnz-ct .ct-tile:hover .ct-tile__ico {
    background: var(--ct-green);
    color: #fff;
}

.stnz-ct .ct-tile__txt {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.stnz-ct .ct-tile__lbl {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .09em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--ct-muted);
}

.stnz-ct .ct-tile__val {
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ct-ink);
    overflow-wrap: anywhere;
}

.stnz-ct .ct-tile__go {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-top: 2px solid #b9c6cd;
    border-right: 2px solid #b9c6cd;
    transform: rotate(45deg);
    transition: transform .2s ease, border-color .2s ease;
}

.stnz-ct .ct-tile:hover .ct-tile__go {
    border-color: var(--ct-green);
    transform: rotate(45deg) translate(2px, -2px);
}

/* ------------------------------------------------------- the form card --- */

.stnz-ct .ct-formhead { margin-bottom: 22px; }

.stnz-ct .elementor-form { margin: 0; }

.stnz-ct .elementor-form .elementor-form-fields-wrapper {
    display: grid;
    gap: 18px;
}

.stnz-ct .elementor-form .elementor-field-group {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.stnz-ct .elementor-form .elementor-field-label {
    display: block;
    margin: 0 0 7px;
    padding: 0;
    color: var(--ct-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.stnz-ct .elementor-form .elementor-field {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 13px 15px;
    border: 1px solid #dfe6ea;
    border-radius: 11px;
    background: #fff;
    color: var(--ct-ink);
    font-size: 15px;
    line-height: 1.5;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.stnz-ct .elementor-form .elementor-field::placeholder { color: #9aa8b1; opacity: 1; }
.stnz-ct .elementor-form .elementor-field:hover { border-color: #cdd8de; }

.stnz-ct .elementor-form .elementor-field:focus {
    border-color: var(--ct-green);
    box-shadow: 0 0 0 3px rgba(1, 144, 53, .13);
    outline: none;
}

.stnz-ct .elementor-form textarea.elementor-field {
    min-height: 148px;
    resize: vertical;
}

.stnz-ct .elementor-form .e-form__buttons { margin-top: 4px; }

.stnz-ct .elementor-form .elementor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 15px 26px;
    border: 0;
    border-radius: 999px;
    background: var(--ct-green-d);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.stnz-ct .elementor-form .elementor-button:hover,
.stnz-ct .elementor-form .elementor-button:focus-visible {
    background: var(--ct-green-xd);
    box-shadow: 0 10px 22px rgba(1, 122, 45, .22);
    transform: translateY(-1px);
    outline: none;
}

.stnz-ct .elementor-form .elementor-button:active { transform: translateY(0); }
.stnz-ct .elementor-form .elementor-button-text { display: inline-block; }
.stnz-ct .elementor-form .elementor-button-icon { display: inline-flex; }

/* Elementor's own validation + status messaging */
.stnz-ct .elementor-form .elementor-message {
    margin: 16px 0 0;
    padding: 12px 15px;
    border-radius: 11px;
    font-size: 14px;
    line-height: 1.5;
}

.stnz-ct .elementor-form .elementor-message-success {
    background: var(--ct-tint);
    border: 1px solid #bfe0cd;
    color: var(--ct-green-xd);
}

.stnz-ct .elementor-form .elementor-message-danger {
    background: #fdf1f1;
    color: #a32424;
}

.stnz-ct .elementor-form .elementor-error .elementor-field { border-color: #d64545; }
.stnz-ct .elementor-form .elementor-error .elementor-field-label { color: #a32424; }

/* ------------------------------------------------------------ link row --- */

.stnz-ct .ct-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: clamp(26px, 4vw, 40px) 0 4px;
}

.stnz-ct .ct-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 20px 11px 16px;
    border: 1px solid var(--ct-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ct-ink);
    font-size: 14px;
    font-weight: 600;
    transition: border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.stnz-ct .ct-link:hover,
.stnz-ct .ct-link:focus-visible {
    border-color: #bfe0cd;
    color: var(--ct-green-xd);
    box-shadow: 0 8px 20px rgba(20, 35, 43, .06);
    transform: translateY(-1px);
    outline: none;
}

.stnz-ct .ct-link__ico {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: var(--ct-green-d);
}

.stnz-ct .ct-link__ico::before {
    width: 18px;
    height: 18px;
    -webkit-mask-size: 18px 18px;
    mask-size: 18px 18px;
}

/* --------------------------------------------------------------- icons --- */

.stnz-ct .ct-i-phone {
    --ct-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.2 11.4 11.4 0 0 0 3.6.6 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.6 21 3 13.4 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.2.2 2.4.6 3.6a1 1 0 0 1-.3 1z'/%3E%3C/svg%3E");
}

.stnz-ct .ct-i-mail {
    --ct-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4.2-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E");
}

.stnz-ct .ct-i-flask {
    --ct-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h6v2h-1v5.6l5.2 8.6A2 2 0 0 1 17.5 22h-11a2 2 0 0 1-1.7-3.8L10 9.6V4H9V2zm3 8.4L7.6 18h8.8L12 10.4z'/%3E%3C/svg%3E");
}

.stnz-ct .ct-i-bag {
    --ct-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7V6a5 5 0 0 1 10 0v1h3.6l-1.1 13.2a1 1 0 0 1-1 .8H5.5a1 1 0 0 1-1-.8L3.4 7H7zm2 0h6V6a3 3 0 0 0-6 0v1z'/%3E%3C/svg%3E");
}

.stnz-ct .ct-i-info {
    --ct-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------ motion ---- */

.ct-js .stnz-ct .ct-rv {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .55s ease, transform .55s cubic-bezier(.22, .61, .36, 1);
}

.ct-js .stnz-ct .ct-rv.is-in {
    opacity: 1;
    transform: none;
}

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 1024px) {
    .stnz-ct .elementor-top-section:nth-of-type(2) { margin-top: -64px; }

    .stnz-ct .elementor-top-section:nth-of-type(2) .elementor-col-40,
    .stnz-ct .elementor-top-section:nth-of-type(2) .elementor-col-60 {
        flex: 1 1 100%;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .stnz-ct .ct-hero { padding-bottom: 84px; border-radius: 18px; }
    .stnz-ct .ct-hero::before { top: -130px; right: -110px; width: 300px; height: 300px; }
    .stnz-ct .ct-hero::after { top: -50px; right: -40px; width: 170px; height: 170px; }

    .stnz-ct .elementor-top-section:nth-of-type(2) { margin-top: -56px; }

    .stnz-ct .elementor-top-section:nth-of-type(2) .elementor-widget-wrap { padding: 20px; }
    .stnz-ct .ct-tile { gap: 13px; padding: 13px 14px; }
    .stnz-ct .ct-tile__val { font-size: .96rem; }
    .stnz-ct .ct-links { gap: 8px; }
    .stnz-ct .ct-link { padding: 10px 16px 10px 14px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .ct-js .stnz-ct .ct-rv { opacity: 1; transform: none; transition: none; }
    .stnz-ct .ct-hero::after { animation: none; }
    .stnz-ct .ct-tile:hover,
    .stnz-ct .ct-link:hover,
    .stnz-ct .elementor-form .elementor-button:hover { transform: none; }
}

/* ------------------------------------------- green info panel (left col) ---
   The form card is much taller than the contact details, so a plain white
   panel leaves a dead white block. A solid brand panel reads as deliberate
   padding and gives the page a focal point. Deep green keeps white text at
   AA contrast. */

.stnz-ct .elementor-top-section:nth-of-type(2) .elementor-col-40 .elementor-widget-wrap {
    border-color: transparent;
    background: linear-gradient(155deg, #017a2d 0%, #016b27 48%, #015f25 100%);
    box-shadow: 0 18px 44px rgba(1, 95, 37, .22);
}

.stnz-ct .elementor-col-40 .ct-h2 { color: #fff; }

.stnz-ct .elementor-col-40 .ct-blurb { color: rgba(255, 255, 255, .84); }

.stnz-ct .elementor-col-40 .ct-tile {
    border-color: rgba(255, 255, 255, .17);
    background: rgba(255, 255, 255, .08);
}

.stnz-ct .elementor-col-40 .ct-tile:hover,
.stnz-ct .elementor-col-40 .ct-tile:focus-visible {
    border-color: rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .15);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .16);
}

.stnz-ct .elementor-col-40 .ct-tile__ico {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

.stnz-ct .elementor-col-40 .ct-tile:hover .ct-tile__ico {
    background: #fff;
    color: var(--ct-green-xd);
}

.stnz-ct .elementor-col-40 .ct-tile__lbl { color: rgba(255, 255, 255, .8); }
.stnz-ct .elementor-col-40 .ct-tile__val { color: #fff; }
.stnz-ct .elementor-col-40 .ct-tile__go { border-color: rgba(255, 255, 255, .65); }

.stnz-ct .elementor-col-40 .ct-tile:hover .ct-tile__go { border-color: #fff; }
