﻿@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Raleway:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors */
    --primary: #D48806;
    --primary-light: #FFB300;
    --primary-dark: #A67C00;
    --secondary: #F59E0B;
    --accent: #2E7D32;
    --bg: #FFFDF5;
    --white: #FFFFFF;
    --text: #2D1A12;
    --text-muted: #5D4037;
    --glass-bg: rgba(255, 253, 245, 0.8);
    --glass-border: rgba(212, 136, 6, 0.2);

    /* Fonts */
    --font-heading: 'Lora', serif;
    --font-body: 'Raleway', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    overflow-wrap: break-word;
    word-break: normal;
    line-break: strict;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('page_bg.png') no-repeat center center;
    background-size: cover;
    opacity: 0.15; /* Adjust transparency here */
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

.nobrk {
    display: inline-block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(255,253,245,0.7), rgba(255,253,245,0.7)), url('產品4.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    max-width: 700px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease 0.2s;
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--text);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(212, 136, 6, 0.2);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 136, 6, 0.3);
}

/* --- About Section --- */
.about {
    padding: var(--section-padding);
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.highlight-box {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    font-weight: 500;
}

/* --- Products Section --- */
.products {
    padding: var(--section-padding);
    background: var(--bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 136, 6, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image-container {
    height: 300px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: #F8FAFC;
}

.product-image-container img {
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.product-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

.propolis-card {
    border-bottom: 4px solid var(--accent);
}

.honey-card {
    border-bottom: 4px solid var(--primary);
}

/* --- Process Section --- */
.process {
    padding: var(--section-padding);
    background: var(--white);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--bg);
    border: 2px solid var(--primary);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    font-family: var(--font-heading);
}

/* --- Footer --- */
footer {
    padding: 80px 0 40px;
    background: var(--text);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #A1A1AA;
}

.contact-info li a:hover {
    color: var(--primary);
}

.line-qr {
    margin-top: 30px;
    text-align: left;
}

.line-qr a {
    display: block;
    width: fit-content;
}

.line-content-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.line-text-group p, 
.line-text-group .line-url {
    display: block;
    margin-left: 0;
}

.line-qr img {
    display: block;
    width: 100px; /* Slightly smaller for side-by-side */
    height: auto;
    border-radius: 10px;
    border: 4px solid var(--white);
    background: var(--white);
    transition: all 0.3s ease;
}

.line-qr a:hover img {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.line-text-group p {
    font-size: 0.85rem;
    color: #A1A1AA;
    margin-bottom: 5px;
}

.line-qr a:hover p, .line-qr a:hover .line-url {
    color: var(--primary);
}

.line-url {
    display: block;
    font-size: 0.85rem;
    color: #A1A1AA;
    transition: color 0.3s ease;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #3F3F46;
    color: #71717A;
    font-size: 0.85rem;
}

/* --- Certifications Section --- */
.certifications {
    padding: var(--section-padding);
    background-color: var(--bg);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.cert-card {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(212, 136, 6, 0.08);
    border-color: rgba(212, 136, 6, 0.4);
}

.cert-image-wrapper {
    position: relative;
    height: 380px;
    background: #fdfdfd;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cert-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cert-card:hover .cert-image-wrapper img {
    transform: scale(1.05);
}

.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 26, 18, 0.6);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.cert-overlay span {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid var(--white);
    border-radius: 30px;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.cert-card:hover .cert-overlay {
    opacity: 1;
}

.cert-card:hover .cert-overlay span {
    transform: translateY(0);
}

.cert-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cert-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.sgs-tag {
    background-color: rgba(212, 136, 6, 0.1);
    color: var(--primary-dark);
}

.coa-tag {
    background-color: rgba(46, 125, 50, 0.1);
    color: var(--accent);
}

.cert-info h3 {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.cert-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.cert-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #8C7B75;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    padding-top: 15px;
    margin-top: auto;
}

/* --- Lightbox Modal --- */
.cert-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(45, 26, 18, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.cert-modal.show {
    display: flex;
    opacity: 1;
}

.modal-content-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: zoom-in;
}

.cert-modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: fixed;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2010;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-caption {
    margin-top: 20px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 25px;
    border-radius: 30px;
    letter-spacing: 0.5px;
}

/* Zoomed Mode Styles */
.cert-modal.zoomed-mode {
    align-items: flex-start;
    padding: 80px 20px 40px;
    overflow: auto;
}

.cert-modal.zoomed-mode .modal-content-container {
    max-width: 95%;
    max-height: none;
    width: fit-content;
}

.cert-modal.zoomed-mode .modal-content {
    max-height: none;
    max-width: none;
    width: 1200px;
    cursor: zoom-out;
    transform: scale(1);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1200px) {
    .cert-modal.zoomed-mode .modal-content {
        width: 1000px;
    }
}

@media (max-width: 768px) {
    .cert-modal.zoomed-mode {
        padding: 70px 10px 30px;
    }
    .cert-modal.zoomed-mode .modal-content {
        width: 750px;
        max-width: none;
    }
}

/* Certifications Responsive adjustments */
@media (max-width: 992px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .cert-image-wrapper {
        height: 340px;
    }
    .modal-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
}

/* --- Product Pricing Styling --- */
.product-price-list {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed rgba(212, 136, 6, 0.2);
    text-align: left;
    margin-top: auto;
}

.product-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.product-price-item:last-child {
    margin-bottom: 0;
}

/* Prevent awkward text wrapping on tags, prices and meta elements */
.price-value,
.price-single,
.price-special,
.price-original-del,
.cert-tag,
.cert-meta span,
.line-url {
    white-space: nowrap;
}

.price-label {
    font-weight: 500;
    color: var(--text-muted);
}

.price-value {
    font-weight: 700;
    color: var(--primary-dark);
    font-family: var(--font-heading);
}

.price-single {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed rgba(212, 136, 6, 0.2);
    text-align: center;
    font-family: var(--font-heading);
}

.price-single span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-right: 5px;
}

.price-promo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
}

.price-original-del {
    text-decoration: line-through;
    color: #A1A1AA;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.price-special {
    font-size: 1.6rem;
    font-weight: 700;
    color: #B91C1C;
    font-family: var(--font-heading);
}

.price-special span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-right: 5px;
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .process-steps {
        flex-direction: column;
    }
    .hero {
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}


/* --- Privacy Policy Modal --- */
.privacy-box {
    background-color: var(--white);
    padding: 35px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2005;
}

.cert-modal.show .privacy-box {
    transform: scale(1);
}

.privacy-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    font-family: var(--font-heading);
}

.privacy-box h4 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.privacy-box p, .privacy-box li {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: left;
}

.privacy-box ul {
    padding-left: 20px;
    margin-bottom: 15px;
}
