/**
 * L'Atelier de Manou - Main Stylesheet
 *
 * Table of Contents:
 * 1. CSS Variables
 * 2. Reset & Base
 * 3. Typography
 * 4. Layout
 * 5. Header
 * 6. Navigation
 * 7. Buttons
 * 8. Cards
 * 9. Forms
 * 10. Footer
 * 11. Components
 * 12. Utilities
 * 13. Animations
 * 14. Responsive
 */

/* ==========================================================================
   1. CSS Variables
   ========================================================================== */

:root {
    /* Colors */
    --color-rose-light: #F5E1DC;
    --color-rose-dusty: #D4A5A5;
    --color-terracotta: #C17767;
    --color-bordeaux: #8B3A3A;
    --color-cream: #FDF8F5;
    --color-gold: #C9A962;
    --color-white: #FFFFFF;
    --color-black: #2D2D2D;
    --color-gray-light: #F7F7F7;
    --color-gray: #888888;
    --color-gray-dark: #555555;

    /* Semantic colors */
    --color-primary: var(--color-bordeaux);
    --color-secondary: var(--color-rose-dusty);
    --color-accent: var(--color-terracotta);
    --color-background: var(--color-rose-light);
    --color-surface: var(--color-cream);
    --color-text: var(--color-black);
    --color-text-muted: var(--color-gray-dark);
    --color-success: #5D8A66;
    --color-error: #C75050;

    /* Typography */
    --font-heading: 'Dancing Script', cursive;
    --font-body: 'Quicksand', sans-serif;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;

    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

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

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    /* Container */
    --container-max: 1280px;
    --container-padding: var(--space-lg);

    /* Header */
    --header-height: 80px;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */

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

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

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-terracotta);
}

h1 {
    font-size: var(--font-size-5xl);
}

h2 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-3xl);
}

h4 {
    font-size: var(--font-size-2xl);
}

h5 {
    font-size: var(--font-size-xl);
}

h6 {
    font-size: var(--font-size-lg);
}

p {
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

.text-script {
    font-family: var(--font-heading);
}

.text-muted {
    color: var(--color-text-muted);
}

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

/* ==========================================================================
   4. Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-4xl) 0;
}

.section--cream {
    background-color: var(--color-cream);
}

.section--white {
    background-color: var(--color-white);
}

.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.flex {
    display: flex;
}

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

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

/* ==========================================================================
   5. Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-cream);
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
}

.site-header .container {
    height: 100%;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--space-xl);
}

.header__logo {
    flex-shrink: 0;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

.site-logo--text {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    color: var(--color-terracotta);
    font-weight: var(--font-weight-bold);
}

.header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header__cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    transition: background-color var(--transition-fast);
}

.header__cart:hover {
    background-color: var(--color-rose-light);
}

.header__cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    background-color: var(--color-bordeaux);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: background-color var(--transition-fast);
}

.header__menu-toggle:hover {
    background-color: var(--color-rose-light);
}

/* ==========================================================================
   6. Navigation
   ========================================================================== */

.main-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.main-nav a {
    position: relative;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    padding: var(--space-sm) 0;
    transition: color var(--transition-fast);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-terracotta);
    transition: width var(--transition-normal);
}

.main-nav a:hover,
.main-nav .current-menu-item a {
    color: var(--color-terracotta);
}

.main-nav a:hover::after,
.main-nav .current-menu-item a::after {
    width: 100%;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-cream);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: var(--space-xl);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
}

.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-nav__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
}

.mobile-nav__close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.mobile-nav a {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    padding: var(--space-sm) 0;
    display: block;
}

.mobile-nav a:hover {
    color: var(--color-terracotta);
}

/* ==========================================================================
   7. Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    text-align: center;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--color-bordeaux);
    color: var(--color-cream);
    border-color: var(--color-bordeaux);
}

.btn--primary:hover {
    background-color: #722F2F;
    border-color: #722F2F;
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-bordeaux);
    border-color: var(--color-rose-dusty);
}

.btn--secondary:hover {
    background-color: var(--color-rose-dusty);
    color: var(--color-white);
    border-color: var(--color-rose-dusty);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-terracotta);
    border-color: var(--color-terracotta);
}

.btn--outline:hover {
    background-color: var(--color-terracotta);
    color: var(--color-white);
}

.btn--small {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-sm);
}

.btn--large {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-base);
}

.btn--full {
    width: 100%;
}

/* ==========================================================================
   8. Cards
   ========================================================================== */

.card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

/* Product Card */
.product-card {
    display: block;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.product-card__image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--color-gray-light);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    z-index: 1;
}

.product-card__badge--sale {
    background-color: var(--color-bordeaux);
    color: var(--color-white);
}

.product-card__badge--featured {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.product-card__content {
    padding: var(--space-lg);
    text-align: center;
}

.product-card__title {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    line-height: var(--line-height-normal);
}

.product-card__rating {
    margin-bottom: var(--space-sm);
}

.product-card__rating .star-rating {
    display: inline-flex;
    gap: 2px;
    font-size: var(--font-size-sm);
    color: var(--color-gold);
}

.product-card__price {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-terracotta);
}

.product-card__price del {
    color: var(--color-gray);
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-sm);
    margin-right: var(--space-sm);
}

.product-card__price ins {
    text-decoration: none;
}

/* Category Card */
.category-card {
    position: relative;
    display: block;
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.category-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover .category-card__image {
    transform: scale(1.1);
}

.category-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--space-xl);
}

.category-card__title {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ==========================================================================
   9. Forms
   ========================================================================== */

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background-color: var(--color-white);
    border: 2px solid var(--color-rose-dusty);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-terracotta);
    box-shadow: 0 0 0 3px rgba(193, 119, 103, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-gray);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    max-width: 500px;
}

