/* ===================================
   Life at Home™ - Premium Stylesheet
   =================================== */

/* CSS Variables - Easy Color Customization */
:root {
    /* Color Palette */
    --primary-beige: #f5f0e6;
    --primary-cream: #e8e0d0;
    --deep-forest-green: #2d4a3e;
    --matte-black: #1a1a1a;
    --subtle-gold: rgba(212, 175, 55, 0.8);
    --gold-highlight: #d4af37;
    --text-dark: #1a1a1a;
    --text-light: #4a4a4a;
    --white: #ffffff;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 80px rgba(0, 0, 0, 0.2);
    
    /* Spacing */
    --section-padding: 8rem 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-sm: all 0.2s ease;
    --transition-md: all 0.4s ease;
    --transition-lg: all 0.6s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Merriweather', serif;
    color: var(--text-dark);
    background-color: var(--primary-beige);
    line-height: 1.7;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--matte-black);
}

h1 { font-size: 4rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1.5rem; }
a { text-decoration: none; color: inherit; transition: var(--transition-sm); }

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition-sm);
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--deep-forest-green);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #1e352d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--matte-black);
    border: 2px solid var(--matte-black);
}

.btn-secondary:hover {
    background-color: var(--matte-black);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-add {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-beige);
    color: var(--deep-forest-green);
    border: 2px solid var(--deep-forest-green);
    margin-top: 1rem;
}

.btn-add:hover {
    background-color: var(--deep-forest-green);
    color: var(--white);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-md);
}

.header.sticky {
    background-color: rgba(245, 240, 230, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    transition: var(--transition-sm);
}

.logo:hover {
    color: var(--deep-forest-green);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--deep-forest-green);
    transition: var(--transition-sm);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--deep-forest-green);
}

.cart-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.cart-icon {
    font-size: 1.25rem;
}

.cart-count {
    background-color: var(--deep-forest-green);
    color: var(--white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.established-tag {
    position: fixed;
    bottom: 0.75rem;
    right: 2rem;
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 1px;
    z-index: 999;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('https://images.unsplash.com/photo-1600596542815-e474f3773683?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: 0 1rem;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero-headline {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero-headline sup {
    font-size: 2rem;
}

.hero-subheadline {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Products Section */
.products-section {
    padding: var(--section-padding);
    background-color: var(--primary-beige);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-lg);
    box-shadow: var(--shadow-md);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-lg);
}

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

.product-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-md);
}

.product-card:hover .product-hover {
    opacity: 1;
}

.quick-view-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--white);
    color: var(--matte-black);
    border: none;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-sm);
}

.quick-view-btn:hover {
    background-color: var(--deep-forest-green);
    color: var(--white);
}

.product-info {
    padding: 2rem;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    font-weight: 600;
}

.product-title {
    font-size: 1.5rem;
    margin: 0.5rem 0 1rem;
    font-weight: 600;
}

.product-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--matte-black);
    margin-bottom: 1rem;
}

/* Journal Section */
.journal-section {
    padding: var(--section-padding);
    background-color: var(--primary-cream);
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.journal-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-md);
}

.journal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.journal-image {
    position: relative;
    aspect-ratio: 16/9;
}

.journal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-lg);
}

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

.journal-content {
    padding: 2rem;
}

.journal-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--deep-forest-green);
    font-weight: 600;
}

.journal-title {
    font-size: 1.5rem;
    margin: 0.5rem 0 1rem;
    font-weight: 600;
}

.journal-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.journal-link {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--deep-forest-green);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.journal-link:hover {
    gap: 1rem;
}

/* Philosophy Section */
.philosophy-section {
    padding: var(--section-padding);
    background-color: var(--primary-beige);
}

.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

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

.philosophy-text p {
    margin-bottom: 1.5rem;
}

.philosophy-text strong {
    color: var(--deep-forest-green);
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.testimonial-card {
    background-color: var(--primary-beige);
    padding: 3rem 2rem;
    border-radius: 8px;
    position: relative;
    transition: var(--transition-md);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-quote {
    position: relative;
    font-size: 1.125rem;
    line-height: 1.8;
    font-style: italic;
}

.quote-icon {
    position: absolute;
    top: -1.5rem;
    left: 0;
    font-size: 3rem;
    color: var(--deep-forest-green);
    opacity: 0.2;
}

.testimonial-author {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--matte-black);
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

/* Lab Section */
.lab-section {
    padding: var(--section-padding);
    background-color: var(--matte-black);
    color: var(--white);
}

.lab-content {
    max-width: 1200px;
    margin: 0 auto;
}

.lab-header {
    text-align: center;
    margin-bottom: 4rem;
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.lab-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    transition: var(--transition-md);
}

.lab-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.lab-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.lab-title {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.lab-desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    padding: var(--section-padding);
    background-color: var(--primary-beige);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    margin-bottom: 3rem;
}

.contact-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
}

.newsletter-form .form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1.25rem;
    font-size: 1rem;
    border: 2px solid var(--deep-forest-green);
    border-radius: 2px;
    font-family: 'Merriweather', serif;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--matte-black);
}

.privacy-note {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background-color: var(--matte-black);
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
}

.footer-brand {
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
    letter-spacing: -0.5px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-column h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-sm);
}

.footer-column ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: var(--transition-sm);
}

.social-link:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    transition: var(--transition-sm);
}

.footer-legal a:hover {
    color: var(--white);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition-sm);
}

.modal-close:hover {
    color: var(--matte-black);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-image {
    height: 100%;
}

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

.modal-details {
    padding: 3rem;
}

.modal-product-name {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.modal-product-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal-product-price {
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--deep-forest-green);
    margin-bottom: 2rem;
}

/* Mini Cart */
.mini-cart {
    display: none;
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background-color: var(--white);
    z-index: 3000;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
    transition: right 0.4s ease;
}

.mini-cart.show {
    right: 0;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

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

.cart-items {
    padding: 2rem;
    overflow-y: auto;
    height: calc(100vh - 150px);
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

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

.cart-item-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-sm);
}

.cart-item-remove:hover {
    color: #c00;
}

.cart-empty {
    text-align: center;
    color: var(--text-light);
    padding: 3rem 0;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: var(--white);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--deep-forest-green);
    margin-bottom: 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Animations */
.products-grid .fade-in {
    transition-delay: 0.2s;
}

.journal-grid .fade-in {
    transition-delay: 0.3s;
}

.testimonials-grid .fade-in {
    transition-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-headline { font-size: 3.5rem; }
    .hero-subheadline { font-size: 1.25rem; }
    .products-grid, .journal-grid, .testimonials-grid { gap: 2rem; }
    .modal-body { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-headline { font-size: 2.5rem; }
    .nav-menu { display: none; }
    .established-tag { display: none; }
    .newsletter-form .form-group { flex-direction: column; }
    .cart-toggle { padding: 0.5rem 1rem; }
    .modal-product-name { font-size: 2rem; }
    .modal-product-price { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-headline { font-size: 2rem; }
    .hero-cta { flex-direction: column; }
    .section-title { font-size: 2rem; }
    .products-grid, .journal-grid, .testimonials-grid { grid-template-columns: 1fr; }
}