/* Chérie Patisserie - Shared Styles */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Typography */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #1A1A1A;
    color: #F5F5F5;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Color Variables */
:root {
    --primary-bg: #1A1A1A;
    --primary-text: #F5F5F5;
    --accent-color: #8C4843;
    --subtle-accent: #4A4A4A;
    --text-muted: rgba(245, 245, 245, 0.8);
    --text-subtle: rgba(245, 245, 245, 0.7);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2.5rem;
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--primary-text);
}

.logo svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.logo h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-text);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-text);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header {
        padding: 1rem 1.5rem;
    }
}

/* Main Content */
.main {
    flex-grow: 1;
    padding-top: 5rem;
}

/* Hero Section */
.hero {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 1rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-size: 3.75rem;
    font-weight: 900;
    letter-spacing: -0.033em;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 5rem;
    }
}

/* Section Styles */
.section {
    padding: 5rem 1rem;
}

@media (min-width: 768px) {
    .section {
        padding: 5rem 2.5rem;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 5rem 5rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 480px) {
    .grid-cols-2-sm {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card Styles */
.card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card-image {
    width: 100%;
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--text-muted);
    line-height: 1.5;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-bg);
    color: var(--primary-text);
}

.btn-primary:hover {
    background-color: var(--subtle-accent);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--primary-text);
}

.btn-accent:hover {
    background-color: #A35E59;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--subtle-accent);
    color: var(--primary-text);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--primary-text);
}

.form-input::placeholder {
    color: var(--text-subtle);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer Styles */
.footer {
    background-color: var(--accent-color);
    padding: 4rem 1rem;
    text-align: center;
}

@media (min-width: 480px) {
    .footer {
        padding: 6rem 2.5rem;
    }
}

.footer h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 480px) {
    .footer h1 {
        font-size: 2.5rem;
        font-weight: 900;
        letter-spacing: -0.033em;
    }
}

.footer p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 36rem;
    margin: 0 auto 2rem;
}

/* Masonry Grid for Events */
.masonry-grid {
    column-count: 2;
    column-gap: 1.5rem;
}

@media (min-width: 768px) {
    .masonry-grid {
        column-count: 3;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

.masonry-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-muted {
    color: var(--text-muted);
}

.text-subtle {
    color: var(--text-subtle);
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

/* Responsive Typography */
.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-6xl {
    font-size: 3.75rem;
}

@media (min-width: 768px) {
    .text-6xl {
        font-size: 4.5rem;
    }
    
    .text-7xl {
        font-size: 4.5rem;
    }
}

/* Special Layouts */
.overlay-card {
    position: relative;
    background-color: var(--subtle-accent);
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
    .overlay-card {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 50%;
        max-width: 28rem;
        padding: 3rem;
    }
    
    .overlay-card.lg {
        max-width: 32rem;
    }
}

/* Image Styles */
.aspect-square {
    aspect-ratio: 1;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.bg-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Contact Page Specific */
.contact-info {
    max-width: 28rem;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9CA3AF;
    margin-bottom: 0.5rem;
}

.contact-info p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Map Styles */
.map-container {
    width: 100%;
    height: 31.25rem;
    background-color: var(--primary-bg);
}

@media (min-width: 768px) {
    .map-container {
        height: 37.5rem;
    }
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(100%) grayscale(100%);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Accessibility */
.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;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
}