/*
Theme Name: ProTec Property Services V4
Theme URI: https://protecpropertyservices.com/
Author: ProTec Property Services
Description: Native custom WordPress theme for ProTec Property Services. Editable hero, services, trust, estimate and contact information.
Version: 4.0.0
Text Domain: protec
*/

:root {
    --color-primary: #002D62;
    --color-secondary: #0066CC;
    --color-accent: #FFB800;
    --color-bg-light: #F8F9FA;
    --color-text-dark: #1A1A1A;
    --color-white: #FFFFFF;
    --color-footer: #0C0C0C;
    --color-border: #D7DBE0;
    --container-width: 1200px;
    --heading-font: "Arial Narrow", "Roboto Condensed", Impact, Haettenschweiler, sans-serif;
    --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--color-white);
    color: var(--color-text-dark);
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 900;
    line-height: .98;
}
button, a { -webkit-tap-highlight-color: transparent; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.site-main { overflow: hidden; }

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed !important;
    z-index: 99999;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 12px 18px;
    margin: 0;
    clip: auto;
    overflow: visible;
    background: var(--color-accent);
    color: #000;
}

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

/* Buttons */
.btn {
    min-height: 50px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border: 0;
    border-radius: 2px;
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--color-accent); color: #111; }
.btn--accent:hover { background: #F0AB00; }
.btn--primary { background: var(--color-primary); color: var(--color-white); }
.btn--primary:hover { background: var(--color-secondary); }
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }

/* Header */
.site-header {
    position: relative;
    z-index: 50;
    background: var(--color-white);
    border-top: 5px solid var(--color-primary);
}
.site-header__inner {
    min-height: 105px;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
}
.site-branding { display: flex; align-items: center; }
.site-branding .custom-logo,
.site-branding__bundled-logo {
    width: auto;
    max-width: 245px;
    max-height: 96px;
    object-fit: contain;
}
.site-branding__fallback {
    color: var(--color-primary);
    font-family: var(--heading-font);
    font-weight: 900;
    font-size: 1.45rem;
}
.primary-navigation { justify-self: center; }
.primary-navigation ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 3vw, 42px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.primary-navigation a {
    position: relative;
    display: inline-block;
    padding: 41px 0 36px;
    font-family: var(--heading-font);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
}
.primary-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 25px;
    width: 0;
    height: 3px;
    margin: auto;
    background: var(--color-secondary);
    transition: width .18s ease;
}
.primary-navigation a:hover::after,
.primary-navigation .current-menu-item > a::after { width: 100%; }
.header-cta { justify-self: end; min-width: 145px; }

