/*
Sanad Intellectual Property & Trademark Services
Custom overrides on top of the Lawfic theme.
Loaded after style.css / responsive.css so these rules win.
*/

/* ============================================================
   BRAND COLOR — single control point.
   Change --primary-color here once and the whole site updates
   (every theme rule uses var(--primary-color)). The Revolution
   Slider banner and the contact email use inline colors that
   can't read CSS variables, so those two are set in
   index.php and contact-handler.php respectively.
   ============================================================ */
:root {
    --primary-color: #d3ae70;
}

/* --- Hero: left white gradient so the dark banner text is readable ---
   The overlay is injected per slide, sitting just above the slide's
   background image but below the text layers (whose inline z-index is 9+).
   pointer-events:none keeps the slider buttons/drag working. */
.banner rs-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(255, 255, 255, 0.80) 30%,
        rgba(255, 255, 255, 0.38) 56%,
        rgba(255, 255, 255, 0) 82%
    );
}

/* --- Logo sizing (Sanad logo is taller than the demo wordmark) --- */
.navbar-brand .logo {
    max-height: 90px;
    width: auto;
}

/* Solid dark breadcrumb banner (theme references a missing bg image) */
.pq-breadcrumb {
    background-image: none !important;
    background: var(--dark-color);
}

/* ------------------------------------------------------------------
   Inner-page header positioning.
   The theme makes header-style-2 `position: absolute` so it can float
   over the homepage banner slider. Inner pages (which use
   .pq-header-default and have no banner) don't need that — an absolute
   header is taken out of flow and only avoids overlapping the
   breadcrumb via JS padding. Keep it in normal flow at the top of the
   page; the existing sticky logic still switches .pq-bottom-header to
   `position: fixed` on scroll, so the header floats only when scrolling.
   The homepage (.pq-has-sticky) is unaffected and keeps its overlay.
   ------------------------------------------------------------------ */
header#pq-header.pq-header-style-2.pq-header-default {
    position: relative;
}

/* Inner pages don't have a full-height banner, so the JS that pads the
   breadcrumb by the header height isn't needed — neutralize it. */
.pq-header-default ~ .pq-breadcrumb,
.pq-header-default + .pq-breadcrumb {
    padding-top: 130px !important;
}

/* --- Service section: make all 3 fancy-box images the same height --- */
.pq-fancy-box.pq-style-1 .pq-fancy-media img {
    height: 400px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* --- About-us section: make the two photos taller --- */
.pq-about-us-img .pq-about-us-img-3 {
    height: 560px;
    object-fit: cover;
    object-position: center;
}
.pq-about-us-img .pq-about-us-img-4 {
    height: 360px;
    object-fit: cover;
    object-position: center;
}
@media (max-width: 575px) {
    .pq-about-us-img .pq-about-us-img-3 {
        height: 360px;
    }
    .pq-about-us-img .pq-about-us-img-4 {
        height: 230px;
    }
}

/* --- Our Process: simple static numbered grid (replaces the slider) --- */
.pq-process-grid {
    margin-top: 10px;
}
.pq-process-grid > [class*="col-"] {
    margin-bottom: 30px;
}
.pq-process-box {
    position: relative;
    height: 100%;
    background: var(--white-color);
    border: 1px solid #eee7e1;
    border-radius: 8px;
    padding: 34px 28px 28px;
    transition: all .3s ease;
    overflow: hidden;
}
.pq-process-box:hover {
    box-shadow: 0 12px 30px rgba(10, 29, 53, .09);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}
.pq-process-box .pq-process-num {
    display: inline-block;
    font-family: var(--title-fonts);
    font-size: 30px;
    line-height: 1;
    color: var(--primary-color);
    margin-bottom: 16px;
}
/* faint oversized number watermark in the corner */
.pq-process-box::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 14px;
    width: 46px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 4px;
    opacity: .25;
}
.pq-process-box .pq-process-title {
    color: var(--dark-color);
    margin-bottom: 10px;
}
.pq-process-box .pq-process-desc {
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.7;
}

/* --- Core values / mission-vision cards --- */
.pq-value-box {
    background: var(--white-color);
    border: 1px solid #eee7e1;
    border-radius: 6px;
    padding: 35px 30px;
    height: 100%;
    transition: all .3s ease;
}
.pq-value-box:hover {
    box-shadow: 0 10px 30px rgba(10, 29, 53, .08);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}
