@charset "UTF-8";
/* ===========================================================================
   FOOTER — the ridge, and the light ground
   ---------------------------------------------------------------------------
   A drawn silhouette ridge stood at the top of this footer for a while —
   peaks, a bridge, a temple, a figure in meditation. The owner took it out;
   the skyline watermark below does that job now, and static/img/footer-ridge.svg
   went with it.

   THE GROUND. The footer was #072c26, a dark green left over from the
      palette this redesign replaced — the last large block on the page still
      wearing it. It is now the same warm paper as the hero, under the site's
      own pattern, with the text flipped to ink. Ten #1b7061 declarations, four
      green gradients, eleven #f2f0ec text colours and three white-out filters
      in assets/css/footer.css are re-pointed below, one at a time.

   NOTHING IS REMOVED. Contact details, logo, tagline, socials, all seven
   course links, the twenty quick links, the popular searches, the Yoga
   Alliance block with its verify link and five badges, and the copyright line
   are all untouched — this file only re-colours them.
   =========================================================================== */

.site-footer {
    --ryp-footer-paper: #fff9f8;
    --ryp-footer-panel: #ffffff;

    background: var(--ryp-footer-paper);
    color: var(--ryp-ink-soft);
}

/* The tiled pattern behind everything. Its own rule paints it through a long
   invert/sepia/hue-rotate chain that lands on the old green; this swaps the
   whole chain for "make it ink" and lets opacity do the rest. It is held down
   to .03 because there is now a second thing behind the text. */
.site-footer::before {
    filter: brightness(0);
    opacity: .03;
}

/* ---------------------------------------------------------------------------
   THE SKYLINE
   ---------------------------------------------------------------------------
   A Rishikesh skyline in line work across the foot of the page — the ghats,
   the suspension bridge, the temples and shikharas, the street below them —
   supplied by the owner and set behind the footer's text.

   IT IS USED AS A MASK, not as a picture: the band is painted in the brand
   ink and static/img/rishikesh-skyline.webp supplies only its alpha. That
   keeps the drawing in the site's own colour with no filter chain to guess at,
   and it means the colour is changed here in one place rather than in the
   file.

   THE FILE HAD TO BE REPAIRED FIRST. What was supplied was a screenshot of a
   transparent asset sitting on an editor checkerboard, so the board was in the
   pixels — squares of 212-grey and white, and no alpha channel at all
   (measured). The alpha was rebuilt from darkness: at or above luminance 205
   nothing survives, which clears both checker tones, ramping to fully opaque
   by 45 so the anti-aliased edges of the strokes are kept rather than cut.

   `contain` with a bottom anchor is what keeps it honest: the artwork is
   1440 x 443, far wider than it is tall, so contain always fits it by WIDTH
   and leaves the height to follow. No stretching, and the street always meets
   the bottom edge of the footer.

   It sits at z-index 0; footer.css already lifts .container and .footer-bottom
   to z-index 1, so every line of text stays clear of it.
   --------------------------------------------------------------------------- */
.site-footer::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #3b100a;
    /* .13 first time out; the owner's note was that the text was hard to
       read over it, and on a paper ground it only has to be felt. */
    opacity: .06;

    -webkit-mask-image: url("../img/rishikesh-skyline.webp?v=1");
    mask-image: url("../img/rishikesh-skyline.webp?v=1");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: bottom center;
    mask-position: bottom center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

@media (max-width: 61.99rem) {
    /* Fitted by width on a phone the skyline would be 115px tall and the
       buildings would close up into a grey band. Fixing the height instead
       keeps them legible and lets the ends run off the edge.

       REVISED after the owner reported it was not visible on a phone, and he
       was right — measured, it was there but barely. Two things were working
       against it: at 220px tall the drawing is ~715px wide, so only its quiet
       left-hand end was on screen, and all of that end sat behind the Yoga
       Alliance panel, which is painted on a 72%-white plate. So the drawing is
       now taller (300px, ~975px wide) and anchored centre, which brings the
       bridge and the temples into the frame and lifts the band clear of the
       panel into the open space above it, and the opacity goes to .11 —
       roughly twice the desktop value, because a phone screen is usually
       read in worse light than a monitor. */
    .site-footer::after {
        -webkit-mask-size: auto 300px;
        mask-size: auto 300px;
        -webkit-mask-position: bottom center;
        mask-position: bottom center;
        opacity: .11;
    }
}

