
/* ============================================================
   OBITUARYWEB HOMEPAGE — INDEX3_STYLE.CSS
   Separate stylesheet for index3.html
   Palette: original brand green, gold, dark neutrals and ivory
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS AND GLOBAL HOMEPAGE RULES
   ------------------------------------------------------------ */

:root {
    --ow-navy: #0D1B14;
    --ow-navy-light: #294B27;
    --ow-gold: #D8CF82;
    --ow-gold-deep: #D8CF82;
    --ow-green: #384E2D;
    --ow-ivory: #f7f6f0;
    --ow-cream: #f1efe5;
    --ow-white: #ffffff;
    --ow-ink: #263126;
    --ow-text: #50584f;
    --ow-muted: #73796f;
    --ow-line: rgba(216, 207, 130, 0.25);
    --ow-radius: 12px;
    --ow-content-width: 1240px;
}

.page-body {
    width: 100%;
    min-width: 0;
    background-color: #10192D;
    background-image:
        linear-gradient(
            90deg,
            rgba(13, 22, 40, 0.62) 0%,
            rgba(13, 22, 40, 0.48) 50%,
            rgba(13, 22, 40, 0.58) 100%
        ),
        url("/static/images/background.jpg");
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 100% 620px;
}

.page-body,
.page-body * {
    box-sizing: border-box;
}

.page-body img {
    max-width: 100%;
}

.page-body a {
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.page-body h1,
.page-body h2,
.page-body h3,
.page-body h4 {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

.page-body p {
    line-height: 1.8;
}

.page-body .section-inner {
    width: min(92%, var(--ow-content-width));
    margin-right: auto;
    margin-left: auto;
}

.page-body .section-heading {
    max-width: 820px;
    margin: 0 auto 42px;
    text-align: center;
}

.page-body .section-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--ow-gold-deep);
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.6;
    text-transform: uppercase;
}

.page-body .section-title {
    margin: 0 0 18px;
    color: var(--ow-ink);
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    font-weight: 400;
    line-height: 1.2;
}

.page-body .section-intro {
    max-width: 700px;
    margin: 0 auto;
    color: var(--ow-text);
    font-size: 0.98rem;
}

.page-body .section-divider {
    display: block;
    margin: 18px 0 22px;
    color: var(--ow-gold-deep);
    font-size: 1.1rem;
    letter-spacing: 0.4em;
}

.page-body .section-heading .section-divider {
    margin-right: auto;
    margin-left: auto;
}

.page-body .section-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 45px;
    margin-top: 18px;
    padding: 11px 23px;
    border: 1px solid var(--ow-gold-deep);
    border-radius: 30px;
    color: var(--ow-navy);
    background: var(--ow-gold);
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-decoration: none;
    text-transform: uppercase;
}

.page-body .section-action:hover,
.page-body .section-action:focus-visible {
    border-color: var(--ow-green);
    color: var(--ow-white);
    background: var(--ow-green);
    transform: translateY(-2px);
}

/* SHARED HEADER BRAND AND NAVIGATION COLOURS
   base.html owns the markup; these rules only style its links. */

.nav_band .nav_title italics {
    color: #384E2D;
    font-size: 0.82em;
    font-weight: 400;
}

.nav_band ul li a {
    color: #D8CF82;
}

.nav_band ul li a:hover,
.nav_band ul li a:focus-visible {
    color: #FFFFFF;
}



/* ------------------------------------------------------------
   2. HERO SECTION — BACKGROUND, TYPOGRAPHY AND BUTTONS
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   HOMEPAGE HERO + ASIDE LAYOUT
   Full-width background; hero and aside occupy a centred 80%.
   The page-body background continues behind flash messages above.
   ------------------------------------------------------------ */

.page-body {
    width: 100%;
    min-width: 0;
    background-color: #10192D;
    background-image:
        linear-gradient(
            90deg,
            rgba(13, 22, 40, 0.62) 0%,
            rgba(13, 22, 40, 0.48) 50%,
            rgba(13, 22, 40, 0.58) 100%
        ),
        url("/static/images/background.jpg");
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 100% auto;
    margin-top: 0;
}

.ow-hero-layout {
    display: grid !important;
    /* The outer 10% tracks centre the content; the 28px track is the gap. */
    grid-template-columns: 10% minmax(0, 2.5fr) 28px minmax(0, 0.7fr) 10%;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 28px 0;
    box-sizing: border-box;
    align-items: stretch;
    background-color: #10192D;
    background-image:
        linear-gradient(
            90deg,
            rgba(13, 22, 40, 0.62) 0%,
            rgba(13, 22, 40, 0.48) 50%,
            rgba(13, 22, 40, 0.58) 100%
        ),
        url("/static/images/background.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.ow-hero-layout > .main.ow-hero {
    grid-column: 2;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.ow-hero-layout > .aside.ow-latest {
    grid-column: 4;
    width: 100%;
    min-width: 0;
    margin: 0;
}

/* ------------------------------------------------------------
   1. MAIN HERO WITH CANDLE BACKGROUND
   ------------------------------------------------------------ */

.ow-hero-layout > .main.ow-hero {
    position: relative;
    float: none;
    width: 100%;
    min-width: 0;
    min-height: 620px;
    box-sizing: border-box;
    margin: 0;
    padding: 72px 48px;
    overflow: hidden;

    /* Outer border and second thin border */
    border: 1px solid rgba(203, 162, 83, 0.55);
    outline: 1px solid rgba(203, 162, 83, 0.25);
    outline-offset: 5px;
    border-radius: 14px;

    /* Candle photograph with navy overlay */
    background-color: transparent;
    color: #DBE1ED;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.30);
    isolation: isolate;

    /* Blend the hero into the shared background */
    border: none;
    outline: none;
    outline-offset: 0;
    border-radius: 0;

    background: transparent;
    box-shadow: none;
}

/* Inner line of the double-line border */
.ow-hero-layout > .main.ow-hero::before {
    position: absolute;
    z-index: 0;
    inset: 10px;
    border: 1px solid rgba(203, 162, 83, 0.38);
    border-radius: 9px;
    content: "";
    pointer-events: none;
}

.ow-hero-layout > .main.ow-hero::before {
    content: none;
}

/* Hero content */
.ow-hero-layout > .main.ow-hero .hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 760px;
    margin: 0;
}

.ow-hero-layout > .main.ow-hero .ow-eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    color: #CBA253;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.6;
    text-transform: uppercase;
}

.ow-hero-layout > .main.ow-hero .ow-eyebrow::before {
    content: "";
    display: inline-block;
    width: 42px;
    height: 1px;
    margin: 0 12px 4px 0;
    background: #CBA253;
}

.ow-hero-layout > .main.ow-hero .introduction {
    width: 100%;
    margin: 0;
}


.ow-hero-layout > .main.ow-hero .hero-title {
    max-width: 700px;
    margin: 0 0 28px;
    color: #FFFFFF;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.5rem, 4.2vw, 4.2rem);
    font-style: normal;
    font-weight: 400;
    line-height: 1.12;
    text-align: left;
}

.ow-hero-layout > .main.ow-hero .hero-title em {
    color: #CBA253;
    font-family: "Playfair Display", Georgia, serif;
    font-size: inherit;
    font-weight: 400;
    font-style: italic;
    white-space: nowrap;
}


@media (max-width: 480px) {
    .ow-hero-layout > .main.ow-hero .hero-title em {
        white-space: normal;
    }
}

