/* =========================================
   UNIVERSAL BOX SIZING & SCROLL FIX
   ========================================= */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Corrected Google Fonts Import */
@import url('https://fonts.googleapis.com/css?family=Open+Sans|Tangerine|Pinyon+Script');

@font-face {
    font-family: 'Pinyon Script';
    src: url('/fonts/pinyonscript-regular-webfont.woff2') format('woff2'),
         url('/fonts/pinyonscript-regular-webfont.woff') format('woff'),
         url('/fonts/PinyonScript-Regular.ttf');
    font-weight: normal;
    font-style: normal;
}

html { 
    font-size: 62.5%; 
}

/* =========================================
   DEFAULT STYLES (Desktop)
   ========================================= */
body {
    font: normal 1.4rem 'Open Sans', arial, sans-serif;
    background-image: linear-gradient(141deg, #F9F9F7 0%, #E8EBE6 51%, #D5D9D2 75%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    width: 100%;
    padding: 30px 20px 60px 20px; 
}

a:link, a:visited, a:hover, a:active {
    color: #fff;
    text-decoration: none;
}

/* =========================================
   LOGO
   ========================================= */
#logo {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto 30px auto; 
    text-align: center;
    font-family: 'Pinyon Script';
    font-size: 10rem;
    color: #FFF;
}

#logo img {
    height: auto;
    width: 20%;
    vertical-align: middle;
}
#logo a:link, #logo a:visited, #logo a:hover, #logo a:active {
    color: rgb(11, 107, 128);
}

/* =========================================
   WELCOME SECTION & PRODUCTS
   ========================================= */
#welcome-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.welcome-intro {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #111111; 
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px; 
    padding: 10px; 
    text-align: left;
}

.product-card {
    padding: 2.5rem; 
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.85);
}

.product-card h2 {
    font-size: 2rem;
    color: #4A5D4E; 
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.product-card h2 a:link, 
.product-card h2 a:visited, 
.product-card h2 a:hover, 
.product-card h2 a:active {
    text-decoration: none;
    font-size: 2rem;
    color: #4A5D4E; 
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.product-card p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #1a1a1a;
    margin: 0;
}

/* =========================================
   STORE WRAPPER
   ========================================= */
.store-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    background: rgba(255, 255, 255, 0.5); 
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* =========================================
   MODAL (POPUP) STYLES
   ========================================= */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
    backdrop-filter: blur(5px);
}
.modal-content {
    background-color: #fcfbf9;
    margin: 10% auto; 
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-btn:hover, .close-btn:focus {
    color: #333;
    text-decoration: none;
}
.modal-content h2 {
    margin-top: 0;
    color: #4A5D4E;
    font-size: 2rem;
    border-bottom: none;
    text-align: left;
}
.modal-content ul {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #1a1a1a;
    padding-left: 20px;
}
.modal-content li {
    margin-bottom: 10px;
}

/* =========================================
   NAVIGATION MENU
   ========================================= */
nav {
    text-align: center;
    margin-bottom: 30px;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}
nav ul li {
    margin: 0;
}
nav ul li a {
    display: block;
    padding: 12px 24px;
    font-size: 1.6rem;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s ease;
}
nav ul li a:hover {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}

.copyright {
    text-align:center;
}
/* =========================================
   PHONE STYLES ONLY
   ========================================= */
@media screen and (max-width: 768px) {
    body {
        font: normal 1.6rem 'Open Sans', arial, sans-serif;
        padding: 10px 10px 30px 10px;
    }

    #logo {
        width: 100%;
        margin-left: 0;
        font-size: 3.6rem; 
        line-height: 1.2;
    }
    
    #logo img {
        width: 50%;
        display: block;
        margin: 0 auto 10px auto;
    }

    #welcome-section {
        padding: 20px 15px; 
    }

    .welcome-intro {
        font-size: 1.8rem; 
    }

    .product-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
        padding: 0;
    }

    .product-card {
        padding: 2rem 1.5rem; 
        background: rgba(255, 255, 255, 0.85);
    }
    
    .product-card h2 {
        font-size: 2.2rem; 
    }
    
    .product-card p {
        font-size: 1.6rem; 
    }

    .product-card:hover,
    .product-card:active {
     background-color: transparent; 
    }

    .store-container {
        padding: 15px;
        overflow-x: hidden; 
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        border-radius: 8px;
        overflow: hidden;
    }
    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    nav ul li:last-child {
        border-bottom: none;
    }
    nav ul li a {
        padding: 15px 20px;
        border-radius: 0;
    }
    nav ul li a:hover {
        border-radius: 0;
    }

}
