/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* =========================
   GLOBAL LINK STYLING
   ========================= */
.single-tribe_events a {
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
}

/* =========================
   ACCESSIBILITY - FOCUS STATES
   ========================= */
.single-tribe_events a:focus,
.single-tribe_events button:focus,
.single-tribe_events input:focus,
.single-tribe_events textarea:focus,
.single-tribe_events select:focus,
.single-tribe_events [tabindex]:focus {
    outline: 3px solid #215cc2;
    outline-offset: 3px;
    box-shadow: none;
}

/* RSVP button focus */
.single-tribe_events .tribe-tickets button:focus,
.single-tribe_events .tribe-tickets input[type="submit"]:focus,
.single-tribe_events .tribe-events-tickets button:focus,
.single-tribe_events .tribe-events-tickets input[type="submit"]:focus {
    outline: 3px solid #0f172a !important;
    outline-offset: 3px;
}

/* Optional hover polish without relying on it */
.single-tribe_events .tribe-tickets button:hover,
.single-tribe_events .tribe-tickets input[type="submit"]:hover,
.single-tribe_events .tribe-events-tickets button:hover,
.single-tribe_events .tribe-events-tickets input[type="submit"]:hover {
    filter: brightness(0.98);
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 768px) {
    .single-tribe_events .tribe-events-single-event-title,
    .single-tribe_events h1.tribe-events-single-event-title {
        font-size: 32px;
    }

    .single-tribe_events .tribe-events-schedule,
    .single-tribe_events .tribe-events-event-meta time {
        font-size: 17px;
    }

    .single-tribe_events .tribe-events-single-event-description,
    .single-tribe_events .tribe-events-content {
        padding: 22px 20px;
        font-size: 17px;
    }

    .single-tribe_events .tribe-tickets,
    .single-tribe_events .tribe-events-tickets {
        padding: 18px;
    }

    .single-tribe_events .tribe-events-meta-group-organizer,
    .single-tribe_events .tribe-events-organizer,
    .single-tribe_events .tribe-events-meta-group-venue,
    .single-tribe_events .tribe-events-venue-map {
        padding: 16px;
    }

    .single-tribe_events .tribe-tickets button,
    .single-tribe_events .tribe-tickets input[type="submit"],
    .single-tribe_events .tribe-events-tickets button,
    .single-tribe_events .tribe-events-tickets input[type="submit"] {
        min-height: 52px;
        width: 100%;
    }
}

/* =========================
   REDUCED MOTION SUPPORT
   ========================= */
@media (prefers-reduced-motion: reduce) {
    .single-tribe_events *,
    .single-tribe_events *::before,
    .single-tribe_events *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ===== END SINGLE EVENT STYLING ===== */

/* =========================================================
   Shared Memories Page - GeneratePress / GenerateBlocks CSS
   Mobile + Accessibility Optimized Version
   ========================================================= */

/* Optional page tint */
.shared-memories-page {
    background: #fcfcfb;
    color: #1f2f4d;
}

/* PAGE WRAP */
.sm-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 20px 50px;
}

/* HERO / INTRO */
.sm-hero {
    text-align: center;
    margin: 40px auto 46px;
    max-width: 980px;
}

.sm-title {
    margin: 0 0 14px;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 700;
    color: #192f63;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.sm-divider {
    width: 100%;
    max-width: 980px;
    height: 1px;
    margin: 0 auto 22px;
    background: linear-gradient(
        90deg,
        rgba(176, 128, 19, 0) 0%,
        rgba(176, 128, 19, 0.58) 18%,
        rgba(176, 128, 19, 0.58) 82%,
        rgba(176, 128, 19, 0) 100%
    );
}

.sm-subtitle {
    margin: 0 auto;
    max-width: 980px;
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: #274271;
    text-wrap: pretty;
}

/* CARD GRID */
.sm-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

/* CARD */
.sm-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    border: 1px solid #cfdcf4;
    border-radius: 24px;
    box-shadow:
        0 14px 30px rgba(21, 38, 76, 0.07),
        0 4px 8px rgba(21, 38, 76, 0.04);
    padding: 28px 28px 22px;
    text-align: center;
    min-height: 470px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.sm-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 18px 36px rgba(21, 38, 76, 0.10),
        0 6px 14px rgba(21, 38, 76, 0.06);
    border-color: #bfd1ef;
}

