/* =========================================================
   Sunday.je
   Main stylesheet
   ========================================================= */


/* ---------------------------------------------------------
   Base
   --------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #16202a;
    background: #faf9f6;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ---------------------------------------------------------
   Focus states (WCAG 2.2 AA)
   --------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 2px solid #617b6d;
    outline-offset: 2px;
    border-radius: 4px;
}

.explore-filters input:focus-visible,
.explore-filters select:focus-visible {
    outline: none;
}

.feature-chip input:focus-visible + span {
    outline: 2px solid #617b6d;
    outline-offset: 2px;
}

.search-box:focus-within {
    box-shadow:
        0 0 0 4px rgba(97, 123, 109, 0.16),
        0 12px 40px rgba(0, 0, 0, 0.08);
}


/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e8e6e1;
}

.header-inner {
    height: 86px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    display: inline-block;
    margin-right: auto;
    color: #16202a;
    text-decoration: none;
}

.logo-wordmark {
    display: block;
}

.logo-monogram {
    display: none;
}

.logo span {
    display: block;
    margin-top: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.main-nav {
    display: flex;
    gap: 28px;
}

.main-nav a {
    color: #38434c;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s ease;
}

.main-nav a:hover {
    color: #617b6d;
}

.business-button {
    background: #c86f54;
    color: white;
    padding: 12px 18px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.business-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(200, 111, 84, 0.2);
}


/* ---------------------------------------------------------
   Mobile Navigation
   --------------------------------------------------------- */

.mobile-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid #d9d7d1;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: #16202a;
    border-radius: 1px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.mobile-nav-toggle.is-open .mobile-nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-nav-toggle.is-open .mobile-nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.is-open .mobile-nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    border-top: 1px solid #e8e6e1;
    background: #ffffff;
}

.mobile-nav a {
    padding: 16px 20px;
    color: #38434c;
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid #f1efe9;
}

.mobile-nav a:last-child {
    border-bottom: 0;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
    color: #617b6d;
    background: #faf9f6;
}

.mobile-nav-business {
    font-weight: 600;
    color: #c86f54 !important;
}


/* ---------------------------------------------------------
   Shared label style (eyebrow / kicker)
   --------------------------------------------------------- */

.eyebrow {
    margin: 0;
    color: #617b6d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}


/* ---------------------------------------------------------
   Section heading (shared by homepage sections)
   --------------------------------------------------------- */

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 5px 0 0;
    font-family: Georgia, serif;
    font-size: 38px;
}

.section-heading a {
    color: #617b6d;
    text-decoration: none;
    font-weight: 600;
}

.section-heading a:hover {
    text-decoration: underline;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.business-card {
    overflow: hidden;
    background: #faf9f6;
    border: 1px solid #ebe8e2;
    border-radius: 18px;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.business-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.business-card-image {
    height: 200px;
    overflow: hidden;
}

.business-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-card-visual {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eef2eb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200' preserveAspectRatio='none'%3E%3Cpath d='M0 150 C 80 122, 140 176, 220 146 S 340 112, 400 150' fill='none' stroke='%23bfc9c1' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% 55%;
}

.business-card-visual-icon {
    width: 44px;
    height: 44px;
    color: rgba(97, 123, 109, 0.55);
}

.business-card-visual-icon svg {
    width: 100%;
    height: 100%;
}

.business-card--lead .business-card-visual,
.business-card--lead .business-card-image {
    height: 260px;
}

.business-card--lead .business-card-visual-icon {
    width: 56px;
    height: 56px;
}

.business-card--lead h3 {
    font-size: 28px;
}

.business-card-content {
    padding: 22px;
}

.business-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #7a8185;
    font-size: 12px;
}

.category-label {
    color: #617b6d;
    font-weight: 700;
}

.business-card h3 {
    margin: 12px 0 8px;
    font-family: Georgia, serif;
    font-size: 24px;
}

.business-card h3 a {
    color: inherit;
    text-decoration: none;
}

.business-card h3 a:hover {
    text-decoration: underline;
}

.business-card p {
    margin: 0 0 18px;
    color: #697178;
    line-height: 1.5;
}

.opening-status {
    font-size: 13px;
    font-weight: 600;
}

.opening-status.open {
    color: #39704f;
}

.opening-status.closed {
    color: #9a4e42;
}


/* ---------------------------------------------------------
   Business Detail Page
   --------------------------------------------------------- */

.business-detail {
    padding: 50px 0 100px;
}

.back-link {
    display: inline-block;
    margin-bottom: 25px;
    color: #617b6d;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.business-hero-image {
    width: 100%;
    height: 480px;
    margin-bottom: 45px;
    border-radius: 24px;
    overflow: hidden;
}

.business-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-hero-typographic {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 44px;
    margin-bottom: 45px;
    border-radius: 24px;
    background-color: #eef2eb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 200' preserveAspectRatio='none'%3E%3Cpath d='M0 150 C 160 110, 280 185, 440 140 S 680 105, 800 150' fill='none' stroke='%23bfc9c1' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% 45%;
}

.business-hero-icon {
    width: 42px;
    height: 42px;
    color: rgba(97, 123, 109, 0.55);
}

.business-hero-icon svg {
    width: 100%;
    height: 100%;
}

.business-hero-typographic .business-meta {
    margin: 0;
}

.business-detail .business-hero-typographic h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 44px;
    line-height: 1.08;
    color: #16202a;
}

