/*
Theme Name: GCC Bus
Theme URI: https://gccbus.com/
Author: The GCC Bus & Experience Tours
Description: Block theme for The GCC Bus. Header, footer, page layouts and sections are all editable in Appearance > Editor. Works with the GCC Bus Tours plugin for tours, route search and Bokun booking.
Version: 1.4.6
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gcc-bus
Tags: full-site-editing, block-patterns, custom-colors, wide-blocks
*/

/* Small label above headings ("Explore Capitals") */
.is-style-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    font-size: var(--wp--preset--font-size--x-small);
    color: var(--wp--preset--color--gold-text);
}

.has-navy-background-color .is-style-eyebrow,
.wp-block-cover .is-style-eyebrow {
    color: var(--wp--preset--color--gold);
}

/* Dark rounded label ("Scheduled Intercity Service", "Qatar") */
.is-style-pill {
    display: inline-block;
    width: auto !important;
    margin: 0;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--wp--preset--color--pill);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Phone button in the header */
.wp-block-button.is-style-phone .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1C293D;
    border: 1px solid #314158;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 400;
    padding: 10px 14px;
}

.wp-block-button.is-style-phone .wp-block-button__link::before {
    content: "";
    width: 15px;
    height: 15px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wp-block-button.is-style-phone .wp-block-button__link:hover {
    border-color: var(--wp--preset--color--gold);
    color: var(--wp--preset--color--gold);
}

/* Header navigation */
.gcc-site-header .wp-block-navigation-item__content {
    color: var(--wp--preset--color--pale);
    letter-spacing: 1px;
}

.gcc-site-header .wp-block-navigation-item__content:hover,
.gcc-site-header .current-menu-item > .wp-block-navigation-item__content {
    color: var(--wp--preset--color--gold);
}

.gcc-site-header .wp-block-navigation__responsive-container.is-menu-open {
    background: var(--wp--preset--color--navy);
    padding: 32px 24px;
}

/* Destination cards */
.gcc-card {
    overflow: hidden;
    height: 100%;
    box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.35);
}

.gcc-card .wp-block-separator {
    width: 100%;
}

/* FAQ */
.wp-block-details.is-style-faq {
    background: #FFFFFF;
    border: 1px solid var(--wp--preset--color--line);
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
}

.wp-block-details.is-style-faq + .wp-block-details.is-style-faq {
    margin-top: 14px;
}

.wp-block-details.is-style-faq summary {
    position: relative;
    padding: 20px 56px 20px 20px;
    font-weight: 600;
    font-size: 15px;
    color: var(--wp--preset--color--ink);
    cursor: pointer;
    list-style: none;
}

.wp-block-details.is-style-faq summary::-webkit-details-marker {
    display: none;
}

.wp-block-details.is-style-faq summary::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.2s ease;
}

.wp-block-details.is-style-faq[open] summary::after {
    transform: translateY(-30%) rotate(-135deg);
}

.wp-block-details.is-style-faq > :not(summary) {
    margin: 0;
    padding: 0 20px 20px;
    font-size: 14px;
    color: var(--wp--preset--color--slate);
}

/* Footer */
.gcc-site-footer a {
    color: var(--wp--preset--color--slate-light);
    text-decoration: none;
}

.gcc-site-footer a:hover {
    color: var(--wp--preset--color--gold);
}

.gcc-site-footer .wp-block-list {
    list-style: none;
    padding-left: 0;
}

.gcc-site-footer .wp-block-list li + li {
    margin-top: 8px;
}

.gcc-site-footer iframe {
    display: block;
    width: 100%;
    height: 150px;
    border: 0;
    border-radius: 12px;
}

/* Contact page */
.gcc-ticks p {
    margin: 0;
}

.gcc-form-card {
    box-shadow: 0 24px 50px -36px rgba(15, 23, 42, 0.4);
}

/* Plugin blocks fill their column (Elementor needed !important rules for this) */
.wp-block-gcc-search-bar .gcc-min-search-shell {
    margin-left: 0;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

@media (max-width: 781px) {
    .gcc-hero .wp-block-cover__inner-container {
        padding: 0;
    }
}

/* Header, page and footer sit flush against each other */
.wp-site-blocks > * + * {
    margin-block-start: 0;
}

/* Header menu colours (core navigation styles are otherwise more specific) */
.gcc-site-header .wp-block-navigation a.wp-block-navigation-item__content {
    color: var(--wp--preset--color--pale);
}

.gcc-site-header .wp-block-navigation a.wp-block-navigation-item__content:hover,
.gcc-site-header .wp-block-navigation a.wp-block-navigation-item__content:focus-visible,
.gcc-site-header .wp-block-navigation .current-menu-item > a.wp-block-navigation-item__content {
    color: var(--wp--preset--color--gold);
}

.wp-block-button.is-style-phone .wp-block-button__link {
    white-space: nowrap;
}

/* On phones the phone button shows just its icon; screen readers still read the number */
@media (max-width: 600px) {
    /* Icon-only phone button: a true circle, 44px for an easy tap */
    .wp-block-button.is-style-phone .wp-block-button__link {
        font-size: 0;
        gap: 0;
        padding: 0 !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        border-radius: 50% !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        flex-shrink: 0;
    }

    .wp-block-button.is-style-phone .wp-block-button__link::before {
        width: 17px;
        height: 17px;
    }
}