.mobile-nav { display: none; position: relative; }
.mobile-nav summary {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    list-style: none;
    cursor: pointer;
    background: var(--color-primary);
    color: var(--color-white);
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav__icon,
.mobile-nav__icon::before,
.mobile-nav__icon::after {
    width: 23px;
    height: 2px;
    display: block;
    background: currentColor;
}
.mobile-nav__icon { position: relative; }
.mobile-nav__icon::before,
.mobile-nav__icon::after {
    content: "";
    position: absolute;
    left: 0;
}
.mobile-nav__icon::before { top: -7px; }
.mobile-nav__icon::after { top: 7px; }
.mobile-nav__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(310px, calc(100vw - 40px));
    padding: 12px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: 0 16px 35px rgba(0,0,0,.18);
}
.mobile-nav__panel ul { margin: 0; padding: 0; list-style: none; }
.mobile-nav__panel li + li { border-top: 1px solid #ECEEF1; }
.mobile-nav__panel a { display: block; padding: 14px 12px; font-weight: 800; text-transform: uppercase; }
.mobile-nav__call { width: 100%; margin-top: 10px; }

/* Hero */
.hero {
    position: relative;
    min-height: 505px;
    background-color: #F5F7F9;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 31%, rgba(255,255,255,.36) 55%, rgba(255,255,255,0) 72%);
}
.hero__inner {
    position: relative;
    z-index: 2;
    min-height: 505px;
    display: flex;
    align-items: center;
}
.hero__content {
    width: min(610px, 56%);
    padding: 54px 0 46px;
}
.hero__title {
    margin-bottom: 18px;
    font-size: clamp(3rem, 5.5vw, 4.65rem);
    letter-spacing: -.025em;
    text-transform: uppercase;
}
.hero__title span { display: block; }
.hero__accent { color: var(--color-secondary); }
.hero__subtitle {
    max-width: 560px;
    margin-bottom: 25px;
    font-family: var(--heading-font);
    font-size: clamp(1rem, 1.45vw, 1.18rem);
    font-weight: 800;
    font-style: italic;
    line-height: 1.25;
    text-transform: uppercase;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero trust bar */
.hero-trust {
    background: #F0F2F4;
    border-top: 1px solid #E1E4E7;
    border-bottom: 1px solid #E1E4E7;
}
.hero-trust__inner {
    min-height: 64px;
    display: flex;
    align-items: center;
}
.hero-trust__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    font-family: var(--heading-font);
    font-size: .86rem;
    font-weight: 900;
    text-transform: uppercase;
}
.hero-trust__item:first-child { padding-left: 0; }
.hero-trust__item + .hero-trust__item::before {
    content: "•";
    margin-right: 17px;
    color: #111;
}
.hero-trust__icon { width: 22px; height: 22px; color: #111; }

/* Section tag */
.section-label {
    display: inline-block;
    margin: 0 0 22px;
    padding: 9px 33px 9px 18px;
    background: #111;
    color: var(--color-white);
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    font-size: clamp(1.45rem, 2.1vw, 1.85rem);
    font-style: italic;
    text-transform: uppercase;
}

/* Services */
.services {
    padding: 34px 0 38px;
    background: var(--color-white);
}
.services__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 215px;
    gap: 25px;
    align-items: stretch;
}
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.service-card {
    min-width: 0;
    padding: 8px 26px 18px;
}
.service-card + .service-card { border-left: 1px solid #BABFC5; }
.service-card__icon {
    width: auto;
    height: 72px;
    margin: 0 auto 9px;
    object-fit: contain;
    object-position: center;
}

.service-card:nth-child(1) .service-card__icon {
    height: 76px;
}

.service-card:nth-child(2) .service-card__icon {
    height: 64px;
    margin-top: 6px;
    margin-bottom: 11px;
}

.service-card:nth-child(3) .service-card__icon {
    height: 66px;
    margin-top: 4px;
    margin-bottom: 11px;
}
.service-card__title {
    margin-bottom: 14px;
    color: #0750A4;
    text-align: center;
    font-size: clamp(1.65rem, 2.35vw, 2rem);
    font-style: italic;
    text-transform: uppercase;
}
.service-card__list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.service-card__list li {
    position: relative;
    padding: 3px 0 3px 25px;
    font-size: .93rem;
    line-height: 1.35;
}
.service-card__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #075EBB;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}
.services__promo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}
.promo-block {
    padding: 20px 16px;
    text-align: center;
    font-family: var(--heading-font);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    clip-path: polygon(8% 0,100% 0,92% 100%,0 100%);
}
.promo-block--estimate {
    min-height: 108px;
    display: grid;
    place-items: center;
    background: #111;
    color: #fff;
    font-size: 1.95rem;
}
.promo-block--estimate span { color: var(--color-accent); }
.promo-block--insured {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    background: #075EBB;
    color: #fff;
    font-size: 1.35rem;
}
.promo-block--insured svg { width: 38px; height: 38px; flex: 0 0 auto; }

/* Trust */
.trust {
    overflow: hidden;
    background: #0D0F12;
    color: #fff;
}
.trust__grid {
    display: grid;
    grid-template-columns: 305px repeat(3, minmax(0, 1fr));
}
.trust__intro {
    position: relative;
    z-index: 1;
    min-height: 190px;
    display: flex;
    align-items: center;
    padding: 30px 48px 30px 0;
}
.trust__intro::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    right: 0;
    width: calc(100% + 50vw);
    background: linear-gradient(110deg, #075EBB, #003577);
    transform: skewX(-11deg);
    transform-origin: right top;
}
.trust__intro-title {
    margin: 0;
    font-size: clamp(2rem, 3.3vw, 2.85rem);
    font-style: italic;
    text-transform: uppercase;
}
.trust__intro-title span {
    display: block;
    margin-top: 6px;
    color: var(--color-accent);
}
.trust-item {
    position: relative;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 22px;
    text-align: center;
}
.trust-item + .trust-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 25%;
    width: 1px;
    height: 52%;
    background: rgba(255,255,255,.40);
}
.trust-item__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    color: var(--color-accent);
}
.trust-item__title {
    margin-bottom: 6px;
    font-size: 1rem;
    text-transform: uppercase;
}
.trust-item p {
    max-width: 215px;
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: .80rem;
    line-height: 1.35;
}

/* Photo band */
.showcase {
    height: clamp(280px, 28vw, 390px);
    overflow: hidden;
    background: #D9DEE3;
}
.showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
}