.business-hero-typographic .opening-status {
    font-size: 15px;
}

.business-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.business-detail h1 {
    margin: 15px 0 20px;
    font-family: Georgia, serif;
    font-size: 52px;
    line-height: 1.08;
}

.business-description {
    max-width: 700px;
    color: #5f686e;
    font-size: 18px;
    line-height: 1.7;
}

.business-detail h2 {
    margin-top: 45px;
    font-family: Georgia, serif;
    font-size: 28px;
}

.business-info-card {
    padding: 30px;
    background: white;
    border: 1px solid #ebe8e2;
    border-radius: 18px;
}

.business-info-card h3 {
    margin-top: 0;
    font-family: Georgia, serif;
    font-size: 24px;
}

.business-info-card p {
    color: #626a70;
    line-height: 1.6;
}

.detail-button {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 18px;
    background: #c86f54;
    color: white;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
}

.detail-button:hover {
    box-shadow: 0 6px 18px rgba(200, 111, 84, 0.2);
}


/* ---------------------------------------------------------
   Explore Page
   --------------------------------------------------------- */

.explore-header {
    padding: 70px 0 50px;
    background:
        linear-gradient(
            110deg,
            #eef2eb 0%,
            #f7f4ee 65%,
            #f3e8df 100%
        );
}

.explore-header h1 {
    margin: 10px 0;
    font-family: Georgia, serif;
    font-size: 54px;
}

.explore-header > .container > p {
    color: #667078;
    font-size: 18px;
}


/* ---------------------------------------------------------
   Explore Search + Filters
   --------------------------------------------------------- */

.explore-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 12px;
    margin-top: 30px;
}

.explore-filters input,
.explore-filters select {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #dedbd5;
    border-radius: 14px;
    background-color: #ffffff;
    color: #25313a;
    font-size: 15px;
    font-family: inherit;
    outline: none;

    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.02),
        0 5px 18px rgba(0, 0, 0, 0.03);

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.explore-filters input:focus,
.explore-filters select:focus {
    border-color: #8da294;

    box-shadow:
        0 0 0 4px rgba(97, 123, 109, 0.12),
        0 6px 20px rgba(0, 0, 0, 0.04);
}

.explore-filters input::placeholder {
    color: #9aa0a4;
}


/* Custom select appearance */

.explore-filters select {
    appearance: none;
    -webkit-appearance: none;

    padding-right: 44px;

    background-image:
        linear-gradient(
            45deg,
            transparent 50%,
            #617b6d 50%
        ),
        linear-gradient(
            135deg,
            #617b6d 50%,
            transparent 50%
        );

    background-position:
        calc(100% - 20px) 22px,
        calc(100% - 15px) 22px;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;

    cursor: pointer;
}


