/* 
 * Lapisz Brand Design System
 * Modern, period-care DTC brand
 */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Brand Colors - Health & Wellness Palette */
    --color-primary: #6EC6C4;
    /* Soft Teal / Aqua */
    --color-primary-light: #C6D5C6;
    /* Muted Sage (Supporting) */
    --color-secondary: #F5E9DC;
    /* Sandy Beige */
    --color-accent: #EF7766;
    /* Warm Salmon (CTA) */
    --color-accent-soft: #F6B8A8;
    /* Peach / Light Coral */

    /* Neutrals */
    --color-bg-body: #FFFFFF;
    /* Soft White */
    --color-bg-alt: #F5E9DC;
    /* Sandy Beige */
    --color-text-main: #3B3B3B;
    /* Charcoal */
    --color-text-light: #5A5A5A;
    /* Soft Slate */
    --color-white: #FFFFFF;

    /* Spacing & Layout - REDUCED */
    --spacing-xs: 4px;
    --spacing-sm: 6px;
    --spacing-md: 10px;
    /* Reduced from 12px */
    --spacing-lg: 20px;
    /* Reduced from 24px */
    --spacing-xl: 32px;
    /* Reduced from 48px */
    --spacing-xxl: 48px;
    /* Reduced from 64px */

    --container-width: 1000px;
    /* Slightly more compact container */
    /* Condensed container */
    --border-radius: 12px;
    --shadow-sm: 0 4px 6px rgba(110, 198, 196, 0.1);
    --shadow-md: 0 8px 16px rgba(110, 198, 196, 0.15);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--color-text-main);
    /* Clean Sans-Serif for subtitles */
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1:hover,
h2:hover {
    transform: scale(1.05) translateY(-2px);
    color: var(--color-primary);
    text-shadow: 2px 2px 0px var(--color-secondary);
}

h1 {
    font-size: 2.25rem;
    /* Reduced from 2.75rem */
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

/* Smaller H1 */
h2 {
    font-family: 'Fredoka', sans-serif;
    /* Ensure Fredoka is used */
    font-size: 1.75rem;
    /* Reduced from 2rem */
    font-weight: 600;
    /* Fredoka looks better slightly lighter than bold */
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light);
    font-size: 0.95rem;
    /* Smaller body text */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
    /* Reduced section padding (now 32px) */
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    border-radius: 4px;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    /* Smaller button padding */
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-soft));
    /* Salmon to Peach gradient */
    color: var(--color-white);
    border: none;
    box-shadow: 0 4px 15px rgba(239, 119, 102, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FF8E7D, #FFC1B3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 119, 102, 0.4);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-main);
}

.btn-secondary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* Navbar - Glassmorphism */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    /* More transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--spacing-sm) 0;
    /* Smaller nav */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border-bottom: 2px solid var(--color-secondary);
    /* Added color border */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Increased gap slightly for text balance */
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

/* Ensure images don't get distorted */
.logo img {
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    /* Vertical alignment fix */
    gap: var(--spacing-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-main);
    position: relative;
    padding: 4px 0;
}

/* Interactive Hover underline effect */
.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Active State */
.nav-link.active {
    color: var(--color-primary);
    font-weight: 600;
}

.nav-link.active::after {
    transform: scaleX(1);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--color-primary);
}

/* Hero Section with Vibrant Gradient */
.hero {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--color-secondary) 100%);
    /* White to Beige */
    padding: 32px 0;
    /* Smaller hero padding */
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid white;
}