/* Estimate */
.estimate {
    padding: 34px 0;
    background: var(--color-bg-light);
}
.estimate__grid {
    display: grid;
    grid-template-columns: 265px minmax(0, 1fr);
    gap: 42px;
    align-items: start;
}
.estimate__intro { padding-top: 5px; }
.estimate__title {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-style: italic;
    text-transform: uppercase;
}
.estimate__title span {
    display: block;
    color: var(--color-secondary);
}
.estimate__rule {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}
.estimate__rule::before,
.estimate__rule::after {
    content: "";
    display: block;
    height: 3px;
}
.estimate__rule::before { width: 60px; background: var(--color-accent); }
.estimate__rule::after { width: 24px; background: var(--color-secondary); }
.estimate__intro p {
    margin: 0;
    font-size: .90rem;
    line-height: 1.45;
}
.estimate-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}
.form-field { min-width: 0; }
.form-field--full { grid-column: 1 / -1; }
.estimate-form input,
.estimate-form select,
.estimate-form textarea {
    width: 100%;
    background: #fff;
    color: #222;
    border: 1px solid #D3D7DC;
    border-radius: 2px;
    font-size: .90rem;
}
.estimate-form input,
.estimate-form select {
    min-height: 45px;
    padding: 0 12px;
}
.estimate-form textarea {
    min-height: 110px;
    padding: 12px;
    resize: vertical;
}
.estimate-form input:focus,
.estimate-form select:focus,
.estimate-form textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(0,102,204,.10);
}
.estimate-form__submit {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 46px;
}
.form-honeypot { position: absolute; left: -9999px; }
.form-message {
    grid-column: 1 / -1;
    padding: 11px 13px;
    margin-bottom: 4px;
    font-size: .88rem;
    font-weight: 700;
}
.form-message--success { background: #E8F7ED; color: #176A31; border: 1px solid #B8E1C4; }
.form-message--error { background: #FCEAEA; color: #8C1F1F; border: 1px solid #F0C4C4; }

/* Quick call */
.quick-call {
    background: linear-gradient(90deg, #075EBB, #003C83);
    color: #fff;
}
.quick-call__inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.quick-call__content { display: flex; align-items: center; gap: 14px; }
.quick-call__icon {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--color-primary);
}
.quick-call__icon svg { width: 26px; height: 26px; }
.quick-call__text strong {
    display: block;
    font-family: var(--heading-font);
    font-size: 1.2rem;
    text-transform: uppercase;
}
.quick-call__text span {
    display: block;
    color: rgba(255,255,255,.90);
    font-size: .84rem;
}
.quick-call__button { min-width: 210px; }

/* Footer */
.site-footer {
    background: var(--color-footer);
    color: #fff;
}
.site-footer__main { padding: 36px 0 22px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.12fr .72fr;
}
.footer-column {
    min-width: 0;
    padding: 0 27px;
}
.footer-column:first-child { padding-left: 0; }
.footer-column:last-child { padding-right: 0; }
.footer-column + .footer-column { border-left: 1px solid rgba(255,255,255,.22); }
.footer-logo { margin-bottom: 10px; }
.footer-logo .custom-logo,
.footer-logo__bundled {
    width: auto;
    max-width: 155px;
    max-height: 78px;
    object-fit: contain;
}
.footer-title,
.site-footer .widget-title {
    margin-bottom: 11px;
    font-size: .92rem;
    text-transform: uppercase;
}
.footer-description,
.footer-list li,
.footer-contact__item {
    color: rgba(255,255,255,.80);
    font-size: .81rem;
    line-height: 1.42;
}
.footer-description { max-width: 260px; margin-bottom: 0; }
.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list li { margin-bottom: 3px; }
.footer-contact__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}
.footer-contact__item svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin-top: 2px;
}
.social-links { display: flex; gap: 11px; }
.social-link {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #111;
}
.social-link:hover { background: var(--color-accent); }
.social-link svg { width: 20px; height: 20px; }
.site-footer__bottom { padding: 10px 0 14px; }
.site-footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255,255,255,.66);
    font-size: .74rem;
}