.ow-hero-layout > .main.ow-hero #heroText,
.ow-hero-layout > .main.ow-hero .hero-text {
    max-width: 610px;
    margin: 0;
    color: #DBE1ED;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
    text-align: left;
}

/* Hero action buttons */
.ow-hero-layout > .main.ow-hero .buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    margin-top: 28px;
}

.ow-hero-layout > .main.ow-hero .buttons > .ob,
.ow-hero-layout > .main.ow-hero .buttons > .memory {
    display: block;
    flex: 0 1 auto;
    max-width: 100%;
    margin: 0;
}

/* Retain the existing choice to hide Donate to Charity in the hero */
.ow-hero-layout > .main.ow-hero .buttons > .charity {
    display: none !important;
}

.service-link {
    position: relative;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    pointer-events: auto;
    text-decoration: none;
}

.ow-hero-layout > .main.ow-hero .buttons .service-link {
    display: inline-flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    max-width: 100%;
    padding: 13px 22px;
    border: 1px solid #CBA253;
    border-radius: 28px;
    color: #10192D;
    background: #CBA253;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

/* Second button: outlined */
.ow-hero-layout > .main.ow-hero .buttons > .memory .service-link {
    border-color: #CBA253;
    color: #CBA253;
    background: transparent;
}

.ow-hero-layout > .main.ow-hero .buttons .service-link:hover,
.ow-hero-layout > .main.ow-hero .buttons .service-link:focus-visible {
    border-color: #D7B56F;
    color: #10192D;
    background: #D7B56F;
    transform: translateY(-2px);
}

.ow-hero-layout > .main.ow-hero .buttons .service-link:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 3px;
}

/* Hero commitments */
.ow-hero-layout > .main.ow-hero .ow-hero-promises {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px 22px;
    margin-top: 30px;
    color: #AEB8CB;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.73rem;
    line-height: 1.7;
}

.ow-hero-layout > .main.ow-hero .ow-hero-promises span::before {
    margin-right: 7px;
    color: #CBA253;
    content: "✦";
}

/* ------------------------------------------------------------
   2. LATEST OBITUARIES ASIDE
   ------------------------------------------------------------ */

.ow-hero-layout > .aside.ow-latest {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 28px 20px 25px;
    border: 1px solid var(--ow-border, rgba(203, 162, 83, 0.25));
    border-radius: 14px;
    background:
        linear-gradient(
            180deg,
            rgba(56, 78, 45, 0.18),
            rgba(10, 20, 14, 0.25)
        );
    color: var(--ow-gold, #CBA253);
    text-align: center;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);

    /* Blend latest obituaries into the shared background */
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
 }

.ow-hero-layout > .aside.ow-latest .aside-header {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 18px;
    text-align: left;
}

.ow-hero-layout > .aside.ow-latest .aside-header > div {
    min-width: 0;
}

.ow-hero-layout > .aside.ow-latest .ow-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #CBA253;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ow-hero-layout > .aside.ow-latest .aside-title {
    display: block;
    width: 100%;
    margin: 6px 0 0;
    color: #FFFFFF;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 500;
    font-style: normal;
    line-height: 1.25;
    text-align: center;
}

.ow-hero-layout > .aside.ow-latest .view-all-link {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    color: #CBA253;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
}

.ow-hero-layout > .aside.ow-latest .view-all-link:hover {
    color: #FFFFFF;
}

/* Country and International tabs */
.ow-hero-layout > .aside.ow-latest .nav-tabs {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin: 0 0 18px;
    padding: 0;
    border-bottom: 1px solid rgba(203, 162, 83, 0.25);
    list-style: none;
}

.ow-hero-layout > .aside.ow-latest .nav-item {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ow-hero-layout > .aside.ow-latest .tab-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 40px;
    padding: 9px 5px;
    border-bottom: 2px solid transparent;
    color: #AEB8CB;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.ow-hero-layout > .aside.ow-latest .tab-link i {
    flex-shrink: 0;
    color: #CBA253;
}

.ow-hero-layout > .aside.ow-latest .tab-link.active,
.ow-hero-layout > .aside.ow-latest .tab-link[aria-selected="true"] {
    border-bottom-color: #CBA253;
    color: #CBA253;
    font-weight: 700;
}

.ow-hero-layout > .aside.ow-latest .tab-link:hover {
    color: #FFFFFF;
}