/* Explore search button */

.explore-filters button {
    height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: 14px;
    background: #c86f54;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;

    box-shadow:
        0 6px 18px rgba(200, 111, 84, 0.18);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.explore-filters button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 8px 22px rgba(200, 111, 84, 0.24);
}

.explore-filters button:active {
    transform: translateY(0);
}


/* ---------------------------------------------------------
   Filters disclosure - Open Now + the feature chips live inside a
   native <details>, wrapping exactly what .filters-disclosure-body
   already lays out as a full-width flex row. At desktop, `display:
   contents` on the wrapper removes it from the box model entirely,
   so the grid layout is unchanged from before; only below the
   existing mobile breakpoint does it collapse behind a compact
   "Filters" toggle (category/parish stay visible at every width -
   they're compact single-line controls, not the space problem).
   --------------------------------------------------------- */

.filters-disclosure {
    display: contents;
}

.filters-disclosure summary {
    display: none;
}

.filters-active-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c86f54;
}


/* ---------------------------------------------------------
   Explore Results
   --------------------------------------------------------- */

.explore-results {
    padding: 60px 0 100px;
}

.results-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 30px;
}

.results-heading h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 34px;
}

.results-heading p {
    margin-bottom: 0;
    color: #737b80;
}

.results-heading a {
    color: #617b6d;
    text-decoration: none;
    font-weight: 600;
}

.results-heading a:hover {
    text-decoration: underline;
}

.no-results {
    grid-column: 1 / -1;
    padding: 60px;
    text-align: center;
    background: white;
    border: 1px solid #ebe8e2;
    border-radius: 18px;
}

.no-results h3 {
    margin-top: 0;
    font-family: Georgia, serif;
    font-size: 28px;
}

.no-results p {
    color: #697178;
}

.no-results a {
    color: #617b6d;
    font-weight: 600;
}


/* ---------------------------------------------------------
   Explore Default Browse State (lead group + category sections)
   --------------------------------------------------------- */

.explore-lead-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-bottom: 56px;
}

.explore-section {
    margin-bottom: 48px;
}

.explore-section:last-child {
    margin-bottom: 0;
}

.explore-section-heading {
    margin: 0 0 20px;
    font-family: Georgia, serif;
    font-size: 26px;
}

.business-grid--compact .business-card-content {
    padding: 18px;
}

/* ---------------------------------------------------------
   Explore Feature Filters
   --------------------------------------------------------- */

.filters-disclosure-body {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 4px;
}

.feature-chip {
    position: relative;
    cursor: pointer;
}

.feature-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.feature-chip span {
    display: block;
    padding: 9px 14px;
    border: 1px solid #d9d7d1;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.8);
    color: #4d585e;
    font-size: 13px;
    font-weight: 500;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.feature-chip:hover span {
    transform: translateY(-1px);
    border-color: #aebdb3;
}

.feature-chip input:checked + span {
    background: #617b6d;
    border-color: #617b6d;
    color: #ffffff;
}

.open-now-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px solid #bfc9c1;
    border-radius: 22px;
    background: #eef2eb;
    color: #46594d;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.open-now-toggle::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.open-now-toggle:hover {
    transform: translateY(-1px);
    border-color: #8da294;
}

.open-now-toggle.active {
    background: #617b6d;
    border-color: #617b6d;
    color: #ffffff;
}

.business-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.business-features span {
    padding: 5px 9px;
    border-radius: 14px;
    background: #eef2eb;
    color: #617b6d;
    font-size: 11px;
    font-weight: 600;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .header-inner {
        gap: 20px;
    }

    .main-nav {
        gap: 16px;
    }

    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .explore-filters {
        grid-template-columns: 1fr 1fr;
    }

    .explore-search {
        grid-column: 1 / -1;
    }
}


