/*
 Theme Name:   OceanWP Child - Windham Junction
 Theme URI:    http://localhost/wj
 Description:  Custom child theme for The Windham Junction
 Author:       Windham Junction
 Version:      1.0.4
 Template:     oceanwp
 Text Domain:  oceanwp-child
*/

/* ==========================================================================
   Sticky Footer
   ========================================================================== */

#outer-wrap {
    min-height: 100vh !important;
}

#wrap {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

#main {
    flex: 1 0 auto !important;
}

#footer {
    flex-shrink: 0 !important;
    border-top: 2px solid #937100;
}

/* ==========================================================================
   Header
   ========================================================================== */

#site-header-inner {
    display: flex;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#site-navigation-wrap {
    margin-left: auto;
}

#top-bar-wrap {
    display: none;
}

/* ==========================================================================
   Logo
   ========================================================================== */

#site-logo #site-logo-inner a img {
    max-width: 550px !important;
    height: auto !important;
}

@media (max-width: 1023px) {
    #site-logo #site-logo-inner a img {
        max-width: 350px !important;
    }
}

@media (max-width: 768px) {
    #site-logo #site-logo-inner a img {
        max-width: 220px !important;
    }

    #site-header-inner {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* ==========================================================================
   Custom Styles
   ========================================================================== */

/* Add your custom styles below this line */

.wp-social-link-mail {
    background-color: #000;
}

.widget-title {
    border-color: #937100;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

body form input[type="submit"],
body form button[type="submit"],
.button,
.wp-block-button__link,
.wp-block-search__button {
    background-color: #000;
    border-color: #937100;
    color: #937100;
}

input[type="submit"]:hover,
button[type="submit"]:hover,
.button:hover,
.wp-block-button__link:hover,
.wp-block-search__button:hover {
    background-color: #937100;
    border-color: #937100;
    color: #000;
}

/* ==========================================================================
   Front Page
   ========================================================================== */

#main:has(.front-page-hero) {
    display: flex;
    flex-direction: column;
}

.front-page-hero {
    display: flex;
    width: 100%;
    flex: 1;
}

.front-page-hero .hero-image {
    width: 50%;
    position: relative;
    overflow: hidden;
}

.front-page-hero .hero-image img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    will-change: transform;
}

.front-page-hero .hero-content {
    width: 50%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Image Grid */
.front-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
}

.front-page-grid .grid-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .front-page-hero {
        flex-direction: column;
    }

    .front-page-hero .hero-image,
    .front-page-hero .hero-content {
        width: 100%;
    }

    .front-page-hero .hero-image {
        min-height: 250px;
        max-height: 50vh;
    }

    .front-page-hero .hero-content {
        padding: 1.5rem;
    }

    .front-page-grid {
        grid-template-columns: 1fr;
    }

    .front-page-grid .grid-item img {
        height: 200px;
    }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.wj-testimonials {
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
}

.wj-testimonials-bg {
    position: absolute;
    top: -30%;
    left: 0;
    width: 100%;
    height: 170%;
    z-index: 0;
}

.wj-testimonials-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.wj-testimonials-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.wj-testimonials-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.wj-testimonials-content h2 {
    text-align: center;
    color: #fff;
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.wj-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Card */
.wj-testimonial-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: none;
}

.wj-testimonial-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.wj-testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wj-testimonial-quote {
    color: #444;
    font-style: italic;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    flex: 1;
}

.wj-testimonial-quote::before {
    content: "\201C";
    font-size: 1.5em;
    color: #937100;
}

.wj-testimonial-quote::after {
    content: "\201D";
    font-size: 1.5em;
    color: #937100;
}