/* Tab panels: preserve existing tab interaction */
.ow-hero-layout > .aside.ow-latest .tab-content,
.ow-hero-layout > .aside.ow-latest .tab-pane,
.ow-hero-layout > .aside.ow-latest .aside_country,
.ow-hero-layout > .aside.ow-latest .aside_international {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.ow-hero-layout > .aside.ow-latest .tab-pane {
    display: none;
}

.ow-hero-layout > .aside.ow-latest .tab-pane.active {
    display: block;
}

/* Individual obituary entries */
.ow-hero-layout > .aside.ow-latest .theDead {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 90px;
    margin: 6px 0;
    padding: 10px;
    border: 1px solid rgba(203, 162, 83, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    transition:
        border-color 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease;
}

.ow-hero-layout > .aside.ow-latest .theDead:hover {
    border-color: rgba(203, 162, 83, 0.4);
    background: rgba(203, 162, 83, 0.06);
    transform: translateY(-2px);
}

.ow-hero-layout > .aside.ow-latest .photoSection {
    display: flex;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0;
}

.ow-hero-layout > .aside.ow-latest .photoSection img {
    width: 58px;
    height: 58px;
    box-sizing: border-box;
    border: 2px solid rgba(203, 162, 83, 0.55);
    border-radius: 50%;
    object-fit: cover;
}

.ow-hero-layout > .aside.ow-latest .nameSection {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    height: auto;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.7rem;
    text-align: left;
}

.ow-hero-layout > .aside.ow-latest obNames {
    display: block;
    width: 100%;
    margin-bottom: 3px;
    overflow-wrap: anywhere;
    color: #CBA253;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
}

.ow-hero-layout > .aside.ow-latest theLate,
.ow-hero-layout > .aside.ow-latest livedYears {
    display: block;
    color: #E8E8E8;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.68rem;
    line-height: 1.4;
}

.ow-hero-layout > .aside.ow-latest livedYears {
    padding-bottom: 2px;
}

.ow-hero-layout > .aside.ow-latest visitPage {
    display: block;
    margin-top: 4px;
}

.ow-hero-layout > .aside.ow-latest visitPage a {
    color: #CBA253;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.65rem;
    text-decoration: none;
}

.ow-hero-layout > .aside.ow-latest visitPage a:hover {
    color: #FFFFFF;
}

/* Previous and Next pagination */
.ow-hero-layout > .aside.ow-latest .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.ow-hero-layout > .aside.ow-latest .page-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ow-hero-layout > .aside.ow-latest #prevButtonOb,
.ow-hero-layout > .aside.ow-latest #nextButtonOb {
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(203, 162, 83, 0.35);
    border-radius: 4px;
    color: #CBA253;
    background: rgba(41, 75, 39, 0.35);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ow-hero-layout > .aside.ow-latest #prevButtonOb:hover,
.ow-hero-layout > .aside.ow-latest #nextButtonOb:hover {
    border-color: #CBA253;
    color: #10192D;
    background: #CBA253;
}

/* ------------------------------------------------------------
   3. RESPONSIVE LAYOUT
   ------------------------------------------------------------ */

@media (max-width: 1100px) {
    .ow-hero-layout {
        gap: 0;
        padding: 24px 0;
    }

    .ow-hero-layout > .main.ow-hero {
        padding: 56px 32px;
    }

    .ow-hero-layout > .aside.ow-latest {
        padding: 20px 12px;
    }

    .ow-hero-layout > .main.ow-hero .hero-title {
        font-size: clamp(2.2rem, 4vw, 3.4rem);
    }
}

@media (max-width: 900px) {
    .ow-hero-layout {
        grid-template-columns: 4% minmax(0, 1fr) 20px minmax(180px, 0.43fr) 4%;
        padding: 24px 0;
    }

    .ow-hero-layout > .main.ow-hero {
        min-height: auto;
        padding: 52px 32px;
    }

    .ow-hero-layout > .aside.ow-latest {
        padding: 24px 16px;
    }
}

@media (max-width: 768px) {
    .ow-hero-layout {
        grid-template-columns: 16px minmax(0, 1fr) 16px;
        gap: 0;
        padding: 18px 0;
    }

    .ow-hero-layout > .main.ow-hero {
        grid-column: 2;
    }

    .ow-hero-layout > .aside.ow-latest {
        grid-column: 2;
        margin-top: 18px;
    }

    .ow-hero-layout > .main.ow-hero,
    .ow-hero-layout > .aside.ow-latest {
        float: none;
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .ow-hero-layout > .main.ow-hero {
        padding: 48px 28px;
    }

    .ow-hero-layout > .main.ow-hero .hero-content {
        max-width: 100%;
    }

    .ow-hero-layout > .main.ow-hero .hero-title {
        font-size: clamp(2.1rem, 7vw, 3.2rem);
    }

    .ow-hero-layout > .main.ow-hero .hero-text {
        font-size: 0.96rem;
        line-height: 1.8;
    }

    .ow-hero-layout > .main.ow-hero .buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ow-hero-layout > .main.ow-hero .ow-hero-promises {
        gap: 8px 16px;
    }

    .ow-hero-layout > .aside.ow-latest {
        padding: 24px 18px;
    }
}

@media (max-width: 480px) {
    .ow-hero-layout > .main.ow-hero {
        padding: 40px 22px;
    }

    .ow-hero-layout > .main.ow-hero::before {
        inset: 7px;
    }

    .ow-hero-layout > .main.ow-hero .hero-title {
        font-size: clamp(1.9rem, 8vw, 2.5rem);
    }

    .ow-hero-layout > .main.ow-hero .buttons {
        align-items: stretch;
    }

    .ow-hero-layout > .main.ow-hero .buttons > .ob,
    .ow-hero-layout > .main.ow-hero .buttons > .memory {
        flex: 1 1 100%;
    }

    .ow-hero-layout > .main.ow-hero .buttons .service-link {
        width: 100%;
    }

    .ow-hero-layout > .aside.ow-latest .aside-header {
        align-items: flex-start;
    }
}

/* ------------------------------------------------------------
   4. OUR AIM
   ------------------------------------------------------------ */

.page-body .aim-section {
    padding: 76px 0 82px;
    background: var(--ow-ivory);
}

.page-body .aim-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-body .aim-paragraph {
    margin: 0 auto 18px;
    color: var(--ow-text);
    font-size: 1rem;
    line-height: 1.95;
    text-align: center;
}

.page-body .aim-paragraph:last-child {
    margin-bottom: 0;
}

/* ------------------------------------------------------------
   5. CORE SERVICES
   ------------------------------------------------------------ */

.page-body .core-services {
    padding: 78px 0 84px;
    background: #fff;
}

.page-body .service-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 25px;
}

.page-body .service-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ow-line);
    border-radius: var(--ow-radius);
    background: #fff;
    box-shadow: 0 8px 26px rgba(16, 25, 45, 0.055);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.page-body .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(16, 25, 45, 0.1);
}

.page-body .service-image {
    height: 205px;
    overflow: hidden;
    background: var(--ow-cream);
}

.page-body .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.page-body .service-card:hover .service-image img {
    transform: scale(1.04);
}

.page-body .service-card-content {
    padding: 25px 24px 28px;
}

.page-body .service-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--ow-navy);
    font-size: 1.35rem;
    line-height: 1.35;
}

.page-body .service-header i {
    color: var(--ow-gold-deep);
    font-size: 1rem;
}

.page-body .service-card-content p {
    margin: 0;
    color: var(--ow-text);
    font-size: 0.9rem;
}

.page-body .service-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    color: #87672d;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}

.page-body .service-link:hover {
    color: var(--ow-green);
}


/* ------------------------------------------------------------
   6. WHY OBITUARYWEB — DARK SECTION
   ------------------------------------------------------------ */

.page-body .why-obituaryweb {
    padding: 82px 0;
    color: #d9dfeb;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(216, 207, 130, 0.09),
            transparent 32%
        ),
        var(--ow-navy);
}

.page-body .why-obituaryweb .section-title {
    color: #fff;
}

.page-body .why-obituaryweb .section-intro {
    color: #d9dfeb;
}

.page-body .why-obituaryweb .section-divider {
    color: var(--ow-gold);
}

.page-body .why-intro {
    max-width: 850px;
    margin: 0 auto 38px;
    color: #d9dfeb;
    font-size: 1rem;
    line-height: 1.9;
    text-align: center;
}

.page-body .why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.page-body .why-card {
    padding: 25px 22px;
    border: 1px solid rgba(216, 207, 130, 0.27);
    border-radius: var(--ow-radius);
    background: rgba(255, 255, 255, 0.045);
}

.page-body .why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    margin-bottom: 18px;
    border: 1px solid rgba(216, 207, 130, 0.55);
    border-radius: 50%;
    color: var(--ow-gold);
}

.page-body .why-card h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.2rem;
}

.page-body .why-card p {
    margin: 0;
    color: #d0d6e2;
    font-size: 0.85rem;
}

/* ------------------------------------------------------------
   7. FOUR-STEP JOURNEY
   ------------------------------------------------------------ */

.page-body .journey-section {
    padding: 78px 0;
    background: var(--ow-cream);
}

.page-body .journey-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.page-body .journey-card {
    position: relative;
    min-width: 0;
    padding: 28px 23px;
    border: 1px solid var(--ow-line);
    border-radius: var(--ow-radius);
    background: #fff;
}

.page-body .journey-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    border: 1px solid #d9c58d;
    border-radius: 50%;
    color: #8b6a2d;
    background: #fcf9ed;
    font-size: 0.82rem;
    font-weight: 700;
}

.page-body .journey-card h3 {
    margin: 0 0 12px;
    color: var(--ow-navy);
    font-size: 1.3rem;
}

.page-body .journey-card p {
    margin: 0;
    color: var(--ow-text);
    font-size: 0.88rem;
}

/* ------------------------------------------------------------
   8. LASTING LEGACY
   ------------------------------------------------------------ */

.page-body .lasting-legacy-section {
    padding: 82px 0;
    background: #fff;
}

.page-body .legacy-feature-content {
    max-width: 850px;
    margin: 0 auto 40px;
    text-align: center;
}

.page-body .legacy-feature-content > p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--ow-text);
    font-size: 0.98rem;
}

