/*
    Rally Pickleball Club — brand layer for the QuomodoTheme template.
    Loaded last; nothing above it is edited by hand except the palette swap.

    This is a DEMO CUSTOMER WEBSITE. It exists so the Lazavee booking widget
    can be installed on a site that is not Lazavee's — a widget that works when
    served from the same origin as the API has proved nothing at all.

    Palette, as supplied:

        atlantis       #a5c639   the primary
        apple          #5d8b37   the darker green
        feijoa         #a3d78e   the pale green
        sahara sand    #f2e18c   the pale yellow
        energy yellow  #f7d850   the ball

    None of those five can carry white text — atlantis is 2.1:1 against white,
    and apple is 4.03:1, which misses AA for body copy by a hair. So two
    colours are derived rather than supplied, and they do the reading:

        forest  #3d5c24   white on it is 7.6:1 — the only green that takes white
        ink     #1f2d14   on atlantis 7.4:1, on energy yellow 10.3:1, on white 14.5:1

    The rule that follows is the same one the Lazavee site runs on, in a
    different hue: every light surface carries ink, and white text only ever
    appears on forest.
*/

:root {
    --pb-atlantis: #a5c639;
    --pb-apple: #5d8b37;
    --pb-feijoa: #a3d78e;
    --pb-sand: #f2e18c;
    --pb-yellow: #f7d850;

    --pb-forest: #3d5c24;
    --pb-forest-dark: #314a1d;
    --pb-ink: #1f2d14;
    --pb-muted: #5a6b4a;
    --pb-accent-text: #4a7029;

    --pb-line: #dbe6c8;
    --pb-cream: #f7faee;
    --pb-soft: #eef5e0;
}

/* -------------------------------------------------------------------------
   1. Focus, motion and the skip link
   ---------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--pb-forest);
    outline-offset: 3px;
    border-radius: 4px;
}

.pb-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--pb-forest);
    color: #fff;
    padding: 14px 22px;
    border-radius: 0 0 8px 0;
    font-weight: 600;
}

.pb-skip:focus {
    left: 0;
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .wow {
        visibility: visible !important;
        animation-name: none !important;
    }
}

/* -------------------------------------------------------------------------
   2. The hero

   Yellow into green, which is a pickleball ball on a pickleball court and is
   also the only direction this palette wants to run.
   ---------------------------------------------------------------------- */
