/* ===============================
   RESET Y ESTILOS BÁSICOS
   =============================== */
html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "SeoulNamsan CB", sans-serif;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    /* ocupa el espacio restante entre header y footer */
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
    /* fuerza que siempre esté abajo */
    background-color: #482420;
    color: white;
    border-top: white 3px solid;
    padding: 40px 20px;
}

.brown_border {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.brown_line {
    width: 100%;
    height: 30px;
    background-color: #2E1C00;
}

.halal_info {
    width: 100%;
    background-color: #999999;
    height: 170px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.gray_line {
    width: 100%;
    font-family: "Teachers", sans-serif;
    color: white;
    font-size: calc(2vw + 10px);
    /* escala según ancho de pantalla */
    padding: 0 5px;
    text-align: center;
    box-sizing: border-box;
}

.mensaje_enviado {
    color: white;
    font-weight: bold;
    margin-top: 10px
}

.btn_story a, .btn_menu a {
    text-decoration: none;
    color: white;
}

#reservation {
    scroll-margin-top: 200px; /* la cantidad de espacio que quieres arriba */
}


/* ===============================
   HEADER Y NAVEGACIÓN
   =============================== */
.spacer {
    height: 180px;
    /* altura igual a la del header */
    background-color: #482420;
    transition: all 0.4s ease;
}

header {
    background-color: #482420;
    padding-top: 20px;
    padding-bottom: 20px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
}

/* Media query para header en pantallas pequeñas */
@media (max-width: 768px) {
    .spacer {
        height: 200px;
    }

    header {
        font-size: 0.7em;
        padding-top: 15px;
        padding-bottom: 15px;

        .logo {
            width: 140px;
            height: auto;
        }
    }
}

header.scrolled {
    padding: 5px 0;
    background-color: #331814;
}

nav>ul {
    display: flex;
    justify-content: center;
    /* Centra horizontalmente */
    align-items: center;
    list-style-type: none;
    padding: 0;
    margin: 0 auto;
    /* Asegura centrado */
    gap: 60px;
    /* espacio entre elementos */
    width: fit-content;
    /* Ajusta el bloque al contenido */
    transition: all 0.4s ease;
}


nav>ul>li a {
    position: relative;
    padding-bottom: 5px;
    /* espacio para la línea */
    display: inline-block;
    box-sizing: border-box;
    /* incluye padding en el cálculo de altura */
}

nav>ul>li a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    /* grosor de la línea */
    background-color: #D6A85E;
}



nav>ul>li {
    display: flex;
    align-items: center;
}


nav>ul>li>a {
    text-decoration: none;
    color: white;
    font-size: 2em;
    transition: all 0.3s ease;
}

header.scrolled nav>ul>li>a {
    font-size: 1.4em;
}

.logo {
    width: 200px;
    height: auto;
    transition: all 0.4s ease;
}


header.scrolled .logo {
    width: 130px;
}



/* =============================== 
    WELCOME TO TOPKAPI TAZELIK
    ===============================
*/

.discover_story {
    display: flex;
    flex-direction: column;
    font-size: 1.2em;
    color: white;
    background-color: #181A1B;
    border: none;
    padding: 50px 50px;
}

.discover_story>h1 {
    text-align: center;
    color: #D6A85E;
    font-size: 3em;
    font-family: "Teachers", sans-serif;
    margin-top: 0px;
    margin-bottom: 50px;
}

.discover_story img {
    max-width: 700px;
    height: auto;
    border-radius: 10px;
}

.story_content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 30px 0;
}

.text_and_button {
    width: 40%;
    /* cada hijo ocupa la mitad */
    box-sizing: border-box;
    /* incluye padding en el 50% */
}

.story_image {
    display: flex;
    justify-content: center;
    width: 40%;
}


.story_content>div img {
    width: 100%;
    /* ocupa todo el ancho de la columna */
    height: auto;
    /* mantiene proporción */
    display: block;
    /* elimina espacio extra debajo de la imagen */
    object-fit: cover;
    /* opcional: recorta proporcionalmente si quieres */
}