.page-body .legacy-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.page-body .legacy-feature {
    padding: 28px;
    border-top: 3px solid var(--ow-gold);
    border-radius: 0 0 var(--ow-radius) var(--ow-radius);
    background: var(--ow-ivory);
}

.page-body .legacy-feature h3 {
    margin: 0 0 12px;
    color: var(--ow-navy);
    font-size: 1.3rem;
}

.page-body .legacy-feature p {
    margin: 0;
    color: var(--ow-text);
    font-size: 0.9rem;
}

.bold-word {
  font-weight: bold; /* You can also use 700 */
}

/* ------------------------------------------------------------
   9. FAMILY CONNECTION
   ------------------------------------------------------------ */

.page-body .family-connection-section {
    padding: 82px 0;
    color: #e0e5ed;
    background:
        linear-gradient(
            90deg,
            rgba(16, 25, 45, 0.97),
            rgba(16, 25, 45, 0.89)
        );
}

.page-body .family-connection-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.page-body .family-connection-content .section-title {
    color: #fff;
}

.page-body .family-connection-content > p {
    max-width: 760px;
    margin: 0 auto 17px;
    color: #d9dfeb;
    font-size: 0.98rem;
}

.page-body .family-connection-content .section-divider {
    color: var(--ow-gold);
}

/* ------------------------------------------------------------
   10. FEATURES GRID
   ------------------------------------------------------------ */

.page-body .features-section {
    padding: 78px 0 84px;
    background: var(--ow-ivory);
}

.page-body .features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.page-body .feature-card {
    padding: 25px;
    border: 1px solid var(--ow-line);
    border-radius: var(--ow-radius);
    background: #fff;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.page-body .feature-card:hover {
    transform: translateY(-3px);
    border-color: #d5c68f;
}

.page-body .feature-card h3 {
    margin: 0 0 11px;
    color: var(--ow-navy);
    font-size: 1.25rem;
}

.page-body .feature-card p {
    margin: 0;
    color: var(--ow-text);
    font-size: 0.88rem;
}

/* ------------------------------------------------------------
   11. COMMUNITY AND DAILY REFLECTION
   ------------------------------------------------------------ */

.page-body .community-section {
    clear: both;
    padding: 80px 0;
    background: #fff;
}

.page-body .community-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.page-body .feedback-panel,
.page-body .reflection-panel {
    min-width: 0;
    padding: 30px;
    border: 1px solid var(--ow-line);
    border-radius: var(--ow-radius);
    background: var(--ow-ivory);
}

.page-body .feedback-panel .section-title,
.page-body .reflection-panel .section-title {
    font-size: clamp(1.7rem, 2.4vw, 2.2rem);
}

.page-body .feedback-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 265px;
    padding: 30px 22px;
    border: 1px dashed #d8d4c8;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.page-body .feedback-symbol {
    display: block;
    margin-bottom: 15px;
    color: var(--ow-gold-deep);
    font-size: 2.3rem;
    line-height: 1;
}

.page-body .feedback-empty-state h3 {
    margin: 0 0 10px;
    color: var(--ow-navy);
    font-size: 1.35rem;
}

.page-body .feedback-empty-state p {
    max-width: 360px;
    margin: 0;
    color: var(--ow-text);
    font-size: 0.9rem;
}

/* Daily Reflection — retain the background image supplied by Flask. */

.page-body .social-feature-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid rgba(216, 207, 130, 0.28);
    border-radius: 11px;
    color: #fff;
    background-color: var(--ow-navy);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: inset 0 0 0 1000px rgba(16, 25, 45, 0.12);
}

.page-body .reflection-meta-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 23px;
    color: var(--ow-gold);
    font-family: Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1.6;
    text-transform: uppercase;
}

.page-body .reflection-category {
    padding-left: 11px;
    border-left: 1px solid rgba(216, 207, 130, 0.65);
}

.page-body .reflection-quote-body {
    margin: 0 0 20px;
    color: #fff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.55;
}

.page-body .reflection-author-tag {
    margin: 0;
    color: #eee3bf;
    font-size: 0.83rem;
    font-style: normal;
    line-height: 1.6;
}

.page-body .reflection-fallback {
    background-image:
        linear-gradient(
            rgba(16, 25, 45, 0.78),
            rgba(16, 25, 45, 0.88)
        );
}

.page-body .reflection-description {
    margin: 20px 0 5px;
    color: var(--ow-text);
    font-size: 0.88rem;
}


/* ------------------------------------------------------------
   12. LEGACY PARTNERS
   ------------------------------------------------------------ */

.page-body .legacy-partners-section {
    padding: 78px 0;
    background: var(--ow-cream);
}

.page-body .legacy-partners-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 42px;
    border: 1px solid #d9cca3;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.page-body .legacy-partners-card .section-title {
    font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.page-body .legacy-intro {
    max-width: 720px;
    margin: 0 auto 24px;
    color: var(--ow-text);
    font-size: 0.97rem;
}

.page-body .legacy-empty-state {
    max-width: 650px;
    margin: 24px auto;
    padding: 24px;
    border: 1px dashed #d9d3c2;
    border-radius: 10px;
    background: var(--ow-ivory);
}

.page-body .legacy-empty-state h3 {
    margin: 0 0 9px;
    color: var(--ow-navy);
    font-size: 1.3rem;
}

.page-body .legacy-empty-state p {
    margin: 0;
    color: var(--ow-text);
    font-size: 0.88rem;
}


/* ------------------------------------------------------------
   13. PREPARATION CHECKLIST
   ------------------------------------------------------------ */

.page-body .preparation-section {
    padding: 78px 0;
    background: #fff;
}

.page-body .preparation-content {
    max-width: 820px;
    margin: 0 auto 30px;
    text-align: center;
}

.page-body .preparation-content > p {
    color: var(--ow-text);
}


/* Main preparation checklist */
.page-body .preparation-checklist {
    max-width: 820px;
    margin: 0 auto;
    padding: 30px 35px;
    border: 1px solid var(--ow-line);
    border-radius: var(--ow-radius);
    background: var(--ow-ivory);
    color: var(--ow-text);
    box-sizing: border-box;
}

/* Section headings */
.page-body .preparation-checklist h3 {
    margin: 0 0 16px;
    color: var(--ow-green);
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
}

/* Checklist lists */
.page-body .preparation-checklist ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Individual checklist items */
.page-body .preparation-checklist li {
    position: relative;
    margin: 0;
    padding: 13px 0 13px 32px;
    border-bottom: 1px solid #eae7df;
    color: var(--ow-text);
    line-height: 1.65;
}

.page-body .preparation-checklist li:last-child {
    border-bottom: 0;
}

/* Green checkmarks */
.page-body .preparation-checklist li::before {
    position: absolute;
    top: 13px;
    left: 2px;
    color: var(--ow-green);
    font-weight: 700;
    content: "✓";
}

/* Item headings */
.page-body .preparation-checklist li strong {
    display: inline-block;
    margin-bottom: 3px;
    color: var(--ow-text);
}

