/* --- Image Feed --- */
.image-feed {
    padding: 60px 0;
    background: var(--cream);
    overflow: hidden;
}

.feed-container {
    display: flex;
    gap: 20px;
    animation: scroll-feed 40s linear infinite;
    width: max-content;
}

.feed-img {
    width: 300px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.feed-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.feed-img:hover img {
    transform: scale(1.1);
}

@keyframes scroll-feed {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

:root {
    --gold: #D4AF37;
    --gold-light: #F1D279;
    --gold-dark: #A67C00;
    --chocolate: #2C1E14;
    --chocolate-light: #453225;
    --cream: #FAF9F6;
    --white: #FFFFFF;
    --gray: #777;
    --black: #111;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.text-center {
    text-align: center;
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scroll 'shaking' */
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--chocolate);
    line-height: 1.6;
}

/* Fix for AOS causing overflow on mobile */
[data-aos] {
    pointer-events: none;
}
.aos-animate {
    pointer-events: auto;
}

/* --- Top Bar Marquee Fix --- */
.marquee {
    display: flex;
    align-items: center;
    gap: 50px;
    animation: marquee 30s linear infinite;
    width: max-content; /* Ensure width is calculated correctly */
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Standard marquee trick with duplicated content if needed, but here simple shift */
}

/* Duplicating content in top-bar for seamless loop in JS if needed, but for now just fix overflow */
.top-bar {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--chocolate);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s ease;
}

.loader-logo img {
    width: 120px;
    filter: brightness(0) invert(1);
    animation: pulse 2s infinite;
}

.loader-line {
    width: 100px;
    height: 2px;
    background: rgba(212,175,55,0.2);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    animation: loading 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* --- Top Bar --- */
.top-bar {
    background: var(--chocolate-light);
    color: var(--gold);
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1001;
    transition: var(--transition);
}

.top-bar.hidden {
    opacity: 0;
    pointer-events: none;
}

.marquee {
    display: flex;
    align-items: center;
    gap: 50px;
    animation: marquee 20s linear infinite;
    padding-left: 100%;
}

.marquee p {
    margin: 0;
}

.btn-top-whatsapp {
    background: var(--gold);
    color: var(--chocolate) !important;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.btn-top-whatsapp:hover {
    background: var(--white);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- Navigation --- */
#navbar {
    position: fixed;
    top: 36px; /* Shifted down by top-bar height */
    left: 0;
    width: 100%;
    padding: 10px 0;
    background: white;
    z-index: 1000;
    transition: var(--transition);
}

#navbar.scrolled {
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 0;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

#navbar.no-top-bar {
    top: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    transition: var(--transition);
}

#navbar.scrolled .logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--chocolate);
}

.nav-links a:hover {
    color: var(--gold);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
    color: var(--white) !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--white) !important;
    padding: 12px 30px;
    border-radius: 50px;
    border: 2px solid var(--white);
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--chocolate) !important;
}

.btn-outline {
    background: transparent;
    color: var(--chocolate) !important;
    padding: 12px 30px;
    border-radius: 50px;
    border: 2px solid var(--gold);
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--white) !important;
}

/* --- Hero --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(44,30,20,0.7), rgba(44,30,20,0.4), rgba(44,30,20,0.8));
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    transition: background-image 1.5s ease-in-out;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 72px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--gold);
    font-style: italic;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down span {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 25px;
    display: block;
    position: relative;
}

.scroll-down span::after {
    content: '';
    width: 4px;
    height: 10px;
    background: var(--gold);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* --- About --- */
.about {
    padding: 100px 0;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    border-radius: 20px;
    box-shadow: 20px 20px 0 var(--gold);
}

.experience-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--chocolate);
    color: var(--white);
    padding: 20px 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
}

.experience-card h3 {
    font-size: 36px;
    color: var(--gold);
}

.subtitle {
    display: block;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.gold-text {
    color: var(--gold);
}

.features {
    margin: 30px 0;
}

.features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 500;
}

.features i {
    color: var(--gold);
}

/* --- Mission Layout --- */
.mission-layout {
    align-items: flex-start !important;
}

.about-header .main-title {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--chocolate);
}

.experience-badge {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--cream);
    padding: 20px 30px;
    border-radius: 20px;
    border-left: 5px solid var(--gold);
    box-shadow: var(--shadow);
    width: fit-content;
    margin-top: 20px;
}