.wj-testimonial-attribution {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.wj-testimonial-name {
    font-weight: 600;
    color: #333;
    font-style: normal;
}

.wj-testimonial-role {
    color: #937100;
    font-size: 0.9rem;
}

/* Testimonials Responsive */
@media (max-width: 1023px) {
    .wj-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wj-testimonials {
        padding: 2.5rem 1rem;
    }

    .wj-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .wj-testimonials-content h2 {
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wj-testimonials-bg img {
        will-change: auto;
    }
}

/* ==========================================================================
   Daily Specials
   ========================================================================== */

/* Visually hidden - accessible to screen readers only */
.wj-specials .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wj-specials {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.specials-header {
    text-align: center;
    margin-bottom: 2rem;
}

.specials-header h2 {
    font-size: 2rem;
    color: #937100;
    margin-bottom: 0.5rem;
}

.specials-dates {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}

/* Day tabs navigation */
.specials-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.day-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid #937100;
    background: #fff;
    color: #937100;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.day-tab:hover {
    background: #f5f0e6;
}

.day-tab:focus {
    outline: 3px solid #000;
    outline-offset: 2px;
}

.day-tab:focus:not(:focus-visible) {
    outline: none;
}

.day-tab:focus-visible {
    outline: 3px solid #000;
    outline-offset: 2px;
}

.day-tab[aria-selected="true"],
.day-tab.active {
    background: #937100;
    color: #fff;
}

/* Day content */
.specials-day {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.day-header {
    color: #fff;
    background: #937100;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-header h3 {
    margin: 0;
    font-size: 1.5rem;
    text-transform: uppercase;
    color: #fff;
}

.day-hours {
    color: #fff;
    opacity: 0.9;
}

/* Focus styles for tab panels */
.specials-day:focus {
    outline: 3px solid #937100;
    outline-offset: -3px;
}

.specials-day:focus:not(:focus-visible) {
    outline: none;
}

.specials-day:focus-visible {
    outline: 3px solid #937100;
    outline-offset: -3px;
}

/* Specials sections */
.specials-section {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.specials-section:last-child {
    border-bottom: none;
}

.specials-section h4 {
    /* font-size: 0.85rem; */
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #937100;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #937100;
}

/* Menu items - using definition list for semantics */
.menu-items {
    margin: 0;
    padding: 0;
}

.special-item {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.special-item:last-child {
    margin-bottom: 0;
}

.item-name {
    font-weight: 600;
    /* font-size: 1.1rem; */
    color: #333;
    flex: 1;
}

.item-details {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
}

.item-price {
    font-weight: 600;
    color: #937100;
    white-space: nowrap;
    margin-left: auto;
}

.item-description {
    margin: 0;
    color: #666;
    /* font-size: 0.95rem; */
    line-height: 1.5;
    width: 100%;
    flex-basis: 100%;
}

/* All days view */
.specials-day-grouped {
    margin-bottom: 1.5rem;
}

.specials-day-grouped:last-child {
    margin-bottom: 0;
}

.specials-print-wrap {
    text-align: center;
    margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 600px) {
    .specials-header h2 {
        font-size: 1.4rem;
    }

    .specials-nav {
        gap: 0.25rem;
    }

    .day-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .day-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .special-item {
        flex-direction: column;
    }

    .item-details {
        flex-direction: column;
    }

    .item-price {
        margin-left: 0;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .day-tab,
    .wp-block-gallery img,
    .gallery img {
        transition: none;
    }
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.wj-faq {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.wj-faq-item {
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}

.wj-faq-item:first-child {
    padding-top: 0;
}

.wj-faq-item:last-child {
    border-bottom: none;
}

.wj-faq-question {
    color: #937100;
    font-size: 2rem;
    margin: 0 0 0.75rem 0;
}

.wj-faq-answer {
    color: #444;
    line-height: 1.7;
}

.wj-faq-answer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .wj-faq {
        padding: 1rem;
    }

    .wj-faq-question {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.wp-block-gallery figure,
.gallery .gallery-item {
    overflow: hidden;
}

.wp-block-gallery img,
.gallery img {
    transition: transform 0.3s ease;
}

.wp-block-gallery figure:hover img,
.gallery .gallery-item:hover img {
    transform: scale(1.05);
}

.oceanwp-mobile-menu-icon {
    margin-left: auto;
}

.page-header.has-featured-image {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
    padding: 0 !important;
}

.page-header.has-featured-image .page-header-inner {
    position: relative;
    z-index: 1;
}

.page-header.has-featured-image .page-header-title {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 1.25rem 2rem;
    display: inline-block;
}

.page-header.has-featured-image .site-breadcrumbs {
    background: rgba(0, 0, 0, 0.7);
    padding: 1.25rem 2rem;
}

.page-header.has-featured-image .site-breadcrumbs,
.page-header.has-featured-image .site-breadcrumbs a {
    color: #fff;
}

.page-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-header.has-featured-image .page-header-inner {
    align-items: flex-end;
}

.site-breadcrumbs {
    position: relative;
    top: unset;
    right: unset;
    margin: 0 0 0 auto;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   Mobile — Page Header & Breadcrumbs
   ========================================================================== */

@media (max-width: 768px) {
    .page-header.has-featured-image {
        min-height: 150px;
    }

    .page-header.has-featured-image .page-header-title {
        padding: 0.75rem 1rem;
        font-size: 1.2rem;
    }

    .page-header.has-featured-image .site-breadcrumbs {
        padding: 0.75rem 1rem;
    }

    .page-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header.has-featured-image .page-header-inner {
        align-items: flex-start;
    }

    .site-breadcrumbs {
        margin: 0;
    }
}