@media (max-width: 800px) {

    .container {
        width: min(100% - 28px, 1180px);
    }

    .main-nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .mobile-nav:not([hidden]) {
        display: flex;
    }

    .header-inner {
        height: 76px;
    }

    .business-button {
        padding: 10px 14px;
        font-size: 13px;
    }


    /* Business cards */

    .business-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 12px;
    }


    /* Business detail */

    .business-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .business-hero-image {
        height: 300px;
    }

    .business-hero-typographic {
        padding: 28px 24px;
    }

    .business-detail h1 {
        font-size: 40px;
    }

    .business-detail .business-hero-typographic h1 {
        font-size: 32px;
    }


    /* Explore */

    .explore-header {
        padding: 55px 0 40px;
    }

    .explore-header h1 {
        font-size: 42px;
    }

    .explore-filters {
        grid-template-columns: 1fr;
    }

    .explore-search {
        grid-column: auto;
    }

    .filters-disclosure,
    .filters-disclosure-body {
        display: block;
    }

    .filters-disclosure summary {
        display: flex;
        align-items: center;
        gap: 8px;
        width: fit-content;
        margin-top: 4px;
        padding: 10px 16px;
        border: 1px solid #d9d7d1;
        border-radius: 22px;
        background: #ffffff;
        color: #46594d;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        list-style: none;
    }

    .filters-disclosure summary::-webkit-details-marker {
        display: none;
    }

    .filters-disclosure summary::after {
        content: "▾";
        color: #617b6d;
    }

    .filters-disclosure[open] summary::after {
        content: "▴";
    }

    .filters-disclosure-body {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-top: 14px;
    }

    .results-heading {
        align-items: start;
        flex-direction: column;
        gap: 10px;
    }

    .explore-lead-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 520px) {

    .logo-wordmark {
        width: 97px;
        height: 27px;
    }

    .business-button {
        font-size: 0;
    }

    .business-button::after {
        content: "Business";
        font-size: 13px;
    }

    .business-card-image,
    .business-image-placeholder {
        height: 180px;
    }

    .no-results {
        padding: 40px 20px;
    }

}


/* =========================================================
   Homepage (B5 mobile-first redesign)

   Hero, search, chip rail, Popular / Featured / Open this Sunday /
   Sunday Pick. Authored mobile-first (390px base) per the brief —
   the opposite convention from the rest of this file, deliberately,
   because this is the primary Sunday.je product surface. Desktop is
   a `min-width` enhancement of the same structure, not a separate
   layout. Every selector below is new or homepage-only, so Explore
   and Business Detail are unaffected.
   ========================================================= */

.hero {
    padding: 28px 0 22px;
    background: #faf9f6;
}

.hero h1 {
    margin: 10px 0 8px;
    font-family: Georgia, serif;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: #16202a;
}

.hero-description {
    margin: 0;
    max-width: 480px;
    font-size: 16px;
    line-height: 1.5;
    color: #5b646b;
}


/* Search */

.search-box {
    display: flex;
    align-items: center;
    max-width: none;
    margin-top: 18px;
    padding: 4px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(22, 32, 42, 0.08);
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    padding: 12px 14px;
    font-size: 15px;
    background: transparent;
    color: #25313a;
}

.search-box input::placeholder {
    color: #9aa0a4;
}

.search-box button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #c86f54;
    color: #ffffff;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.search-box button svg {
    width: 18px;
    height: 18px;
}

.search-box button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(200, 111, 84, 0.24);
}


/* Chip rail */