.experience-badge i {
    font-size: 32px;
    color: var(--gold);
}

.experience-badge h4 {
    font-family: var(--font-body);
    font-size: 18px;
    margin: 0;
}

.experience-badge p {
    font-size: 13px;
    margin: 0;
    opacity: 0.7;
}

.mission-content {
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.mission-content::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: var(--font-heading);
    font-size: 120px;
    color: var(--gold);
    opacity: 0.1;
    line-height: 1;
}

.lead-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--chocolate);
    margin-bottom: 25px;
    line-height: 1.3;
}

.mission-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, var(--gold), transparent);
    margin: 30px 0;
}

.mission-content p {
    margin-bottom: 15px;
    color: var(--gray);
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 991px) {
    .about-header .main-title {
        font-size: 40px;
    }
    .mission-content {
        padding: 30px;
    }
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background: var(--cream);
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-img {
    height: 250px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-info {
    padding: 30px;
}

.service-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.service-info p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 15px;
}

.price {
    display: block;
    font-weight: 700;
    color: var(--gold);
    font-size: 18px;
}

/* --- Gallery --- */
.gallery {
    padding: 100px 0;
    background: var(--white);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--cream);
    color: var(--chocolate);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover {
    background: var(--gold-light);
    color: var(--white);
    border-color: var(--gold);
}

.filter-btn.active {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item.hide {
    display: none;
}

.gallery-item.show {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- Training --- */
.training {
    padding: 100px 0;
    background: var(--chocolate);
    color: var(--white);
}

.training-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.training-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.training-perks {
    display: flex;
    gap: 40px;
    margin: 30px 0;
}

.perk i {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 10px;
}

.training-img img {
    border-radius: 20px;
    box-shadow: -20px 20px 0 var(--gold);
}

/* --- Univers --- */
.univers {
    padding: 100px 0;
    background: var(--white);
}

.univers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.univers-card {
    position: relative;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.univers-img {
    height: 100%;
}

.univers-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.univers-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(44,30,20,0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 40px;
    transition: var(--transition);
}

.univers-info {
    text-align: left;
    color: var(--white);
}

.univers-info h3 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--gold);
}

.univers-info p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.univers-card:hover .univers-img img {
    transform: scale(1.1);
}

.univers-card:hover .univers-overlay {
    background: linear-gradient(to top, rgba(44,30,20,0.95), rgba(44,30,20,0.2));
}

@media (max-width: 992px) {
    .univers-grid {
        grid-template-columns: 1fr;
    }
    .univers-card {
        height: 400px;
    }
}


.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.contact-info h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.info-items {
    margin: 40px 0;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--cream);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.info-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.info-item a:hover {
    color: var(--gold);
}

.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-weight: 700;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 5px;
}

.map-container {
    margin-top: 30px;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.contact-form-wrapper h3 {
    font-size: 32px;
    margin-bottom: 30px;
}

.appointment-form {
    margin: 30px 0;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    background: #fdfdfd;
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
    color: var(--chocolate);
}

.input-group input::placeholder, 
.input-group textarea::placeholder {
    color: #999;
}

.input-group select option {
    background: var(--white);
    color: var(--chocolate);
    padding: 10px;
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
    background: #fff;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: #128C7E;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* --- Modal Lightbox --- */
.modal {
    display: none;
    position: fixed;
    z-index: 10001;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(44, 30, 20, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border: 3px solid var(--gold);
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.close-modal {
    position: absolute;
    top: 40px;
    right: 50px;
    color: var(--white);
    font-size: 60px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--gold);
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--gold);
    padding: 20px 0;
    font-family: var(--font-heading);
    font-size: 24px;
}

/* --- Footer --- */
footer {
    padding: 80px 0 30px;
    background: var(--chocolate);
    color: var(--white);
}

.footer-logo {
    height: 80px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.social-links a {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--chocolate);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    opacity: 0.7;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero h1 { font-size: 52px; }
    .about-grid, .training-container, .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .about-img { order: 2; }
    .about-text { order: 1; }
    .nav-links { display: none; }
    .menu-toggle { display: block; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 40px; }
    .hero p { font-size: 16px; }
    .hero-btns { flex-direction: column; }
    .contact-form-wrapper { padding: 30px; }
}
