/*
Theme Name: Where The Waves Begin
Theme URI: https://wherethewavesbegin.com.au
Author: Strawny
Author URI: https://wherethewavesbegin.com.au
Description: Contemporary coastal art portfolio for Where The Waves Begin - Volume One by Strawny, featuring geometric artworks from NSW Mid North Coast beaches
Version: 3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wherethewavesbegin
*/

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== COLOR VARIABLES ===== */
:root {
    --ocean-deep: #0a3d5c;
    --ocean-mid: #1a7a8f;
    --wave-light: #2dbfb8;
    --sand: #f4e8d8;
    --sunset-orange: #f4a460;
    --white-foam: #ffffff;
    --text-dark: #2c3e50;
}

/* ===== TYPOGRAPHY ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white-foam);
}

/* ===== NAVIGATION ===== */
nav {
    background: var(--ocean-deep);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--white-foam);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-decoration: none;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--white-foam);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 300;
}

.nav-links a:hover {
    color: var(--wave-light);
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--wave-light);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* ===== HERO ===== */
.hero {
    height: 90vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-foam);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--wave-light);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    font-weight: 400;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: var(--ocean-mid);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ===== ABOUT ===== */
.about {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about h2 {
    font-size: 2.5rem;
    color: var(--ocean-deep);
    margin-bottom: 2rem;
    font-weight: 300;
    text-align: center;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.about-text p {
    margin-bottom: 1rem;
}

.about-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ===== GALLERY ===== */
.gallery {
    padding: 5rem 2rem;
    background: var(--sand);
}

.gallery h2 {
    font-size: 2.5rem;
    color: var(--ocean-deep);
    margin-bottom: 3rem;
    font-weight: 300;
    text-align: center;
}

.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10, 37, 64, 0.9));
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.gallery-overlay p {
    color: var(--wave-light);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===== SHOP ===== */
.shop {
    padding: 5rem 2rem;
}

.shop h2 {
    font-size: 2.5rem;
    color: var(--ocean-deep);
    margin-bottom: 1rem;
    font-weight: 300;
    text-align: center;
}

.shop-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.product-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.product-image {
    width: 100%;
    height: 300px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    color: var(--ocean-deep);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.product-info p {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.3rem;
    color: var(--ocean-mid);
    font-weight: 600;
    margin-bottom: 1rem;
}

.size-options {
    margin-bottom: 1rem;
}

.size-options label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.size-options select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--wave-light);
    border-radius: 5px;
    font-size: 0.9rem;
}

.add-to-cart {
    width: 100%;
    padding: 0.8rem;
    background: var(--ocean-mid);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: var(--ocean-deep);
}

/* ===== CONTACT ===== */
.contact {
    padding: 5rem 2rem;
    background: var(--ocean-deep);
    color: white;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 300;
    text-align: center;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    color: var(--wave-light);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 1rem;
    background: var(--wave-light);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: var(--ocean-mid);
}

/* ===== FOOTER ===== */
footer {
    background: var(--ocean-deep);
    color: white;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--ocean-mid);
}

footer p {
    margin-bottom: 0.5rem;
}

/* ===== CART MODAL ===== */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.cart-modal.active {
    display: flex;
}

.cart-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--sand);
}

.cart-header h2 {
    color: var(--ocean-deep);
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--sand);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--ocean-mid);
    border-radius: 5px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    color: var(--ocean-deep);
    margin-bottom: 0.25rem;
}

.cart-total {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--ocean-deep);
    font-size: 1.3rem;
    font-weight: 600;
    text-align: right;
    color: var(--text-dark);
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--ocean-deep);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.checkout-btn:hover {
    background: var(--ocean-mid);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}

html {
    scroll-behavior: smooth;
}