/* Paragraphs inside checklist items */
.page-body .preparation-checklist li p {
    margin: 3px 0 0;
    color: var(--ow-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Creation fees section */
.page-body .preparation-checklist .preparation-pricing {
    margin-top: 25px;
    padding: 20px 22px;
    border: 1px solid var(--ow-line);
    border-radius: var(--ow-radius);
    background: #fff;
}

.page-body .preparation-checklist .preparation-pricing h3 {
    margin-bottom: 12px;
}

.page-body .preparation-checklist .preparation-pricing p {
    margin: 9px 0;
    color: var(--ow-text);
    line-height: 1.6;
}

.page-body .preparation-checklist .preparation-pricing p strong {
    color: var(--ow-green);
}

.page-body .preparation-checklist .preparation-pricing .pricing-note {
    margin-top: 12px;
    color: var(--ow-muted);
    font-size: 0.83rem;
}

/* Additional information that can be added later */
.page-body .preparation-checklist .preparation-later {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--ow-line);
}

.page-body .preparation-checklist .preparation-later > p {
    margin: 0 0 12px;
    color: var(--ow-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* Closing paragraph */
.page-body .preparation-checklist .preparation-later > p:last-child {
    margin-top: 16px;
    margin-bottom: 0;
}



#toggleHomepageCurrency {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 11px 20px;

    background-color: #384E2D;
    color: #D8CF82;
    border: 2px solid #384E2D;
    border-radius: 8px;

    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;

    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

#toggleHomepageCurrency:not(:disabled):hover {
    background-color: #D8CF82;
    color: #384E2D;
    border-color: #384E2D;
    box-shadow: 0 4px 10px rgba(56, 78, 45, 0.18);
    transform: translateY(-1px);
}

#toggleHomepageCurrency:focus-visible {
    outline: 3px solid #D8CF82;
    outline-offset: 3px;
}

#toggleHomepageCurrency:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

#toggleHomepageCurrency:disabled {
    background-color: #e8e8e2;
    color: #73776d;
    border-color: #c8cbbf;
    cursor: not-allowed;
    opacity: 0.8;
    box-shadow: none;
    transform: none;
}


/* Mobile layout */
@media (max-width: 600px) {
    .page-body .preparation-checklist {
        padding: 22px 18px;
    }

    .page-body .preparation-checklist h3 {
        font-size: 1.05rem;
    }

    .page-body .preparation-checklist li {
        padding: 12px 0 12px 27px;
    }

    .page-body .preparation-checklist .preparation-pricing {
        padding: 17px 15px;
    }
}


/* ------------------------------------------------------------
   14. FINAL CALL TO ACTION
   ------------------------------------------------------------ */

.page-body .final-cta-section {
    clear: both;
    padding: 78px 0 72px;
    color: #d9dfeb;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(216, 207, 130, 0.1),
            transparent 40%
        ),
        var(--ow-navy);
    text-align: center;
}

.page-body .final-cta-section .section-inner {
    max-width: 900px;
}

.page-body .final-cta-section .section-divider {
    margin-top: 0;
    color: var(--ow-gold);
}

.page-body .final-cta-section h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.2;
}

.page-body .final-cta-section > .section-inner > p {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
    color: #d9dfeb;
}

.page-body .final-cta-buttons {
    margin-top: 25px;
}

.page-body .final-cta-buttons .buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.page-body .final-cta-buttons .buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--ow-gold);
    border-radius: 28px;
    color: var(--ow-navy);
    background: var(--ow-gold);
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.page-body .final-cta-buttons .buttons a:hover {
    background: #eee6ae;
}

.page-body .final-cta-section .contact-line {
    margin-top: 26px;
    font-size: 0.85rem;
}

.page-body .final-cta-section .contact-line a {
    color: var(--ow-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ------------------------------------------------------------
   15. ACCESSIBILITY AND MOTION
   ------------------------------------------------------------ */

.page-body a:focus-visible,
.page-body button:focus-visible {
    outline: 3px solid var(--ow-gold-deep);
    outline-offset: 3px;
}

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


/* ------------------------------------------------------------
   16. TABLET LAYOUT
   ------------------------------------------------------------ */

@media (max-width: 1024px) {
    .page-body > .main {
        width: 65%;
        min-height: 490px;
        padding: 56px 32px;
    }

    .page-body > .aside {
        width: 31%;
        padding: 21px 15px;
    }

    .page-body > .main .hero-title {
        font-size: clamp(2.35rem, 4.2vw, 3.4rem);
    }

    .page-body > .aside .aside-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .page-body > .aside .nav-tabs {
        flex-direction: column;
    }

    .page-body > .aside .tab-link {
        justify-content: flex-start;
        min-height: 36px;
        padding-left: 8px;
        text-align: left;
    }

    .page-body .service-cards {
        gap: 17px;
    }

    .page-body .service-card-content {
        padding: 21px 18px 24px;
    }

    .page-body .service-header {
        font-size: 1.2rem;
    }

    .page-body .why-grid,
    .page-body .journey-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-body .community-grid {
        gap: 20px;
    }

    .page-body .feedback-panel,
    .page-body .reflection-panel {
        padding: 24px;
    }
}





/* ==========================================================
   OBITUARYWEB — HERO AND LATEST OBITUARIES LAYOUT
   Desktop and tablet: side by side
   Mobile: stacked
   All following homepage sections remain unchanged
   ========================================================== */

/* Shared wrapper for the hero and latest-obituaries sidebar */
.body_part.ow-hero-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 22px;
    width: 100%;
    min-height: 580px;
    margin: 24px auto 0;
    padding: 0 2%;
    box-sizing: border-box;
    background: transparent;
}

/* Main hero panel */
.body_part.ow-hero-layout > .main.ow-hero {
    float: none;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 580px;
    margin: 0;
    padding: 52px 38px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 14px;

    background:
        linear-gradient(
            rgba(10, 20, 16, 0.64),
            rgba(10, 20, 16, 0.72)
        ),
        url("/static/images/background.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Keep hero content above the background */
.body_part.ow-hero-layout > .main.ow-hero .hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    margin: auto;
    box-sizing: border-box;
}

/* Hero introduction and heading */
.body_part.ow-hero-layout .introduction {
    width: 100%;
    margin-top: 24px;
    margin-bottom: 0;
}

.body_part.ow-hero-layout .hero-title {
    max-width: 100%;
    margin: 0 0 26px;
    text-align: center;
    line-height: 1.25;
    overflow-wrap: break-word;
}

.body_part.ow-hero-layout .hero-title em {
    font-style: italic;
}

.body_part.ow-hero-layout .hero-text {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    box-sizing: border-box;
}

/* Hero action buttons */
.body_part.ow-hero-layout .buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 34px 0 24px;
    padding: 0;
    box-sizing: border-box;
}

/* Commitment statements beneath the buttons */
.body_part.ow-hero-layout .ow-hero-promises {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 20px;
    width: 100%;
    margin-top: 18px;
    color: #ffffff;
    font-size: 0.88rem;
    line-height: 1.6;
    text-align: center;
}

.body_part.ow-hero-layout .ow-hero-promises span {
    max-width: 100%;
}

/* Latest obituaries sidebar */
.body_part.ow-hero-layout > .aside.ow-latest {
    float: none;
    flex: 0 0 29%;
    width: auto;
    min-width: 0;
    min-height: 580px;
    margin: 0;
    padding: 28px 18px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    border: 1px solid rgba(216, 207, 130, 0.25);
    border-radius: 14px;
    background: rgba(16, 25, 20, 0.94);
    color: #dfcd81;
}

/* Sidebar heading */
.body_part.ow-hero-layout .aside-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 18px;
}

