/* ========== Rico's Couture - style.css (modifie) ========== */
* { margin: 0; padding: 0; }

:root {
    --primary: #0F172A;
    --gold: #C9A24D;
    --white: #FFFFFF;
    --gray: #E5E7EB;
    --dark-gray: #374151;
}

body { font-family: 'Poppins', sans-serif; color: var(--primary); overflow-x: hidden; }
h1, h2, h3 { font-family: 'Playfair Display', serif; }

/* HEADER */
header { position: fixed; top: -10px; width: 100%; z-index: 1000; transition: all 0.3s ease; background: transparent; }
header.scrolled { background: var(--primary); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
nav { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 5%; max-width: 1400px; margin: 0 auto; }
.logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--white); text-decoration: none; }
.logo span { color: var(--gold); }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { color: var(--white); text-decoration: none; font-weight: 400; transition: color 0.3s; font-size: 0.95rem; }
.nav-links a:hover { color: var(--gold); }
.burger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.burger div { width: 25px; height: 3px; background: var(--white); transition: all 0.3s; }

/* HERO */
.hero { height: 100vh; background: linear-gradient(rgba(15,23,42,0.151), rgba(15,23,42,0.493)), url('../images/bg-hero.png'); background-size: cover; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); position: relative; }
.hero-content { max-width: 800px; padding: 0 2rem; animation: fadeInUp 1s ease; }
.hero h1 { font-size: 4rem; margin-bottom: 1rem; line-height: 1.2; }
.hero h1 .gold { color: var(--gold); }
.hero p { font-size: 1.3rem; margin-bottom: 2rem; font-weight: 300; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* BUTTONS */
.btn { padding: 1rem 2.5rem; text-decoration: none; border-radius: 5px; font-weight: 500; transition: all 0.3s; border: none; cursor: pointer; font-size: 1rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.btn-primary { background: var(--gold); color: var(--primary); }
.btn-primary:hover { background: #B89240; transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--primary); }

/* SECTIONS */
section { padding: 5rem 5%; max-width: 1400px; margin: 0 auto; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: var(--primary); }
.section-title::after { content: ''; display: block; width: 80px; height: 3px; background: var(--gold); margin: 1rem auto; }

/* ABOUT */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-image { width: 100%; height: 500px; background: linear-gradient(rgba(201,162,77,0.2), rgba(201,162,77,0.2)), url('../images/Emeric.png'); background-size: cover; background-position: center; border-radius: 10px; overflow: hidden; }
.about-text h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--gold); }
.about-text p { line-height: 1.8; color: var(--dark-gray); margin-bottom: 1rem; }

/* COLLECTIONS */
.collections-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.collections-two { grid-template-columns: repeat(2, minmax(300px, 480px)); justify-content: center; }
.collection-card { position: relative; height: 400px; border-radius: 10px; overflow: hidden; cursor: pointer; transition: transform 0.3s; }
.collection-card:hover { transform: translateY(-10px); }
.collection-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, rgba(15,23,42,0.9)); z-index: 1; }
.collection-card-bg { width: 100%; height: 100%; background: var(--gray); transition: transform 0.3s; }
.collection-card-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s ease-in-out; }
.collection-card:hover .collection-card-bg { transform: scale(1.1); }
.collection-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem; color: var(--white); z-index: 2; }
.collection-info h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.collection-info p { font-size: 0.9rem; opacity: 0.9; }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.service-card { background: var(--white); padding: 2rem; border-radius: 10px; text-align: center; transition: all 0.3s; border: 2px solid var(--gray); }
.service-card:hover { transform: translateY(-10px); border-color: var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.service-icon { width: 60px; height: 60px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; color: var(--white); }
.service-icon ion-icon { font-size: 1.8rem; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--primary); }
.service-card p { color: var(--dark-gray); line-height: 1.6; }

