/* @import 'variables.css'; - Loaded in HTML */

/* Reset & Base */
html {
    scroll-behavior: smooth;
}

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

/* Global Backgrounds */
body {
    background-color: var(--color-bg-beige);
    /* Warm beige background */
    font-family: var(--font-family-main);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: var(--font-family-heading);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-xs);
}

/* Header */
header {
    background-color: var(--color-bg-pink);
    /* Soft pink header */
    padding: var(--spacing-md) 0;
    border-bottom: var(--border-width) solid white;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo span {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-text-main);
    font-family: var(--font-family-heading);
    letter-spacing: -0.5px;
}

.btn-nav {
    display: inline-block;
    padding: 8px 20px;
    background-color: white;
    color: var(--color-theme-red);
    /* Consistent with branding */
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    border: 2px solid white;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    color: var(--color-theme-red);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-lg);
    background-color: var(--color-bg-pink);
    /* Continue pink from header */
    background-image: none;
    /* Remove gradients */
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.hero h1 {
    font-size: 4.5rem;
    /* Larger */
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-main);
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
    /* Pop effect */
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.4rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-main);
    font-weight: 700;
}

.hero h3 {
    color: var(--color-theme-blue);
    /* Changed to Blue */
    font-size: 1.3rem;
    margin-top: var(--spacing-md);
    font-weight: 600;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.btn-hero {
    display: inline-block;
    margin-top: var(--spacing-lg);
    padding: 12px 32px;
    background-color: var(--color-theme-red);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid white;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
    color: white;
}

.btn-hero-green {
    display: inline-block;
    margin-top: var(--spacing-lg);
    padding: 12px 32px;
    background-color: var(--color-theme-green);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid white;
}

.btn-hero-green:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
    color: white;
}

.btn-hero-blue {
    display: inline-block;
    margin-top: var(--spacing-lg);
    padding: 12px 32px;
    background-color: var(--color-theme-blue);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid white;
}

.btn-hero-blue:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
    color: white;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--color-theme-blue);
    color: white;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 50px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid white;
    text-align: center;
    cursor: pointer;
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
    color: white;
}

.highlight-marker {
    position: relative;
    display: inline-block;
    color: var(--color-theme-red);
    /* Red text */
    font-size: 1.3em;
    /* Larger */
    transform: rotate(-3deg);
    /* Playful tilt */
    font-weight: 900;
    margin: 0 5px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.highlight-marker::after {
    display: none;
    /* Remove yellow background */
}

/* SOS Crise Button */
.btn-sos {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #e11d48;
    /* Red urgency */
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
    z-index: 1000;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid white;
}

.btn-sos:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.6);
    color: white;
}

/* Themes Grid */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Force 4 columns */
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

/* Theme Classes - Define local variable */
.theme-green {
    --theme-color: var(--color-theme-green);
}

.theme-blue {
    --theme-color: var(--color-theme-blue);
}

.theme-red {
    --theme-color: var(--color-theme-red);
}

.theme-yellow {
    --theme-color: var(--color-theme-yellow);
}

.theme-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm);
    /* Reduced padding */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    /* "Baby Lab" Button Style */
    border: var(--border-width) solid var(--theme-color);
    box-shadow: 4px 4px 0px var(--theme-color);
    /* Hard shadow for sticker effect */
    position: relative;
    overflow: visible;
    /* Allow pop-out if needed */
}

.theme-card:hover {
    transform: translateY(-4px);
    box-shadow: 6px 6px 0px var(--theme-color);
}

/* Remove old top borders */
.theme-card::before {
    display: none;
}

/* Icon Wrapper - Colored Circle */
.theme-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: var(--theme-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-xs);
    border: 3px solid white;
    /* Inner white ring */
    box-shadow: 0 0 0 3px var(--theme-color);
    /* Outer colored ring */
}

.theme-icon {
    font-size: 2rem;
    margin: 0;
    /* Emojis might need adjustment on colored bg */
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

.theme-icon-img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));

}

.theme-card h3 {
    font-size: 1.1rem;
    /* Reduced size */
    color: var(--theme-color);
    /* Colored heading */
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
    min-height: 2.6em;
    /* Ensure alignment for 2 lines */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.theme-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    /* Reduced size */
    flex-grow: 1;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.btn-link {
    font-weight: 700;
    font-size: 0.9rem;
    /* Reduced size */
    padding: 8px 16px;
    /* Reduced padding */
    border-radius: var(--radius-lg);
    background-color: var(--theme-color);
    /* Colored button */
    color: white;
    transition: transform 0.2s;
    border: none;
}

.theme-card:hover .btn-link {
    background-color: var(--theme-color);
    color: white;
    transform: scale(1.05);
}

/* Footer */
footer {
    text-align: center;
    padding: var(--spacing-lg) 0;
    color: var(--color-text-light);
    font-size: 0.85rem;
    opacity: 0.8;
    background-color: var(--color-bg-pink);
    /* Pink footer */
    margin-top: var(--spacing-xl);
}

/* Responsive */
@media (max-width: 1024px) {
    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablets */
    }
}

@media (max-width: 600px) {
    .themes-grid {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
    }

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

    .hero p {
        font-size: 1.1rem;
    }
}