/*
Theme Name: Trinity Exchange
Author: Trinity Exchange
Description: Responsive community venue theme with custom booking integration.
Version: 2.0.0
*/

/* =========================================================
   1. Theme Variables
   ========================================================= */

:root {
    --green: #2F5D50;
    --green-dark: #24483E;
    --cream: #F6F4F1;
    --stone: #D8D0C3;
    --gold: #D6A84F;
    --charcoal: #26312E;
    --white: #ffffff;
    --soft-shadow: 0 10px 30px rgba(0,0,0,.08);
    --strong-shadow: 0 25px 60px rgba(0,0,0,.25);
}

/* =========================================================
   2. Base Styles
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--cream);
    color: var(--charcoal);
    font-size: 17px;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: Georgia, serif;
    line-height: 1.1;
    color: var(--green);
    letter-spacing: -0.02em;
}

a {
    color: var(--green);
}

.container {
    width: min(1120px, 92%);
    margin: auto;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

/* =========================================================
   3. Header and Navigation
   ========================================================= */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--stone);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: bold;
    color: var(--green);
    text-decoration: none;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav a {
    color: var(--charcoal);
    text-decoration: none;
    font-size: 16px;
}

.nav a:hover {
    color: var(--green);
}

.menu-book-button > a {
    background: var(--green);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    transition: .2s;
}

.menu-book-button > a:hover {
    background: var(--green-dark);
}

.menu-toggle {
    display: none;
    background: var(--green);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 22px;
}

/* =========================================================
   4. Buttons
   ========================================================= */

.button,
button,
input[type="submit"] {
    background: var(--green);
    color: #fff !important;
    border: 0;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all .2s ease;
    cursor: pointer;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.button.secondary {
    background: transparent;
    color: var(--green) !important;
    border: 2px solid var(--green);
}
/* =========================================================
   5. Homepage Hero
   ========================================================= */

.hero-home {
    position: relative;
    min-height: calc(100vh - 86px);
    padding: 70px 0 110px;
    display: flex;
    align-items: center;
    background-image:
        linear-gradient(rgba(0,0,0,.38), rgba(0,0,0,.38)),
        url('/wp-content/themes/duffield-village-hall/assets/images/hero.png');
    background-size: cover;
    background-position: center 58%;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-home .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-home .hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 70px;
    align-items: center;
}

.hero-content h1 {
    color: #fff;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.02;
    text-shadow: 0 4px 18px rgba(0,0,0,.55);
    margin-bottom: 24px;
}

.hero-content p {
    color: #fff;
    font-size: 18px;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0,0,0,.55);
    max-width: 720px;
}

.hero-availability-card {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    border-radius: 26px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,.20);
    border: 1px solid rgba(255,255,255,.5);
}

.hero-availability-card h2 {
    color: var(--green);
    margin-top: 0;
    margin-bottom: 18px;
}

.hero-availability-card p {
    color: #444;
    text-shadow: none;
    margin-bottom: 24px;
}

.hero-features {
    display: grid;
    gap: 10px;
    margin-bottom: 25px;
    color: var(--green);
    font-weight: 600;
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-availability-card .button {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
}


/* =========================================================
   6. Cards
   ========================================================= */

.card,
.availability-card,
.booking-panel {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--soft-shadow);
    border: 1px solid var(--stone);
}

.card:hover {
    transform: translateY(-3px);
    transition: .2s;
}
/* =========================================================
   7. Homepage Availability Widget
   ========================================================= */

.dvh-home-availability-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid var(--stone);
    transition: .2s ease;
}

.dvh-home-availability-row:hover {
    transform: translateX(3px);
    box-shadow: 0 3px 8px rgba(0,0,0,.08);
}

.dvh-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    min-width: 120px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.dvh-status.available {
    background: #d1e7dd;
    color: #0f5132;
}

.dvh-status.part-booked {
    background: #fff3cd;
    color: #664d03;
}

.dvh-status.booked {
    background: #f8d7da;
    color: #842029;
}


/* =========================================================
   8. Booking Form
   ========================================================= */

.dvh-booking-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: #fff;
    padding: 30px;
    border-radius: 22px;
    box-shadow: var(--soft-shadow);
    border: 1px solid var(--stone);
}

.dvh-booking-form h2 {
    grid-column: 1 / 3;
    margin-bottom: 20px;
}

.dvh-booking-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

.dvh-booking-form input,
.dvh-booking-form select,
.dvh-booking-form textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--stone);
    padding: 13px;
    font-size: 16px;
}

.dvh-booking-form textarea {
    min-height: 120px;
}

.dvh-booking-form button {
    grid-column: 1 / 3;
}

.full-width {
    grid-column: 1 / 3;
}

.dvh-price-box {
    background: linear-gradient(135deg, #ffffff, #f4efe7);
    border: 1px solid var(--stone);
    border-left: 6px solid var(--green);
    border-radius: 12px;
    padding: 20px;
}

.dvh-price-box h3 {
    margin-top: 0;
}

.dvh-error {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
    padding: 16px;
    border-radius: 8px;
    font-weight: bold;
}

.dvh-timeslot-info {
    background: var(--cream);
    border: 1px solid var(--stone);
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
}

.dvh-timeslot-info ul {
    margin: 8px 0 0;
}
/* =========================================================
   9. Availability Calendar
   ========================================================= */

.dvh-calendar-wrap {
    background: #fff;
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 40px;
    box-shadow: var(--soft-shadow);
    border: 1px solid var(--stone);
}

.dvh-calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0;
}

.dvh-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.dvh-calendar-day,
.dvh-calendar-empty,
.dvh-calendar-day-name {
    padding: 12px;
    border-radius: 10px;
    min-height: 70px;
    text-align: center;
}

