/* ==========================================================================
   Global Route Logistics - shared site styles
   Small additions and fixes layered on top of the theme stylesheet.
   ========================================================================== */

:root {
    --grl-red: #c22130;
    --grl-dark: #14181f;
    --grl-green: #0f9d58;
    --grl-amber: #e0a300;
}

/* Accessibility ---------------------------------------------------------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 12px 20px;
    background: var(--grl-red);
    color: #fff;
    font-weight: 600;
}
.skip-link:focus {
    left: 10px;
    top: 10px;
    color: #fff;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer ---------------------------------------------------------------- */
.ft-footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}
.ft-footer-contact ul li i {
    color: var(--grl-red);
    margin-top: 4px;
    min-width: 16px;
}
.ft-footer-contact ul li a {
    color: inherit;
}

/* Newsletter / forms ---------------------------------------------------- */
.grl-form .form-group {
    margin-bottom: 18px;
}
.grl-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}
.grl-form input,
.grl-form textarea,
.grl-form select {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #d9dde3;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
    color: #222;
}
.grl-form input:focus,
.grl-form textarea:focus,
.grl-form select:focus {
    border-color: var(--grl-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(194, 33, 48, 0.12);
}
.grl-form textarea {
    min-height: 150px;
    resize: vertical;
}
.grl-form button,
.grl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 34px;
    border: 0;
    border-radius: 6px;
    background: var(--grl-red);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.grl-form button:hover,
.grl-btn:hover {
    background: #a41b28;
    color: #fff;
    transform: translateY(-1px);
}
.grl-alert {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
}
.grl-alert--error {
    background: #fdecee;
    border: 1px solid #f5c2c7;
    color: #842029;
}
.grl-alert--success {
    background: #e8f7ef;
    border: 1px solid #b7e4c9;
    color: #0f5132;
}
.grl-honeypot {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Contact map ----------------------------------------------------------- */
.grl-map iframe {
    width: 100%;
    height: 600px;
    border: 0;
    display: block;
    border-radius: 8px;
}
@media (max-width: 991px) {
    .grl-map iframe {
        height: 380px;
    }
}

/* Legal pages ----------------------------------------------------------- */
.grl-legal h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--grl-dark);
}
.grl-legal p,
.grl-legal li {
    color: #4b5563;
    line-height: 1.75;
}
.grl-legal ul {
    padding-left: 22px;
    margin-bottom: 14px;
}
.grl-legal li {
    margin-bottom: 8px;
}

/* Breadcrumb heading (was an h2 in the original theme) ------------------- */
.ft-breadcrumb-content h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    padding-bottom: 15px;
    margin: 0;
}
@media (max-width: 767px) {
    .ft-breadcrumb-content h1 {
        font-size: 28px;
    }
}

/* About experience badge on small screens -------------------------------- */
@media (max-width: 767px) {
    .ft-about-img-exp {
        position: relative;
        margin-bottom: 20px;
    }
    .ft-about-exp-area {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        margin: 0 auto 20px;
        max-width: 240px;
    }
    .ft-about-exp-text {
        position: absolute !important;
    }
}

/* Rev Slider text legibility on small screens */
#rev_slider_27_1 rs-layer[data-type="text"] {
    text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}

/* Service cards: keep long titles inside the card */
.ft-service-innerbox-2 h3 {
    line-height: 1.35;
    overflow-wrap: break-word;
}
@media (max-width: 1199px) {
    .ft-service-innerbox-2 h3 {
        font-size: 17px;
    }
}
@media (max-width: 480px) {
    .ft-service-innerbox-2 h3 {
        font-size: 17px;
    }
}

/* Rev Slider: hide the thumbnail navigation (thumb files are not shipped) */
#rev_slider_27_1_wrapper rs-thumbs {
    display: none !important;
}

/* Footer newsletter ------------------------------------------------------ */
.ft-footer-newslatter {
    position: relative;
    z-index: 30;
}
.ft-footer-newslatter-success {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}

/* Contact page: no newsletter block */
.page-contact .ft-footer-section-2 {
    margin-top: 0;
}
.page-contact .ft-footer-widget-wrapper-2 {
    padding-top: 56px;
}

/* Contact form confirmation ---------------------------------------------- */
.grl-form-success {
    padding: 22px 24px;
    border-radius: 8px;
    background: #e8f7ef;
    border: 1px solid #b7e4c9;
    color: #0f5132;
}
.grl-form-success h3 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #0f5132;
}
.grl-form-success p {
    margin: 0;
    color: #146c43;
}
