/*
Theme Name: NailsWire Child Theme
Theme URI: https://nailswire.com
Description: A custom child theme designed for NailsWire based on the GeneratePress framework.
Author: NailsWire Dev Team
Author URI: https://nailswire.com
Template: generatepress
Version: 1.0.0
Text Domain: generatepress-nailswire
*/

/* ==========================================================================
   NailsWire Brand Colors & Variables
   ========================================================================== */
:root {
    --nw-primary: #e29587;
    /* Rose Gold/Coral accent */
    --nw-secondary: #fce4ec;
    /* Soft Blush Pink background */
    --nw-text-dark: #333333;
    /* Charcoal text */
    --nw-white: #ffffff;
}

/* ==========================================================================
   Base Styles Overrides
   ========================================================================== */
body {
    color: var(--nw-text-dark);
}

a {
    color: var(--nw-primary);
    text-decoration: none;
}

/* Standard GeneratePress container width adjustment if needed */
.grid-container {
    max-width: 1200px;
}


/* ==========================================================================
   Homepage Specific Styles (Basics to get started)
   ========================================================================== */

/* --- Hero Section --- */
.nw-hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    padding: 80px 20px;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.nw-hero-section::before {
    content: "";
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(226, 149, 135, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.nw-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .nw-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .nw-hero-content {
        margin: 0 auto;
    }

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

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

    .nw-hero-visual {
        height: 400px;
    }

    .card-main {
        width: 300px;
        height: 400px;
    }

    .card-float {
        display: none;
    }
}

.nw-hero-content {
    max-width: 600px;
}

.nw-badge {
    display: inline-block;
    background: rgba(226, 149, 135, 0.15);
    color: var(--nw-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.nw-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--nw-text-dark);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtext {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.nw-btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    display: inline-block;
}

.nw-btn-primary {
    background: var(--nw-primary);
    color: white;
    border: none;
    box-shadow: 0 10px 25px rgba(226, 149, 135, 0.4);
}

.nw-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(226, 149, 135, 0.5);
    color: white;
}

.nw-btn-secondary {
    background: white;
    color: var(--nw-text-dark);
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nw-btn-secondary:hover {
    border-color: var(--nw-primary);
    color: var(--nw-primary);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--nw-text-dark);
}

.stat-label {
    font-size: 0.875rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: #eee;
}

/* Visual Side */
.nw-hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: #fce4ec;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: blob-bounce 10s infinite ease-in-out alternate;
    z-index: 0;
}

@keyframes blob-bounce {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: translate(0, 0);
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(-20px, 20px);
    }
}

.visual-card {
    position: absolute;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.card-main {
    width: 380px;
    height: 500px;
    z-index: 2;
    transform: rotate(-3deg);
}

.card-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-float {
    width: 200px;
    height: 200px;
    bottom: 40px;
    left: -40px;
    z-index: 3;
    border: 8px solid white;
    transform: rotate(5deg);
}

.card-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nw-hero-visual:hover .card-main {
    transform: rotate(0deg) scale(1.02);
}

.nw-hero-visual:hover .card-float {
    transform: rotate(0deg) translate(10px, -10px);
}


/* --- Homepage Section Titles --- */
.nw-section-title {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 30px;
    font-size: 2rem;
}


/* --- Grids General --- */
.nw-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* --- Style Cards --- */
.nw-style-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    height: 100%;
}

.nw-style-card a {
    display: block;
    height: 100%;
    color: inherit;
}

.card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 50%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.card-content {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    position: relative;
    z-index: 2;
}

.card-content h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nw-text-dark);
}

.card-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nw-secondary);
    color: var(--nw-primary);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-weight: bold;
}

/* Hover Effects */
.nw-style-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(226, 149, 135, 0.2);
}

.nw-style-card:hover .card-image img {
    transform: scale(1.1);
}

.nw-style-card:hover .card-overlay {
    opacity: 0.8;
}

.nw-style-card:hover .card-arrow {
    background: var(--nw-primary);
    color: white;
    transform: translateX(5px);
}


/* --- Newsletter Box --- */
.nw-newsletter-section {
    background-color: var(--nw-secondary);
    padding: 60px 20px;
    text-align: center;
    margin-top: 60px;
    border-radius: 8px;
}

.nw-newsletter-form input[type="email"] {
    padding: 15px;
    width: 300px;
    max-width: 100%;
    border: 1px solid #ccc;
    margin-right: -5px;
    border-radius: 4px 0 0 4px;
}

.nw-newsletter-form button {
    padding: 15px 30px;
    background-color: var(--nw-primary);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* ==========================================================================
   End Custom Styles
   ========================================================================== */