/* ========================================
   Fresh Nest Interiors - Landing Page Styles
   Aesthetic: Editorial Minimalism with Warmth
   ======================================== */

:root {
    /* Brand Colors */
    --teal: #80CDCD;
    --teal-dark: #4A9B9B;
    --teal-deeper: #2D5A5A;

    /* Neutrals */
    --cream: #FAF8F5;
    --warm-white: #FDFCFA;
    --sand: #E8E2DA;
    --taupe: #B8AFA3;
    --charcoal: #2C2C2C;
    --ink: #1A1A1A;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Jost', -apple-system, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 10rem;

    /* Transitions */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--charcoal);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(to bottom, var(--cream) 0%, transparent 100%);
}

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

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 140px;
    width: auto;
    mix-blend-mode: multiply;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    object-fit: contain;
}

.logo:hover .logo-img {
    opacity: 0.85;
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: var(--space-md);
}

.nav-social {
    color: var(--charcoal);
    opacity: 0.6;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.nav-social:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    padding: var(--space-2xl) var(--space-lg);
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.hero-content {
    padding-right: var(--space-lg);
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeSlideUp 0.8s var(--ease-out) 0.2s forwards;
}

.eyebrow-line {
    width: 40px;
    height: 1px;
    background: var(--teal);
}

.eyebrow-text {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal-dark);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeSlideUp 0.8s var(--ease-out) forwards;
}

.title-line-1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--ink);
    animation-delay: 0.3s;
}

.title-line-2 {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    color: var(--charcoal);
    animation-delay: 0.45s;
}

.title-line-2 em {
    font-style: italic;
    color: var(--teal-dark);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--taupe);
    max-width: 440px;
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeSlideUp 0.8s var(--ease-out) 0.6s forwards;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--ink);
    color: var(--warm-white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 0;
    transition: all 0.4s var(--ease-out);
    opacity: 0;
    animation: fadeSlideUp 0.8s var(--ease-out) 0.75s forwards;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--teal-dark);
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease-out);
    z-index: 0;
}

.cta-button:hover::before {
    transform: translateX(0);
}

.cta-text,
.cta-arrow {
    position: relative;
    z-index: 1;
}

.cta-arrow {
    display: flex;
    transition: transform 0.3s var(--ease-out);
}

.cta-button:hover .cta-arrow {
    transform: translateX(4px);
}

/* Hero Visual - Palette Showcase */
.hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.palette-showcase {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 450px;
}

.palette-card {
    position: absolute;
    background: var(--warm-white);
    padding: var(--space-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.04);
    opacity: 0;
    animation: cardFloat 0.8s var(--ease-out) forwards;
}

.palette-card-1 {
    top: 0;
    left: 10%;
    transform: rotate(-3deg);
    animation-delay: 0.5s;
    z-index: 3;
}

.palette-card-2 {
    top: 30%;
    right: 0;
    transform: rotate(2deg);
    animation-delay: 0.7s;
    z-index: 2;
}

.palette-card-3 {
    bottom: 0;
    left: 25%;
    transform: rotate(-1deg);
    animation-delay: 0.9s;
    z-index: 1;
}

.palette-colors {
    display: flex;
    gap: 2px;
    margin-bottom: var(--space-sm);
}

.color-swatch {
    width: 50px;
    height: 70px;
    transition: transform 0.3s var(--ease-out);
}

.palette-card:hover .color-swatch {
    transform: translateY(-4px);
}

.palette-card:hover .color-swatch:nth-child(1) { transition-delay: 0s; }
.palette-card:hover .color-swatch:nth-child(2) { transition-delay: 0.03s; }
.palette-card:hover .color-swatch:nth-child(3) { transition-delay: 0.06s; }
.palette-card:hover .color-swatch:nth-child(4) { transition-delay: 0.09s; }
.palette-card:hover .color-swatch:nth-child(5) { transition-delay: 0.12s; }