.welcome-text-area .area-bg {
    background: linear-gradient(135deg, var(--pb-yellow) 0%, var(--pb-atlantis) 52%, #8fb32c 100%);
}

.welcome-text-area .area-bg::after {
    background: radial-gradient(60% 70% at 78% 60%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 70%);
}

.welcome-text-area .welcome-text h4 {
    color: var(--pb-ink);
    opacity: 0.85;
}

.welcome-text-area .welcome-text h1 {
    color: var(--pb-ink);
    letter-spacing: -0.02em;
}

.welcome-text-area .welcome-text h1 span {
    color: #fff;
    font-weight: 400;
    text-shadow: 0 2px 16px rgba(31, 45, 20, 0.22);
}

.welcome-text-area .welcome-text p {
    color: rgba(31, 45, 20, 0.82);
}

.welcome-text-area .home-button a {
    background: var(--pb-forest) !important;
    color: #fff !important;
    border: 2px solid var(--pb-forest);
    box-shadow: 0 14px 30px rgba(31, 45, 20, 0.26);
}

.welcome-text-area .home-button a:last-child {
    background: transparent !important;
    color: var(--pb-ink) !important;
    border: 2px solid rgba(31, 45, 20, 0.45);
    box-shadow: none;
}

.welcome-text-area .home-button a:hover,
.welcome-text-area .home-button a:focus {
    background: var(--pb-forest-dark) !important;
    color: #fff !important;
}

.welcome-text-area .home-button a:last-child:hover,
.welcome-text-area .home-button a:last-child:focus {
    background: rgba(31, 45, 20, 0.1) !important;
    color: var(--pb-ink) !important;
}

.pb-hero-note {
    color: rgba(31, 45, 20, 0.72);
    font-size: 14px;
    margin-top: 22px;
}

/* -------------------------------------------------------------------------
   3. The header over the green hero
   ---------------------------------------------------------------------- */
.mainmenu-area .stellarnav > ul > li > a {
    color: var(--pb-ink);
    font-weight: 600;
}

.mainmenu-area .stellarnav > ul > li.active > a,
.mainmenu-area .stellarnav > ul > li > a:hover,
.mainmenu-area .stellarnav > ul > li > a:focus {
    color: var(--pb-ink);
    opacity: 0.72;
}

.header-call-to-action .action-button {
    background: var(--pb-forest) !important;
    color: #fff !important;
    border-color: var(--pb-forest) !important;
}

.header-call-to-action .action-button:hover,
.header-call-to-action .action-button:focus {
    background: var(--pb-forest-dark) !important;
    color: #fff !important;
}

.ham .line {
    stroke: var(--pb-ink);
}

.mainmenu-area.is-sticky .mainmenu-area-bg {
    box-shadow: 0 6px 24px rgba(31, 45, 20, 0.08);
}

.custom-logo-link {
    gap: 10px;
}

.navbar-header .custom-logo-link img {
    max-height: 46px;
    width: auto;
}

.pb-logo-text {
    color: var(--pb-ink);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.pb-logo-text small {
    color: var(--pb-accent-text);
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* -------------------------------------------------------------------------
   4. Photographs

   Every image on this page is a placeholder from photos/. They are sized to
   the slots they sit in, so replacing a file is the whole job — no CSS to
   touch, and nothing reflows when a real photograph arrives.
   ---------------------------------------------------------------------- */
.pb-photo {
    border-radius: 18px;
    box-shadow: 0 28px 60px rgba(31, 45, 20, 0.2);
    display: block;
    height: auto;
    overflow: hidden;
    width: 100%;
}

.pb-photo img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.pb-hero-stage {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-46%);
    /* The photograph is pinned to the right edge while the hero copy sits in
       a seven-column block on the left, so the room between them is what
       decides how large it can be. That gap widens by half of every pixel
       added to the viewport, hence the 50vw: it keeps the left edge of the
       photograph clear of the paragraph at 1400px and still lets it run large
       on a wide monitor. The cap stops it outgrowing the hero's height. */
    width: calc(50vw - 100px);
    max-width: 860px;
    padding-right: 4%;
    z-index: 5;
}

.pb-hero-stage .pb-photo {
    aspect-ratio: 4 / 3;
    transform: perspective(1600px) rotateY(-10deg) rotate(1.2deg);
}

/* A cut-out photograph — a subject on transparency, no rectangle of its own.
   The card treatment above assumes an image with edges: the shadow is drawn
   outside a rounded box, so with nothing filling that box it simply darkens
   the section around an invisible rectangle, and the undarkened middle reads
   as a white card behind the subject. A cut-out carries its own silhouette,
   so it takes neither the corners nor the shadow. */
.pb-photo.pb-cutout {
    border-radius: 0;
    box-shadow: none;
}

/* -------------------------------------------------------------------------
   5. Green type on white

   Atlantis is 2.1:1 on white and cannot be read. #4a7029 is the same hue at
   5.8:1.
   ---------------------------------------------------------------------- */
.subtitle,
.area-title h2 span,
.area-content h3 span {
    color: var(--pb-accent-text);
}

/* -------------------------------------------------------------------------
   6. Green surfaces carry ink, never white
   ---------------------------------------------------------------------- */
.read-more:hover,
.read-more:focus,
.read-more.active,
.read-more.active:hover,
.read-more.active:focus,
.price-menu li.active a,
.sale-promo,
.scrolltotop,
.scrolltotop:hover,
.scrolltotop:focus {
    color: var(--pb-ink);
}

.single-price:hover,
.single-price.active,
.single-price:hover .price-rate,
.single-price.active .price-rate,
.single-price:hover .price-title,
.single-price.active .price-title,
.single-price:hover .price-details li,
.single-price.active .price-details li,
.single-price.active .price-details ul li i {
    color: var(--pb-ink);
}

.single-price.active .price-header {
    border-bottom-color: rgba(31, 45, 20, 0.22);
}

.purchase-button:hover,
.purchase-button:focus {
    box-shadow: 0 16px 32px rgba(31, 45, 20, 0.18);
    color: var(--pb-ink);
}

.price-menu li a {
    color: var(--pb-muted);
}

.price-menu li a:hover,
.price-menu li a:focus {
    color: var(--pb-ink);
}

/* -------------------------------------------------------------------------
   7. Rates
   ---------------------------------------------------------------------- */
.pb-rate-amount {
    color: var(--pb-ink);
    font-size: 46px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.pb-rate-amount span {
    color: var(--pb-muted);
    display: block;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    margin-top: 10px;
}

.single-price.active .pb-rate-amount,
.single-price.active .pb-rate-amount span {
    color: var(--pb-ink);
}

.single-price.active .pb-rate-amount span {
    opacity: 0.78;
}

.single-price .price-header {
    margin-bottom: 32px;
    padding-bottom: 28px;
}

.single-price.active .sale-promo {
    background: var(--pb-forest);
    color: #fff;
}

.single-price.active .purchase-button {
    background: var(--pb-forest);
    color: #fff;
}

.single-price.active .purchase-button:before {
    background: var(--pb-forest-dark);
}

.single-price.active .purchase-button:hover,
.single-price.active .purchase-button:focus {
    color: #fff;
}

.pb-rate-note {
    color: var(--pb-muted);
    font-size: 13px;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 640px;
    text-align: center;
}

/* -------------------------------------------------------------------------
   8. The counters and the court-rules list
   ---------------------------------------------------------------------- */
.video-promo-area .area-bg {
    background: linear-gradient(180deg, var(--pb-cream) 0%, #fff 100%);
}

.single-fun-fact h3 {
    color: var(--pb-ink);
}

.pb-fact-unit {
    color: var(--pb-accent-text);
    font-size: 20px;
    font-weight: 600;
}

.pb-rules {
    border-top: 1px solid var(--pb-line);
    margin-top: 10px;
    padding-top: 26px;
}

.pb-rules p {
    color: var(--pb-ink);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.pb-rules p span {
    color: var(--pb-muted);
    display: block;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    margin-top: 6px;
}

.pb-badge {
    align-items: center;
    background: var(--pb-forest);
    border-radius: 18px;
    color: #fff;
    display: inline-flex;
    gap: 18px;
    padding: 24px 32px;
}

.pb-badge b {
    color: var(--pb-yellow);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.pb-badge span {
    color: #d9e6c9;
    font-size: 14px;
    line-height: 1.6;
}

.pb-note {
    border-left: 3px solid var(--pb-atlantis);
    color: var(--pb-muted);
    font-size: 15px;
    line-height: 1.9;
    margin-top: 36px;
    padding-left: 22px;
}

/* -------------------------------------------------------------------------
   9. The gallery
   ---------------------------------------------------------------------- */
.screenshot-slider .single-screenshot {
    margin: 20px 12px 40px;
}

.single-screenshot .pb-photo {
    aspect-ratio: 45 / 32;
    box-shadow: 0 22px 44px rgba(31, 45, 20, 0.18);
}

.single-screenshot img {
    filter: none;
}

.pb-shot-caption {
    color: var(--pb-muted);
    font-size: 13px;
    line-height: 1.7;
    margin: 16px 2px 0;
}

.pb-shot-caption strong {
    color: var(--pb-ink);
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

/* -------------------------------------------------------------------------
   10. The questions

   <details> wearing the template accordion's clothes. The browser opens one
   at a time on its own, and with the scripts blocked every answer is still
   readable — which a Bootstrap collapse cannot say.
   ---------------------------------------------------------------------- */
.pb-question {
    background: #fff;
    border: 1px solid var(--pb-line);
    margin-bottom: 16px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.pb-question > summary {
    align-items: flex-start;
    color: var(--pb-ink);
    cursor: pointer;
    display: flex;
    font-weight: 600;
    gap: 16px;
    list-style: none;
    padding: 20px 24px;
}

.pb-question > summary::-webkit-details-marker,
.pb-question > summary::marker {
    display: none;
    content: '';
}

.pb-question-no {
    color: var(--pb-muted);
    flex: none;
    font-size: 14px;
    letter-spacing: 1px;
    opacity: 0.7;
    padding-top: 2px;
}

.pb-question-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.6;
}

.pb-question > summary .fa-angle-down {
    flex: none;
    font-size: 18px;
    padding-top: 3px;
    transition: transform 0.3s ease;
}

.pb-question[open] {
    background: var(--pb-atlantis);
    border-color: var(--pb-atlantis);
}

.pb-question[open] > summary,
.pb-question[open] .pb-question-no,
.pb-question[open] .pb-question-answer {
    color: var(--pb-ink);
}

.pb-question[open] > summary .fa-angle-down {
    transform: rotate(180deg);
}

.pb-question-answer {
    color: var(--pb-muted);
    font-size: 15px;
    line-height: 1.9;
    padding: 0 24px 22px 54px;
}

.pb-question-answer a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

/* -------------------------------------------------------------------------
   11. The booking widget — deliberately unstyled

   There is nothing here, and that is the install this site demonstrates. The
   loader runs in modal mode with no target div: it appends its own floating
   button to <body> and opens the booking flow in its own overlay. The button
   carries inline styles and the flow lives in an iframe on Lazavee's origin,
   so this stylesheet cannot reach either of them — which is the point. The
   button's look is set by data-label, data-color, data-size and data-shape on
   the loader tag in index.html, and by the business's own dashboard, not by
   CSS written here.
   ---------------------------------------------------------------------- */

/*
    One thing this stylesheet does have to do about the widget: get out of its
    way. The loader pins its button at right:20px bottom:20px, which is where
    the theme's back-to-top button already sat. The theme's own script writes
    `bottom` as an inline style on every scroll event, so !important is the
    only way to move it — stacked above the booking button rather than under
    it.
*/
.scrolltotop {
    bottom: 90px !important;
}

/* -------------------------------------------------------------------------
   12. Footer

   Forest rather than the template's fill of the primary colour: atlantis
   across the full width under an already-bright page is a lot, and white on
   it cannot be read anyway.
   ---------------------------------------------------------------------- */
.footer-area .area-bg {
    background: linear-gradient(135deg, #2d4318 0%, #22330f 100%);
}

.footer-area.white,
.footer-area.white a,
.footer-area.white h1,
.footer-area.white h2,
.footer-area.white h3,
.footer-area.white h4,
.footer-area.white h5,
.footer-area.white h6 {
    color: #fff;
}

.footer-area .single-widgets p,
.footer-area .footer-copyright p {
    color: #a9b89a;
}

.footer-area.white a:hover,
.footer-area.white a:focus {
    color: var(--pb-yellow);
    text-decoration: underline;
    text-underline-offset: 0.3em;
}

.footer-area .read-more.active {
    background: var(--pb-atlantis);
    color: var(--pb-ink);
}

.footer-area .read-more.active:hover,
.footer-area .read-more.active:focus {
    background: var(--pb-yellow);
    color: var(--pb-ink);
}

.footer-area .read-more::before,
.footer-area .read-more.active::before {
    display: none;
}

.footer-area .footer-bottom-area {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* The theme positions the footer as a reveal panel for a script this page
   does not load, which hides it behind the document. */
.footer-area {
    bottom: auto !important;
    position: relative !important;
    width: auto !important;
    z-index: 1 !important;
}

/* -------------------------------------------------------------------------
   13. Responsive
   ---------------------------------------------------------------------- */
@media only screen and (max-width: 1199px) {
    .welcome-text-area {
        height: auto;
        padding-top: 0;
    }

    .welcome-area {
        display: block;
        height: auto;
        padding-top: 60px;
    }

    /* The overlay layout needs room for a seven-column paragraph AND a photo
       wide enough to be worth showing. Below 1200px there is not enough of
       either, so the two stack. */
    .pb-hero-stage {
        margin: 46px auto 0;
        max-width: 760px;
        padding-right: 0;
        position: static;
        transform: none;
        width: 100%;
    }

    .pb-hero-stage .pb-photo {
        transform: none;
    }

    .welcome-area .welcome-text {
        margin-inline: auto;
        max-width: 760px;
        text-align: center;
    }

    .welcome-area .col-md-7 {
        width: 100%;
    }

    .screenshot-slider {
        width: 100%;
    }
}

@media only screen and (max-width: 991px) {
    /* The menu bar stops being part of the flow and starts sitting over the
       hero, so the hero has to leave room for it. */
    .welcome-area {
        padding-top: 140px;
    }

    .pb-badge {
        padding: 20px 24px;
    }

    /* The theme sets the drawer's links in the brand colour on white and the
       open item in white on it — unreadable both ways with this palette. */
    ul#nav li a,
    .is-sticky ul#nav li a {
        color: var(--pb-ink) !important;
        font-weight: 500 !important;
    }

    .current-menu-parent > a,
    ul#nav li.has-sub.open > a,
    ul#nav li a:hover,
    ul#nav li a:focus,
    ul#nav li.active > a,
    ul#nav li.current-menu-item > a,
    ul#nav li.hover > a,
    ul#nav li.open.menu-item-has-children > a {
        background: var(--pb-atlantis) !important;
        color: var(--pb-ink) !important;
    }

    /* Two hamburgers sit on top of each other: stellarnav draws a bordered box
       with a white FontAwesome glyph, and the theme draws its own animated SVG
       over it. On the green bar the white glyph is invisible. */
    .stellarnav .menu-toggle i {
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    .welcome-text-area .welcome-text h1 {
        font-size: 32px;
    }

    .pb-rate-amount {
        font-size: 38px;
    }
}

@media only screen and (max-width: 479px) {
    .welcome-text-area .welcome-text h1 {
        font-size: 28px;
    }

    .welcome-text-area .home-button a {
        display: block;
        text-align: center;
    }

    .pb-question > summary {
        padding: 16px;
    }

    .pb-question-answer {
        padding: 0 16px 18px;
    }
}

/* -------------------------------------------------------------------------
   14. The FAQ ornament

   A decorative question mark from the template, sized for a tall phone
   mockup. Beside a landscape photograph at full size it covers the menu bar.
   ---------------------------------------------------------------------- */
.faqs-mockup-1 {
    top: -20px;
}

/* The FAQ portrait is a cut-out as well, and the theme sizes it for a framed
   photograph: 70% of a column that was itself capped at 88%, which left it
   small and stranded at the left while the floating question mark sits over
   at the right edge. Full width brings it to the scale of the questions
   beside it. The negative left margin lets it borrow the empty gutter, so it
   can move towards the mark without ending up underneath it — the artwork
   carries its own transparent margin, and only the middle 70% of the file is
   actually the subject. */
.faqs-mockup-1 .pb-photo {
    margin: 0;
    max-width: 70%;
}

.faqs-mockup-1 img {
    max-width: 100%;
}

/* The portrait can only grow into a gutter that exists. The container stops
   at 1170px, so the room beside it is whatever the viewport adds on top —
   below about 1300px the pull would take more than there is comfortably and she
   would crowd the left edge of the section. The floating mark also holds 126px
   of a column that is only 374px wide at the md breakpoint, which is why she
   stays at the theme's size down there rather than running underneath it. */
@media only screen and (min-width: 1300px) {
    .faqs-mockup-1 .pb-photo {
        margin-left: -8%;
        max-width: 92%;
    }
}

.faqs-mockup-2 {
    right: 20px;
    top: 56%;
}

.faqs-mockup-2 img {
    filter: hue-rotate(6deg) saturate(1.1);
    max-width: 140px;
}

/* The mark is drawn in ink outlines, which vanish on the dark footer. A white
   tile behind it is cheaper than keeping a second copy of the logo. */
.footer-logo img {
    background: #fff;
    border-radius: 14px;
    max-height: 56px;
    padding: 7px;
    width: auto;
}
