/* Raíz Natural Cosmetics - Minimalist Design */

:root {
    --color-sand: #F5F0E6;
    --color-cream: #FAF7F0;
    --color-sage: #8B9A7D;
    --color-sage-dark: #6B7A5D;
    --color-stone: #A8A49C;
    --color-earth: #8B7355;
    --color-dark: #2A2A28;
    --color-light: #FEFEFE;
    --shadow-soft: 0 4px 20px rgba(139, 154, 125, 0.12);
    --shadow-hover: 0 8px 40px rgba(139, 154, 125, 0.18);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--color-cream);
    color: var(--color-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(250, 247, 240, 0.85);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

nav.scrolled {
    padding: 1rem 4rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--color-dark);
    text-decoration: none;
    letter-spacing: 0.05em;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--color-dark);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-sage);
    transition: var(--transition);
}

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

.nav-links a:hover {
    color: var(--color-sage);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 4rem 4rem;
    position: relative;
}

.hero-content {
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-sage);
    margin-bottom: 1.5rem;
    display: block;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--color-dark);
}

.hero h1 em {
    font-style: italic;
    color: var(--color-sage);
}

.hero p {
    font-size: 1.1rem;
    color: var(--color-stone);
    margin-bottom: 2.5rem;
    max-width: 420px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--color-sage);
    color: var(--color-light);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.hero-cta:hover {
    background: var(--color-sage-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.hero-image {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 450px;
    height: 550px;
    background: linear-gradient(145deg, var(--color-sand) 0%, #E8E3D8 100%);
    border-radius: 2px;
    opacity: 0;
    animation: fadeInRight 1s ease 0.3s forwards;
    overflow: hidden;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 30%, rgba(139, 154, 125, 0.1) 0%, transparent 50%);
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(10%, 10%) rotate(5deg); }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.hero-image-inner {
    position: absolute;
    inset: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.soap-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.soap {
    width: 120px;
    height: 30px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.soap:nth-child(1) {
    background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-sage-dark) 100%);
    width: 100px;
}

.soap:nth-child(2) {
    background: linear-gradient(135deg, var(--color-earth) 0%, #6B5A45 100%);
    width: 110px;
}

.soap:nth-child(3) {
    background: linear-gradient(135deg, var(--color-sand) 0%, #D4CFC4 100%);
    width: 95px;
}

/* Section styling */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-label {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-sage);
    margin-bottom: 1rem;
    display: block;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.section-header p {
    font-size: 1.05rem;
    color: var(--color-stone);
}

/* Philosophy Section */
.philosophy {
    padding: 8rem 4rem;
    background: var(--color-light);
    position: relative;
}

.philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-stone), transparent);
    opacity: 0.3;
}

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

.value-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--color-cream);
    border-radius: 2px;
    transition: var(--transition);
}

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

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.value-card p {
    font-size: 0.95rem;
    color: var(--color-stone);
    line-height: 1.8;
}

/* Products Section */
.products {
    padding: 8rem 4rem;
    background: var(--color-sand);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--color-light);
    border-radius: 2px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.product-image {
    height: 280px;
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.02) 100%);
}

.product-visual {
    font-size: 5rem;
    opacity: 0.3;
    transition: var(--transition);
}

.product-card:hover .product-visual {
    transform: scale(1.1);
    opacity: 0.4;
}

.product-info {
    padding: 2rem;
}

.product-category {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-sage);
    margin-bottom: 0.5rem;
}

.product-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

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

.product-price {
    font-size: 1.1rem;
    color: var(--color-earth);
    font-weight: 500;
}

/* Ingredients Section */
.ingredients {
    padding: 8rem 4rem;
    background: var(--color-light);
}

.ingredients-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.ingredients-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.ingredients-text p {
    font-size: 1.05rem;
    color: var(--color-stone);
    margin-bottom: 1.5rem;
}

.ingredients-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ingredients-list li {
    font-size: 0.9rem;
    color: var(--color-dark);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-sand);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ingredients-list li::before {
    content: '◆';
    font-size: 0.5rem;
    color: var(--color-sage);
}

.ingredients-visual {
    height: 400px;
    background: linear-gradient(145deg, var(--color-sage) 0%, var(--color-sage-dark) 100%);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ingredients-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.leaf-icon {
    font-size: 8rem;
    opacity: 0.2;
}

/* Newsletter/Contact Section */
.newsletter {
    padding: 6rem 4rem;
    background: var(--color-dark);
    color: var(--color-light);
    text-align: center;
}

.newsletter-content {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-light);
}

.newsletter p {
    font-size: 0.95rem;
    color: var(--color-stone);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    max-width: 300px;
    padding: 1rem 1.5rem;
    border: 1px solid var(--color-stone);
    background: transparent;
    color: var(--color-light);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    border-radius: 2px;
    transition: var(--transition);
}

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

.newsletter-form input::placeholder {
    color: var(--color-stone);
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: var(--color-sage);
    color: var(--color-light);
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--color-sage-dark);
}

/* Success message */
.success-message {
    background: var(--color-sage);
    color: var(--color-light);
    padding: 1rem 2rem;
    border-radius: 2px;
    margin-top: 1rem;
    display: inline-block;
}

/* Footer */
footer {
    padding: 4rem;
    background: var(--color-cream);
    border-top: 1px solid var(--color-sand);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--color-dark);
    text-decoration: none;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    text-decoration: none;
    color: var(--color-stone);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-sage);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--color-stone);
}

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    nav {
        padding: 1rem 2rem;
    }

    .nav-links {
        gap: 2rem;
    }

    .hero {
        padding: 6rem 2rem 2rem;
        flex-direction: column;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-image {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 400px;
        margin: 3rem auto 0;
        animation: fadeIn 1s ease 0.3s forwards;
    }

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

    .values-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .ingredients-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .ingredients-visual {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .values-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}
