/* 
   Ocean Essence - Premium Design System 
   Based on competitive research (Zinumari, Sobral)
*/

:root {
    /* Color Palette - Raízes Vintage */
    --color-primary: #3E2723;
    /* Dark Sepia/Coffee */
    --color-secondary: #5D4037;
    /* Medium Brown */
    --color-accent: #BCAAA4;
    /* Muted Rose/Beige */
    --color-water: #8D6E63;
    /* Renamed logic, keep variable for now but map to brown */
    --color-sand: #F5F5DC;
    /* Beige/Cream */
    --color-bg: #FFF8E1;
    /* Light Parchment */

    --color-text: #4E342E;
    /* Dark Brown Text */
    --color-text-light: #795548;
    /* Lighter Brown Text */
    --color-white: #ffffff;
    --color-highlight: #D7CCC8;
    /* Light accent */
    --color-card-bg: #FFFCF2;
    /* Very Light Ivory */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;

    /* Transitions */
    --transition-fast: 0.3s ease;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23d7ccc8' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E");
    /* Subtle texture */
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.bg-sand {
    background-color: var(--color-sand);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 600;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.divider {
    height: 2px;
    width: 60px;
    background-color: var(--color-accent);
    margin: var(--spacing-sm) auto;
}

.divider.align-left {
    margin-left: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-body);
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-link {
    color: var(--color-text);
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
    font-family: var(--font-heading);
    font-style: italic;
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--color-text);
    transition: width var(--transition-fast);
}

.btn-link:hover::after {
    width: 100%;
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 8px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
}

.nav-links a:hover {
    color: var(--color-highlight);
}

.nav-icons button {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 15px;
    color: var(--color-text);
    transition: var(--transition-fast);
}

.nav-icons button:hover {
    color: var(--color-highlight);
}

/* Hero Section */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(62, 39, 35, 0.4), rgba(62, 39, 35, 0.2)), url('https://images.unsplash.com/photo-1586075010999-9bcbcb191b19?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    position: relative;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-subtitle {
    display: block;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hero-buttons .btn-outline {
    border-color: var(--color-white);
    color: var(--color-white);
}

.hero-buttons .btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* Benefits Bar */
.benefits-bar {
    background-color: var(--color-card-bg);
    padding: 30px 0;
    border-bottom: 1px solid var(--color-accent);
    border-top: 1px solid var(--color-accent);
}

.benefits-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 250px;
    justify-content: center;
}

.benefit-item .icon {
    font-size: 1.5rem;
}

.benefit-item h3 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.benefit-item p {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 400px;
    gap: 20px;
    margin-top: 40px;
}

.collection-card {
    position: relative;
    overflow: hidden;
    group: hover;
    cursor: pointer;
}

.collection-card.large {
    grid-column: span 1;
    /* In a simpler 3-col layout, keep equal or make featured larger */
}

/* To simulate a featured layout, let's make the first one wider if we had 4 cols */

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.collection-card:hover .card-image {
    transform: scale(1.05);
}

.collection-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.collection-card:hover .card-content {
    transform: translateY(0);
}

.collection-card h3 {
    color: white;
    margin-bottom: 5px;
}

.collection-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.collection-card .btn-link {
    color: var(--color-highlight);
}

.collection-card .btn-link::after {
    background-color: var(--color-highlight);
}

/* Product Showcase */
.products-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: var(--color-card-bg);
    /* Cream paper */
    border: 1px solid var(--color-accent);
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.product-image {
    position: relative;
    height: 300px;
    background-color: #f4f4f4;
    overflow: hidden;
}

.placeholder-box {
    width: 100%;
    height: 100%;
    background-color: #D7CCC8;
    /* Vintage grey-brown placeholder */
    /* In production, replace with <img> */
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--color-primary);
    color: white;
    padding: 4px 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge.sale {
    background-color: #d9534f;
}

.quick-view-btn {
    position: absolute;
    bottom: -50px;
    /* Hidden */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 15px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: bottom 0.3s ease;
    color: var(--color-primary);
}

.product-card:hover .quick-view-btn {
    bottom: 0;
    /* Shown */
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h4 {
    font-size: 1.1rem;
    font-family: var(--font-body);
    margin-bottom: 8px;
    color: var(--color-text);
}

.product-info .price {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
    display: block;
}

.product-info .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-right: 8px;
}

.product-info .installment {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
}

.about-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--color-primary);
    border-left: 3px solid var(--color-highlight);
    /* Dusty Rose border */
    padding-left: 20px;
    margin: 30px 0;
}

.about-image {
    height: 400px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    /* subtle radius */
}

/* Newsletter */
.newsletter {
    background-color: var(--color-primary);
    /* Dark Brown */
    color: var(--color-bg);
    /* Parchment text */
}

.newsletter h2 {
    color: var(--color-bg);
}

.newsletter-content {
    max-width: 600px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    outline: none;
}

.newsletter-form button {
    background-color: var(--color-highlight);
    /* Dusty Rose */
    color: var(--color-primary);
    /* Brown text */
    border: none;
    padding: 15px 30px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: var(--color-bg);
}

/* Footer */
.footer {
    background-color: #2D1B18;
    /* Darker than primary */
    color: #ccc;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    color: var(--color-bg);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer h4 {
    color: var(--color-bg);
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Simplified for prototype */

    .hero h1 {
        font-size: 2.5rem;
    }

    .collections-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .collection-card {
        height: 300px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }
}