/* Plantation Cafe x Roastery - Main Stylesheet */

:root {
    --primary-color: #3d3d3d;
    --secondary-color: #8b7355;
    --accent-color: #c9a86c;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #fff;
    --light-bg: #f8f8f8;
    --border-color: #e0e0e0;
    --header-height: 70px;
    --font-primary: 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: Georgia, serif;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

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

ul {
    list-style: none;
}

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

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    height: var(--header-height);
}

.header-top {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    letter-spacing: 1px;
}

.header-top a {
    color: #fff;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: calc(var(--header-height) - 32px);
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.logo span {
    font-weight: normal;
    color: var(--secondary-color);
}

/* Navigation */
nav ul {
    display: flex;
    gap: 30px;
}

nav li {
    position: relative;
}

nav a {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    transition: color 0.3s;
    display: block;
    padding: 10px 0;
}

nav a:hover {
    color: var(--accent-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    padding: 12px 20px;
    font-size: 12px;
    text-transform: none;
}

/* Header Icons */
.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-icons a {
    font-size: 14px;
    color: var(--text-color);
}

.search-btn, .cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Main Content */
main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) - 400px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    text-align: center;
    color: #fff;
    z-index: 1;
    padding: 20px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 18px;
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-color);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background: var(--secondary-color);
}

.btn-outline {
    background: transparent;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary-color);
}

/* Section Styles */
.section {
    padding: 80px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--light-text);
    font-size: 14px;
    letter-spacing: 1px;
}

/* Bilingual Section */
.bilingual-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.lang-en, .lang-th {
    padding: 30px;
}

.lang-en {
    border-right: 1px solid var(--border-color);
}

.lang-th {
    direction: rtl;
}

.lang-th p, .lang-th h3, .lang-th h4 {
    direction: ltr;
    text-align: left;
}

.lang-label {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 5px 15px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

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

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 10px;
}

.product-price {
    color: var(--accent-color);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

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

.feature-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.feature-item p {
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.8;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.blog-card {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
}

.blog-card img {
    width: 200px;
    height: 150px;
    object-fit: cover;
}

.blog-content h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
}

.blog-meta {
    font-size: 12px;
    color: var(--light-text);
    margin-bottom: 10px;
}

.blog-content p {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.6;
}

/* Menu Styles */
.menu-section {
    margin-bottom: 60px;
}

.menu-category {
    text-align: center;
    margin-bottom: 40px;
}

.menu-category h3 {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.menu-items {
    max-width: 800px;
    margin: 0 auto;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px dotted var(--border-color);
}

.menu-item-name {
    font-size: 16px;
}

.menu-item-price {
    font-size: 16px;
    color: var(--accent-color);
    font-weight: bold;
}

.menu-item-desc {
    font-size: 13px;
    color: var(--light-text);
    margin-top: 5px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-info p {
    margin-bottom: 15px;
    color: var(--light-text);
}

.contact-info strong {
    color: var(--text-color);
}

.map-container {
    width: 100%;
    height: 400px;
    margin-top: 40px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Atmosphere Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
    padding: 60px 30px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    font-size: 13px;
    color: var(--light-text);
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--light-text);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/* Newsletter */
.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    font-size: 13px;
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bilingual-section {
        grid-template-columns: 1fr;
    }
    
    .lang-en {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-color);
        transition: left 0.3s;
        overflow-y: auto;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 30px;
        gap: 0;
    }
    
    nav li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card {
        flex-direction: column;
    }
    
    .blog-card img {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 50px 20px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* Shopee Product Section */
.shopee-section {
    background: var(--light-bg);
    padding: 60px 30px;
}

.shopee-section .section-title {
    margin-bottom: 40px;
}

.shopee-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ee4d2d;
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 30px;
}

.shopee-link:hover {
    background: #d73211;
}