.chip-rail {
    margin-top: 18px;
    padding: 2px 0 4px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.chip-rail::-webkit-scrollbar {
    display: none;
}

.chip-rail-track {
    display: flex;
    gap: 8px;
    padding: 0 20px;
    width: max-content;
}

.chip {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #d9d7d1;
    border-radius: 22px;
    background: #ffffff;
    color: #38434c;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}

.chip:hover {
    transform: translateY(-1px);
    border-color: #bfc9c1;
}

.chip--prominent {
    background: #c86f54;
    border-color: #c86f54;
    color: #ffffff;
}

.chip--prominent:hover {
    box-shadow: 0 6px 16px rgba(200, 111, 84, 0.24);
}


/* Ideas for this Sunday — a deterministic organic discovery rail, not
   a popularity ranking (there's no popularity data behind it). Class
   name kept as .popular-rail to avoid an unrelated rename/refactor. */

.popular-rail {
    padding: 32px 0 8px;
}

.section-heading--rail {
    margin-bottom: 16px;
}

.swipe-cue {
    font-size: 13px;
    font-weight: 600;
    color: #617b6d;
}

.rail-track {
    display: flex;
    gap: 14px;
    padding: 0 20px 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.rail-track::-webkit-scrollbar {
    display: none;
}

.rail-item {
    flex: 0 0 auto;
    width: 230px;
    scroll-snap-align: start;
}


/* Discovery card — dedicated, deliberately minimal presentation for the
   "Ideas for this Sunday" rail: image, category, name, parish, a
   one-word status. No description/features/hours detail — this is
   meant to be browsed at a glance, not read like a directory listing.
   Kept separate from _business_card.html on purpose. */

.discovery-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #ebe8e2;
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.discovery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.discovery-card-image {
    height: 140px;
    flex-shrink: 0;
    overflow: hidden;
}

.discovery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discovery-card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eef2eb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200' preserveAspectRatio='none'%3E%3Cpath d='M0 150 C 80 122, 140 176, 220 146 S 340 112, 400 150' fill='none' stroke='%23bfc9c1' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% 55%;
}

.discovery-card-visual-icon {
    width: 30px;
    height: 30px;
    color: rgba(97, 123, 109, 0.55);
}

.discovery-card-visual-icon svg {
    width: 100%;
    height: 100%;
}

.discovery-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 14px 14px;
}

.discovery-card-category {
    margin-bottom: 4px;
    color: #617b6d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.discovery-card-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 4px;
    font-family: Georgia, serif;
    font-size: 16px;
    line-height: 1.25;
}

.discovery-card-parish {
    color: #7a8185;
    font-size: 12px;
}

.discovery-card-status {
    display: block;
    margin-top: auto;
    padding-top: 8px;
    color: #5f686e;
    font-size: 12px;
    font-weight: 600;
}

.discovery-card-status.open {
    color: #39704f;
}


/* Featured this Sunday — sponsored (monetisation-ready, no new model).
   Dedicated presentation, deliberately more premium than the discovery
   card: a much larger image, a short descriptive line and a clear
   click-through arrow, so the placement visually justifies a paid spot.
   The "Sponsored" label stays restrained rather than reading as an ad
   banner. */

.sponsored-section {
    padding: 32px 0 8px;
}

.sponsored-card {
    position: relative;
    display: block;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #ebe8e2;
    border-radius: 20px;
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.sponsored-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.07);
}

.sponsored-label {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    padding: 5px 11px;
    border-radius: 14px;
    background: rgba(250, 249, 246, 0.92);
    border: 1px solid rgba(200, 111, 84, 0.35);
    color: #c86f54;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sponsored-card-image {
    height: 220px;
    overflow: hidden;
}

.sponsored-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sponsored-card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eef2eb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200' preserveAspectRatio='none'%3E%3Cpath d='M0 150 C 80 122, 140 176, 220 146 S 340 112, 400 150' fill='none' stroke='%23bfc9c1' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% 55%;
}

.sponsored-card-visual-icon {
    width: 52px;
    height: 52px;
    color: rgba(97, 123, 109, 0.55);
}

.sponsored-card-visual-icon svg {
    width: 100%;
    height: 100%;
}

.sponsored-card-content {
    position: relative;
    padding: 20px 52px 22px 20px;
}

.sponsored-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: #7a8185;
    font-size: 12px;
}

.sponsored-card-name {
    margin: 0 0 8px;
    font-family: Georgia, serif;
    font-size: 24px;
    line-height: 1.15;
}

.sponsored-card-description {
    margin: 0 0 12px;
    color: #697178;
    font-size: 14px;
    line-height: 1.5;
}

.sponsored-card-status {
    display: block;
    color: #5f686e;
    font-size: 13px;
    font-weight: 600;
}

