:root {
    /* Étoile Mariage V3 Defined Palette */
    --color-cream-ivory: #FDF9F3;
    --color-deep-gold: #B8860B;
    --color-brand-dark: #3A0303;
    --color-soft-rose: #C39797;
    --color-light-rose: #F8E8E8;
    --color-golden-cream: #FFF8DC;
    
    /* Spacing variables */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
}

body {
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
    background-color: var(--color-cream-ivory);
    color: var(--color-brand-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

.luxury-gradient {
    background: linear-gradient(135deg, var(--color-cream-ivory) 0%, var(--color-golden-cream) 100%);
}

.shadow-luxury {
    box-shadow: 0 20px 50px rgba(58, 3, 3, 0.15), 0 10px 20px rgba(58, 3, 3, 0.1);
}

.gold-accent {
    color: var(--color-deep-gold);
}

.maroon-accent {
    color: var(--color-brand-dark);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item:hover {
    transform: scale(1.03);
    transition: transform 0.3s ease;
}

#backToTop {
    transition: opacity 0.3s ease;
}

#header {
    top: 0;
    left: 0;
    right: 0;
    padding-top: 0.15rem !important;
    padding-bottom: 0.15rem !important;
    transition: none !important;
}

.bounce-horizontal {
    animation: sway 4s ease-in-out infinite;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.logo-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
}

.logo-mark {
    width: 60px;
    height: auto;
    display: block;
}

.logo-text {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-brand-dark);
    line-height: 1.05;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .logo-mark {
        width: 45px;
    }
    
    .logo-text {
        font-size: 0.58rem;
        letter-spacing: 0.1em;
    }
}

@media (max-width: 520px) {
    .logo-brand {
        gap: 0.25rem;
    }
    
    .logo-text {
        font-size: 0.5rem;
        letter-spacing: 0.08em;
    }
}

/* Header navigation highlight treatment */
header nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-bottom: 0.25rem;
    transition: color 0.3s ease;
}

#mobileMenu a {
    position: relative;
    display: block;
    padding-bottom: 0.25rem;
    transition: color 0.3s ease;
}

header nav a::after,
#mobileMenu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-deep-gold), var(--color-brand-dark));
    transition: width 0.3s ease;
}

header nav a:hover::after,
header nav a:focus-visible::after,
#mobileMenu a:hover::after,
#mobileMenu a:focus-visible::after {
    width: 100%;
}