.palette-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--taupe);
}

/* Features Section */
.features {
    padding: var(--space-2xl) var(--space-lg);
    background: var(--warm-white);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--sand));
}

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

.feature-item {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
}

.feature-number {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--teal);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.1em;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: var(--space-sm);
}

.feature-text {
    font-size: 0.95rem;
    color: var(--taupe);
    line-height: 1.7;
}

/* Inspiration Section */
.inspiration {
    padding: var(--space-2xl) var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--space-md);
}

.title-accent {
    display: block;
    font-size: 0.9em;
    color: var(--taupe);
    font-style: italic;
}

.section-description {
    font-size: 1.1rem;
    color: var(--taupe);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.inspiration-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
}

.category {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--charcoal);
}

.category-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--teal);
}

.etsy-callout {
    display: flex;
    justify-content: center;
    align-items: center;
}

.callout-inner {
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    position: relative;
    max-width: 400px;
}

.callout-rule {
    width: 48px;
    height: 1px;
    background: var(--teal);
    margin: 0 auto var(--space-md);
}

.callout-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 300;
    font-style: italic;
    color: var(--charcoal);
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.callout-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-dark);
    text-decoration: none;
    position: relative;
    transition: color 0.3s var(--ease-out);
}

.callout-link-text {
    position: relative;
}

.callout-link-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease-out);
}

.callout-link:hover .callout-link-text::after {
    transform: scaleX(1);
    transform-origin: left;
}

.callout-link-arrow {
    transition: transform 0.3s var(--ease-out);
}

.callout-link:hover .callout-link-arrow {
    transform: translateX(4px);
}

.callout-link:hover {
    color: var(--teal-deeper);
}

/* Footer */
.footer {
    padding: var(--space-xl) var(--space-lg);
    background: var(--ink);
    color: var(--sand);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.footer-logo-img {
    height: 85px;
    width: auto;
    display: block;
    margin-bottom: var(--space-sm);
    filter: brightness(1.4);
    object-fit: contain;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--taupe);
    font-style: italic;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--sand);
    text-decoration: none;
    transition: color 0.3s var(--ease-out);
}

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

.footer-copy {
    text-align: right;
    font-size: 0.75rem;
    color: var(--taupe);
}

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

@keyframes cardFloat {
    from {
        opacity: 0;
        transform: translateY(40px) rotate(0deg);
    }
    to {
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Scroll Animations */
.feature-item,
.inspiration-content,
.etsy-callout {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.feature-item.in-view,
.inspiration-content.in-view,
.etsy-callout.in-view {
    opacity: 1;
    transform: translateY(0);
}

.feature-item:nth-child(2) { transition-delay: 0.1s; }
.feature-item:nth-child(3) { transition-delay: 0.2s; }

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding-top: 120px;
        min-height: auto;
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
    }

    .hero-eyebrow {
        justify-content: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        order: -1;
    }

    .palette-showcase {
        height: 350px;
        max-width: 400px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .inspiration {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .inspiration-categories {
        justify-content: center;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-md);
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
    }

    .footer-copy {
        text-align: center;
    }
}

@media (max-width: 640px) {
    :root {
        --space-lg: 2rem;
        --space-xl: 4rem;
        --space-2xl: 6rem;
    }

    .nav {
        padding: var(--space-sm) var(--space-md);
    }

    .palette-showcase {
        height: 300px;
    }

    .palette-card {
        padding: var(--space-sm);
    }

    .color-swatch {
        width: 35px;
        height: 50px;
    }

    .callout-inner {
        padding: var(--space-lg);
    }

    .callout-link {
        font-size: 1.4rem;
    }
}

/* Hover states for touch devices */
@media (hover: none) {
    .palette-card:hover .color-swatch {
        transform: none;
    }

    .cta-button::before {
        display: none;
    }

    .cta-button {
        background: var(--teal-dark);
    }
}
