/*
 Theme Name: Niche Ops Theme
 Theme URI: https://www.nicheops.com
 Author: Your Name
 Author URI: https://www.nicheops.com
 Description: A custom theme for Niche Ops self-sustainable retreats.
 Version: 1.0
 Text Domain: nicheops
*/

body {
    font-family: 'Arial', sans-serif;
    background: none;
    background-color: #0a1c2b; /* Fallback background color */
    min-height: 100vh;
    color: #fff;
    margin: 0;
    position: relative;
    overflow-x: hidden; /* Prevent horizontal overflow causing gaps */
}

body::before {
    content: '';
    position: fixed; /* Fixed position to keep background static */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://nicheops.com/wp-content/uploads/2025/04/image-2.jpg') center/contain no-repeat;
    background-color: rgba(0, 0, 0, 0.3); /* Dark overlay */
    z-index: 0;
}

header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 40px 20px !important;
    min-height: 100px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    position: relative !important;
    z-index: 1 !important;
    border-radius: 15px; /* Rounded corners */
    margin: 20px; /* Space to show rounded corners */
}

.logo {
    font-size: 36px;
    font-family: 'Playfair Display', serif; /* Elegant, sophisticated font */
    font-weight: 700; /* Bold for prominence */
    letter-spacing: 1px; /* Slight spacing for elegance */
    line-height: 1; /* Tighten line height for better appearance */
}

.logo a {
    text-decoration: none;
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Simplified shadow */
}

.logo .tm-symbol {
    font-size: 40%;
    vertical-align: super;
    text-shadow: none; /* Remove shadow from tm-symbol */
    font-family: 'Playfair Display', serif; /* Keep font consistent */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

nav ul li a:hover {
    color: #ff0000;
    text-shadow: 1px 1px 3px rgba(255, 77, 77, 0.5);
}

.hero {
    margin-bottom: 40px;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    padding: 40px;
    width: 100%; /* Ensure it spans the parent container */
    box-sizing: border-box;
    border-radius: 15px; /* Rounded corners */
    margin: 0 20px; /* Space to show rounded corners */
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero img.bowtie-logo {
    max-width: 250px;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 1s ease-in-out;
}

.hero img.bowtie-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.hero h1 {
    font-size: 48px;
    color: #000000;
    text-transform: capitalize;
    text-shadow: 1px 1px 0 #ffffff, -1px -1px 0 #ffffff, 1px -1px 0 #ffffff, -1px 1px 0 #ffffff;
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 15px; /* Add rounded corners */
    margin: 20px auto; /* Adjust margin to show rounded corners */
    box-sizing: border-box; /* Ensure padding is included in width */
}

main h2 {
    font-size: 32px;
}

main p {
    font-size: 18px;
}

article {
    padding: 20px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
}

.retreats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    padding: 20px;
}

.retreat-item {
    padding: 15px;
    border-left: 4px solid #ff0000;
    background: rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

header a, nav a, h1, h2, h3, h4, h5, h6, p {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    body::before {
        background: url('https://nicheops.com/wp-content/uploads/2025/04/image-2.jpg') center/contain no-repeat;
        background-color: rgba(0, 0, 0, 0.3); /* Ensure overlay persists */
    }

    header {
        flex-direction: column;
        width: 100vw; /* Full viewport width */
        padding: 30px 0 !important; /* Remove horizontal padding, keep vertical */
        min-height: 120px !important;
        margin: 0; /* Override default margin for mobile */
        box-sizing: border-box; /* Ensure padding is included in width */
        border-radius: 0; /* Remove rounded corners on mobile for full-width effect */
    }

    .hero {
        width: 100vw; /* Full viewport width */
        padding: 40px 0; /* Remove horizontal padding, keep vertical */
        margin: 0; /* Override default margin for mobile */
        box-sizing: border-box; /* Ensure padding is included in width */
        position: relative;
        left: 0; /* Ensure no offset */
        border-radius: 0; /* Remove rounded corners on mobile for full-width effect */
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px; /* Add padding to content inside hero to prevent edge-to-edge text */
        box-sizing: border-box;
        width: 100%; /* Ensure content spans full width of parent */
    }

    main {
        width: 100%;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0; /* Override default margin for mobile */
        border-radius: 0; /* Remove rounded corners on mobile for full-width effect */
    }

    .logo {
        font-size: 32px;
        font-family: 'Playfair Display', serif; /* Ensure font applies on mobile */
        letter-spacing: 1px;
        line-height: 1;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    main h2 {
        font-size: 28px;
    }

    main p {
        font-size: 16px;
    }

    article {
        width: 100%;
        max-width: 100%;
    }
}