.dvh-calendar-day-name {
    font-weight: bold;
}

.dvh-calendar-day {
    border: 0;
    cursor: pointer;
    transition: .2s ease;
}

.dvh-calendar-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,.12);
}

.dvh-calendar-day.available {
    background: #d1e7dd;
    color: #0f5132;
}

.dvh-calendar-day.part-booked {
    background: #fff3cd;
    color: #664d03;
}

.dvh-calendar-day.booked {
    background: #f8d7da;
    color: #842029;
}

.dvh-booked-times {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.3;
}

.dvh-slot-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    margin-top: 16px;
}

.dvh-slot,
.dvh-time-slot {
    border: 0;
    border-radius: 10px;
    padding: 10px;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    transition: .2s ease;
}

.dvh-slot.available,
.dvh-time-slot.available {
    background: #d1e7dd;
    color: #0f5132;
}

.dvh-slot.booked,
.dvh-time-slot.booked {
    background: #f8d7da;
    color: #842029;
    cursor: not-allowed;
}

.dvh-day-timetable {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 18px;
}


/* =========================================================
   10. Footer
   ========================================================= */

.site-footer,
footer {
    background: var(--green-dark);
    color: #fff;
    padding: 48px 0;
    margin-top: 0;
}


/* =========================================================
   11. Responsive
   ========================================================= */

@media (max-width: 900px) {
    .hero-home {
        min-height: auto;
        padding: 70px 0;
    }

    .hero-home .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-content h1 {
        font-size: 44px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .dvh-slot-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

/* ===== Force Footer Text Colours ===== */

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
    color: #ffffff !important;
}

.site-footer p,
.site-footer span,
.site-footer li,
footer p,
footer span,
footer li {
    color: rgba(255,255,255,.95) !important;
}

.site-footer a,
footer a {
    color: #ffffff !important;
}

.site-footer a:hover,
footer a:hover {
    color: #d7e9e1 !important;
}
.about-spaces {
    margin: 50px 0;
}

.about-space-card {
    background: #fff;
    border: 1px solid #D8D0C3;
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.about-space-card h3 {
    margin-top: 0;
    color: #2F5D50;
}

@media (max-width: 760px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        border-bottom: 1px solid var(--stone);
    }

    .nav.nav-open {
        display: block;
    }

    .nav ul {
        display: block;
    }

    .nav a {
        display: block;
        margin: 12px 0;
    }

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

    .button {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .dvh-booking-form {
        grid-template-columns: 1fr;
    }

    .dvh-booking-form h2,
    .dvh-booking-form button,
    .full-width {
        grid-column: 1;
    }

    .dvh-calendar-grid {
        font-size: 12px;
    }

.dvh-calendar-day,
.dvh-calendar-cell {

    border-radius: 14px;
    border: 2px solid #BFD6CC;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transition: .2s ease;

}

.dvh-calendar-day:hover,
.dvh-calendar-cell:hover {

    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    cursor: pointer;
.dvh-calendar-day,
.dvh-calendar-cell {

    min-height: 90px;
    padding: 10px;

}
	/* ========================================
   Trinity Exchange Footer - Final Fix
======================================== */

.site-footer {
    padding: 45px 0;
}

.site-footer .container.footer-inner {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer .footer-details {
    flex: 1;
}

.site-footer .footer-details h2 {
    margin-top: 0;
}

.site-footer .footer-council {
    width: 220px;
    flex: 0 0 220px;
    text-align: center;
}

.site-footer .footer-council img.parish-council-logo {
    display: block !important;
    width: 130px !important;
    max-width: 130px !important;
    height: auto !important;
    margin: 0 auto 12px !important;
}

.site-footer .footer-council p {
    margin: 0;
    line-height: 1.5;
}

/* Mobile */

@media (max-width: 700px) {

    .site-footer .container.footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer .footer-council {
        width: auto;
        flex: none;
        text-align: left;
    }

    .site-footer .footer-council img.parish-council-logo {
        margin-left: 0 !important;
    }
}

}
    }
}

/* ===== Force Public Booking Calendar Polish ===== */

.dvh-calendar-wrap select,
#dvh-calendar-room {
    width: 280px !important;
    height: 48px !important;
    font-size: 18px !important;
    padding: 10px 16px !important;
    border: 2px solid #2F5D50 !important;
    border-radius: 12px !important;
    background-color: #fff !important;
}

.dvh-calendar-grid .dvh-calendar-day {
    min-height: 95px !important;
    border-radius: 16px !important;
    border: 2px solid rgba(47, 93, 80, .25) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,.12) !important;
    transition: .2s ease !important;
}

.dvh-calendar-grid .dvh-calendar-day:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 26px rgba(0,0,0,.18) !important;
}

.dvh-calendar-grid .dvh-calendar-day strong {
    font-size: 22px !important;
}

.dvh-calendar-grid .dvh-calendar-day small {
    font-size: 13px !important;
    font-weight: 700 !important;
}
/* Trinity Exchange Footer */

.site-footer .footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-council {
    text-align: center;
}

.footer-council img {
    width: 110px;
    height: auto;
    display: block;
    margin: 0 auto 12px;
}

.footer-council p {
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .site-footer .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-council {
        text-align: left;
    }

    .footer-council img {
        margin-left: 0;
    }
}
/* FORCE PARISH COUNCIL LOGO SIZE */

.site-footer img.parish-council-logo {
    width: 120px !important;
    max-width: 120px !important;
    min-width: 0 !important;
    height: 120px !important;
    max-height: 120px !important;
    object-fit: contain !important;
    display: block !important;
}

.site-footer .footer-council {
    width: 180px !important;
    max-width: 180px !important;
    flex: 0 0 180px !important;
}