/* Strong keyboard focus on card if focused content is inside */
.sm-card:focus-within {
    outline: 3px solid #1c2f60;
    outline-offset: 3px;
}

/* ICON WRAP */
.sm-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.sm-icon-box {
    width: 92px;
    height: 92px;
    border-radius: 22px;
    background: linear-gradient(180deg, #7e8fda 0%, #6e81d2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        10px 10px 18px rgba(41, 58, 116, 0.16),
        0 4px 8px rgba(41, 58, 116, 0.10);
}

.sm-icon-box svg,
.sm-icon-box img,
.sm-icon-box span {
    width: 48px;
    height: 48px;
    color: #ffffff;
    fill: #ffffff;
}

/* CARD TITLE */
.sm-card-title {
    margin: 0 0 14px;
    font-size: clamp(1.75rem, 2vw, 1.95rem);
    line-height: 1.15;
    font-weight: 700;
    color: #1c2f60;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

/* CARD DIVIDER */
.sm-card-rule {
    width: 100%;
    height: 1px;
    margin: 0 0 20px;
    background: linear-gradient(
        90deg,
        rgba(176, 128, 19, 0) 0%,
        rgba(176, 128, 19, 0.45) 20%,
        rgba(176, 128, 19, 0.45) 80%,
        rgba(176, 128, 19, 0) 100%
    );
}

/* BODY TEXT */
.sm-card-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.95;
    color: #334d78;
    flex-grow: 1;
    text-wrap: pretty;
}

/* PRIMARY BUTTON */
.sm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    min-width: 44px;
    width: 100%;
    max-width: 250px;
    margin: 26px auto 14px;
    padding: 14px 22px;
    border-radius: 12px;
    border: 2px solid #b97a00;
    background: linear-gradient(180deg, #d99a17 0%, #b97a00 100%);
    color: #ffffff !important;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none !important;
    text-align: center;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.18),
        0 10px 18px rgba(185, 122, 0, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease;
}

.sm-btn:hover,
.sm-btn:focus {
    transform: translateY(-1px);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.2),
        0 14px 22px rgba(185, 122, 0, 0.26);
    filter: brightness(1.02);
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Strong visible focus ring */
.sm-btn:focus-visible,
.sm-view-all:focus-visible {
    outline: 3px solid #1c2f60;
    outline-offset: 4px;
}

.sm-btn .sm-plus {
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 700;
    margin-top: -2px;
}

/* SECONDARY LINK */
.sm-view-all {
    display: inline-block;
    min-height: 44px;
    padding: 10px 8px;
    margin-top: 2px;
    font-size: 1rem;
    font-weight: 600;
    color: #274271 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

.sm-view-all:hover,
.sm-view-all:focus {
    color: #192f63 !important;
}

/* Utility for visually hidden labels if you need accessible helper text */
.sm-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .sm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .sm-page {
        padding: 22px 16px 36px;
    }

    .sm-hero {
        margin: 24px auto 34px;
    }

    .sm-subtitle {
        line-height: 1.6;
    }

    .sm-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .sm-card {
        min-height: auto;
        padding: 24px 20px 20px;
        border-radius: 20px;
    }

    .sm-btn {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .sm-page {
        padding-left: 14px;
        padding-right: 14px;
    }

    .sm-card {
        padding: 22px 18px 18px;
    }

    .sm-icon-box {
        width: 84px;
        height: 84px;
    }

    .sm-icon-box svg,
    .sm-icon-box img,
    .sm-icon-box span {
        width: 42px;
        height: 42px;
    }

    .sm-card-text {
        line-height: 1.8;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .sm-card,
    .sm-btn {
        transition: none;
    }

    .sm-card:hover,
    .sm-btn:hover,
    .sm-btn:focus {
        transform: none;
        filter: none;
    }
}

/* Higher contrast preference support */
@media (prefers-contrast: more) {
    .sm-card {
        border-color: #90a8d8;
        box-shadow: none;
    }

    .sm-btn {
        background: #a96f00;
        border-color: #8c5b00;
    }

    .sm-view-all {
        text-decoration-thickness: 2px;
    }
}





/* =============================================================
   COMMNECTION CUSTOM STYLES
   ============================================================= */

/* ── Skip to main content (accessibility) ── */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: #3333cc;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    text-decoration: none;
}
.skip-link:focus {
    left: 8px;
}

/* ── Global focus styles (keyboard navigation) ── */
:focus-visible {
    outline: 3px solid #3333cc;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── #7: Thicker gold accent bar at top of page ── */
body::before {
    content: '';
    display: block;
    height: 5px;
    background: #c9a84c;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}
#masthead {
    margin-top: 5px;
}

/* ── #5: Nav links — darker color + hover/focus underline ── */
.main-navigation .main-nav ul li a,
.main-navigation ul li a {
    color: #333333;
}
.main-navigation .main-nav ul li a:visited,
.main-navigation ul li a:visited {
    color: #333333 !important;
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li a:focus-visible,
.main-navigation ul li a:hover,
.main-navigation ul li a:focus-visible {
    color: #2828aa;
    text-decoration: underline;
}
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation ul li.current-menu-item > a,
.main-navigation .main-nav ul li a.pum-nav-active,
.main-navigation ul li a.pum-nav-active {
    color: #c9a84c;
}

/* ── Mobile menu toggle button ── */
.menu-toggle {
    color: #111;
    border: 1.5px solid #d0d0d0;
    border-radius: 6px;
    padding: 6px 10px;
}
.menu-toggle:hover {
    background: #f5f5f5;
    border-color: #aaa;
}
.menu-toggle:focus-visible {
    outline: 3px solid #3333cc;
    outline-offset: 2px;
}

/* ── Form input accessibility: sufficient border contrast ── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
    border: 1.5px solid #767676;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #3333cc;
    box-shadow: 0 0 0 3px rgba(51, 51, 204, 0.2);
}

/* ── Links: always underlined for accessibility ── */
.entry-content a,
.widget a {
    text-decoration: underline;
}

/* ── #1: Reduce excessive top spacing on front page ── */
.home .site-main {
    padding-top: 8px;
}

/* ── Custom Footer ── */
.commnection-footer {
    background: #1a1a2e;
    color: #e0e0e0;
    padding: 48px 24px 32px;
    margin-top: 40px;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.commnection-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}
.commnection-footer-col {
    flex: 1;
    min-width: 200px;
}
.commnection-footer-tagline {
    font-size: 14px;
    color: #c9a84c;
    font-style: italic;
    margin: 0 0 16px;
}
.commnection-footer-copy {
    font-size: 12px;
    color: #bbb;
    margin: 0;
}
.commnection-footer-nav-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c9a84c;
    margin: 0 0 14px;
}
.commnection-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.commnection-footer-col ul li {
    margin-bottom: 10px;
}
.commnection-footer-col ul li a,
.commnection-footer-col ul li a:visited {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
}
.commnection-footer-col ul li a:hover,
.commnection-footer-col ul li a:focus-visible {
    color: #c9a84c;
    text-decoration: underline;
}
.commnection-footer-mission {
    font-size: 14px;
    color: #ccc;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 640px) {
    .commnection-footer-inner {
        flex-direction: column;
        gap: 32px;
    }
    .commnection-footer-col {
        min-width: unset;
        width: 100%;
    }
}

body {
    overflow-x: hidden;
}

/* ── Ready to Get Started section ── */
.gb-element-6a437a04 {
    background-color: #1a1a2e !important;
}
.gb-element-6a437a04 h1,
.gb-element-6a437a04 h2,
.gb-element-6a437a04 h3,
.gb-element-6a437a04 h4 {
    color: #c9a84c !important;
}
.gb-element-6a437a04 p,
.gb-element-6a437a04 span {
    color: #ffffff !important;
}
.gb-element-6a437a04 .gb-button:first-child,
.gb-element-6a437a04 a[href*="login"],
.gb-element-6a437a04 a[href*="wp-login"] {
    background-color: #c9a84c !important;
    color: #1a1a2e !important;
    border-color: #c9a84c !important;
}
.gb-element-6a437a04 .gb-button {
    background-color: transparent !important;
    color: #c9a84c !important;
    border: 2px solid #c9a84c !important;
}

