/* =================================================================
   Waiola Life - CSS Styles (Original Look)
   ================================================================= */

/* CSS Variables */
:root {
    --navy: #222944;
    --white: #ffffff;
    --gray-light: #e5e5e5;
    --gray: #777777;
    --gray-dark: #444444;
    --text-color: #333333;
    --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    font-size: 16px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    height: 100%;
    width: 100%;
}

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

a {
    color: var(--navy);
    text-decoration: underline;
    transition: color 0.3s ease;
    cursor: pointer;
}

a:hover {
    color: var(--gray);
}

ul, li {
    list-style: none;
}

/* =================================================================
   Header & Navigation
   ================================================================= */
.main-header {
    background-color: var(--navy);
    height: 50px;
    min-width: 1000px;
    position: relative;
    z-index: 100;
}

.nav-container {
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.logo a {
    display: flex;
    align-items: center;
    padding-top: 3px;
}

.logo img {
    height: auto;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    margin-top: 0;
}

.nav-links li {
    display: inline;
    padding-right: 40px;
}

.nav-links li:last-child {
    padding-right: 0;
}

.nav-links a {
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #999999;
}

/* Japan Link */
#jp {
    position: absolute;
    top: 60px;
    right: 40px;
    z-index: 50;
}

#jp img {
    width: auto;
    height: auto;
}

/* =================================================================
   Home Page Styles
   ================================================================= */
body.home {
    background: url('../images/waiola_desk_large.jpg') no-repeat center center;
    background-size: cover;
    background-color: var(--gray-light);
    background-attachment: fixed;
    min-height: 100vh;
}

.home-main {
    min-height: calc(100vh - 50px);
    display: flex;
    align-items: center;
    justify-content: center;
}

#contents {
    width: 1000px;
    height: 450px;
    text-align: center;
    position: relative;
}

#imagearea {
    height: 430px;
    text-align: center;
    margin: 0 170px;
    display: block;
    overflow: visible;
    position: relative;
}

/* Left Column */
#left {
    float: left;
    margin-left: 15px;
    padding-top: 20px;
}

#ambassadors {
    width: 165px;
    height: 160px;
    margin-left: 10px;
}

#news {
    text-align: center;
    position: absolute;
    bottom: 75px;
    left: 52px;
}

/* Center Column */
#center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 208px;
}

#bottle {
    text-align: center;
}

#bottle img {
    max-height: 400px;
    width: auto;
}

/* Right Column */
#right {
    float: right;
    padding-top: 30px;
    width: 200px;
}

#shop {
    float: right;
    width: 162px;
    height: 153px;
    margin-right: 10px;
}

#products {
    float: right;
    width: 200px;
    height: 200px;
    margin-right: 10px;
    margin-top: 20px;
    clear: both;
}

/* Hover Animations */
.turn:hover img {
    animation: wobble 0.7s ease;
}

.news:hover img {
    animation: newsWobble 0.5s ease;
}

@keyframes wobble {
    0% { transform: rotate(-1deg); }
    20% { transform: rotate(3deg); }
    40% { transform: rotate(-3deg); }
    60% { transform: rotate(3deg); }
    80% { transform: rotate(-3deg); }
    100% { transform: rotate(0deg); }
}

@keyframes newsWobble {
    0% { transform: translateY(0); }
    20% { transform: translateY(2px); }
    40% { transform: rotate(-1deg) translateY(-2px); }
    60% { transform: translateY(2px); }
    80% { transform: rotate(1deg) translateY(-2px); }
    100% { transform: rotate(0deg); }
}

/* Home Footer */
#footer {
    text-align: center;
    width: 100%;
    margin-top: 20px;
    position: absolute;
    bottom: 0;
}

#footer .panel {
    width: 400px;
    margin: 0 auto;
}

#footer .copyright {
    font-size: 14px;
    color: var(--gray);
    font-style: italic;
}

/* =================================================================
   Inner Page Styles
   ================================================================= */
body.inner-page {
    background: url('../images/waiola_desk_large.jpg') no-repeat center center fixed;
    background-size: cover;
    background-color: var(--gray-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.inner-page main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.page-container {
    background-color: var(--white);
    max-width: 900px;
    width: 100%;
    padding: 40px 60px;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-header span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--navy);
    text-transform: uppercase;
}

.content-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.content-cell {
    padding: 20px 0;
}

.body-copy {
    color: var(--gray);
    font-size: 12px;
    line-height: 18px;
}

.body-copy p {
    margin-bottom: 15px;
}

.body-copy strong {
    color: var(--navy);
    font-weight: 700;
}

.body-copy a {
    color: var(--navy);
    text-decoration: underline;
}

.running-copy {
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray);
}

/* =================================================================
   Products Page
   ================================================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.product-item {
    text-align: center;
}

.product-item img {
    max-width: 200px;
    margin: 0 auto 20px;
}

.product-header {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--navy);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.product-item .running-copy {
    font-size: 12px;
    line-height: 1.7;
    text-align: left;
}

/* =================================================================
   Footer (Inner Pages)
   ================================================================= */
.main-footer {
    background-color: var(--white);
    margin-top: auto;
}

.footer-stripes {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 15px;
}

.stripe {
    height: 4px;
    background-color: var(--navy);
}

.footer-content {
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 128px;
    height: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-links a {
    display: inline-block;
}

.social-links img {
    width: auto;
    height: auto;
    transition: opacity 0.3s ease;
}

.social-links a:hover img {
    opacity: 0.7;
}

/* =================================================================
   Responsive Styles
   ================================================================= */
@media (max-width: 1024px) {
    body.home {
        min-width: 100%;
    }

    .main-header {
        min-width: 100%;
    }

    #contents {
        width: 100%;
        max-width: 1000px;
        padding: 0 20px;
    }

    #imagearea {
        margin: 0 50px;
    }

    #jp {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    #imagearea {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0;
        height: auto;
    }

    #left, #right {
        float: none;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        width: 100%;
        padding: 10px 0;
    }

    #center {
        position: relative;
        left: auto;
        transform: none;
        order: -1;
    }

    #news {
        position: relative;
        bottom: auto;
        left: auto;
    }

    #ambassadors {
        margin-left: 0;
    }

    #shop, #products {
        float: none;
        margin: 0;
    }

    #bottle img {
        max-height: 280px;
    }

    #jp {
        display: none;
    }

    .page-container {
        padding: 30px 25px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 480px) {
    #left, #right {
        flex-wrap: wrap;
    }

    #bottle img {
        max-height: 220px;
    }

    #ambassadors img,
    #news img,
    #shop img,
    #products img {
        max-width: 100px;
    }

    .page-container {
        padding: 20px 15px;
    }
}