.body_part.ow-hero-layout .aside-title {
    margin: 6px 0 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.body_part.ow-hero-layout .view-all-link {
    flex-shrink: 0;
}

/* Sidebar tabs */
.body_part.ow-hero-layout .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    box-sizing: border-box;
}

.body_part.ow-hero-layout .nav-tabs .nav-item {
    min-width: 0;
}

.body_part.ow-hero-layout .nav-tabs a {
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}

/* Obituary content and pagination */
.body_part.ow-hero-layout .tab-content {
    width: 100%;
    min-width: 0;
}

.body_part.ow-hero-layout .tab-pane {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.body_part.ow-hero-layout .aside_country,
.body_part.ow-hero-layout .aside_international {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.body_part.ow-hero-layout .theDead {
    width: min(100%, 220px);
    max-width: 100%;
    box-sizing: border-box;
}

.body_part.ow-hero-layout .photoSection img {
    width: 72px;
    max-width: 100%;
    height: 72px;
    object-fit: cover;
}

.body_part.ow-hero-layout .ow-obituary-pagination {
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
    box-sizing: border-box;
}

.body_part.ow-hero-layout .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.body_part.ow-hero-layout .pagination li {
    list-style: none;
}

.body_part.ow-hero-layout #prevButtonOb,
.body_part.ow-hero-layout #nextButtonOb {
    margin: 0;
    padding: 8px 12px;
    max-width: 100%;
}

/* ==========================================================
   TABLETS — keep hero and sidebar side by side
   ========================================================== */
@media screen and (min-width: 601px) and (max-width: 1024px) {
    .body_part.ow-hero-layout {
        flex-direction: row;
        gap: 14px;
        min-height: 520px;
        padding: 0 2%;
    }

    .body_part.ow-hero-layout > .main.ow-hero {
        flex: 1 1 0;
        width: auto;
        min-height: 520px;
        padding: 38px 22px;
    }

    .body_part.ow-hero-layout > .aside.ow-latest {
        flex: 0 0 32%;
        width: auto;
        min-height: 520px;
        padding: 22px 12px;
    }

    .body_part.ow-hero-layout .hero-title {
        font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    }

    .body_part.ow-hero-layout .hero-text {
        font-size: 1rem;
    }

    .body_part.ow-hero-layout .buttons {
        gap: 10px;
        margin-top: 28px;
    }

    .body_part.ow-hero-layout .ow-hero-promises {
        flex-direction: column;
        gap: 6px;
        font-size: 0.8rem;
    }

    .body_part.ow-hero-layout .aside-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .body_part.ow-hero-layout .nav-tabs a {
        padding: 8px 5px;
        font-size: 0.76rem;
    }

    .body_part.ow-hero-layout .theDead {
        width: min(100%, 190px);
    }
}

/* ==========================================================
   MOBILE — stack the hero above latest obituaries
   ========================================================== */
@media screen and (max-width: 600px) {
    .body_part.ow-hero-layout {
        flex-direction: column;
        gap: 18px;
        min-height: 0;
        margin-top: 14px;
        padding: 0 4%;
    }

    .body_part.ow-hero-layout > .main.ow-hero {
        flex: none;
        width: 100%;
        min-height: 0;
        padding: 42px 20px;
        border-radius: 12px;
    }

    .body_part.ow-hero-layout > .aside.ow-latest {
        flex: none;
        width: 100%;
        min-height: 0;
        padding: 24px 16px;
        border-radius: 12px;
    }

    .body_part.ow-hero-layout .introduction {
        margin-top: 16px;
    }

    .body_part.ow-hero-layout .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.35rem);
        margin-bottom: 20px;
    }

    .body_part.ow-hero-layout .hero-text {
        width: 100%;
        font-size: 1rem;
        line-height: 1.7;
    }

    .body_part.ow-hero-layout .buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin: 28px 0 20px;
    }

    .body_part.ow-hero-layout .buttons > * {
        max-width: 100%;
    }

    .body_part.ow-hero-layout .buttons a {
        max-width: 100%;
        box-sizing: border-box;
    }

    .body_part.ow-hero-layout .ow-hero-promises {
        flex-direction: column;
        gap: 8px;
        font-size: 0.82rem;
    }

    .body_part.ow-hero-layout .aside-header {
        flex-direction: row;
        align-items: center;
    }

    .body_part.ow-hero-layout .aside-title {
        font-size: 1.3rem;
    }

    .body_part.ow-hero-layout .nav-tabs {
        gap: 4px;
    }

    .body_part.ow-hero-layout .nav-tabs a {
        padding: 9px 8px;
        font-size: 0.8rem;
    }

    .body_part.ow-hero-layout .theDead {
        width: min(100%, 240px);
    }

    .body_part.ow-hero-layout .ow-obituary-pagination {
        margin-top: 16px;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .body_part.ow-hero-layout *,
    .body_part.ow-hero-layout *::before,
    .body_part.ow-hero-layout *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}


/* Latest Obituaries: tab highlight */
.ow-hero-layout > .aside.ow-latest #obituaryTabs .tab-link {
    color: #384E2D;
    border-bottom: 2px solid transparent;
    text-decoration: none;
}

/* Only the currently active tab receives the underline */
.ow-hero-layout > .aside.ow-latest #obituaryTabs .tab-link.active {
    color: #384E2D;
    border-bottom: 2px solid #384E2D;
    text-decoration: none;
}

/* ============================================================
   17. RESPONSIVE FINISHING OVERRIDES — TABLET, MOBILE, SMALL MOBILE
   These rules are intentionally appended after the existing stylesheet.
   They preserve the desktop styling and all existing homepage sections,
   while normalising layout, spacing, text alignment and touch targets.
   Brand palette: #384E2D (green), #D8CF82 (gold).
   ============================================================ */

/* Keep every homepage section inside the viewport and prevent grid overflow. */
.page-body,
.page-body section,
.page-body .section-inner,
.page-body .ow-hero-layout,
.page-body .body_part.ow-hero-layout {
    min-width: 0;
    max-width: 100%;
}

.page-body .section-inner {
    width: min(92%, var(--ow-content-width));
}

.page-body .service-cards,
.page-body .why-grid,
.page-body .journey-grid,
.page-body .legacy-feature-grid,
.page-body .features-grid,
.page-body .community-grid {
    min-width: 0;
}

.page-body .service-card,
.page-body .why-card,
.page-body .journey-card,
.page-body .legacy-feature,
.page-body .feature-card,
.page-body .feedback-panel,
.page-body .reflection-panel,
.page-body .preparation-checklist,
.page-body .legacy-partners-card {
    min-width: 0;
    overflow-wrap: anywhere;
}

.page-body button,
.page-body .section-action,
.page-body .service-link,
.page-body .final-cta-buttons .buttons a,
#toggleHomepageCurrency {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* ------------------------------
   Tablet: 601px–1024px
   ------------------------------ */