header nav a:focus-visible,
#mobileMenu a:focus-visible {
    outline: none;
    color: var(--color-deep-gold);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-cream-ivory);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.pulse-logo {
    width: 80px;
    height: 80px;
    background: var(--color-deep-gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(184, 134, 11, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(184, 134, 11, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(184, 134, 11, 0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Parallax Hero */
.parallax-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Portfolio Masking Effect */
.portfolio-mask {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.portfolio-mask img {
    transition: transform 0.5s ease;
}

.portfolio-mask:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(58, 3, 3, 0.8); /* Changed from maroon to brand dark */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-mask:hover .portfolio-overlay {
    opacity: 1;
}

/* Luxury Card Design */
.service-card {
    background: linear-gradient(135deg, var(--color-cream-ivory) 0%, var(--color-light-rose) 100%);
    border: 1px solid var(--color-deep-gold);
    box-shadow: 0 10px 30px rgba(58, 3, 3, 0.1);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(58, 3, 3, 0.2);
    border-color: var(--color-brand-dark);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-deep-gold), var(--color-cream-ivory), var(--color-deep-gold)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    z-index: -1;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 0.5;
}

/* Add visible class for animations */
.service-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Unique Service Transitions */

/* Service 1: Staggered Horizontal Slide */
.service-1 .service-text {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-1.animate-in .service-text {
    opacity: 1;
    transform: translateX(0);
}

/* Service 2: Fade In */
.service-2 .service-text {
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-2.animate-in .service-text {
    opacity: 1;
}

/* Service 3: Scale Up */
.service-3 .service-text {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-3.animate-in .service-text {
    opacity: 1;
    transform: scale(1);
}

/* Service 4: Rotate In */
.service-4 .service-text {
    opacity: 0;
    transform: rotateY(-45deg);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-4.animate-in .service-text {
    opacity: 1;
    transform: rotateY(0);
}

/* Service 5: Bounce In */
.service-5 .service-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.service-5.animate-in .service-text {
    opacity: 1;
    transform: translateY(0);
}

/* Timeline Styles */
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-content {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(58, 3, 3, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(58, 3, 3, 0.15);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-deep-gold);
    z-index: 1;
    transition: transform 0.3s ease;
}

.timeline-content:hover::before {
    transform: scale(1.2);
}

.timeline-content.left {
    margin-right: 50px;
}

.timeline-content.right {
    margin-left: 50px;
}

.timeline-content.left::before {
    right: -60px;
}

.timeline-content.right::before {
    left: -60px;
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(58, 3, 3, 0.2);
}

/* Gallery Items */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(58, 3, 3, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 20rem;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(58, 3, 3, 0.15);
}

.gallery-visual {
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-visual img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(58, 3, 3, 0.85), transparent);
    padding: 20px;
    color: white;
    z-index: 5;
    pointer-events: none;
}

.gallery-details {
    position: absolute;
    inset: 0;
    background: var(--color-brand-dark);
    color: white;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    overflow-y: auto;
}

.gallery-meta {
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.gallery-lede {
    font-size: clamp(1rem, 1.1vw, 1.2rem);
    max-width: 32rem;
}

.gallery-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    width: 100%;
    max-width: 28rem;
    text-align: left;
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem;
}

.gallery-points li {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    color: #f3f4f6;
}

.partner-card {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 999px;
    border: 2px solid var(--color-deep-gold);
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), var(--color-light-rose));
    box-shadow: 0 10px 30px rgba(58, 3, 3, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.partner-logo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 999px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

.gallery-details p {
    color: #e5e7eb;
}

.gallery-details ul {
    color: #f3f4f6;
}

.gallery-item.show-details .gallery-details {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.gallery-item.show-details .gallery-visual {
    opacity: 0;
    transform: scale(0.95);
}

.gallery-item:focus {
    outline: none;
}

.gallery-item:focus-visible {
    outline: 2px solid var(--color-deep-gold);
    outline-offset: 6px;
}

/* Luxury Partners */
.luxury-partner {
    transition: all 0.5s ease;
    opacity: 0.7;
    transform: translateY(20px);
}

.luxury-partner.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.luxury-partner:hover {
    opacity: 1;
    transform: scale(1.15) translateY(-5px);
    z-index: 10;
}

/* Awards & Press Items */
.awards-item {
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(30px);
}

.awards-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.awards-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(58, 3, 3, 0.2) !important;
}

/* Floating Animation */
.floating {
    animation: float 3s ease-in-out infinite;
}

/* Mobile styles for services */
@media (max-width: 640px) {
    .service-card {
        opacity: 1;
        transform: translateY(0);
    }
    
    .service-1 .service-text,
    .service-2 .service-text,
    .service-3 .service-text,
    .service-4 .service-text,
    .service-5 .service-text {
        opacity: 1;
        transform: none;
    }
    
    .timeline-content.left,
    .timeline-content.right {
        margin-left: 0;
        margin-right: 0;
    }
    
    .timeline-content.left::before,
    .timeline-content.right::before {
        display: none;
    }
}

/* Mobile refinements for gallery cards */
@media (max-width: 768px) {
    .gallery-details {
        padding: 1.5rem;
        gap: 0.5rem;
    }
    
    .gallery-details h3 {
        font-size: 1.2rem;
    }
    
    .gallery-lede {
        font-size: 0.95rem;
    }
    
    .gallery-points {
        grid-template-columns: 1fr;
        font-size: 0.9rem;
    }
    
    .partner-card {
        width: 6.5rem;
        height: 6.5rem;
    }
}

/* Masonry Blog Layout */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 10px;
    grid-gap: 20px;
}

.masonry-item {
    grid-row-end: span 40;
}

.masonry-item.wide {
    grid-column: span 2;
}

/* Form Focus Gradient */
.gradient-focus {
    position: relative;
}

.gradient-focus::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--color-deep-gold), var(--color-cream-ivory), var(--color-deep-gold));
    background-size: 200% 200%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gradient-focus:focus-within::after {
    opacity: 1;
    animation: gradientShift 2s ease infinite;
}

/* Initial states for animations */
article, #contact .gradient-focus, #contact button {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Add keyframes for service card animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Additional animations for premium sections */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes sway {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
    100% {
        transform: translateX(0);
    }
}

/* Marquee animation for partners */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


.timeline-item.animate-in {
    animation: fadeIn 0.6s ease forwards;
}

.timeline-item:nth-child(even).animate-in {
    animation: slideInRight 0.6s ease forwards;
}

.timeline-item:nth-child(odd).animate-in {
    animation: slideInLeft 0.6s ease forwards;
}

/* Marquee animation for partners */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    width: max-content;
    display: inline-flex;
    align-items: center;
    animation: marquee 20s linear infinite;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* Focus states */
a:focus,
a:focus-visible,
button:focus,
button:focus-visible,
input:focus,
textarea:focus {
    outline: none;
    box-shadow: none;
}

/* Blog Index Page */
#blog-index {
    display: none;
}

/* Search Bar */
.search-bar {
    position: relative;
}

.search-bar input {
    padding-left: 40px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

/* Filter Buttons */
.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: #d4af37;
    color: white;
}

/* Error Message */
.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

/* Disclaimer overlay */
#disclaimerOverlay {
    position: fixed;
    inset: 0;
    background: rgba(58,3,3,0.65);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    padding: 2rem;
}
#disclaimerOverlay.active {
    display: flex;
}
.disclaimer-card {
    background: linear-gradient(135deg, rgba(253, 249, 243, 0.96), rgba(248, 232, 232, 0.96));
    border: 1px solid rgba(184, 134, 11, 0.4);
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.25);
    max-width: 640px;
    width: 100%;
    padding: 2.5rem;
    text-align: center;
}
.disclaimer-card h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-brand-dark);
}
.disclaimer-card p {
    color: #4b5563;
    margin-bottom: 1rem;
}
.disclaimer-card button {
    margin-top: 1.5rem;
    width: 100%;
    padding: 0.85rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-deep-gold), var(--color-brand-dark));
    color: white;
    font-weight: 600;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.disclaimer-card button:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}
@media (max-width: 640px) {
    .disclaimer-card {
        padding: 1.75rem;
    }
    .disclaimer-card h2 {
        font-size: 1.4rem;
    }
}