.pq-value-box .pq-value-icon {
    font-size: 38px;
    color: var(--primary-color);
    margin-bottom: 18px;
    line-height: 1;
}
.pq-value-box h5 {
    margin-bottom: 12px;
}

/* --- Service detail list (numbered IP services) --- */
.pq-service-detail-box {
    background: var(--white-color);
    border: 1px solid #eee7e1;
    border-radius: 6px;
    padding: 30px;
    height: 100%;
    transition: all .3s ease;
}
.pq-service-detail-box:hover {
    box-shadow: 0 10px 30px rgba(10, 29, 53, .08);
    border-color: var(--primary-color);
}
.pq-service-detail-box .pq-service-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--grey-color);
    color: var(--primary-color);
    font-family: var(--title-fonts);
    font-size: 20px;
    margin-bottom: 18px;
}
.pq-service-detail-box:hover .pq-service-num {
    background: var(--primary-color);
    color: var(--white-color);
}
.pq-service-detail-box h5 {
    margin-bottom: 10px;
}

/* --- Authorized agents grid --- */
.pq-agent-box {
    background: var(--white-color);
    border: 1px solid #eee7e1;
    border-radius: 6px;
    padding: 30px 25px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}
.pq-agent-box:hover {
    box-shadow: 0 10px 30px rgba(10, 29, 53, .08);
    border-color: var(--primary-color);
}
.pq-agent-box .pq-agent-flag {
    font-size: 30px;
    margin-bottom: 8px;
}
.pq-agent-box .pq-agent-country {
    color: var(--primary-color);
    font-family: var(--title-fonts);
    font-size: 18px;
    margin: 0;
}
.pq-agent-box .pq-agent-name {
    color: var(--dark-color);
    margin: 0;
}

/* --- Footer logo --- */
/* The Sanad logo has dark-navy text, which is hard to read on the dark
   footer, so sit it on a small light plate for legibility. */
footer#pq-footer .pq-footer-logo {
    text-align: center;
}
footer#pq-footer .pq-footer-logo img {
    height: 150px;
    width: auto;
    padding: 12px 18px;
    border-radius: 8px;
}

/* Generic page section spacing helper */
.pq-py-section {
    padding: 90px 0;
}

/* --- Team / founder --- */
.pq-team-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-color);
    color: var(--primary-color);
    font-family: var(--title-fonts);
    font-size: 72px;
    letter-spacing: 2px;
    border: 4px solid var(--primary-color);
}
.pq-team-role {
    color: var(--primary-color);
    font-family: var(--title-fonts);
    font-size: 18px;
    margin-bottom: 18px;
}

/* --- Contact form: status alerts + honeypot --- */
.pq-form-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.6;
}
.pq-form-alert i {
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}
.pq-form-alert ul {
    margin: 6px 0 0;
    padding-left: 18px;
}
.pq-form-alert-success {
    background: #e8f5ec;
    color: #1c6b3c;
    border: 1px solid #b5e0c4;
}
.pq-form-alert-error {
    background: #fdecec;
    color: #a8302a;
    border: 1px solid #f3c2bf;
}
/* Honeypot: hidden from users, visible to bots */
.pq-hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* --- Search results page --- */
.pq-search-page-form {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
}
.pq-search-page-form .form-control {
    flex: 1;
    height: 56px;
    border: 1px solid #eee7e1;
    background: var(--grey-color);
    border-radius: 6px;
    padding: 0 20px;
    color: var(--dark-color);
}
.pq-search-page-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white-color);
}
.pq-search-page-form .pq-button {
    flex-shrink: 0;
}