@media screen and (min-width: 601px) and (max-width: 1024px) {
    .page-body .section-inner {
        width: min(94%, var(--ow-content-width));
    }

    .page-body .section-heading {
        max-width: 760px;
        margin-bottom: 32px;
    }

    .page-body .section-title {
        font-size: clamp(1.9rem, 3.4vw, 2.5rem);
        line-height: 1.22;
        text-align: center;
    }

    .page-body .section-action,
    .page-body .final-cta-buttons .buttons a {
        min-height: 44px;
    }

    .page-body .aim-section,
    .page-body .core-services,
    .page-body .why-obituaryweb,
    .page-body .journey-section,
    .page-body .lasting-legacy-section,
    .page-body .family-connection-section,
    .page-body .features-section,
    .page-body .community-section,
    .page-body .legacy-partners-section,
    .page-body .preparation-section {
        padding-top: 62px;
        padding-bottom: 64px;
    }

    .page-body .service-cards,
    .page-body .legacy-feature-grid,
    .page-body .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .page-body .service-cards > .service-card:last-child {
        grid-column: 1 / -1;
        width: min(100%, 620px);
        justify-self: center;
    }

    .page-body .why-grid,
    .page-body .journey-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .page-body .community-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .page-body .service-card-content,
    .page-body .why-card,
    .page-body .journey-card,
    .page-body .legacy-feature,
    .page-body .feature-card {
        padding: 22px 20px;
    }

    .page-body .feedback-panel,
    .page-body .reflection-panel {
        padding: 22px;
    }

    .page-body .preparation-checklist {
        padding: 26px;
    }

    .page-body .legacy-partners-card {
        padding: 32px;
    }

    .page-body .preparation-checklist .preparation-pricing {
        padding: 18px;
    }

    /* The sidebar remains beside the hero, but tabs and labels may wrap. */
    .body_part.ow-hero-layout {
        gap: 14px;
        padding-right: 2%;
        padding-left: 2%;
    }

    .body_part.ow-hero-layout > .main.ow-hero {
        padding: 36px 22px;
    }

    .body_part.ow-hero-layout > .aside.ow-latest {
        flex-basis: 32%;
        padding: 20px 12px;
    }

    .body_part.ow-hero-layout .aside-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .body_part.ow-hero-layout .aside-title,
    .body_part.ow-hero-layout .view-all-link {
        text-align: center;
    }

    .body_part.ow-hero-layout .nav-tabs {
        gap: 3px;
    }

    .body_part.ow-hero-layout .nav-tabs a {
        padding: 8px 5px;
        font-size: 0.72rem;
        text-align: center;
    }

    .body_part.ow-hero-layout .theDead {
        width: 100%;
        gap: 8px;
        padding: 8px;
    }

    .body_part.ow-hero-layout .photoSection img {
        width: 48px;
        height: 48px;
    }
}

/* ------------------------------
   Mobile: 600px and below
   ------------------------------ */
@media screen and (max-width: 600px) {
    .page-body {
        background-size: auto 520px;
        background-position: top center;
    }

    .page-body .section-inner {
        width: calc(100% - 36px);
    }

    .page-body .section-heading {
        width: 100%;
        margin: 0 auto 26px;
        text-align: center;
    }

    .page-body .section-eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.13em;
    }

    .page-body .section-title,
    .page-body h1,
    .page-body h2,
    .page-body h3 {
        text-align: center;
        overflow-wrap: anywhere;
    }

    .page-body .section-title {
        margin-bottom: 14px;
        font-size: clamp(1.65rem, 7vw, 2.15rem);
        line-height: 1.22;
    }

    /* Mobile preference: centre titles and controls; justify prose. */
    .page-body p,
    .page-body .section-intro,
    .page-body .aim-paragraph,
    .page-body .why-intro,
    .page-body .service-card-content p,
    .page-body .why-card p,
    .page-body .journey-card p,
    .page-body .legacy-feature p,
    .page-body .feature-card p,
    .page-body .family-connection-content > p,
    .page-body .legacy-intro,
    .page-body .legacy-empty-state p,
    .page-body .preparation-content > p,
    .page-body .preparation-checklist li,
    .page-body .preparation-checklist li p,
    .page-body .preparation-later > p,
    .page-body .reflection-description,
    .page-body .final-cta-section > .section-inner > p {
        text-align: justify;
        text-justify: inter-word;
        hyphens: auto;
    }

    /* Keep deliberate compact/status components readable and centred. */
    .page-body .feedback-empty-state,
    .page-body .feedback-empty-state p,
    .page-body .reflection-meta-tags,
    .page-body .reflection-author-tag,
    .page-body .reflection-quote-body,
    .page-body .contact-line,
    .page-body .section-divider {
        text-align: center;
    }

    .page-body .section-action,
    .page-body .final-cta-buttons .buttons a,
    #toggleHomepageCurrency {
        display: flex;
        width: fit-content;
        max-width: 100%;
        margin-right: auto;
        margin-left: auto;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .page-body .aim-section,
    .page-body .core-services,
    .page-body .why-obituaryweb,
    .page-body .journey-section,
    .page-body .lasting-legacy-section,
    .page-body .family-connection-section,
    .page-body .features-section,
    .page-body .community-section,
    .page-body .legacy-partners-section,
    .page-body .preparation-section,
    .page-body .final-cta-section {
        padding-top: 48px;
        padding-bottom: 50px;
    }

    .page-body .section-divider {
        margin-top: 14px;
        margin-bottom: 18px;
    }

    /* Hero and latest obituaries: stacked, centred and touch friendly. */
    .body_part.ow-hero-layout {
        flex-direction: column;
        gap: 16px;
        min-height: 0;
        margin-top: 12px;
        padding: 0 14px;
    }

    .body_part.ow-hero-layout > .main.ow-hero,
    .body_part.ow-hero-layout > .aside.ow-latest {
        flex: none;
        width: 100%;
        min-height: 0;
        margin: 0;
        border-radius: 12px;
    }

    .body_part.ow-hero-layout > .main.ow-hero {
        padding: 34px 20px;
    }

    .body_part.ow-hero-layout .hero-content {
        max-width: 100%;
    }

    .body_part.ow-hero-layout .introduction {
        margin-top: 10px;
    }

    .body_part.ow-hero-layout .hero-title {
        margin: 0 auto 18px;
        font-size: clamp(1.75rem, 7.5vw, 2.4rem);
        line-height: 1.2;
        text-align: center;
    }

    .body_part.ow-hero-layout .hero-text {
        max-width: 100%;
        font-size: 0.96rem;
        line-height: 1.75;
        text-align: justify;
    }

    .body_part.ow-hero-layout .buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin: 24px 0 18px;
    }

    .body_part.ow-hero-layout .buttons > .ob,
    .body_part.ow-hero-layout .buttons > .memory,
    .body_part.ow-hero-layout .buttons .service-link {
        width: 100%;
        max-width: 360px;
        margin-right: auto;
        margin-left: auto;
        box-sizing: border-box;
        text-align: center;
    }

    .body_part.ow-hero-layout .ow-hero-promises {
        flex-direction: column;
        align-items: center;
        gap: 7px;
        margin-top: 16px;
        text-align: center;
    }

    .body_part.ow-hero-layout > .aside.ow-latest {
        padding: 22px 14px;
    }

    .body_part.ow-hero-layout .aside-header {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }

    .body_part.ow-hero-layout .aside-title {
        width: 100%;
        font-size: 1.35rem;
        text-align: center;
    }

    .body_part.ow-hero-layout .view-all-link {
        position: static;
        display: inline-block;
        text-align: center;
    }

    .body_part.ow-hero-layout .nav-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }

    .body_part.ow-hero-layout .nav-tabs .nav-item {
        flex: 1 1 120px;
    }

    .body_part.ow-hero-layout .nav-tabs a {
        min-height: 42px;
        padding: 9px 6px;
        justify-content: center;
        text-align: center;
        font-size: 0.78rem;
    }

    .body_part.ow-hero-layout .theDead {
        width: 100%;
        max-width: 100%;
        min-height: 76px;
        gap: 10px;
        margin: 7px 0;
        padding: 9px;
    }

    .body_part.ow-hero-layout .photoSection {
        flex: 0 0 52px;
        width: 52px;
        height: 52px;
    }

    .body_part.ow-hero-layout .photoSection img {
        width: 52px;
        height: 52px;
    }

    .body_part.ow-hero-layout .nameSection {
        min-width: 0;
        text-align: left;
    }

    .body_part.ow-hero-layout obNames,
    .body_part.ow-hero-layout theLate,
    .body_part.ow-hero-layout livedYears {
        overflow-wrap: anywhere;
    }

    .body_part.ow-hero-layout .pagination {
        justify-content: center;
    }

    .body_part.ow-hero-layout #prevButtonOb,
    .body_part.ow-hero-layout #nextButtonOb {
        min-height: 40px;
    }

    /* Aim and service cards. */
    .page-body .aim-content {
        max-width: 100%;
    }

    .page-body .aim-paragraph {
        margin-bottom: 15px;
        line-height: 1.8;
    }

    .page-body .service-cards,
    .page-body .why-grid,
    .page-body .journey-grid,
    .page-body .legacy-feature-grid,
    .page-body .features-grid,
    .page-body .community-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .page-body .service-cards > .service-card:last-child {
        grid-column: auto;
        width: 100%;
    }

    .page-body .service-image {
        height: clamp(170px, 52vw, 230px);
    }

    .page-body .service-card-content,
    .page-body .why-card,
    .page-body .journey-card,
    .page-body .legacy-feature,
    .page-body .feature-card {
        padding: 21px 18px;
    }

    .page-body .service-header {
        justify-content: center;
        font-size: 1.22rem;
        text-align: center;
    }

    .page-body .service-card-content .service-link {
        display: flex;
        width: fit-content;
        max-width: 100%;
        margin: 18px auto 0;
        justify-content: center;
        text-align: center;
    }

    .page-body .why-icon,
    .page-body .journey-number {
        display: flex;
        margin-right: auto;
        margin-left: auto;
    }

    .page-body .why-card h3,
    .page-body .journey-card h3,
    .page-body .legacy-feature h3,
    .page-body .feature-card h3 {
        font-size: 1.2rem;
        text-align: center;
    }

    .page-body .legacy-feature-content,
    .page-body .family-connection-content,
    .page-body .preparation-content {
        margin-bottom: 24px;
    }

    /* Feedback and reflection panels. */
    .page-body .feedback-panel,
    .page-body .reflection-panel {
        padding: 20px 16px;
    }

    .page-body .feedback-panel .section-title,
    .page-body .reflection-panel .section-title {
        font-size: clamp(1.55rem, 6vw, 1.9rem);
        text-align: center;
    }

    .page-body .feedback-empty-state {
        min-height: 220px;
        padding: 24px 16px;
    }

    .page-body .social-feature-card {
        min-height: 270px;
        padding: 22px 18px;
    }

    .page-body .reflection-meta-tags {
        justify-content: center;
        margin-bottom: 18px;
    }

    .page-body .reflection-quote-body {
        font-size: clamp(1.2rem, 5.5vw, 1.55rem);
    }

    /* Partner, checklist and dynamic creation pricing. */
    .page-body .legacy-partners-card {
        padding: 25px 17px;
        border-radius: 12px;
    }

    .page-body .legacy-empty-state {
        padding: 20px 15px;
    }

    .page-body .preparation-checklist {
        padding: 22px 17px;
    }

    .page-body .preparation-checklist h3 {
        font-size: 1.08rem;
        text-align: center;
    }

    .page-body .preparation-checklist li {
        padding: 12px 0 12px 26px;
        line-height: 1.7;
    }

    .page-body .preparation-checklist li::before {
        left: 0;
    }

    .page-body .preparation-checklist .preparation-pricing {
        padding: 18px 14px;
        text-align: center;
    }

    .page-body .preparation-checklist .preparation-pricing p {
        text-align: center;
        overflow-wrap: anywhere;
    }

    #toggleHomepageCurrency {
        width: fit-content;
        min-height: 44px;
        padding: 11px 17px;
        font-size: 0.9rem;
    }

    .page-body .preparation-checklist .preparation-later {
        margin-top: 22px;
        padding-top: 20px;
    }

    /* Final call to action. */
    .page-body .final-cta-section h2 {
        font-size: clamp(1.8rem, 7vw, 2.45rem);
        text-align: center;
    }

    .page-body .final-cta-buttons .buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .page-body .final-cta-buttons .buttons a {
        width: 100%;
        max-width: 360px;
        min-height: 44px;
    }

    .page-body .final-cta-section .contact-line {
        text-align: center;
        overflow-wrap: anywhere;
    }
}