/* GALLERY GRID */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.gallery-item { height: 350px; background: var(--gray); border-radius: 10px; overflow: hidden; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; position: relative; }
.gallery-item:hover { transform: scale(1.03); box-shadow: 0 12px 35px rgba(0,0,0,0.2); }
.gallery-item-overlay { position: absolute; inset: 0; background: rgba(15,23,42,0.55); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; color: var(--white); opacity: 0; transition: opacity 0.3s; font-size: 0.9rem; font-weight: 500; letter-spacing: 1px; }
.gallery-item-overlay ion-icon { font-size: 2rem; color: var(--gold); }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* GALLERY LIGHTBOX MODAL */
.gallery-modal { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.gallery-modal.open { opacity: 1; visibility: visible; }
.gallery-modal-backdrop { position: absolute; inset: 0; background: rgba(10,15,30,0.92); backdrop-filter: blur(6px); }
.gallery-modal-close { position: absolute; top: 1.2rem; right: 1.5rem; z-index: 10001; background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.3); color: var(--white); font-size: 1.8rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; line-height: 1; }
.gallery-modal-close:hover { background: var(--gold); border-color: var(--gold); transform: rotate(90deg); }
.gallery-modal-inner { position: relative; z-index: 10000; display: flex; gap: 1rem; align-items: stretch; max-width: 1100px; width: 95vw; max-height: 85vh; padding: 0.5rem; }
.gallery-modal-sidebar { display: flex; flex-direction: column; gap: 0.5rem; overflow-y: auto; max-height: 85vh; width: 90px; flex-shrink: 0; padding: 0.25rem; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.gallery-modal-sidebar::-webkit-scrollbar { width: 4px; }
.gallery-modal-sidebar::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }
.gallery-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s, transform 0.2s; flex-shrink: 0; }
.gallery-thumb:hover { transform: scale(1.05); }
.gallery-thumb.active { border-color: var(--gold); }
.gallery-modal-main { flex: 1; display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.gallery-modal-img-wrap { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 400px; max-height: 80vh; }
#galleryModalImg { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); transition: opacity 0.25s ease; }
#galleryModalImg.fading { opacity: 0; }
.gallery-modal-caption { position: absolute; bottom: -2rem; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.7); font-size: 0.85rem; font-style: italic; }
.gallery-nav { background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.25); color: var(--white); font-size: 1.8rem; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; transition: all 0.3s; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.gallery-nav:hover { background: var(--gold); border-color: var(--gold); transform: scale(1.1); }
.gallery-modal-counter { position: relative; z-index: 10000; color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-top: 1.5rem; letter-spacing: 1px; }

