:root {
    --color-sage: #778899;
    --color-slate: #2F4F4F;
    --color-olive: #556B2F;
    --color-stone: #A9A9A9;
    --color-off-white: #FAF9F6;
    --color-text-dark: #333333;
    --color-text-light: #666666;
    --color-accent-wood: #8B5A2B;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    --spacing-section: 6rem;
    --spacing-container: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-off-white);
    color: var(--color-text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--color-slate);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--color-olive);
}

p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    background-color: var(--color-off-white);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-slate);
    letter-spacing: 0.05em;
}

.sub-logo {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--color-sage);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-left: 0.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-dark);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-olive);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a.active::after {
    width: 100%;
}

.hero {
    position: relative;
    height: 85vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) saturate(0.9);
}

.hero-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content h1 {
    color: #fff;
    font-size: 4rem;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.9);
}

.intro {
    padding: var(--spacing-section) 5%;
    text-align: center;
    background-color: var(--color-off-white);
}

.intro .container {
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    padding: 0 5% var(--spacing-section);
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.grid-item {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.grid-item.reverse {
    flex-direction: row-reverse;
}

.image-wrapper {
    flex: 1.2;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
}

.grid-item:hover .image-wrapper img {
    transform: scale(1.03);
}

.content-wrapper {
    flex: 1;
    padding: 2rem;
}

.content-wrapper h3 {
    position: relative;
    display: inline-block;
}

.content-wrapper h3::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-sage);
}

.cta-section {
    background-color: var(--color-slate);
    color: #fff;
    padding: var(--spacing-section) 5%;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: #fff;
}

.cta-content p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
}

.btn-text {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding-bottom: 5px;
}

.btn-text:hover {
    border-bottom-color: #fff;
}

/* Make .btn-text work for buttons as well as anchors */
button.btn-text {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

button.btn-text:focus {
    outline: none;
}

/* Ensure link-style buttons never look like native <button> */
button.btn-text {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    line-height: inherit;
    color: inherit;
}

/* Optional: keep underline/border visible also on white backgrounds */
.content-wrapper .btn-text {
    border-bottom-color: rgba(0,0,0,0.25);
}

.content-wrapper .btn-text:hover {
    border-bottom-color: rgba(0,0,0,0.6);
}

footer {
    background-color: #222;
    color: #888;
    padding: 2rem 5%;
    text-align: center;
    font-size: 0.85rem;
}

.chat-bubble-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.chat-bubble-container:hover {
    transform: translateY(-5px);
}

.chat-bubble-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-olive);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    animation: fadeIn 0.3s;
}

.chat-header {
    background-color: var(--color-slate);
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
}

.close-chat {
    cursor: pointer;
    font-size: 1.5rem;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #f9f9f9;
}

.message {
    max-width: 80%;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.message.user {
    align-self: flex-end;
    background-color: var(--color-slate);
    color: #fff;
}

.message.system {
    align-self: flex-start;
    background-color: #e9e9e9;
    color: #333;
}

.message ul {
    margin-left: 1.2rem;
    margin-top: 0.5rem;
}

.chat-input-area {
    padding: 1rem;
    background-color: #fff;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
}

.chat-input-area input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    outline: none;
}

.chat-input-area input:focus {
    border-color: var(--color-slate);
}

.chat-input-area button {
    background-color: var(--color-olive);
    color: #fff;
    border: none;
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.chat-input-area button svg {
    display: block;
}

.chat-input-area button:hover {
    background-color: var(--color-slate);
}

.shop-container {
    padding: var(--spacing-section) 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.category-section {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-stone);
    padding-bottom: 0.5rem;
    color: var(--color-slate);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-image {
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

.product-price {
    color: var(--color-olive);
    font-weight: bold;
    margin-top: auto;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    position: relative;
    animation: fadeIn 0.3s;
}

.cart-content {
    max-width: 500px;
    margin: 5% auto 5% auto;
    right: 0; 
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal, .close-cart {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover, .close-cart:hover {
    color: #000;
}

.product-detail-grid {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.product-image-large {
    flex: 1;
    background-color: #f0f0f0;
}

.product-image-large img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info-large {
    flex: 1;
}

.btn-primary {
    background-color: var(--color-slate);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--color-olive);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item-info h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
}

.cart-item-price {
    color: var(--color-olive);
}

.cart-footer {
    margin-top: 2rem;
    border-top: 2px solid var(--color-slate);
    padding-top: 1rem;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: right;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .product-detail-grid {
        flex-direction: column;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .grid-item, .grid-item.reverse {
        flex-direction: column;
        gap: 2rem;
    }
    
    .image-wrapper {
        width: 100%;
    }
    
    .content-wrapper {
        padding: 0;
        text-align: center;
    }
    
    .content-wrapper h3::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Info Section Styles */
.info-section {
    padding: var(--spacing-section) 5%;
    background-color: #fff;
    text-align: center;
}

.info-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.info-card {
    flex: 1;
    min-width: 280px;
    padding: 2rem;
    background-color: var(--color-off-white);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-slate);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.chat-form {
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.chat-form h4 {
    margin-bottom: 0.8rem;
    color: var(--color-slate);
    font-size: 1rem;
}

.form-group {
    margin-bottom: 0.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    color: #666;
    font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.chat-form button {
    width: 100%;
    padding: 0.6rem;
    background-color: var(--color-olive);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.chat-form button:hover {
    background-color: var(--color-slate);
}

.chat-form.submitted button {
    background-color: #ccc;
    cursor: default;
}

.chat-form.submitted input,
.chat-form.submitted textarea {
    background-color: #f9f9f9;
    color: #888;
    pointer-events: none; /* Disable interaction */
}

/* Contact details (CTA section) */
.contact-details {
    margin: 1.5rem 0 2rem 0;
    display: grid;
    gap: 0.5rem;
}

.cta-section .contact-details p {
    margin: 0;
    color: rgba(255,255,255,0.9);
}

.cta-section .contact-details a {
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.4);
}

.cta-section .contact-details a:hover {
    border-bottom-color: #fff;
}

/* Chat contact cards */
.chat-contact-cards {
    display: grid;
    gap: 0.5rem;
}

.chat-contact-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem;
}

.chat-contact-card .title {
    font-weight: 600;
    color: var(--color-slate);
    margin-bottom: 0.25rem;
}

.chat-contact-card a {
    display: inline-block;
    margin-top: 0.25rem;
    color: var(--color-slate);
    border-bottom: 1px solid rgba(0,0,0,0.2);
}

.chat-contact-card a:hover {
    border-bottom-color: rgba(0,0,0,0.6);
}