/* ---------------------------------------------------------------------------
   2. TEXT, NOW THAT THE GROUND IS LIGHT
   --------------------------------------------------------------------------- */
.site-footer .footer-heading,
.site-footer .footer-ql-heading,
.site-footer .footer-affiliations .footer-affiliations-heading,
.site-footer .footer-course-name,
.site-footer .footer-contact-body { color: var(--ryp-ink); }

.site-footer .footer-course-meta,
.site-footer .footer-bottom .footer-bottom-text { color: var(--ryp-ink-soft); }

.site-footer .footer-grid { border-bottom-color: rgba(222, 42, 29, .16); }

.site-footer .footer-heading::before,
.site-footer .footer-ql-heading::before { background: var(--ryp-red); }
.site-footer .footer-heading::after,
.site-footer .footer-ql-heading::after  { background: rgba(222, 42, 29, .35); }

/* The three white-out filters. The logo and the contact icons were flipped to
   white for the dark ground and would now be invisible; the social icons stay
   white because they sit on a red disc. */
.site-footer .footer-logo { filter: none; }
.site-footer .footer-contact-icon {
    border-color: rgba(222, 42, 29, .3);
    background: #fff;
}
.site-footer .footer-contact-icon img {
    filter: brightness(0) saturate(100%) invert(22%) sepia(81%)
            saturate(5000%) hue-rotate(356deg) brightness(92%) contrast(97%);
}

/* ---------------------------------------------------------------------------
   3. THE BRAND PANEL
   --------------------------------------------------------------------------- */
.site-footer .footer-col--brand,
.site-footer .footer-col--brand::before {
    background: var(--ryp-footer-panel);
}
.site-footer .footer-col--brand {
    border: 1px solid rgba(222, 42, 29, .16);
    box-shadow: 0 2px 18px rgba(26, 26, 26, .05);
}
.site-footer .footer-tagline { color: var(--ryp-ink-soft); }
.site-footer .footer-tagline strong { color: var(--ryp-ink); }

.site-footer .footer-social a {
    background: linear-gradient(135deg, var(--ryp-red), var(--ryp-red-deep));
    border-color: transparent;
}
/* The per-network brand colours further down footer.css are left alone —
   Facebook blue and the Instagram gradient are those companies' marks, not
   ours to re-tint. This is only the default state. */
.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus-visible {
    background: linear-gradient(135deg, var(--ryp-red-deep), #8f1810);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(222, 42, 29, .32);
}

/* ---------------------------------------------------------------------------
   4. LINKS, CHIPS AND THE BOTTOM BAR
   --------------------------------------------------------------------------- */
.site-footer .footer-courses li a::before {
    border-right-color: var(--ryp-red);
    border-top-color: var(--ryp-red);
}
.site-footer .footer-courses li a:hover .footer-course-name { color: var(--ryp-red-ink); }

.site-footer .footer-chips a {
    color: var(--ryp-ink);
    border-color: rgba(26, 26, 26, .16);
    background: #fff;
}
.site-footer .footer-chips a:hover,
.site-footer .footer-chips a:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, var(--ryp-red), var(--ryp-red-deep));
    border-color: var(--ryp-red);
    box-shadow: 0 6px 16px rgba(222, 42, 29, .3);
}

.site-footer .footer-affiliations {
    border-color: rgba(222, 42, 29, .18);
    background: rgba(255, 255, 255, .72);   /* lifts the block off the watermark */
    border-radius: 18px;
}

/* The fourth white-out filter, and the one that mattered most: the five Yoga
   Alliance badges were flipped to white for the dark footer, so on this light
   ground they were white on white — measured, all five invisible. They are
   certification marks and must be shown exactly as Yoga Alliance supplies
   them, so the filter is removed rather than swapped for another colour. */