/* TESTIMONIALS */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-top: 3rem; }
.testimonial-card { background: var(--white); padding: 2rem; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: all 0.3s ease; border-left: 4px solid var(--gold); }
.testimonial-card.new-review { animation: slideUp 0.5s ease; }
.testimonial-card:hover { transform: translateY(-8px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.stars { font-size: 1.2rem; color: var(--gold); margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-card p { color: var(--dark-gray); line-height: 1.8; margin-bottom: 1.5rem; font-size: 0.95rem; font-style: italic; }
.client-info { display: flex; align-items: center; gap: 1rem; }
.client-details { display: flex; flex-direction: column; gap: 0.3rem; }
.client-info strong { color: var(--primary); font-size: 1rem; }
.client-info span { color: var(--gold); font-size: 0.85rem; font-weight: 500; }

/* REVIEW FORM */
.review-form-section { margin-top: 4rem; text-align: center; }
.review-form-title { font-size: 1.8rem; color: var(--primary); margin-bottom: 0.5rem; }
.review-form-subtitle { color: var(--dark-gray); margin-bottom: 2rem; font-size: 0.95rem; }
.review-form-card { background: var(--white); border-radius: 16px; padding: 2.5rem; box-shadow: 0 8px 30px rgba(0,0,0,0.08); max-width: 800px; margin: 0 auto; text-align: left; border-top: 4px solid var(--gold); }
.star-rating-group { margin-bottom: 1.8rem; }
.star-rating-group label { display: block; font-weight: 600; color: var(--primary); margin-bottom: 0.6rem; font-size: 0.95rem; }
.star-rating-input { display: flex; gap: 0.3rem; margin-bottom: 0.5rem; }
.star-btn { font-size: 2.2rem; color: var(--gray); cursor: pointer; transition: color 0.15s, transform 0.15s; user-select: none; line-height: 1; }
.star-btn:hover, .star-btn.hovered, .star-btn.selected { color: var(--gold); }
.star-btn:hover { transform: scale(1.2); }
.star-rating-label { display: block; font-size: 0.85rem; color: var(--dark-gray); min-height: 1.2em; transition: color 0.2s; }
.review-form-fields { margin-bottom: 1.5rem; }
.review-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; justify-content: center; align-content: center; align-items: center; }
.review-field { display: flex; flex-direction: column; position: center; }
.review-field label { font-weight: 500; color: var(--primary); margin-bottom: 0.4rem; font-size: 0.9rem; }
.review-field input, .review-field textarea { padding: 0.9rem 1rem; border: 2px solid var(--gray); border-radius: 8px; font-family: 'Poppins', sans-serif; font-size: 0.9rem; transition: border-color 0.3s; resize: vertical; color: var(--primary); }
.review-field input:focus, .review-field textarea:focus { outline: none; border-color: var(--gold); }
.review-field input.field-error, .review-field textarea.field-error { border-color: #DC3545; }
.review-error { color: #DC3545; font-size: 0.8rem; margin-top: 0.3rem; min-height: 1em; }
.review-form-footer { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.review-success { display: none; background: #D4EDDA; color: #155724; padding: 0.8rem 1.2rem; border-radius: 8px; font-size: 0.9rem; border: 1px solid #C3E6CB; }
.review-success.show { display: block; animation: slideUp 0.4s ease; }

/* CONTACT */
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; }
.form-group label { margin-bottom: 0.5rem; font-weight: 500; color: var(--primary); }
.form-group input, .form-group textarea { padding: 1rem; border: 2px solid var(--gray); border-radius: 5px; font-family: 'Poppins', sans-serif; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 150px; }
.error-message { color: #DC3545; font-size: 0.85rem; margin-top: 0.3rem; display: none; }
.form-group input.error, .form-group textarea.error { border-color: #DC3545; }
.form-group input.error ~ .error-message, .form-group textarea.error ~ .error-message { display: block; }
.form-success { background: #D4EDDA; color: #155724; padding: 1rem; border-radius: 5px; display: none; margin-bottom: 1rem; border: 2px solid #C3E6CB; }
.form-success.show { display: block; animation: slideUp 0.5s ease; }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.info-item { display: flex; align-items: flex-start; gap: 1rem; }
.info-icon { width: 50px; height: 50px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); flex-shrink: 0; }
.info-icon ion-icon { font-size: 1.5rem; }
.info-text h4 { margin-bottom: 0.5rem; color: var(--primary); }
.info-text p { color: var(--dark-gray); }
.whatsapp-btn { background: #25D366; color: var(--white); padding: 1rem 2rem; border-radius: 5px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-weight: 500; transition: all 0.3s; margin-top: 1rem; }
.whatsapp-btn ion-icon { font-size: 1.5rem; }
.whatsapp-btn:hover { background: #20BA5A; transform: translateY(-2px); }
.map-container { width: 100%; height: 300px; border-radius: 10px; overflow: hidden; margin-top: 2rem; }
.map-container iframe { width: 100%; height: 100%; border: none; }

/* FOOTER */
footer { background: var(--primary); color: var(--white); padding: 3rem 5%; text-align: center; }
footer p { margin-bottom: 1rem; }
.social-links { display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; }
.social-links a { width: 40px; height: 40px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); text-decoration: none; transition: transform 0.3s; }
.social-links a ion-icon { font-size: 1.2rem; }
.social-links a:hover { transform: translateY(-3px); }

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.scale-in { opacity: 0; transform: scale(0.9); transition: opacity 0.8s ease, transform 0.8s ease; }
.scale-in.visible { opacity: 1; transform: scale(1); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .contact-content { grid-template-columns: 1fr; }
    .about-content { grid-template-columns: 1fr; gap: 2rem; }
    .about-image { height: 350px; }
    .map-container { height: 250px; }
    .gallery-modal-sidebar { width: 70px; }
    .gallery-thumb { width: 60px; height: 60px; }
}
@media (max-width: 768px) {
    .nav-links { position: fixed; right: -100%; top: 0; height: 100vh; width: 70%; background: var(--primary); flex-direction: column; padding: 5rem 2rem; transition: right 0.3s; z-index: 999; }
    .nav-links.active { right: 0; }
    .burger { display: flex; }
    nav { padding: 1.5rem 3%; }
    .hero { background-image: url('../images/bg-hero-mobile.png'); min-height: 80vh; padding: 0 1rem; }
    .hero-content { padding: 0 1rem; }
    .hero h1 { font-size: 2.5rem; line-height: 1.3; }
    .hero p { font-size: 1rem; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { padding: 0.9rem 1.5rem; }
    .about-content, .contact-content { grid-template-columns: 1fr; gap: 2rem; }
    .about-image { height: 300px; }
    .section-title { font-size: 2rem; }
    section { padding: 2.5rem 3%; }
    .collections-two { grid-template-columns: 1fr; }
    .collections-grid, .services-grid { grid-template-columns: 1fr; gap: 1rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
    .collection-card { height: 300px; }
    .gallery-item { height: 220px; }
    .testimonials-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .testimonial-card { padding: 1.5rem; }
    .gallery-modal-inner { flex-direction: column; max-height: 90vh; width: 98vw; }
    .gallery-modal-sidebar { flex-direction: row; width: 100%; max-height: 80px; overflow-x: auto; overflow-y: hidden; }
    .gallery-thumb { width: 65px; height: 65px; }
    .gallery-modal-main { min-height: 280px; }
    #galleryModalImg { max-height: 55vh; }
    .gallery-nav { width: 38px; height: 38px; font-size: 1.2rem; }
    .review-field-row { grid-template-columns: 1fr; }
    .review-form-card { padding: 1.5rem; }
    .review-form-footer { flex-direction: column; align-items: flex-start; }
    .contact-form { gap: 1rem; }
    .form-group input, .form-group textarea { padding: 0.8rem; }
    .map-container { height: 200px; }
    .contact-info { gap: 1.5rem; }
    footer { padding: 2rem 3%; }
}
@media (max-width: 480px) {
    .logo { font-size: 1.2rem; }
    .nav-links { width: 80%; padding: 4rem 1rem; gap: 1rem; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.9rem; margin-bottom: 1.5rem; }
    .btn { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
    .section-title { font-size: 1.5rem; margin-bottom: 1.5rem; }
    .section-title::after { width: 60px; }
    section { padding: 1.5rem 2%; }
    .about-text h3 { font-size: 1.5rem; }
    .collection-info h3 { font-size: 1.3rem; }
    .collection-info p { font-size: 0.8rem; }
    .service-card { padding: 1.5rem; }
    .service-icon { width: 50px; height: 50px; margin: 0 auto 1rem; }
    .service-card h3 { font-size: 1.1rem; }
    .testimonials-grid { gap: 1rem; }
    .testimonial-card { padding: 1rem; }
    .testimonial-card p { font-size: 0.85rem; margin-bottom: 1rem; }
    .client-info strong { font-size: 0.9rem; }
    .client-info span { font-size: 0.75rem; }
    .info-item { gap: 0.8rem; }
    .info-icon { width: 40px; height: 40px; min-width: 40px; }
    .map-container { height: 150px; }
    footer p { font-size: 0.9rem; }
    .social-links a { width: 35px; height: 35px; }
    .star-btn { font-size: 1.8rem; }
}