.sponsored-card-status.open {
    color: #39704f;
}

.sponsored-card-arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #dedbd5;
    color: #16202a;
    transition:
        transform 0.15s ease,
        border-color 0.15s ease;
}

.sponsored-card-arrow svg {
    width: 16px;
    height: 16px;
}

.sponsored-card:hover .sponsored-card-arrow {
    transform: translateX(3px);
    border-color: #c86f54;
    color: #c86f54;
}


/* Open this Sunday — organic results, unaffected by sponsorship */

.open-this-sunday {
    padding: 32px 0 8px;
}


/* Sunday Pick — editorial, deliberately distinct from both the organic
   cards and the Sponsored treatment above: a full navy block with
   serif editorial type, not a business-card box, so it can never be
   mistaken for a paid placement. */

.sunday-pick {
    background: #16202a;
    padding: 40px 0 44px;
}

.sunday-pick-card {
    display: block;
    max-width: 640px;
    color: #faf9f6;
    text-decoration: none;
}

.sunday-pick-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: 14px;
    background: rgba(200, 111, 84, 0.18);
    color: #e0a58e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.sunday-pick-name {
    margin: 0 0 12px;
    font-family: Georgia, serif;
    font-size: 28px;
    line-height: 1.15;
    color: #faf9f6;
}

.sunday-pick-description {
    margin: 0 0 20px;
    max-width: 480px;
    color: rgba(250, 249, 246, 0.72);
    font-size: 15px;
    line-height: 1.55;
}

.sunday-pick-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(250, 249, 246, 0.3);
    color: #faf9f6;
    transition:
        transform 0.15s ease,
        background 0.15s ease;
}

.sunday-pick-arrow svg {
    width: 16px;
    height: 16px;
}

.sunday-pick-card:hover .sunday-pick-arrow {
    background: rgba(250, 249, 246, 0.12);
    transform: translateX(3px);
}


/* Homepage header — scoped to .home-page only; Explore/Business
   Detail keep the default white header untouched. The approved logo
   PNGs have no light/ivory variant, and redesigning the asset itself
   is out of scope, so a non-destructive CSS filter recolours it to
   solid white for display on navy without touching the source file. */

.home-page .site-header {
    background: #16202a;
    border-bottom-color: #16202a;
}

.home-page .logo span {
    color: #faf9f6;
}

.home-page .logo-wordmark,
.home-page .logo-monogram {
    filter: brightness(0) invert(1);
}

.home-page .main-nav a {
    color: #d8dee2;
}

.home-page .main-nav a:hover {
    color: #ffffff;
}

.home-page .mobile-nav-toggle {
    background: transparent;
    border-color: rgba(250, 249, 246, 0.3);
}

.home-page .mobile-nav-toggle-bar {
    background: #faf9f6;
}

@media (max-width: 800px) {

    .home-page .header-inner {
        height: 60px;
    }

    .home-page .logo span {
        display: none;
    }

    /* Business CTA moves into the mobile menu only on the compact
       mobile header; it stays in .mobile-nav already. */
    .home-page .header-inner .business-button {
        display: none;
    }

}

@media (max-width: 520px) {

    /* Slightly larger than the site-wide 97x27 mobile wordmark (same
       aspect ratio) so it doesn't feel tiny in the compact 60px navy
       header — scoped to the homepage only, Explore/Detail keep the
       existing size. */
    .home-page .logo-wordmark {
        width: 112px;
        height: 31px;
    }

}