/* Decorative circle using Teal */
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(110, 198, 196, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    /* Soft Teal glow */
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-text h1 {
    margin-bottom: var(--spacing-sm);
    font-size: 2.5rem;
    /* Adjusted for visual balance */
}

.hero-text p {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.hero-image img {
    width: 100%;
    box-shadow: var(--shadow-md);
}

/* Features / USPs - Colorful Cards */
.features {
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    text-align: center;
}

.feature-card {
    padding: 1.25rem;
    /* Reduced from var(--spacing-lg) */
    border-radius: var(--border-radius);
    background: var(--color-bg-alt);
    /* Sandy Beige background */
    border: 1px solid transparent;
    /* Added colorful border */
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 10px 30px rgba(110, 198, 196, 0.2);
    /* Teal Shadow */
    border-color: var(--color-accent-soft);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
    /* Teal Icons */
}

/* Fun & Colorful Reviews */
.review-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    border: 2px solid transparent;
    position: relative;
    height: 100%;
}

.review-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.review-stars {
    color: #FFB400;
    /* Richer Gold */
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Color Themes */
.review-card.theme-teal {
    background-color: #F0FDFA;
    /* Very light teal */
    border-color: var(--color-primary);
}

.review-card.theme-teal:hover {
    background-color: #CCFBF1;
}

.review-card.theme-pink {
    background-color: #FFF1F2;
    /* Very light pink */
    border-color: var(--color-accent-soft);
}

.review-card.theme-pink:hover {
    background-color: #FFE4E6;
}

.review-card.theme-beige {
    background-color: #FFFBEB;
    /* Very light beige/yellow */
    border-color: #FCD34D;
}

.review-card.theme-beige:hover {
    background-color: #FEF3C7;
}

.review-card.theme-lavender {
    background-color: #F5F3FF;
    /* Very light purple */
    border-color: #A78BFA;
}

.review-card.theme-lavender:hover {
    background-color: #EDE9FE;
}

.review-quote {
    font-size: 2rem;
    opacity: 0.2;
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: serif;
}

/* Products Preview */
.products-preview {
    background-color: var(--color-bg-alt);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.product-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(110, 198, 196, 0.25);
    transform: translateY(-5px);
}

.tag-pill {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--color-bg-alt);
    color: var(--color-text-main);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.product-card:hover .tag-pill {
    background-color: var(--color-primary-light);
    color: var(--color-text-main);
}

.journal-header {
    background: linear-gradient(135deg, #FFF0F5 0%, #E0F7FA 100%);
    /* Soft Pink to Soft Teal */
    padding: 40px 0 20px;
    /* Reduced padding */
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(110, 198, 196, 0.2);
}

.community-header {
    background: linear-gradient(120deg, #FDFBF7 0%, #FFE4E6 50%, #E0F2F1 100%);
    /* Beige -> Pink -> Teal */
    padding: 40px 0;
    /* Smaller than original 80px */
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(239, 119, 102, 0.15);
    position: relative;
    overflow: hidden;
}

/* Decorative colorful dots for community header */
.community-header::before,
.community-header::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.community-header::before {
    width: 100px;
    height: 100px;
    background: var(--color-primary-light);
    top: -20px;
    left: -20px;
    filter: blur(20px);
}

.community-header::after {
    width: 150px;
    height: 150px;
    background: var(--color-accent-soft);
    bottom: -40px;
    right: -20px;
    filter: blur(30px);
}

/* Journal Page 'Wallpaper' Background */
.journal-wallpaper {
    background-color: #FFF9F0;
    /* Slightly warmer base */
    background-image:
        radial-gradient(circle at 0% 0%, rgba(255, 182, 193, 0.4) 0%, transparent 50%),
        /* Pink top-left */
        radial-gradient(circle at 100% 0%, rgba(135, 206, 235, 0.4) 0%, transparent 50%),
        /* Sky Blue top-right */
        radial-gradient(circle at 100% 100%, rgba(255, 218, 185, 0.5) 0%, transparent 50%),
        /* Peach bottom-right */
        radial-gradient(circle at 0% 100%, rgba(221, 160, 221, 0.4) 0%, transparent 50%),
        /* Plum bottom-left */
        radial-gradient(#E8D5C8 1.5px, transparent 1.5px), radial-gradient(#E8D5C8 1.5px, transparent 1.5px);
    /* Dots */
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 20px 20px;
    background-attachment: fixed;
    position: relative;
}

.journal-wallpaper::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Stronger overlay gradient */
    background: linear-gradient(135deg, rgba(255, 240, 245, 0.4) 0%, rgba(224, 255, 255, 0.4) 100%);
    pointer-events: none;
    z-index: -1;
}

.product-image {
    height: 180px;
    /* Smaller product image */
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.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: var(--spacing-md);
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-price {
    display: block;
    margin: var(--spacing-sm) 0;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-lg) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--spacing-sm);
}

.footer-links {
    display: flex;
    gap: var(--spacing-xl);
}

.footer-col h4 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: var(--spacing-sm);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-col a:hover {
    color: var(--color-accent);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        /* Hidden by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        text-align: center;
        gap: var(--spacing-md);
    }

    .nav-links.active {
        display: flex;
    }

    .hero-content,
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .features-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}