.site-footer .footer-affiliations .footer-affiliations-logos img { filter: none; }
/* assets/css/ryp-overrides.css:2251 paints this link #cfe3d9, a pale mint from
   the old palette, through a four-class chain — measured on the light footer
   as rgb(207, 227, 217), all but invisible. The selector below repeats that
   chain so it wins on order rather than on !important, and the hover, which
   went to #fff, would have been invisible too. */
.site-footer .footer-affiliations .footer-affiliations-verify a {
    color: var(--ryp-red-ink);
}
.site-footer .footer-affiliations .footer-affiliations-verify a:hover,
.site-footer .footer-affiliations .footer-affiliations-verify a:focus-visible {
    color: var(--ryp-red);
}

/* "Popular Searches" comes in through includes/footer-quicklinks.php and is
   styled in ryp-overrides.css:698-734 entirely in rgba(242,240,236,...) — made
   for the dark ground, so on this one the heading and every tag would have
   been near-white on paper. */
.site-footer .footer-tags-heading { color: rgba(26, 26, 26, .6); }
.site-footer .footer-tags a {
    color: var(--ryp-ink-soft);
    border-color: rgba(26, 26, 26, .18);
}
.site-footer .footer-tags a:hover,
.site-footer .footer-tags a:focus-visible {
    color: #fff;
    background: var(--ryp-red);
    border-color: var(--ryp-red);
}

/* The copyright bar is white, on the owner's note. The footer's own ground is
   the warm paper #fff9f8, so plain white still reads as a separate band
   against it without needing a tint of its own. The hairline stays — at that
   small a difference the bar needs an edge to be a bar. */
.site-footer .footer-bottom {
    background: #fff;
    border-top-color: rgba(222, 42, 29, .2);
}
.site-footer .footer-bottom .footer-bottom-text strong { color: var(--ryp-ink); }

/* ---------------------------------------------------------------------------
   THE STICKY BAR
   ---------------------------------------------------------------------------
   Not part of the footer, but it sits over every section and still carried the
   old palette.
   --------------------------------------------------------------------------- */
.bottom-box .fixed-btn:hover { background: var(--ryp-red-deep); }

@media (max-width: 48rem) {
    /* Measured at 375px: "Send Enquiry" is a 999px pill, outlined, while
       WhatsApp was a square-cornered green slab butted against it — two
       different objects sharing an edge. The owner asked for the WhatsApp one
       to match, so both are pills now, equal width, with the bar itself
       providing the gap and the ground they sit on. */
    .bottom-box {
        gap: .625rem;
        padding: .5rem .75rem;
        padding-bottom: calc(.5rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 249, 248, .94);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        border-top: 1px solid rgba(222, 42, 29, .14);
    }
    .bottom-box .fixed-btn,
    .bottom-box .whatsapp {
        flex: 1 1 0;
        min-width: 0;
        /* `height` alone left them 50 and 46 — the enquiry button carries its
           own min-height from .theme-button, so both are pinned to that 50. */
        height: 50px;
        min-height: 50px;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 .875rem;
        border-radius: 999px;
        box-shadow: none;
    }
    .bottom-box .whatsapp {
        /* WhatsApp's own green is kept — it is their mark, and a reader
           recognises the button by it. */
        gap: .4375rem;
    }
    .bottom-box .whatsapp-icon { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer .footer-social a { transition: none; }
}

/* ===========================================================================
   THE ORDER OF THE FOOT
   ---------------------------------------------------------------------------
   The owner asked for four bands, in this order:

     1   logo & social          |   Contact Details
     2   Yoga Alliance School   |   Yoga Course

   (The first pass had the Yoga Alliance panel in band 1 and Contact Details
   in band 2; the owner then asked for the two to change places.)
     3   Quick Links                        (full width)
     4   Popular Searches                   (full width)

   What was there: a three-across row of Contact / brand / Courses, then Quick
   Links, then Popular Searches, with the Yoga Alliance panel last of all —
   the school's registration, the single strongest thing in the footer, was
   at the bottom under eighteen tag links.

   DONE WITHOUT TOUCHING THE MARKUP. The footer is one shared include used by
   every page and by all 27 posts, and the live original uses it too. So
   .site-footer > .container becomes the grid, .footer-grid is dissolved with
   `display: contents` so its three columns become items of that grid, and
   every child is then placed by row. Reordering the HTML would have meant
   editing the include the live site also loads.

   `display: contents` removes the box but not the element: .footer-grid's own
   bottom border and padding would go with it, so the rule that drew the line
   under the old three-across row is restated below on the second band, where
   that line now belongs.
   =========================================================================== */
.site-footer > .container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(28px, 3vw + 12px, 56px);
    row-gap: clamp(26px, 2.4vw + 12px, 44px);
    align-items: start;
}