@media (min-width: 801px) {

    .hero {
        padding: 64px 0 44px;
    }

    .hero h1 {
        font-size: 56px;
        letter-spacing: -1.5px;
    }

    .hero-description {
        max-width: 560px;
        font-size: 18px;
    }

    .search-box {
        max-width: 520px;
        padding: 6px;
        border-radius: 40px;
    }

    .search-box input {
        padding: 14px 20px;
        font-size: 16px;
    }

    .search-box button {
        width: 46px;
        height: 46px;
        border-radius: 30px;
    }

    .chip-rail {
        overflow: visible;
    }

    .chip-rail-track {
        flex-wrap: wrap;
        width: min(1180px, calc(100% - 40px));
        margin: 0 auto;
        padding: 0;
    }

    .chip {
        height: 38px;
    }

    /* Tight gap straight after the hero/chip rail — the discovery rail
       is the next thing the eye should land on, not a big band of ivory
       whitespace. Sponsored/Open this Sunday/Sunday Pick keep a more
       normal section gap since they're not immediately below the fold. */
    .popular-rail {
        padding-top: 28px;
    }

    .sponsored-section,
    .open-this-sunday {
        padding-top: 48px;
    }

    .sunday-pick {
        padding: 48px 0 72px;
    }

    /* Wide enough that only ~4 cards fit with a hint of a 5th peeking
       in, rather than the rail filling the whole viewport with
       oversized directory-style cards. */
    .rail-item {
        width: 260px;
    }

    .rail-track {
        padding: 0 max(20px, calc((100vw - 1180px) / 2)) 8px;
    }

    .sponsored-card {
        display: flex;
        align-items: stretch;
    }

    .sponsored-card-image {
        width: 46%;
        height: auto;
        flex-shrink: 0;
    }

    .sponsored-card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 32px 60px 32px 32px;
    }

    .sponsored-card-name {
        font-size: 28px;
    }

    .sunday-pick-name {
        font-size: 36px;
    }

    .sunday-pick-description {
        max-width: 560px;
        font-size: 16px;
    }

}


/* ---------------------------------------------------------
   Site footer — appears on every page (part of base.html), kept
   restrained and separate from any page-specific header treatment.
   --------------------------------------------------------- */

.site-footer {
    background: #16202a;
    padding: 32px 0;
    border-top: 1px solid rgba(250, 249, 246, 0.12);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-brand {
    color: #faf9f6;
    font-family: Georgia, serif;
    font-size: 17px;
    text-decoration: none;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
}

.footer-links a {
    color: rgba(250, 249, 246, 0.68);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #faf9f6;
}

@media (min-width: 700px) {

    .footer-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

}


/* ---------------------------------------------------------
   Static content pages (Contact / Privacy / Terms)
   --------------------------------------------------------- */

.static-page {
    padding: 48px 0 90px;
}

.static-page-inner {
    max-width: 720px;
}

.static-page h1 {
    margin: 0 0 22px;
    font-family: Georgia, serif;
    font-size: 40px;
    line-height: 1.1;
}

.static-page h2 {
    margin: 36px 0 12px;
    font-family: Georgia, serif;
    font-size: 22px;
}

.static-page p {
    margin: 0 0 16px;
    color: #4d585e;
    font-size: 16px;
    line-height: 1.65;
}

.static-page ul {
    margin: 0 0 20px;
    padding-left: 22px;
    color: #4d585e;
    font-size: 16px;
    line-height: 1.65;
}

.static-page li {
    margin-bottom: 6px;
}

.static-page a {
    color: #617b6d;
}

@media (max-width: 800px) {

    .static-page {
        padding: 36px 0 64px;
    }

    .static-page h1 {
        font-size: 32px;
    }

    .static-page h2 {
        font-size: 20px;
    }

}


/* ---------------------------------------------------------
   Error pages (404 / 500)
   --------------------------------------------------------- */

.error-page {
    padding: 90px 0 130px;
    text-align: center;
}

.error-page-inner {
    max-width: 460px;
    margin: 0 auto;
}

.error-page h1 {
    margin: 10px 0 16px;
    font-family: Georgia, serif;
    font-size: 38px;
}

.error-page p {
    color: #5b646b;
    font-size: 16px;
    line-height: 1.6;
}

.error-page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 26px;
}

.error-page-actions a:not(.detail-button) {
    color: #617b6d;
    font-weight: 600;
    text-decoration: none;
}

.error-page-actions a:not(.detail-button):hover {
    text-decoration: underline;
}

@media (max-width: 800px) {

    .error-page {
        padding: 64px 0 90px;
    }

    .error-page h1 {
        font-size: 30px;
    }

}