/* Cave Hill Vineyard & Winery — static layout aligned to legacy WordPress front page */

:root {
    --text: #333;
    --text-muted: #666;
    --link: #1e6499;
    --rule: #d9d9d9;
    --slider-overlay-title: rgba(255, 255, 255, 0.92);
    --slider-caption-bg: rgba(255, 255, 255, 0.95);
    --accent-grape: #8c7191;
    --max-width: 1040px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text);
    background: #fff;
}

.page-frame {
    margin: 0 auto;
    padding: 0 0 3rem;
}

/* Space main copy below the interior page title banner */
.page-title-banner + .content-block {
    padding-top: 1.5rem;
}

.page-title-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    background-color: #d8d2c8;
}

.page-title-banner__media {
    position: absolute;
    inset: 0;
    background-image: url('/imgs/corks.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.page-title-banner__fade {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.35);
}

.page-title-banner__title {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0 1rem;
    max-width: min(100%, 960px);
    text-align: center;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #2a2a2a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.rule {
    border: none;
    border-top: 1px solid var(--rule);
    margin: 0;
}

.rule--section {
    margin: 2.25rem 0;
}

/* Header */

.site-header {
    background: #f4f3f1;
}

.site-header__masthead {
    border-bottom: 1px solid #e2e0dc;
}

.site-header__masthead-inner {
    position: relative;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-strip {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #2f2f2f;
    text-transform: uppercase;
    line-height: 1.25;
}

.contact-strip a {
    color: #4b4b4b;
    text-decoration: none;
    text-transform: none;
    font-size: 1rem;
    letter-spacing: 0;
    font-weight: 500;
}

.contact-strip a:hover {
    text-decoration: underline;
}

.logo-panel {
    display: flex;
    justify-content: center;
    padding: 0.7rem 0;
}

.logo-panel__link {
    display: inline-block;
    line-height: 0;
}

.logo-panel__img {
    display: block;
    max-width: min(100vw - 3rem, 250px);
    height: auto;
}

/* Bootstrap navbar collapse: burger below md, horizontal centered from 768px up */
.main-nav.navbar {
    background: #f7f6f4;
    border-bottom: 1px solid #e2e0dc;
    padding: 0;
}

.main-nav.navbar .navbar-toggler.main-nav__toggler {
    border: 1px solid rgba(47, 47, 47, 0.35);
    padding: 0.35rem 0.55rem;
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
    border-radius: 0.375rem;
    background: transparent;
    box-shadow: none;
}

.main-nav.navbar .navbar-toggler.main-nav__toggler:focus-visible {
    box-shadow: 0 0 0 3px rgb(197 179 88 / 0.45);
    outline: 0;
}

@media (max-width: 767.98px) {
    .main-nav.navbar .main-nav__bar {
        flex-direction: column;
        align-items: center;
    }

    .main-nav.navbar .main-nav__collapse {
        align-self: stretch;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .main-nav.navbar .main-nav__bar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
}

.main-nav.navbar .main-nav__list.navbar-nav {
    margin: 0;
    padding: 0.45rem 0 0.5rem;
    list-style: none;
    gap: 0.2rem 0.95rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
    align-items: center;
}

@media (max-width: 767.98px) {
    .main-nav.navbar .main-nav__list.navbar-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.25rem 0 0.75rem;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .main-nav.navbar .main-nav__list.navbar-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.main-nav.navbar .main-nav__list .nav-link.main-nav__link {
    display: block;
    color: #2f2f2f;
    text-decoration: none;
    padding: 0.55rem 1rem !important;
    border-radius: 2px;
    font-weight: 500;
    text-align: center;
}

@media (min-width: 768px) {
    .main-nav.navbar .main-nav__list .nav-link.main-nav__link {
        display: inline-block;
        text-align: unset;
        width: auto;
    }
}

.main-nav.navbar .main-nav__list .nav-link.main-nav__link:hover {
    color: #8d8d71;
}

.main-nav.navbar .main-nav__list .nav-link.main-nav__link.is-active {
    color: #c5b358;
    font-weight: 600;
}

.rule--dark {
    border-top-color: #181818;
}

/* Hero slider */

.hero {
    margin-bottom: 2rem;
}

.hero-carousel {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item,
.hero-carousel img {
    height: min(50vw, 510px);
}

.hero-carousel img {
    object-fit: cover;
}

/* Keep more headroom visible on the portrait/group slide. */
.hero-carousel .carousel-item--people img {
    object-position: center 20%;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 6%;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(45, 45, 45, 0.62);
    background-size: 55% 55%;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border-top: 0;
    border-bottom: 0;
    margin: 0 4px;
}

.hero-carousel__caption {
    position: absolute;
    left: 27%;
    top: 45%;
    transform: translateY(-50%);
    z-index: 5;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero-carousel__title {
    margin: 0 0 0.55rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    color: #ececec;
    line-height: 1.2;
}

.hero-carousel__tagline {
    margin: 0;
    padding: 0.4rem 0.7rem;
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(0.95rem, 1.4vw, 1.5rem);
    font-weight: 400;
    color: #323232;
    background: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

.hero-carousel__caption--hours .hero-carousel__title {
    margin-bottom: 0.4rem;
}

/* Mobile / tablet: semi-transparent black panel behind hero title + tagline */
@media (max-width: 767.98px) {
    .hero-carousel__caption {
        display: inline-block;
        text-shadow: none;
        max-width: min(22rem, calc(100vw - 2rem));
        padding: 0.65rem 0.9rem;
        border-radius: 10px;
        background: rgb(0 0 0 / 35%);
        box-sizing: border-box;
    }

    .hero-carousel__title {
        color: #fff;
        text-shadow: none;
        margin-bottom: 0.35rem;
    }

    .hero-carousel__tagline {
        background: transparent !important;
        color: #f3f3f3 !important;
        padding: 0 !important;
        display: block;
        max-width: none;
        line-height: 1.35;
        text-shadow: none;
    }
}

/* Body */

.content-block {
    margin: 0 auto;
    max-width: var(--max-width);
    padding: 0 1.25rem;
}

.prose p {
    margin: 0 0 1rem;
}

.prose a {
    color: var(--link);
    word-break: break-word;
}

.podcast-player {
    margin: 0 0 1.25rem;
}

.podcast-player figcaption {
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.podcast-player audio {
    width: 100%;
    max-width: 36rem;
    vertical-align: middle;
}

/* Same horizontal measure as `.content-block` prose (parent has `.content-block.reviews-map`) */
.reviews-map__wedding-wire {
    margin-bottom: 1.5rem;
}

/* Stacked layout: reviews use full column width; badges stay intrinsic size centered below */
.reviews-map__wire-reviews {
    width: 100%;
    margin-bottom: 1rem;
}

.reviews-map__wire-reviews-panel {
    width: 100%;
    max-width: 100%;
}

.reviews-map__wire-reviews #wp-widget-reviews {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.reviews-map__wedding-wire iframe {
    max-width: 100%;
}

.reviews-map__wire-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1.25rem 2.25rem;
}

.reviews-map__wire-badge {
    flex: 0 0 auto;
}

.reviews-map__wire-badge-panel {
    min-height: 0;
    padding: 1rem 1.1rem;
}

/* Homepage: map under main copy; full-width within content measure */
.home-location {
    margin-bottom: 0;
}

.home-google-map {
    border: 1px solid var(--rule);
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f3;
}

.home-google-map iframe {
    width: 100%;
    min-height: clamp(260px, 36vw, 380px);
    border: 0;
    display: block;
    filter: grayscale(8%);
}

.home-weddings-intro {
    padding-top: 0.85rem;
    margin-bottom: 0;
}

.home-weddings-intro__text {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.seo-keywords {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.25rem;
    margin-top: 1.75rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8125rem;
    text-align: center;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Footer */

.site-footer {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-links {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-links a {
    color: var(--link);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copy {
    margin: 0;
    line-height: 1.6;
}

.footer-copy a {
    color: var(--link);
    text-decoration: none;
}

.footer-copy a:hover {
    text-decoration: underline;
}

/* Weddings page */

.page-weddings .weddings-lead {
    overflow: visible;
}

.page-weddings .weddings-lead__img {
    max-width: min(280px, 42vw);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.wedding-gallery-heading {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-muted);
}

.wedding-gallery .glightbox-wedding,
.wedding-gallery .glightbox-vineyard {
    display: block;
    text-decoration: none;
}

.wedding-gallery__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.wedding-gallery .glightbox-wedding:hover .wedding-gallery__thumb,
.wedding-gallery .glightbox-vineyard:hover .wedding-gallery__thumb {
    opacity: 0.92;
}

.wedding-wire {
    padding-top: 0.5rem;
}

.wedding-wire__panel {
    background: #f8f7f5;
    border: 1px solid #e3e0db;
    border-radius: 6px;
    padding: 1rem;
    min-height: 160px;
}

.wedding-wire__panel--center {
    display: flex;
    align-items: center;
    justify-content: center;
}

#wp-widget-preview {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    color: #4b4b4b;
    line-height: 1.45;
}

#wp-widget-preview img {
    margin-left: 0.25rem;
    vertical-align: middle;
}

#wp-rated-img {
    display: inline-block;
    text-align: center;
}

@media (max-width: 540px) {
    .site-header__masthead-inner {
        min-height: 84px;
    }

    .contact-strip {
        display: none;
    }

    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item,
    .hero-carousel img {
        height: 265px;
    }

    .hero-carousel__caption {
        left: 9%;
        top: 50%;
    }

    .hero-carousel__title {
        font-size: 1.65rem;
    }

    .hero-carousel__tagline {
        font-size: 0.95rem;
        text-align: left;
        margin-left: 0;
        margin-right: auto;
    }

    .page-weddings .weddings-lead__img {
        float: none !important;
        display: block;
        max-width: 100%;
        margin: 0 auto 1rem !important;
    }

    .wedding-wire__panel {
        min-height: 0;
    }
}

/* Public calendar: whole row toggles “Event information” when present */
.page-calendar .calendar-list__item--row-toggle {
    cursor: pointer;
}

.page-calendar .calendar-list__item--row-toggle:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 3px;
}

/* Contact inquiry form */
.page-contact .contact-form {
    max-width: 660px;
    border-color: #dee2e6 !important;
}

.page-contact .contact-form-errors {
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact .contact-form-divider {
    border-color: #e9ecef;
    opacity: 1;
}

.page-contact .form-section-label {
    display: inline-block;
    letter-spacing: 0.06em;
    font-size: 0.7rem;
    margin-bottom: 0;
}

.page-contact .form-control:focus,
.page-contact .form-select:focus {
    border-color: var(--link);
    box-shadow: 0 0 0 0.2rem rgba(30, 100, 153, 0.15);
}

.page-contact textarea.contact-comments {
    min-height: 9rem;
    resize: vertical;
}

.page-contact .contact-form-submit {
    letter-spacing: 0.03em;
}
