/* ============================================================
   Lovey Dovey Birdhouses — Shared Styles
   Closely matches the original Wix site design.
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
    color: #2f2e2e;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Outer wrapper to constrain width --- */
.site-wrapper {
    max-width: 980px;
    margin: 0 auto;
}

/* --- Header --- */
.site-header {
    display: flex;
    align-items: center;
    padding: 0;
}

.header-logo {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    margin-right: 16px;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-title {
    font-family: 'Corben', Georgia, serif;
    font-size: 58px;
    font-weight: 400;
    color: #207EA9;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex: 1;
    text-align: center;
}

/* --- Navigation Bar --- */
.site-nav-bar {
    padding: 0;
}

.site-nav {
    display: flex;
    border-bottom: none;
    width: 100%;
}

.site-nav a {
    display: block;
    flex: 1;
    text-align: center;
    font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 26px;
    font-weight: 400;
    color: #444444;
    background-color: #FFFFFF;
    padding: 0;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(65, 65, 65, 0.1);
    border-radius: 0px 0px 2px 2px;
    transition: background-color 0.2s, color 0.2s;
    letter-spacing: 0.3px;
}

.site-nav a:first-child {
    border-left: none;
}

.site-nav a:last-child {
    border-right: none;
}

.site-nav a:hover {
    background-color: #BAE9FF;
    color: #2F2E2E;
}

.site-nav a.active {
    background-color: #186080;
    color: #FFFFFF;
}

/* --- Page Banner (dark charcoal bar with linen texture) --- */
.page-banner {
    background: #3a3a3a url('../images/bg-slider.png') center / cover;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    border-radius: 5px 5px 0 0;
}

.page-banner h1 {
    font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: normal;
    color: #E8B972;
    letter-spacing: 0.5px;
}

/* --- Page Content --- */
.page-content {
    padding: 0 0 20px;
    background-color: #F2F2F2;
}

.page-heading {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 26px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    padding: 0 24px;
    letter-spacing: 0.5px;
}

/* --- Featured Gallery (large image + thumbnail strip) --- */
.gallery-featured {
    width: 100%;
    height: 500px;
    margin-bottom: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-featured-img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    background: #fff;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.gallery-thumbnails {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

.gallery-thumb {
    flex: 1;
    min-width: 0;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 0;
    filter: brightness(0.75);
    transition: filter 0.2s, border-color 0.2s;
}

.gallery-thumb:hover {
    filter: brightness(0.75);
}

.gallery-thumb.active {
    filter: brightness(1);
    border-color: #207EA9;
}

/* --- Image Gallery Grid (3 columns) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 40px;
    padding: 0;
}

.gallery-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3 / 2;
    background: #f0f0f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
    opacity: 0.9;
}

/* --- Photo Gallery captions --- */
.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.55));
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .caption {
    opacity: 1;
}

/* --- Lightbox --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.open {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 1002;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 1002;
    padding: 10px 16px;
    opacity: 0.6;
    transition: opacity 0.2s;
    line-height: 1;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.lightbox-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    z-index: 1002;
}

/* --- Body Text Section --- */
.body-text {
    max-width: 980px;
    margin: 0 auto;
    padding: 20px 16px 0;
    font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: normal;
    color: #2f2e2e;
}

.body-text p {
    margin-bottom: 16px;
}

.body-text a {
    color: #207EA9;
    text-decoration: underline;
    text-decoration-color: rgba(32, 126, 169, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

.body-text a:hover {
    text-decoration-color: #207EA9;
}

.body-text .section-label {
    font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #103F54;
    margin-top: 24px;
    margin-bottom: 4px;
    text-decoration: underline;
}

.body-text ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 16px;
}

.body-text ul li {
    padding-left: 18px;
    position: relative;
    margin-bottom: 6px;
}

.body-text ul li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: #605E5E;
}

.body-text ol {
    padding-left: 22px;
    margin-bottom: 16px;
}

.body-text ol li {
    margin-bottom: 8px;
}

/* --- Video Gallery --- */
.video-featured {
    margin-bottom: 20px;
    background: #000;
}

.video-featured video {
    width: 100%;
    display: block;
    max-height: 500px;
}

.video-featured .video-info {
    padding: 14px 16px;
    background: #111;
    color: #fff;
}

.video-featured .video-info h3 {
    font-size: 16px;
    font-weight: 600;
}

.video-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
}

.video-thumb {
    cursor: pointer;
    overflow: hidden;
    background: #000;
    transition: opacity 0.2s;
}

.video-thumb:hover { opacity: 0.85; }

.video-thumb-wrap {
    position: relative;
}