/* the three columns become items of the container's grid */
.site-footer .footer-grid {
    display: contents;
}

/* -- band 1 --------------------------------------------------------------- */
.site-footer .footer-col--brand   { grid-column: 1; grid-row: 1; }
.site-footer .footer-col--contact { grid-column: 2; grid-row: 1; }

/* -- band 2 --------------------------------------------------------------- */
.site-footer .footer-affiliations { grid-column: 1; grid-row: 2; margin-top: 0; }
.site-footer .footer-col--courses { grid-column: 2; grid-row: 2; }

/* The rule that used to close the three-across row. It cannot hang under the
   band-2 columns: the Yoga Alliance panel is a rounded box and much shorter
   than the course list, so the line came out in two pieces at two heights.
   It is drawn once, full width, above Quick Links instead — the same joint,
   in one stroke. */
.site-footer .footer-grid { border-bottom: 0; padding-bottom: 0; }

/* -- bands 3 and 4 -------------------------------------------------------- */
.site-footer .footer-ql-heading {
    grid-column: 1 / -1;
    grid-row: 3;
    padding-top: clamp(20px, 2vw + 8px, 32px);
    border-top: 1px solid rgba(222, 42, 29, .16);
}
.site-footer .footer-chips        { grid-column: 1 / -1; grid-row: 4; }
.site-footer .footer-tags-heading { grid-column: 1 / -1; grid-row: 5; }
.site-footer .footer-tags         { grid-column: 1 / -1; grid-row: 6; }

/* Popular Searches closes the footer now, so it carries the rule that the
   affiliations panel used to need above it. */
.site-footer .footer-tags-heading {
    padding-top: clamp(20px, 2vw + 8px, 32px);
    border-top: 1px solid rgba(222, 42, 29, .16);
}

/* -- the affiliations panel, now beside the brand rather than across the
      whole foot: it is no longer a wide banner, so it reads left like its
      neighbour instead of centred. ------------------------------------------ */
.site-footer .footer-affiliations { text-align: left; }
/* Four seals in a flex row wrapped 3 + 1 in the narrower column, leaving the
   E-RYT 500 stranded on a line of its own. A four-track grid keeps them on
   one line and lets each one shrink instead. */
.site-footer .footer-affiliations .footer-affiliations-logos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: center;
    align-items: center;
    gap: clamp(10px, 1.4vw, 20px);
}
.site-footer .footer-affiliations .footer-affiliations-logos img,
.site-footer .footer-affiliations .footer-affiliations-logos img:not(:first-child) {
    width: 100%;
    max-width: 120px;
    height: auto;
    max-height: 78px;
}

@media (max-width: 61.99rem) {
    /* Two columns of this content at tablet width leaves the courses list and
       the four seals fighting for the same 300px, so the bands stack. The
       order the owner asked for is kept exactly, top to bottom. */
    .site-footer > .container { grid-template-columns: minmax(0, 1fr); }
    .site-footer .footer-col--brand   { grid-column: 1; grid-row: 1; }
    .site-footer .footer-col--contact { grid-column: 1; grid-row: 2; }
    .site-footer .footer-affiliations { grid-column: 1; grid-row: 3; }
    .site-footer .footer-col--courses { grid-column: 1; grid-row: 4; }
    .site-footer .footer-ql-heading   { grid-column: 1; grid-row: 5; }
    .site-footer .footer-chips        { grid-column: 1; grid-row: 6; }
    .site-footer .footer-tags-heading { grid-column: 1; grid-row: 7; }
    .site-footer .footer-tags         { grid-column: 1; grid-row: 8; }


}