/* ------------------------------
   Small mobile: 380px and below
   ------------------------------ */
@media screen and (max-width: 380px) {
    .page-body .section-inner {
        width: calc(100% - 28px);
    }

    .page-body .section-title {
        font-size: 1.6rem;
    }

    .page-body .section-eyebrow {
        font-size: 0.62rem;
        letter-spacing: 0.1em;
        overflow-wrap: anywhere;
    }

    .page-body .aim-section,
    .page-body .core-services,
    .page-body .why-obituaryweb,
    .page-body .journey-section,
    .page-body .lasting-legacy-section,
    .page-body .family-connection-section,
    .page-body .features-section,
    .page-body .community-section,
    .page-body .legacy-partners-section,
    .page-body .preparation-section,
    .page-body .final-cta-section {
        padding-top: 40px;
        padding-bottom: 42px;
    }

    .body_part.ow-hero-layout {
        padding-right: 10px;
        padding-left: 10px;
    }

    .body_part.ow-hero-layout > .main.ow-hero {
        padding: 28px 15px;
    }

    .body_part.ow-hero-layout > .aside.ow-latest {
        padding: 19px 11px;
    }

    .body_part.ow-hero-layout .hero-title {
        font-size: clamp(1.55rem, 8vw, 1.9rem);
    }

    .body_part.ow-hero-layout .hero-text,
    .page-body p {
        font-size: 0.92rem;
    }

    .body_part.ow-hero-layout .buttons .service-link {
        padding: 12px 14px;
        font-size: 0.7rem;
    }

    .body_part.ow-hero-layout .nav-tabs .nav-item {
        flex-basis: 100%;
    }

    .page-body .service-card-content,
    .page-body .why-card,
    .page-body .journey-card,
    .page-body .legacy-feature,
    .page-body .feature-card,
    .page-body .feedback-panel,
    .page-body .reflection-panel {
        padding: 18px 14px;
    }

    .page-body .preparation-checklist {
        padding: 19px 13px;
    }

    .page-body .preparation-checklist .preparation-pricing {
        padding: 16px 11px;
    }

    #toggleHomepageCurrency {
        width: 100%;
        padding: 11px 12px;
        font-size: 0.86rem;
    }
}

/* Avoid hover-only effects on touch devices and honour reduced motion. */
@media (hover: none) {
    .page-body .service-card:hover,
    .page-body .feature-card:hover,
    .page-body .why-card:hover {
        transform: none;
    }
}

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


/* Respect the HTML hidden attribute on the homepage currency toggle */
#toggleHomepageCurrency[hidden] {
    display: none !important;
}