.pq-search-count {
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.pq-search-results {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.pq-search-result {
    display: block;
    position: relative;
    background: var(--white-color);
    border: 1px solid #eee7e1;
    border-left: 3px solid var(--primary-color);
    border-radius: 6px;
    padding: 24px 28px;
    text-decoration: none;
    transition: all .3s ease;
}
.pq-search-result:hover {
    box-shadow: 0 10px 30px rgba(10, 29, 53, .08);
    transform: translateX(4px);
}
.pq-search-result-page {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
    font-family: var(--title-fonts);
    margin-bottom: 6px;
}
.pq-search-result-title {
    margin: 0 0 8px;
    color: var(--dark-color);
}
.pq-search-result:hover .pq-search-result-title {
    color: var(--primary-color);
}
.pq-search-result-snippet {
    margin: 0 0 10px;
    color: var(--secondary-color);
    line-height: 1.7;
}
.pq-search-result-link {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
    font-family: var(--title-fonts);
}
.pq-search-result-link i {
    margin-left: 6px;
    transition: margin-left .3s ease;
}
.pq-search-result:hover .pq-search-result-link i {
    margin-left: 12px;
}

.pq-search-results mark,
.pq-search-result-title mark {
    background: rgba(184, 150, 126, .25);
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

.pq-search-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--secondary-color);
}
.pq-search-message i {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 18px;
    opacity: .6;
}
.pq-search-message p {
    margin: 0 auto;
    max-width: 560px;
}

@media (max-width: 575px) {
    .pq-search-page-form {
        flex-direction: column;
    }
}

/* --- Revolution Slider arrows -> Font Awesome ---
   The slider's nav arrows (.tparrows.tp-leftarrow / .tp-rightarrow) use the
   'revicons' font, whose file is a placeholder stub, so the glyph is broken.
   Re-map them to Font Awesome 6 Free chevrons (whose fonts are present).
   Broad selector + !important so it wins over the per-slider rs6.css rules. */
.tparrows:before,
.zeus.tparrows:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}
.tparrows.tp-leftarrow:before,
.zeus.tparrows.tp-leftarrow:before {
    content: "\f053" !important; /* chevron-left */
}
.tparrows.tp-rightarrow:before,
.zeus.tparrows.tp-rightarrow:before {
    content: "\f054" !important; /* chevron-right */
}

/* --- Live header search suggestions dropdown --- */

/* The themed offcanvas search panel is `height:auto; overflow:hidden`,
   which clips the absolutely-positioned suggestions that extend below
   the input. Allow them to spill out (the slide-in transform still works). */
.pq-menu-search-block .offcanvas {
    overflow: visible;
}

.pq-suggest-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: var(--white-color);
    border: 1px solid #eee7e1;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(10, 29, 53, .18);
    max-height: 60vh;
    overflow-y: auto;
    z-index: 1080;
    text-align: left;
    padding: 6px;
}
.pq-suggest-group {
    font-family: var(--title-fonts);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-color);
    padding: 12px 14px 6px;
}
.pq-suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 6px;
    color: var(--dark-color);
    text-decoration: none;
    line-height: 1.3;
    transition: background .15s ease;
}
.pq-suggest-item > i {
    color: var(--primary-color);
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    opacity: .8;
}
.pq-suggest-label {
    flex: 1;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pq-suggest-item mark {
    background: transparent;
    color: var(--primary-color);
    font-weight: 700;
    padding: 0;
}
.pq-suggest-page {
    font-size: 11px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--secondary-color);
    background: var(--grey-color);
    padding: 3px 9px;
    border-radius: 20px;
    flex-shrink: 0;
}
.pq-suggest-item.is-active,
.pq-suggest-item:hover {
    background: var(--grey-color);
}
.pq-suggest-item.is-active .pq-suggest-label,
.pq-suggest-item:hover .pq-suggest-label {
    color: var(--primary-color);
}
.pq-suggest-empty {
    padding: 16px 14px;
    color: var(--secondary-color);
    font-size: 14px;
}

/* White text utility for dark sections (CTA bands, etc.) */
.pq-white,
h1.pq-white, h2.pq-white, h3.pq-white,
h4.pq-white, h5.pq-white, h6.pq-white {
    color: var(--white-color) !important;
}
.pq-section-description.pq-white {
    color: rgba(255, 255, 255, .8) !important;
}

/* ============================================================
   Font Awesome conversions
   The theme used Ionicons / Themify pseudo-element icons for a
   few decorations. Those icon fonts are removed, so re-map the
   affected rules to Font Awesome 6 Free (whose fonts are present).
   sanad.css loads last, so these overrides win the cascade.
   ============================================================ */

/* Breadcrumb separator ( > ) — was Ionicons \f125 */
.pq-breadcrumb-container .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "\f054" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 11px !important;
}

/* Header / offcanvas search submit button — was Themify \e610 */
.search-submit:before,
.wp-block-search .wp-block-search__button:before,
.pq-menu-search-block .offcanvas .search-form .search-submit:before {
    content: "\f002" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* Offcanvas search close button — was Themify \e646 */
.pq-menu-search-block .offcanvas .btn-close:before {
    content: "\f00d" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}