/* Desktop */
@media (min-width: 1200px) {
    .services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .container { padding-left: 24px; padding-right: 24px; }

    .site-header__inner {
        min-height: 90px;
        grid-template-columns: 1fr auto;
    }
    .site-branding .custom-logo,
    .site-branding__bundled-logo {
        max-width: 205px;
        max-height: 78px;
    }
    .primary-navigation, .header-cta { display: none; }
    .mobile-nav { display: block; }

    .hero {
        min-height: 480px;
        background-position: 62% center;
    }
    .hero__inner { min-height: 480px; }
    .hero__content { width: 57%; }
    .hero::after {
        background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 40%, rgba(255,255,255,.43) 65%, rgba(255,255,255,0) 82%);
    }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; }

    .services__layout { grid-template-columns: 1fr; }
    .services__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
    .service-card {
        border: 1px solid var(--color-border) !important;
        padding: 24px;
    }
    .service-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 9px);
        justify-self: center;
    }
    .services__promo {
        flex-direction: row;
        justify-content: center;
    }
    .promo-block {
        width: min(310px, 48%);
        clip-path: none;
    }

    .trust__grid { grid-template-columns: repeat(2, 1fr); }
    .trust__intro {
        min-height: 175px;
        padding-right: 36px;
    }
    .trust__intro::before { transform: none; }
    .trust-item { min-height: 175px; }
    .trust-item:nth-of-type(2)::before { display: none; }

    .estimate__grid {
        grid-template-columns: 225px minmax(0,1fr);
        gap: 28px;
    }

    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
    .footer-column:nth-child(odd) { padding-left: 0; border-left: 0; }
    .footer-column:nth-child(even) { padding-right: 0; }
}

/* Mobile */
@media (max-width: 767px) {
    body { font-size: 16px; }

    .site-header__inner {
        min-height: 80px;
        grid-template-columns: minmax(0,1fr) auto;
        gap: 15px;
    }
    .site-branding .custom-logo,
    .site-branding__bundled-logo {
        max-width: 178px;
        max-height: 68px;
    }
    .primary-navigation, .header-cta { display: none; }
    .mobile-nav { display: block; }

    .hero {
        min-height: 0;
        background-position: 67% center;
    }
    .hero::after {
        background: linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.96) 60%, rgba(255,255,255,.70) 100%);
    }
    .hero__inner {
        min-height: 0;
        padding-top: 38px;
        padding-bottom: 38px;
    }
    .hero__content { width: 100%; padding: 0; }
    .hero__title { font-size: clamp(2.55rem, 13vw, 3.55rem); }
    .hero__subtitle { max-width: 95%; font-size: .98rem; }
    .hero__actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .hero__actions .btn { width: 100%; }

    .hero-trust__inner {
        flex-direction: column;
        align-items: stretch;
        padding-top: 8px;
        padding-bottom: 8px;
    }
    .hero-trust__item,
    .hero-trust__item:first-child {
        padding: 8px 0;
    }
    .hero-trust__item + .hero-trust__item::before { display: none; }

    .services { padding-top: 28px; }
    .services__layout,
    .services__grid { grid-template-columns: 1fr; }
    .services__grid { gap: 15px; }
    .service-card,
    .service-card:last-child {
        width: 100%;
        grid-column: auto;
        padding: 24px 21px;
        border: 1px solid var(--color-border) !important;
    }
    .services__promo { flex-direction: column; }
    .promo-block {
        width: 100%;
        clip-path: none;
    }

    .trust__grid { grid-template-columns: 1fr; }
    .trust__intro {
        min-height: 155px;
        margin-left: -20px;
        margin-right: -20px;
        padding: 30px 20px;
    }
    .trust__intro::before {
        right: 0;
        width: 100%;
        transform: none;
    }
    .trust-item {
        min-height: 0;
        padding: 28px 12px;
    }
    .trust-item + .trust-item::before {
        top: 0;
        left: 15%;
        width: 70%;
        height: 1px;
    }

    .showcase { height: 270px; }

    .estimate { padding: 32px 0; }
    .estimate__grid { grid-template-columns: 1fr; gap: 25px; }
    .estimate-form { grid-template-columns: 1fr; }
    .form-field,
    .form-field--full,
    .estimate-form__submit { grid-column: 1; }

    .quick-call__inner {
        flex-direction: column;
        align-items: stretch;
        padding-top: 18px;
        padding-bottom: 18px;
    }
    .quick-call__button { width: 100%; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-column,
    .footer-column:first-child,
    .footer-column:last-child {
        padding: 22px 0;
    }
    .footer-column:first-child { padding-top: 0; }
    .footer-column + .footer-column {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.18);
    }
    .footer-description { max-width: 100%; }
    .site-footer__bottom-inner {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 380px) {
    .hero__title { font-size: 2.35rem; }
    .site-branding .custom-logo,
    .site-branding__bundled-logo { max-width: 160px; }
}