.video-thumb video,
.video-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.video-overlay-title {
    position: absolute;
    top: 6px;
    left: 8px;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.3;
    max-width: 85%;
}

.video-overlay-duration {
    position: absolute;
    bottom: 6px;
    left: 8px;
    color: #ddd;
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.video-thumb .video-info {
    display: none;
}

.video-thumb.active {
    outline: 2px solid #186080;
}

/* --- Home Page --- */
.home-hero {
    text-align: center;
    padding: 20px 0 40px;
}

.home-hero img {
    max-width: 400px;
    margin: 0 auto 30px;
}

.home-hero-text {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
    font-size: 15px;
    line-height: 1.75;
    color: #444;
    text-align: center;
}

.home-hero-text p { margin-bottom: 14px; }

.home-hero-text .signature {
    margin-top: 20px;
    font-style: italic;
    color: #666;
}

.product-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 700px;
    margin: 40px auto 0;
}

.product-card {
    text-align: center;
    transition: transform 0.2s;
}

.product-card:hover { transform: translateY(-3px); }

.product-card img {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 12px;
}

.product-card h3 {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    letter-spacing: 0.3px;
}

/* --- Nesting Page --- */
.nesting-section {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

.nesting-section h2 {
    font-size: 20px;
    color: #333;
    margin-top: 32px;
    margin-bottom: 12px;
}

.nesting-section .intro {
    font-size: 20px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.nesting-section p,
.nesting-section ul li {
    font-size: 15px;
    line-height: 1.75;
    color: #444;
}

.nesting-section ul {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 16px;
}

.nesting-section ul li { margin-bottom: 12px; }

.nesting-section img {
    max-width: 500px;
    margin: 16px auto 24px;
}

/* --- FAQ Page --- */
.faq-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.faq-tab {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.faq-tab:hover { background: #eee; }

.faq-tab.active {
    background: #186080;
    color: #fff;
    border-color: #186080;
}

.faq-category {
    display: none;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

.faq-category.active { display: block; }

.faq-item { border-bottom: 1px solid #e8e8e8; }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    cursor: pointer;
    font-size: 22px;
    font-weight: normal;
    color: #185f80;
}

.faq-question .icon {
    font-size: 18px;
    color: #999;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item.open .faq-question .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
}

.faq-item.open .faq-answer {
    max-height: 800px;
    padding-bottom: 18px;
}

.faq-answer p {
    font-size: 16px;
    line-height: 1.75;
    color: #555;
    margin-bottom: 10px;
}

.faq-answer a {
    color: #207EA9;
    text-decoration: underline;
}

.faq-answer ul {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 10px;
}

.faq-answer ul li {
    font-size: 16px;
    line-height: 1.75;
    color: #555;
    margin-bottom: 8px;
}

/* --- Footer --- */
.site-footer-bar {
    background: #3a3a3a url('../images/bg-slider.png') center / cover;
    height: 35px;
    border-radius: 0 0 5px 5px;
}

.site-footer {
    text-align: center;
    padding: 0px 0px 20px;
}

.site-footer a {
    display: inline-block;
    font-size: 24px;
    font-weight: 500;
    font-family: 'Raleway';
    color: #333;
    padding: 8px 28px;
    border: none;
    transition: all 0.2s;
}

.site-footer a:hover {
    background: #BAE9FF;
    color: #000;
    border-color: #BAE9FF;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .site-wrapper { padding: 0 10px; }

    .site-header { padding: 16px 0; }

    .header-logo {
        width: 100px;
        height: 100px;
        margin-right: 12px;
    }

    .header-title { font-size: 32px; }

    .site-nav { flex-wrap: wrap; }

    .site-nav a {
        font-size: 16px;
        padding: 8px 0;
    }

    .page-banner {
        padding: 0 16px;
        height: 50px;
    }

    .page-content { padding: 0 0 40px; }

    .page-heading {
        font-size: 22px;
        margin-bottom: 20px;
        padding: 0 16px;
    }

    .body-text { padding: 20px 16px 0; }

    .gallery-featured-img { max-width: 100%; }
    .gallery-featured { height: 450px; }

    .gallery-thumbnails { gap: 0; }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .product-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .home-hero img { max-width: 280px; }

    .video-sidebar { grid-template-columns: 1fr; }

    .lightbox-prev,
    .lightbox-next {
        font-size: 28px;
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .header-logo {
        width: 70px;
        height: 70px;
    }

    .header-title { font-size: 22px; }

    .site-nav a {
        font-size: 14px;
        padding: 6px 0;
    }

    .gallery-grid { grid-template-columns: 1fr; }
    .faq-tabs { gap: 4px; }

    .faq-tab {
        padding: 6px 12px;
        font-size: 13px;
    }
}