.text_and_button {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.story_text {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.story_text>h2 {
    margin: 0;
    font-size: 2.3em;
}

.story_text>p {
    line-height: 1.6;
    text-align: justify;
    font-size: 1.4em;
    font-family: "Montserrat", sans-serif;
}

@media (max-width: 900px) {
    .story_content {
        flex-direction: column-reverse;
        /* apila verticalmente en orden inverso */
    }

    .story_content>div {
        width: 100%;
        /* cada hijo ocupa todo el ancho */
    }
}

/* Botones */
.buttons_story {
    display: flex;
    justify-content: start;
    gap: 25px;
}

.buttons_story>button {
    padding: 30px;
    background-color: #482420;
    color: white;
    border: none;
    font-size: 1.2em;
    font-weight: bold;
}

/* ===============================
   SECCIÓN DE TESTIMONIALS
   =============================== */

.testimonials {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #1F2223;
    padding: 40px 20px;
}

.testimonials>h1 {
    margin: 0;
    color: #D6A85E;
    font-family: "Teachers", sans-serif;
    font-size: 3em;
}

.testimonials_img {
    width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 10px;
}

/* =============================
   SECCIÓN COME VISIT US
   =============================== */

.come_visit_us {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #181A1B;
    padding: 40px 20px;
}

.come_visit_us>h1 {
    margin: 0;
    color: #D6A85E;
    font-family: "Teachers", sans-serif;
    font-size: 3em;
    margin-bottom: 20px;
}

.come_visit_us form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
    width: 65%;
}

.come_visit_us form>input,
.come_visit_us form>select,
.come_visit_us form>div>input {
    padding: 20px;
    font-size: 1em;
    border: none;
    background-color: #999999;
    color: white;
    font-family: "Montserrat", sans-serif;
    opacity: 0.8;
    font-weight: 600;
}

.come_visit_us form>div>input::placeholder,
.come_visit_us form>input::placeholder {
    color: white;
    opacity: 0.7;
    font-weight: 600;
}

.come_visit_us form>select {
    appearance: none;
    /* elimina estilos por defecto */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('img/dropdown-arrow.png');
    /* agrega una flecha personalizada */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 25px;
    padding-right: 30px;
    /* espacio para la flecha */
}

.come_visit_us form>button {
    margin-top: 15px;
    padding: 15px;
    font-size: 1.2em;
    background-color: #482420;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    margin-bottom: 40px;
}

.come_visit_us form>div {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.come_visit_us form>div>input {
    width: 50%;
}


/* ===============================
   SECCIÓN DE FOOTER
   =============================== */
/* Footer principal */
footer {
    display: flex;
    justify-content: center;
    /* distribuye secciones */
    align-items: flex-start;
    /* alinea verticalmente al inicio */
    flex-direction: column;
    background-color: #482420;
    color: white;
    padding: 50px 0;
    /* padding superior e inferior */
    box-sizing: border-box;
    gap: 0;
    padding-bottom: 0;
}

footer .footer_top {
    display: flex;
    flex-direction: row;
    justify-content: center;
    /* espacio entre secciones */
    align-items: center;
    /* alinea verticalmente al inicio */
    width: 100%;
    box-sizing: border-box;
}

footer .footer_bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 1em;
    color: #D6A85E;
    font-family: "Montserrat", sans-serif;
    background-color: #331814;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
}

footer .credit {
    font-size: 0.9em;
    color: white;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

/* Secciones con ancho relativo */
footer .info_footer,
footer .contact {
    flex: 0 0 25%;
    /* 25% cada una */
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0px 20px;
    box-sizing: border-box;
}

footer .info_footer {
    padding-right: 0px;
    padding-left: 5%;
}

footer .contact {
    padding-left: 0px;
    padding-right: 5%;
}

/* Info footer */
.info_footer h3,
.info_footer p {
    margin: 0;
    margin-top: 20px;
}

/* Galería */
.galeria {
    flex: 0 0 40%;
    /* galería 40% */
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    justify-items: center;
    width: 100%;
}

.galeria img {
    margin-top: 20px;
    width: 90%;
    height: auto;
    display: block;
}

/* Textos y títulos */
footer p {
    margin: 0;
    font-size: 1.3em;
    line-height: 1.6;
    font-family: "Montserrat", sans-serif;
}

footer h3 {
    margin-top: 0;
    font-size: 1.4em;
    font-family: "Montserrat", sans-serif;
}

/* Footer social icons */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer-social a img {
    background-color: white;
    border-radius: 10px;
    width: 50px;
    height: 50px;
    filter: grayscale(100%);
    transition: transform 0.3s, filter 0.3s;
}

.footer-social a img:hover {
    transform: scale(1.2);
    filter: grayscale(0%);
}

/* Contacto */

.contact h3 {
    margin: 0;
    margin-top: 20px;
}


/* ===== MEDIA QUERIES ===== */
@media (max-width: 1000px) {
    footer .footer_top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    footer .info_footer,
    footer .contact,
    footer .galeria-section {
        flex: 1 1 100%;
        width: 100%;
        margin-bottom: 30px;
        padding: 0;
    }

    .contact {
        padding: 0;
    }

    .galeria {
        grid-template-columns: 1fr;
        /* 1 columna */
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    footer p {
        font-size: 1.1em;
    }

    footer h3 {
        font-size: 1.1em;
    }

    .footer-social a img {
        width: 40px;
        height: 40px;
    }
}



/* ===============================
   SECCIÓN DE SLIDER / CAROUSEL
   =============================== */
.image_slider_content {
    color: #FFFFFF;
}

/* Variables */
:root {
    --w: 800px;
    --h: 450px;
}

/* Carousel container */
.carousel {
    width: 100%;
    /* ocupa todo el ancho de la ventana */
    height: 30%;
    /* o la altura que prefieras */
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

.carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    /* cubre toda el área */
    background: #2A1E07;
    opacity: 0.60;
    /* sombra marrón semitransparente */
    z-index: 1;
    /* encima de las imágenes */
}

.carousel-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -65%);
    /* centra perfectamente */
    z-index: 2;
    /* encima de la sombra e imágenes */
    text-align: center;
    color: white;
    padding: 1rem 0rem;
    width: 90%;
    max-width: 80%;
}

.carousel-text h1 {
    font-size: 6rem;
    margin-bottom: 0.5rem;
}

.explore-btn {
    margin-top: 20px;
    padding: 20px 20px;
    font-size: 1.2em;
    color: #fff;
    background-color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}


/* Slides track */
.track {
    display: flex;
    height: 100%;
    transition: transform 0.45s cubic-bezier(.22, .9, .35, 1);
    z-index: 0;
}

/* Slide individual */
.slide {
    min-width: 100%;
    height: 100%;
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    /* evita bordes blancos si hay espacio */
}

.slide img,
iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* llena el contenedor sin deformarse */
    display: block;
}

.btn,
.dots {
    z-index: 2;
    position: relative;
}

/* Flechas */
.btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 16px;
    user-select: none;
    transition: opacity 0.2s ease;
}

.btn:hover {
    opacity: 0.7;
}

.btn-left {
    left: 20px;
}

.btn-right {
    right: 20px;
}

/* Dots (indicadores) */
.dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 0;
    cursor: pointer;
}

.dot.active {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 1);
}

/* Responsive */
@media (max-width: 725px) {
    :root {
        --h: 260px;
    }

    nav>ul>li>a {
        font-size: 1.4em;
    }

    .carousel-text h1 {
        font-size: 3rem;
        margin-bottom: 0.5rem;
    }

    .carousel-text {
        transform: translate(-50%, -50%);
    }
}