.newsletter-form .form-input {
    flex: 1;
    border-radius: var(--radius-full);
}

.newsletter-form .btn {
    flex-shrink: 0;
}

/* ==========================================================================
   10. Footer
   ========================================================================== */

.site-footer {
    background-color: var(--color-cream);
    padding: var(--space-4xl) 0 var(--space-xl);
    margin-top: auto;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
}

.footer__brand {
    max-width: 300px;
}

.footer__logo {
    margin-bottom: var(--space-lg);
}

.footer__logo img {
    max-height: 50px;
}

.footer__description {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

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

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--color-rose-light);
    color: var(--color-terracotta);
    transition: all var(--transition-fast);
}

.footer__social a:hover {
    background-color: var(--color-terracotta);
    color: var(--color-white);
}

.footer__column h4 {
    font-family: var(--font-body);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-terracotta);
    margin-bottom: var(--space-lg);
}

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

.footer__column a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer__column a:hover {
    color: var(--color-terracotta);
}

.footer__bottom {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-rose-dusty);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__copyright {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.footer__legal {
    display: flex;
    gap: var(--space-lg);
}

.footer__legal a {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.footer__legal a:hover {
    color: var(--color-terracotta);
}

/* ==========================================================================
   11. Components
   ========================================================================== */

/* Icons */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon svg {
    width: 24px;
    height: 24px;
}

.icon--sm svg {
    width: 16px;
    height: 16px;
}

.icon--lg svg {
    width: 32px;
    height: 32px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: var(--space-4xl) 0;
    background-color: var(--color-rose-light);
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero__badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background-color: var(--color-cream);
    color: var(--color-terracotta);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--color-terracotta);
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.hero__subtitle {
    font-size: var(--font-size-2xl);
    color: var(--color-bordeaux);
    margin-bottom: var(--space-md);
    font-weight: var(--font-weight-medium);
}

.hero__description {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
    line-height: var(--line-height-relaxed);
    max-width: 500px;
}

.hero__buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Hero Image */
.hero__image {
    position: relative;
    z-index: 2;
}

.hero__image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
}

.hero__image-frame {
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: 20px;
    left: 20px;
    border: 3px solid var(--color-terracotta);
    border-radius: var(--radius-xl);
    z-index: 1;
    opacity: 0.5;
}

/* Hero Blob Decorations */
.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    z-index: 1;
}

.hero__blob--1 {
    width: 400px;
    height: 400px;
    background: var(--color-rose-dusty);
    top: -100px;
    left: -100px;
}

.hero__blob--2 {
    width: 300px;
    height: 300px;
    background: var(--color-terracotta);
    bottom: -50px;
    right: 20%;
    opacity: 0.2;
}

.hero__blob--3 {
    width: 200px;
    height: 200px;
    background: var(--color-cream);
    top: 30%;
    right: -50px;
    opacity: 0.6;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title__heading {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-md);
}

.section-title__subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Sparkle decoration */
.sparkle {
    display: inline-block;
    color: var(--color-rose-dusty);
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* About Section */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-section__image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-section__image img {
    width: 100%;
    height: auto;
}

.about-section__content h2 {
    margin-bottom: var(--space-lg);
}

.about-section__content p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

/* Testimonials */
.testimonial {
    background-color: var(--color-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.testimonial__quote {
    font-size: var(--font-size-lg);
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.testimonial__author {
    font-weight: var(--font-weight-semibold);
    color: var(--color-terracotta);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: var(--space-lg) 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.breadcrumbs a {
    color: var(--color-terracotta);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 var(--space-sm);
}

/* Page Header */
.page-header {
    background-color: var(--color-cream);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.page-header__title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-md);
}

.page-header__description {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   12. Utilities
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
.mb-5 { margin-bottom: var(--space-2xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mt-5 { margin-top: var(--space-2xl); }

.py-1 { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-2 { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-3 { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-4 { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.py-5 { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }

.hidden {
    display: none !important;
}

/* ==========================================================================
   13. Animations
   ========================================================================== */

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

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-in {
    animation: fadeIn var(--transition-normal) ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp var(--transition-normal) ease forwards;
}

/* ==========================================================================
   14. Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    :root {
        --container-padding: var(--space-md);
    }

    .grid--4 {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .footer__brand {
        grid-column: span 2;
        max-width: 100%;
        text-align: center;
    }

    .footer__social {
        justify-content: center;
    }

    .about-section {
        gap: var(--space-2xl);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 { font-size: var(--font-size-4xl); }
    h2 { font-size: var(--font-size-3xl); }
    h3 { font-size: var(--font-size-2xl); }

    .header__nav {
        display: none;
    }

    .header__menu-toggle {
        display: flex;
    }

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer__brand {
        grid-column: span 1;
    }

    .footer__column {
        text-align: center;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .about-section {
        grid-template-columns: 1fr;
    }

    .about-section__image {
        order: -1;
    }

    .hero {
        min-height: auto;
        padding: var(--space-3xl) 0;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }

    .hero__content {
        text-align: center;
        order: 1;
    }

    .hero__image {
        order: 0;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero__description {
        max-width: 100%;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__image-frame {
        top: -10px;
        right: -10px;
        bottom: 10px;
        left: 10px;
    }

    .hero__blob--1 {
        width: 250px;
        height: 250px;
    }

    .hero__blob--2,
    .hero__blob--3 {
        display: none;
    }

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

    .newsletter-form .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .hero {
        min-height: 50vh;
        padding: var(--space-2xl) 0;
    }

    .btn {
        padding: var(--space-md) var(--space-lg);
    }
}
